/*
 * 中医部落首页样式
 * 仅由 templets/gudian/index.htm 引用，避免影响列表页和内容页。
 */

body.tcm-home-page {
    --tcm-home-paper: #f5ecd9;
    --tcm-home-paper-deep: #e6d2aa;
    --tcm-home-paper-light: #fff8e9;
    --tcm-home-ink: #24180f;
    --tcm-home-soft: #574631;
    --tcm-home-muted: #7a684f;
    --tcm-home-line: rgba(74, 45, 22, 0.2);
    --tcm-home-line-deep: rgba(74, 45, 22, 0.36);
    --tcm-home-red: #9b2f25;
    --tcm-home-jade: #1f5f53;
    --tcm-home-gold: #b0843d;
    --tcm-home-indigo: #263f5e;
    --tcm-home-shadow: 0 24px 70px rgba(39, 24, 9, 0.17);
    color: var(--tcm-home-ink);
    font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
    background:
        radial-gradient(circle at 14% 6%, rgba(176, 132, 61, 0.18), transparent 25rem),
        radial-gradient(circle at 85% 24%, rgba(31, 95, 83, 0.11), transparent 26rem),
        linear-gradient(90deg, rgba(36, 24, 15, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(36, 24, 15, 0.028) 1px, transparent 1px),
        var(--tcm-home-paper);
    background-size: auto, auto, 36px 36px, 36px 36px, auto;
}

.tcm-home-page .gudian-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 18px;
}

.tcm-home-page .container {
    max-width: 1240px;
}

.tcm-home-page a {
    color: inherit;
}

.tcm-home-topbar {
    position: sticky;
    top: 0;
    z-index: 300;
    border: 1px solid var(--tcm-home-line);
    border-top: 0;
    background: rgba(245, 236, 217, 0.92);
    backdrop-filter: blur(16px);
}

.tcm-home-topbar-inner {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.tcm-home-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tcm-home-seal {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 247, 235, 0.8);
    color: #fff7eb;
    background: var(--tcm-home-red);
    box-shadow: inset 0 0 0 2px rgba(72, 18, 12, 0.32);
    font-weight: 900;
    line-height: 1;
}

.tcm-home-brand strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.tcm-home-brand small {
    display: block;
    margin-top: 2px;
    color: var(--tcm-home-muted);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}

.tcm-home-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #55432b;
    font-size: 15px;
}

.tcm-home-nav a {
    padding: 6px 0;
    border-bottom: 1px solid transparent;
}

.tcm-home-nav a:hover,
.tcm-home-nav a[aria-current="page"] {
    color: var(--tcm-home-red);
    border-color: rgba(155, 47, 37, 0.42);
}

.tcm-home-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--tcm-home-line-deep);
    border-top: 0;
    background:
        linear-gradient(90deg, rgba(245, 236, 217, 0.99) 0%, rgba(245, 236, 217, 0.91) 44%, rgba(245, 236, 217, 0.36) 100%),
        url("/templets/gudian/common/images/ink-herb.svg") right center / auto 112% no-repeat,
        linear-gradient(135deg, #fff6e2, #dfc393);
    box-shadow: 0 18px 46px rgba(39, 24, 9, 0.12);
}

.tcm-home-hero::before {
    content: "";
    position: absolute;
    inset: 18px;
    pointer-events: none;
    border: 1px solid rgba(74, 45, 22, 0.18);
}

.tcm-home-hero-inner {
    position: relative;
    min-height: 430px;
    padding: 58px 24px 46px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 176px;
    gap: 30px;
    align-items: center;
}

.tcm-home-eyebrow {
    width: fit-content;
    margin: 0 0 18px;
    padding: 6px 12px;
    color: var(--tcm-home-red);
    border-top: 1px solid rgba(155, 47, 37, 0.38);
    border-bottom: 1px solid rgba(155, 47, 37, 0.38);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.5;
}

.tcm-home-hero-title {
    max-width: 790px;
    margin: 0;
    color: var(--tcm-home-ink);
    font-size: clamp(48px, 7vw, 108px);
    line-height: 0.96;
    font-weight: 900;
}

.tcm-home-hero-subtitle {
    max-width: 740px;
    margin: 22px 0 0;
    color: #4f3e29;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.9;
}

.tcm-home-search {
    max-width: 760px;
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.tcm-home-search-field {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(74, 45, 22, 0.28);
    background: rgba(255, 250, 239, 0.68);
}

.tcm-home-search-field span {
    color: var(--tcm-home-red);
    font-weight: 900;
}

.tcm-home-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--tcm-home-ink);
    background: transparent;
    font: inherit;
}

.tcm-home-search-field input::placeholder {
    color: #8a775c;
}

.tcm-home-search-button {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(155, 47, 37, 0.4);
    color: #fff7eb;
    background: var(--tcm-home-red);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.tcm-home-search-button:hover {
    background: #84271f;
}

.tcm-home-facts {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tcm-home-fact {
    padding: 8px 12px;
    border: 1px solid rgba(74, 45, 22, 0.2);
    color: #42321f;
    background: rgba(255, 248, 233, 0.58);
    line-height: 1.5;
}

.tcm-home-mark {
    justify-self: end;
    width: 118px;
    min-height: 250px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(155, 47, 37, 0.36);
    color: var(--tcm-home-red);
    background: rgba(255, 248, 233, 0.54);
    box-shadow: inset 0 0 0 6px rgba(255, 248, 233, 0.45);
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.tcm-home-shell {
    padding: 42px 0 68px;
    display: grid;
    gap: 34px;
}

.tcm-home-category-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.tcm-home-category-item {
    min-height: 154px;
    padding: 18px;
    display: grid;
    align-content: space-between;
    gap: 16px;
    border: 1px solid var(--tcm-home-line-deep);
    background:
        linear-gradient(180deg, rgba(255, 248, 233, 0.76), rgba(234, 210, 170, 0.34)),
        repeating-linear-gradient(90deg, rgba(74, 45, 22, 0.032), rgba(74, 45, 22, 0.032) 1px, transparent 1px, transparent 22px);
    box-shadow: 0 14px 34px rgba(39, 24, 9, 0.08);
}

.tcm-home-category-symbol,
.tcm-home-title-icon,
.tcm-home-rank-num {
    display: grid;
    place-items: center;
    color: #fff7eb;
    background: var(--tcm-home-jade);
    font-weight: 900;
}

.tcm-home-category-symbol {
    width: 46px;
    height: 46px;
    font-size: 21px;
}

.tcm-home-category-item:nth-child(2) .tcm-home-category-symbol,
.tcm-home-title-icon.is-red,
.tcm-home-rank-item:nth-child(3) .tcm-home-rank-num {
    background: var(--tcm-home-red);
}

.tcm-home-category-item:nth-child(3) .tcm-home-category-symbol,
.tcm-home-title-icon.is-gold,
.tcm-home-rank-item:nth-child(2) .tcm-home-rank-num {
    background: var(--tcm-home-gold);
}

.tcm-home-category-item:nth-child(4) .tcm-home-category-symbol,
.tcm-home-title-icon.is-indigo {
    background: var(--tcm-home-indigo);
}

.tcm-home-category-item h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
}

.tcm-home-category-item p {
    margin: 8px 0 0;
    color: var(--tcm-home-soft);
    line-height: 1.7;
    font-size: 15px;
}

.tcm-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.tcm-home-main-stack,
.tcm-home-side-stack {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.tcm-home-side-stack {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tcm-home-sheet,
.tcm-home-side-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--tcm-home-line-deep);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 248, 233, 0.86), rgba(255, 248, 233, 0.68)),
        repeating-linear-gradient(90deg, rgba(74, 45, 22, 0.032), rgba(74, 45, 22, 0.032) 1px, transparent 1px, transparent 24px);
    box-shadow: var(--tcm-home-shadow);
}

.tcm-home-sheet::before,
.tcm-home-side-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    pointer-events: none;
    border: 1px solid rgba(74, 45, 22, 0.14);
}

.tcm-home-sheet-inner,
.tcm-home-side-inner {
    position: relative;
}

.tcm-home-sheet-inner {
    padding: clamp(26px, 4vw, 44px);
}

.tcm-home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.tcm-home-heading {
    min-width: 0;
}

.tcm-home-kicker {
    margin: 0 0 8px;
    color: var(--tcm-home-jade);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.5;
}

.tcm-home-section-head h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2f2418;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.22;
    font-weight: 900;
}

.tcm-home-section-head h2::before {
    content: "";
    width: 32px;
    height: 2px;
    flex: 0 0 auto;
    background: var(--tcm-home-red);
}

.tcm-home-more {
    flex: 0 0 auto;
    padding: 7px 0;
    color: var(--tcm-home-red);
    border-bottom: 1px solid rgba(155, 47, 37, 0.34);
    font-weight: 900;
}

.tcm-home-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.tcm-home-tab-btn {
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid rgba(74, 45, 22, 0.2);
    color: #4c3a24;
    background: rgba(255, 248, 233, 0.62);
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
}

.tcm-home-tab-btn:hover,
.tcm-home-tab-btn.active {
    border-color: rgba(155, 47, 37, 0.48);
    color: #fff7eb;
    background: var(--tcm-home-red);
}

.tcm-home-tab-panel,
.tcm-home-text-panel {
    display: none;
}

.tcm-home-tab-panel.active,
.tcm-home-text-panel.active {
    display: block;
}

.tcm-home-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.tcm-home-media-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(74, 45, 22, 0.18);
    background: rgba(255, 248, 233, 0.62);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.tcm-home-media-card:hover {
    border-color: rgba(155, 47, 37, 0.36);
    box-shadow: 0 12px 24px rgba(39, 24, 9, 0.1);
    transform: translateY(-2px);
}

.tcm-home-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ead9b9;
}

.tcm-home-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tcm-home-media-card:hover .tcm-home-thumb img {
    transform: scale(1.045);
}

.tcm-home-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 247, 235, 0.82);
    color: #fff7eb;
    background: var(--tcm-home-red);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.tcm-home-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #fff7eb;
    background: rgba(31, 95, 83, 0.82);
    font-size: 13px;
    font-weight: 900;
}

.tcm-home-card-title {
    margin: 0;
    padding: 13px 14px 15px;
    color: var(--tcm-home-ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.45;
}

.tcm-home-card-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tcm-home-article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tcm-home-article-card {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr);
    gap: 18px;
    min-height: 150px;
    padding: 16px;
    border: 1px solid rgba(74, 45, 22, 0.18);
    background: rgba(255, 248, 233, 0.62);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.tcm-home-article-card:hover {
    border-color: rgba(155, 47, 37, 0.36);
    box-shadow: 0 12px 24px rgba(39, 24, 9, 0.1);
    transform: translateY(-1px);
}

.tcm-home-article-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #ead9b9;
}

.tcm-home-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tcm-home-article-card:hover .tcm-home-article-thumb img {
    transform: scale(1.045);
}

.tcm-home-article-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tcm-home-article-title {
    margin: 0;
    color: var(--tcm-home-ink);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.35;
}

.tcm-home-article-title a:hover {
    color: var(--tcm-home-red);
}

.tcm-home-article-meta {
    margin: 8px 0 0;
    color: var(--tcm-home-muted);
    font-size: 13px;
    line-height: 1.5;
}

.tcm-home-article-desc {
    margin: 10px 0 0;
    color: var(--tcm-home-soft);
    font-size: 14px;
    line-height: 1.75;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tcm-home-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 18px;
    align-items: stretch;
}

.tcm-home-feature-lead {
    min-height: 360px;
    display: grid;
    grid-template-rows: minmax(190px, 1fr) auto;
    border: 1px solid rgba(74, 45, 22, 0.18);
    background: rgba(255, 248, 233, 0.62);
}

.tcm-home-feature-image {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 248, 233, 0.2), rgba(36, 24, 15, 0.22)),
        #ead9b9;
}

.tcm-home-feature-image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.tcm-home-feature-image::after {
    content: "精选";
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 5px 10px;
    color: #fff7eb;
    background: var(--tcm-home-red);
    font-size: 14px;
    font-weight: 900;
}

.tcm-home-feature-copy {
    padding: 20px;
}

.tcm-home-feature-copy h3 {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.18;
    font-weight: 900;
}

.tcm-home-feature-copy p {
    margin: 12px 0 0;
    color: var(--tcm-home-soft);
    line-height: 1.85;
}

.tcm-home-feature-list {
    display: grid;
    gap: 12px;
}

.tcm-home-feature-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    min-height: 96px;
    padding: 14px;
    border: 1px solid rgba(74, 45, 22, 0.18);
    background: rgba(255, 248, 233, 0.62);
}

.tcm-home-title-icon {
    width: 64px;
    height: 64px;
    font-size: 25px;
}

.tcm-home-inline-label {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-right: 8px;
    color: #fff7eb;
    background: var(--tcm-home-jade);
    font-size: 13px;
    font-weight: 900;
    vertical-align: middle;
}

.tcm-home-inline-label.is-red {
    background: var(--tcm-home-red);
}

.tcm-home-inline-label.is-gold {
    background: var(--tcm-home-gold);
}

.tcm-home-inline-label.is-indigo {
    background: var(--tcm-home-indigo);
}

.tcm-home-feature-row h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.38;
    font-weight: 900;
}

.tcm-home-feature-row p {
    margin: 7px 0 0;
    color: var(--tcm-home-soft);
    line-height: 1.7;
    font-size: 15px;
}

.tcm-home-title-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}

.tcm-home-topic-intro {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(74, 45, 22, 0.16);
    background: rgba(255, 250, 239, 0.58);
}

.tcm-home-topic-intro h3 {
    margin: 0;
    color: var(--tcm-home-red);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 900;
}

.tcm-home-topic-intro p {
    margin: 8px 0 0;
    color: var(--tcm-home-soft);
    font-size: 15px;
    line-height: 1.75;
}

.tcm-home-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tcm-home-topic-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(74, 45, 22, 0.18);
    background: rgba(255, 248, 233, 0.62);
}

.tcm-home-topic-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(74, 45, 22, 0.14);
}

.tcm-home-topic-card-head h3 {
    margin: 0;
    color: var(--tcm-home-ink);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.tcm-home-topic-card-head h3 a:hover {
    color: var(--tcm-home-red);
}

.tcm-home-topic-card-head span {
    flex: 0 0 auto;
    padding: 4px 9px;
    border: 1px solid rgba(74, 45, 22, 0.18);
    color: var(--tcm-home-muted);
    background: rgba(255, 250, 239, 0.66);
    font-size: 13px;
    line-height: 1.35;
}

.tcm-home-topic-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
}

.tcm-home-topic-subcats a {
    padding: 5px 9px;
    border: 1px solid rgba(74, 45, 22, 0.16);
    color: #55432b;
    background: rgba(255, 250, 239, 0.54);
    font-size: 14px;
    line-height: 1.35;
}

.tcm-home-topic-subcats a:hover {
    border-color: rgba(155, 47, 37, 0.36);
    color: var(--tcm-home-red);
    background: rgba(155, 47, 37, 0.07);
}

.tcm-home-title-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid rgba(74, 45, 22, 0.14);
    line-height: 1.6;
}

.tcm-home-title-item a {
    min-width: 0;
    overflow: hidden;
    color: #3d2e1d;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tcm-home-title-item a:hover {
    color: var(--tcm-home-red);
}

.tcm-home-date {
    color: var(--tcm-home-muted);
    font-size: 14px;
    white-space: nowrap;
}

.tcm-home-side-head {
    position: relative;
    padding: 24px 22px 16px;
    border-bottom: 1px solid var(--tcm-home-line);
}

.tcm-home-side-title {
    margin: 0;
    color: var(--tcm-home-red);
    font-size: 18px;
    font-weight: 900;
}

.tcm-home-side-subtitle {
    margin: 8px 0 0;
    color: var(--tcm-home-muted);
    line-height: 1.65;
    font-size: 15px;
}

.tcm-home-side-list,
.tcm-home-rank-list {
    position: relative;
    margin: 0;
    padding: 10px 22px 18px;
    list-style: none;
}

.tcm-home-side-list li {
    border-bottom: 1px solid rgba(74, 45, 22, 0.12);
}

.tcm-home-side-list li:last-child {
    border-bottom: 0;
}

.tcm-home-side-list a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 0;
    color: #55432b;
    line-height: 1.5;
}

.tcm-home-side-list a::before {
    content: "";
    width: 16px;
    height: 1px;
    flex: 0 0 auto;
    background: var(--tcm-home-gold);
}

.tcm-home-side-list a:hover {
    color: var(--tcm-home-red);
}

.tcm-home-rank-list {
    counter-reset: tcm-home-rank;
}

.tcm-home-rank-item {
    counter-increment: tcm-home-rank;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(74, 45, 22, 0.12);
}

.tcm-home-rank-item:last-child {
    border-bottom: 0;
}

.tcm-home-rank-num {
    width: 28px;
    height: 28px;
    background: var(--tcm-home-jade);
    font-size: 13px;
}

.tcm-home-rank-num::before {
    content: counter(tcm-home-rank);
}

.tcm-home-rank-info h4 {
    margin: 0;
    color: #4b3b28;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.55;
}

.tcm-home-rank-info p {
    margin: 3px 0 0;
    color: var(--tcm-home-muted);
    font-size: 12px;
    line-height: 1.5;
}

.tcm-home-rank-count {
    margin-left: 6px;
    color: var(--tcm-home-red);
}

.tcm-home-letter-list,
.tcm-home-friends-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tcm-home-letter-item,
.tcm-home-friends-list a {
    min-width: 38px;
    min-height: 38px;
    display: grid;
    place-items: center;
    padding: 7px 10px;
    border: 1px solid rgba(74, 45, 22, 0.2);
    color: #4c3a24;
    background: rgba(255, 250, 239, 0.66);
    font-weight: 900;
    line-height: 1.35;
}

.tcm-home-friends-list a {
    min-width: auto;
    font-weight: 700;
}

.tcm-home-letter-item:hover,
.tcm-home-friends-list a:hover {
    border-color: rgba(155, 47, 37, 0.46);
    color: var(--tcm-home-red);
    background: rgba(155, 47, 37, 0.08);
}

.tcm-home-footer-note {
    color: var(--tcm-home-muted);
    line-height: 1.8;
}

.tcm-home-page .tcm-footer {
    margin-top: 0;
    padding: 0 0 34px;
    color: var(--tcm-home-soft);
    font-family: inherit;
}

.tcm-home-page .tcm-footer-board {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--tcm-home-line-deep);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(36, 24, 15, 0.05), transparent 18%, rgba(155, 47, 37, 0.06) 64%, rgba(31, 95, 83, 0.08)),
        linear-gradient(180deg, rgba(255, 248, 233, 0.9), rgba(229, 204, 162, 0.7));
    box-shadow: 0 18px 46px rgba(39, 24, 9, 0.12);
    padding: 28px 34px 22px;
}

.tcm-home-page .tcm-footer-board::before {
    content: "";
    position: absolute;
    inset: 12px;
    pointer-events: none;
    border: 1px solid rgba(74, 45, 22, 0.13);
}

.tcm-home-page .tcm-footer .footer-topline,
.tcm-home-page .tcm-footer-bottom {
    position: relative;
    z-index: 1;
    justify-content: center;
    text-align: center;
}

.tcm-home-page .tcm-footer .footer-topline {
    margin: 0;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--tcm-home-line);
}

.tcm-home-page .tcm-footer .footer-brand {
    max-width: 860px;
    margin: 0 auto;
}

.tcm-home-page .tcm-footer .footer-eyebrow {
    margin-bottom: 8px;
    color: var(--tcm-home-red);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}

.tcm-home-page .tcm-footer .footer-title {
    margin: 0;
    color: var(--tcm-home-ink);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 900;
}

.tcm-home-page .tcm-footer .footer-desc {
    max-width: 720px;
    margin: 10px auto 0;
    color: var(--tcm-home-soft);
    font-size: 15px;
    line-height: 1.9;
}

.tcm-home-page .tcm-footer-bottom {
    padding-top: 16px;
    border-top: 0;
}

.tcm-home-page .tcm-footer .copyright {
    text-align: center;
}

.tcm-home-page .tcm-footer .copyright p {
    margin: 0;
    color: #6d563e;
    font-size: 13px;
    line-height: 1.8;
}

@media (max-width: 1120px) {
    .tcm-home-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .tcm-home-category-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tcm-home-feature-grid {
        grid-template-columns: 1fr;
    }

    .tcm-home-side-stack {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
    }

    .tcm-home-article-grid {
        grid-template-columns: 1fr;
    }

    .tcm-home-topic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .tcm-home-page .gudian-shell {
        padding: 0;
    }

    .tcm-home-topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-left: 18px;
        padding-right: 18px;
    }

    .tcm-home-nav {
        width: 100%;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .tcm-home-hero {
        background:
            linear-gradient(180deg, rgba(245, 236, 217, 0.99), rgba(245, 236, 217, 0.78)),
            url("/templets/gudian/common/images/ink-herb.svg") right bottom / 145% auto no-repeat,
            linear-gradient(135deg, #fff6e2, #dfc393);
    }

    .tcm-home-hero-inner {
        min-height: 430px;
        grid-template-columns: 1fr;
        align-items: start;
        padding-left: 18px;
        padding-right: 18px;
    }

    .tcm-home-search {
        grid-template-columns: 1fr;
    }

    .tcm-home-mark {
        justify-self: start;
        width: auto;
        min-height: 0;
        padding: 10px 16px;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        font-size: 19px;
        letter-spacing: 0;
    }

    .tcm-home-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tcm-home-card-grid,
    .tcm-home-category-band,
    .tcm-home-title-list,
    .tcm-home-article-grid,
    .tcm-home-topic-grid,
    .tcm-home-side-stack {
        grid-template-columns: 1fr;
    }

    .tcm-home-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tcm-home-tabs-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .tcm-home-hero-title {
        font-size: 42px;
    }

    .tcm-home-sheet-inner {
        padding: 24px 18px;
    }

    .tcm-home-feature-row {
        grid-template-columns: 1fr;
    }

    .tcm-home-article-card {
        grid-template-columns: 1fr;
    }

    .tcm-home-title-icon {
        width: 54px;
        height: 54px;
    }

    .tcm-home-page .tcm-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tcm-home-page .tcm-footer-board {
        padding: 24px 18px 20px;
    }
}
