:root {
    --ink: #13243a;
    --ink-soft: #53657a;
    --navy: #10283f;
    --navy-deep: #0a1c2d;
    --teal: #21b6a8;
    --teal-dark: #128b82;
    --mint: #dff8f3;
    --sand: #f4f1e9;
    --paper: #fffefb;
    --white: #ffffff;
    --line: #dfe6e8;
    --line-dark: rgba(255, 255, 255, 0.14);
    --shadow: 0 16px 44px rgba(16, 40, 63, 0.09);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: relative;
    z-index: 30;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--line-dark);
}

.header-container,
.footer-container,
.main-container,
.hero-inner,
.article-shell {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.header-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--white);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.site-logo > span:last-child span {
    color: var(--teal);
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--navy-deep);
    background: var(--teal);
    border-radius: 10px 10px 10px 3px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.header-nav a:hover,
.back-home:hover {
    color: var(--teal);
}

.header-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-status i,
.card-badge i,
.source-domain i {
    width: 7px;
    height: 7px;
    display: inline-block;
    background: var(--teal);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(33, 182, 168, 0.13);
}

/* 首页 */
.hero-section {
    min-height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        var(--navy-deep);
    background-size: 54px 54px;
}

.hero-section::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -145px;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(33, 182, 168, .2);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(33, 182, 168, .035), 0 0 0 140px rgba(33, 182, 168, .025);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.hero-glow-one {
    width: 260px;
    height: 260px;
    top: -150px;
    left: 13%;
    background: rgba(33, 182, 168, .12);
}

.hero-glow-two {
    width: 150px;
    height: 150px;
    right: 24%;
    top: 90px;
    background: rgba(236, 183, 77, .08);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 70px 0 85px;
}

.eyebrow,
.section-kicker,
.article-label,
.content-heading small,
.friendly-links-heading small {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .66);
}

.eyebrow span {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 8px;
    color: var(--navy-deep);
    background: var(--teal);
    border-radius: 5px;
    letter-spacing: 1px;
}

.hero-inner h1 {
    max-width: 720px;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.12;
    letter-spacing: -2px;
}

.hero-inner h1 em {
    color: var(--teal);
    font-style: normal;
}

.hero-inner > p {
    max-width: 620px;
    margin: 24px 0 32px;
    color: rgba(255, 255, 255, .7);
    font-size: 17px;
}

.hero-button,
.visit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 22px;
    color: var(--navy-deep);
    background: var(--teal);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 750;
    transition: transform var(--transition), background var(--transition);
}

.hero-button:hover,
.visit-button:hover {
    background: #43cbbf;
    transform: translateY(-2px);
}

.content-section {
    padding: 82px 0 92px;
}

.recommendation-section {
    padding: 76px 0 80px;
    background:
        radial-gradient(circle at 8% 15%, rgba(33, 182, 168, .13), transparent 28%),
        linear-gradient(135deg, #f2fbf9 0%, #f8faf9 58%, #eef4f8 100%);
    border-bottom: 1px solid var(--line);
}

.recommendation-heading > p {
    max-width: 440px;
    margin: 0 0 4px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.8;
    text-align: right;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.recommendation-card {
    position: relative;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    overflow: hidden;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(33, 182, 168, .26);
    border-radius: var(--radius-md);
    box-shadow: 0 13px 34px rgba(16, 40, 63, .075);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.recommendation-card::after {
    content: '';
    position: absolute;
    right: -34px;
    bottom: -45px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: rgba(33, 182, 168, .075);
}

.recommendation-card:hover {
    border-color: rgba(33, 182, 168, .72);
    box-shadow: 0 18px 42px rgba(16, 40, 63, .12);
    transform: translateY(-5px);
}

.recommendation-topline,
.recommendation-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.recommendation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
}

.recommendation-label {
    padding: 6px 10px;
    color: #8a5a18;
    background: #fff3d8;
    border: 1px solid #f5deb0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .3px;
}

.recommendation-card h3 {
    margin: 21px 0 9px;
    font-size: 19px;
    line-height: 1.45;
}

.recommendation-card h3 a {
    position: relative;
    z-index: 2;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.recommendation-card > p {
    display: -webkit-box;
    overflow: hidden;
    color: #647585;
    font-size: 13px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.recommendation-meta {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 17px;
    color: #82909f;
    border-top: 1px solid #e7efee;
    font-size: 12px;
}

.recommendation-meta span {
    color: var(--teal-dark);
    font-weight: 700;
}

.section-heading,
.friendly-links-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
}

.section-kicker {
    color: var(--teal-dark);
}

.section-heading h2,
.friendly-links-heading h2 {
    margin-top: 3px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.25;
    letter-spacing: -1px;
}

.collection-count {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 3px;
}

.collection-count strong {
    color: var(--teal-dark);
    font-size: 28px;
    line-height: 1;
}

.collection-count span {
    color: var(--ink-soft);
    font-size: 13px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.nav-card {
    min-height: 285px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(16, 40, 63, .045);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav-card:hover {
    z-index: 2;
    border-color: rgba(33, 182, 168, .65);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.card-topline,
.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: var(--mint);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    overflow: hidden;
}

.site-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
    background: #fff;
    box-sizing: border-box;
}

.avatar-2 { background: #eef0ff; color: #5d62a8; }
.avatar-3 { background: #fff0d9; color: #9b6820; }
.avatar-4 { background: #e5f2fb; color: #38779e; }
.avatar-5 { background: #f5e9f5; color: #8d578a; }

.card-number {
    color: #c7d0d5;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-card h3 {
    margin: 22px 0 9px;
    font-size: 17px;
    line-height: 1.5;
}

.card-description {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: #71808e;
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-title {
    position: relative;
    z-index: 2;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-title:hover {
    color: var(--teal-dark);
}

.card-meta {
    margin-top: auto;
    padding-top: 16px;
    color: #82909f;
    border-top: 1px solid #edf1f2;
    font-size: 12px;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--teal-dark);
    font-weight: 650;
}

.card-badge i {
    width: 6px;
    height: 6px;
    box-shadow: none;
}

.card-cover-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 42px;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    color: var(--ink-soft);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
}

.pagination a:hover,
.pagination .active {
    color: var(--white);
    background: var(--navy);
    border-color: var(--navy);
}

.pagination .disabled {
    color: #bdc6cb;
    background: #f5f6f5;
}

.no-data {
    grid-column: 1 / -1;
    padding: 75px 20px;
    text-align: center;
    background: #f6f8f7;
    border: 1px dashed #cfd9d9;
    border-radius: var(--radius-lg);
}

.no-data-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    color: var(--teal-dark);
    background: var(--mint);
    border-radius: 50%;
    font-size: 30px;
}

.no-data h3 { font-size: 20px; }
.no-data p { margin-top: 5px; color: var(--ink-soft); font-size: 14px; }

/* 内容页 */
.article-page {
    background: #f2f5f3;
}

.article-site-header {
    position: sticky;
    top: 0;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    font-weight: 650;
    transition: color var(--transition);
}

.article-main {
    padding: 34px 0 86px;
}

.article-shell {
    max-width: 980px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #7d8b95;
    font-size: 13px;
}

.breadcrumb a:hover { color: var(--teal-dark); }

.article-container {
    overflow: hidden;
    background: var(--white);
    border: 1px solid #e2e8e6;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.article-header {
    position: relative;
    padding: 58px 64px 44px;
    color: var(--white);
    background:
        radial-gradient(circle at 90% 0, rgba(33, 182, 168, .16), transparent 35%),
        var(--navy-deep);
}

.article-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 55px;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, .07);
    box-shadow: 55px 0 rgba(255,255,255,.04), -55px 0 rgba(255,255,255,.04);
}

.article-label {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    color: var(--teal);
}

.article-header h1 {
    max-width: 770px;
    position: relative;
    z-index: 1;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.25;
    letter-spacing: -1.2px;
}

.article-lead {
    max-width: 720px;
    position: relative;
    z-index: 1;
    margin-top: 20px;
    color: rgba(255, 255, 255, .68);
    font-size: 15px;
    line-height: 1.85;
}

.article-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
}

.source-domain {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.article-meta {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 15px;
    margin-top: 34px;
    padding-top: 22px;
    color: rgba(255, 255, 255, .48);
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 12px;
}

.article-meta time { color: rgba(255, 255, 255, .75); }

.tdk-section {
    margin: 40px 64px 0;
    padding: 25px 28px;
    background: #f6f9f7;
    border: 1px solid #e1e8e5;
    border-radius: var(--radius-md);
}

.tdk-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #dfe7e4;
}

.tdk-heading span { font-size: 16px; font-weight: 750; }
.tdk-heading small { color: var(--teal-dark); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }

.tdk-list > div {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #e4eae8;
}

.tdk-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.tdk-list dt { color: #81908f; font-size: 13px; }
.tdk-list dd { min-width: 0; color: #3d5050; font-size: 13px; overflow-wrap: anywhere; }

.article-content-section {
    padding: 58px 64px 68px;
}

.content-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 34px;
}

.heading-line {
    width: 5px;
    height: 48px;
    background: var(--teal);
    border-radius: 5px;
}

.content-heading small,
.friendly-links-heading small {
    color: var(--teal-dark);
    font-size: 10px;
}

.content-heading h2 {
    margin-top: 2px;
    font-size: 26px;
    line-height: 1.2;
}

.article-body {
    color: #34485a;
    font-size: 16px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.article-body p { margin: 0 0 1.35em; }
.article-body h2,
.article-body h3,
.article-body h4 { margin: 1.7em 0 .7em; color: var(--ink); line-height: 1.45; }
.article-body h2 { font-size: 23px; }
.article-body h3 { font-size: 20px; }
.article-body h4 { font-size: 17px; }
.article-body ul,
.article-body ol { margin: 0 0 1.4em 1.5em; }
.article-body li { margin-bottom: .45em; }
.article-body blockquote { margin: 1.6em 0; padding: 15px 20px; color: #506464; background: #f1f8f6; border-left: 4px solid var(--teal); }
.article-body a { color: var(--teal-dark); border-bottom: 1px solid rgba(18, 139, 130, .3); }
.article-taxonomy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.article-category { display: inline-flex; align-items: center; padding: 4px 13px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.article-category:hover { filter: brightness(1.08); }
.article-tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .82); font-size: 12px; }
.hero-search { display: flex; gap: 10px; max-width: 520px; margin: 0 0 22px; }
.hero-search input { flex: 1; min-width: 0; padding: 13px 18px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px; }
.hero-search input::placeholder { color: rgba(255, 255, 255, .55); }
.hero-search input:focus { outline: none; border-color: var(--teal); background: rgba(255, 255, 255, .14); }
.hero-search button { padding: 13px 26px; border: none; border-radius: 999px; background: var(--teal); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.hero-search button:hover { filter: brightness(1.08); }
.search-clear { display: inline-block; margin-top: 8px; color: var(--teal-dark); font-size: 13px; text-decoration: none; }
.search-clear:hover { text-decoration: underline; }
@media (max-width: 560px) {
    .hero-search { flex-direction: column; }
    .hero-search button { width: 100%; }
}
.home-category-nav { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 26px; }
.home-category-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 999px; border: 1px solid #dbe5e3; background: #fff; color: #40514f; font-size: 13px; text-decoration: none; transition: all .18s ease; }
.home-category-nav a:hover { border-color: var(--teal); color: var(--teal-dark); }
.home-category-nav a.active { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.home-category-nav a i { font-style: normal; opacity: .65; font-size: 12px; }
.site-card-category { display: inline-block; margin-top: 8px; padding: 2px 9px; border-radius: 999px; background: #f1f8f6; color: var(--teal-dark); font-size: 11px; }
.article-body table { width: 100%; margin: 0 0 1.5em; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.article-body table th,
.article-body table td { padding: 10px 12px; border: 1px solid #dbe5e3; text-align: left; vertical-align: top; }
.article-body table th { background: #f1f8f6; color: var(--ink); font-weight: 600; white-space: nowrap; }
.article-body table tr:nth-child(even) td { background: #fafcfb; }

.related-section {
    margin: 0 64px 48px;
    padding-top: 38px;
    border-top: 1px solid var(--line);
}

.related-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.related-heading small {
    color: var(--teal-dark);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1px;
}

.related-heading h2 {
    margin-top: 3px;
    font-size: 25px;
    line-height: 1.25;
}

.related-heading > span {
    color: #81908f;
    font-size: 12px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.related-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 20px;
    background: #f7faf9;
    border: 1px solid #e2e9e7;
    border-radius: 14px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.related-card h3 {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-card p {
    display: -webkit-box;
    margin: 10px 0 18px;
    overflow: hidden;
    color: #68797c;
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.related-card > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    color: #91a09f;
    font-size: 11px;
}

.related-card i {
    color: var(--teal-dark);
    font-style: normal;
    font-weight: 700;
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(33, 182, 168, .45);
    box-shadow: 0 12px 25px rgba(16, 40, 63, .08);
}

.sibling-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 0 64px 58px;
}

.sibling-nav a {
    padding: 17px 20px;
    overflow: hidden;
    background: #f6f8f7;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.sibling-nav a:hover { border-color: var(--teal); }
.sibling-nav a span { margin-right: 10px; color: var(--teal-dark); font-weight: 750; }

.friendly-links {
    margin-top: 24px;
    padding: 36px 40px 40px;
    background: var(--white);
    border: 1px solid #e2e8e6;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(16, 40, 63, .05);
}

.friendly-links-heading {
    align-items: center;
    margin-bottom: 24px;
}

.friendly-links-heading h2 {
    margin-top: 2px;
    font-size: 25px;
}

.friendly-links-heading > span {
    color: #81908f;
    font-size: 12px;
}

.friendly-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.friendly-links-grid a {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 13px;
    color: #526568;
    background: #f6f8f7;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.friendly-links-grid a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friendly-links-grid a i {
    color: #9aa8a8;
    font-style: normal;
}

.friendly-links-grid a:hover {
    color: var(--teal-dark);
    background: var(--mint);
    border-color: rgba(33, 182, 168, .3);
}

/* 公共页脚 */
.site-footer {
    color: rgba(255, 255, 255, .64);
    background: var(--navy-deep);
}

.footer-container {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand span {
    color: var(--white);
    font-size: 16px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.footer-brand small { margin-top: 3px; color: var(--teal); font-size: 11px; }
.footer-container > p { max-width: 560px; text-align: right; font-size: 12px; }

@media (max-width: 980px) {
    .recommendation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .friendly-links-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .header-container,
    .footer-container,
    .main-container,
    .hero-inner,
    .article-shell { width: min(100% - 28px, 1160px); }

    .header-container { min-height: 66px; }
    .header-nav a { display: none; }
    .hero-section { min-height: 435px; }
    .hero-inner { padding: 58px 0 72px; }
    .hero-inner h1 { font-size: 42px; letter-spacing: -1px; }
    .hero-inner > p { font-size: 15px; }
    .recommendation-section { padding: 56px 0 62px; }
    .recommendation-heading { align-items: flex-start; }
    .recommendation-heading > p { max-width: 340px; text-align: left; }
    .recommendation-grid { grid-template-columns: 1fr; }
    .recommendation-card { min-height: 225px; }
    .content-section { padding: 58px 0 68px; }
    .section-heading { align-items: flex-start; }
    .collection-count { flex-direction: column; align-items: flex-end; gap: 4px; }
    .nav-grid { grid-template-columns: 1fr; }
    .nav-card { min-height: 265px; }

    .article-main { padding: 22px 0 58px; }
    .article-header { padding: 40px 25px 34px; }
    .article-header h1 { font-size: 31px; }
    .tdk-section { margin: 25px 20px 0; padding: 20px; }
    .tdk-list > div { grid-template-columns: 1fr; gap: 5px; }
    .article-content-section { padding: 42px 25px 48px; }
    .related-section { margin: 0 25px 40px; padding-top: 32px; }
    .related-grid { grid-template-columns: 1fr; }
    .related-card { min-height: 0; }
    .sibling-nav { grid-template-columns: 1fr; margin: 0 25px 42px; }
    .friendly-links { padding: 28px 22px 30px; }
    .friendly-links-heading { align-items: flex-start; }
    .friendly-links-heading > span { padding-top: 6px; }
    .friendly-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .footer-container { min-height: 150px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; }
    .footer-container > p { text-align: left; }
}

@media (max-width: 420px) {
    .header-status { display: none; }
    .hero-inner h1 { font-size: 36px; }
    .recommendation-heading { flex-direction: column; gap: 12px; }
    .section-heading { flex-direction: column; gap: 14px; }
    .collection-count { flex-direction: row; align-items: center; }
    .related-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
    .friendly-links-heading { flex-direction: column; gap: 8px; }
    .friendly-links-grid { grid-template-columns: 1fr; }
    .pagination { gap: 5px; }
    .pagination a,
    .pagination span { min-width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
