:root {
    --bg: #0b0b0a;
    --bg-soft: #11100e;
    --surface: #15130f;
    --surface-2: #1c1912;
    --paper: #f3eee2;
    --paper-2: #e8dfce;
    --ink: #11100e;
    --ink-soft: #3a3428;
    --text: #f7f0e3;
    --muted: #baad92;
    --gold: #c9a24a;
    --gold-light: #e0c178;
    --gold-deep: #7e6326;
    --line: rgba(201, 162, 74, 0.42);
    --line-soft: rgba(255, 255, 255, 0.10);
    --paper-line: rgba(17, 16, 14, 0.18);
    --danger: #9d3d2c;
    --success: #4d7b53;
    --container: 1200px;
    --gap: 24px;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.75;
    background:
        linear-gradient(90deg, rgba(201, 162, 74, 0.06) 1px, transparent 1px) 0 0 / 80px 80px,
        linear-gradient(180deg, #0b0b0a 0%, #11100e 44%, #0b0b0a 100%);
    color: var(--text);
}

body.is-menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 11, 10, 0.94);
    backdrop-filter: blur(14px);
}

.header-grid {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-img {
    width: auto;
    height: 50px;
    max-width: none;
    border: 1px solid var(--line);
    background: #0f0e0b;
    object-fit: contain;
}

.brand-text {
    display: grid;
    gap: 0;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--gold-light);
    line-height: 1.2;
}

.brand-sub {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    padding: 0 13px;
    border-left: 1px solid rgba(201, 162, 74, 0.16);
    color: #e9dfcb;
    font-size: 14px;
    white-space: nowrap;
}

.main-nav a:last-child {
    border-right: 1px solid rgba(201, 162, 74, 0.16);
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(201, 162, 74, 0.11);
    color: var(--gold-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--gold-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--gold-light);
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.btn:hover {
    background: rgba(201, 162, 74, 0.12);
}

.btn-primary {
    border-color: var(--gold);
    background: var(--gold);
    color: #10100e;
}

.btn-primary:hover {
    background: var(--gold-light);
}

.btn-block {
    width: 100%;
}

.page-main {
    min-height: 70vh;
}

.hero {
    padding: 64px 0 36px;
    border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 28px;
    align-items: stretch;
}

.hero-panel,
.panel,
.card,
.portal-card,
.paper-panel,
.form-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(28, 25, 18, 0.96), rgba(15, 14, 12, 0.96));
}

.hero-panel {
    min-height: 420px;
    padding: 42px;
    display: grid;
    align-content: center;
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(201, 162, 74, 0.22), transparent 36%),
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 52%, transparent 53%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-light);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 18px;
}

.kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--gold);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text);
}

.keyword {
    color: var(--gold-light);
}

.hero-lead {
    max-width: 720px;
    color: #d7cbb5;
    font-size: 18px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-side {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 18px;
}

.media-frame {
    width: 100%;
    aspect-ratio: 1200 / 420;
    border: 1px solid var(--line);
    overflow: hidden;
    background: #11100e;
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    background: rgba(15, 14, 12, 0.95);
}

.stat {
    padding: 18px 16px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    color: var(--gold-light);
    font-size: 26px;
    line-height: 1.1;
}

.stat span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--paper);
    color: var(--ink);
    border-top: 1px solid var(--paper-line);
    border-bottom: 1px solid var(--paper-line);
}

.section-dark {
    background: rgba(15, 14, 12, 0.68);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: end;
    margin-bottom: 28px;
    border-bottom: 1px solid currentColor;
    border-color: rgba(201, 162, 74, 0.38);
    padding-bottom: 18px;
}

.section-title {
    margin-bottom: 8px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.section-desc {
    margin: 0;
    color: var(--muted);
    max-width: 820px;
    overflow-wrap: anywhere;
}

.section-alt .section-desc {
    color: #5f5848;
}

.grid-2,
.grid-3,
.grid-4,
.grid-5 {
    display: grid;
    gap: var(--gap);
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.portal-card {
    min-width: 0;
    padding: 24px;
    position: relative;
}

.card::before,
.portal-card::before,
.paper-panel::before,
.form-card::before {
    content: "";
    position: absolute;
    left: -1px;
    top: -1px;
    width: 52px;
    height: 4px;
    background: var(--gold);
}

.card-title,
.news-title,
.article-title-link {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
    line-height: 1.45;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.card-desc,
.news-desc,
.article-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 5.25em;
    line-height: 1.75;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.section-alt .card,
.section-alt .portal-card,
.paper-panel {
    background: #fffaf0;
    color: var(--ink);
    border: 1px solid var(--paper-line);
}

.section-alt .card-title,
.section-alt .news-title,
.section-alt .article-title-link,
.paper-panel .card-title,
.paper-panel h2,
.paper-panel h3 {
    color: var(--ink);
}

.section-alt .card-desc,
.section-alt .news-desc,
.section-alt .article-summary,
.paper-panel p {
    color: #5f5848;
}

.news-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    background: #14120f;
    min-width: 0;
}

.news-thumb {
    width: 100%;
    aspect-ratio: 320 / 200;
    overflow: hidden;
    background: #0f0e0b;
    border-bottom: 1px solid var(--line);
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    padding: 0 18px 20px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--line);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.42fr);
    gap: 28px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.list-clean {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.list-clean li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(201, 162, 74, 0.24);
    color: var(--muted);
}

.list-clean a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.list-clean a:hover {
    color: var(--gold-light);
}

.link-list li {
    padding: 0;
}

.link-list a {
    padding: 12px 0;
}

.section-alt .list-clean li,
.paper-panel .list-clean li {
    color: #5f5848;
    border-color: rgba(17, 16, 14, 0.16);
}

.timeline {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
}

.timeline-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 20px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
    border-bottom: 0;
}

.timeline-num {
    color: var(--gold-light);
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.info-table th,
.info-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(201, 162, 74, 0.22);
    text-align: left;
    vertical-align: top;
}

.info-table th {
    color: var(--gold-light);
    background: rgba(201, 162, 74, 0.08);
}

.info-table tr:last-child td {
    border-bottom: 0;
}

.breadcrumb {
    padding: 20px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gold-light);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}

.article-main {
    border: 1px solid var(--line);
    background: #11100e;
    padding: 36px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.article-main h2 {
    margin-top: 36px;
    color: var(--gold-light);
}

.article-main p {
    color: #d8cdb6;
    overflow-wrap: anywhere;
}

.quote-box {
    border-left: 4px solid var(--gold);
    padding: 20px 24px;
    background: rgba(201, 162, 74, 0.08);
    color: #eadfc9;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px) minmax(320px, 420px);
    gap: 24px;
    align-items: stretch;
}

.auth-intro {
    padding: 32px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(28, 25, 18, 0.96), rgba(13, 12, 10, 0.96));
}

.form-card {
    padding: 28px;
    position: relative;
}

.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 14px;
}

.input,
.textarea,
.select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    background: #0f0e0b;
    color: var(--text);
    padding: 0 14px;
    outline: none;
}

.textarea {
    min-height: 130px;
    padding: 12px 14px;
    resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: var(--gold-light);
}

.form-note {
    color: var(--muted);
    font-size: 13px;
    margin: 12px 0 0;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    background: rgba(20, 18, 15, 0.95);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 58px;
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--text);
    text-align: left;
    font-weight: 800;
}

.faq-answer {
    display: none;
    padding: 0 18px 18px;
    color: var(--muted);
}

.faq-item.is-open .faq-answer {
    display: block;
}

.faq-item.is-open .faq-question {
    border-bottom-color: rgba(201, 162, 74, 0.18);
}

.document-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.doc-toc {
    position: sticky;
    top: 96px;
    border: 1px solid var(--line);
    background: #11100e;
    padding: 18px;
}

.doc-toc a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(201, 162, 74, 0.16);
    color: var(--muted);
}

.doc-content {
    border: 1px solid var(--line);
    background: #11100e;
    padding: 34px;
}

.doc-content section {
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(201, 162, 74, 0.18);
}

.doc-content section:last-child {
    border-bottom: 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #080806;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    gap: 30px;
    padding: 48px 0;
}

.footer-grid h3 {
    color: var(--gold-light);
    margin-bottom: 12px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(201, 162, 74, 0.20);
    font-size: 13px;
}

.align-grid {
    display: grid;
    border: 1px solid var(--line);
}

.align-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid var(--line);
}

.align-row:last-child {
    border-bottom: 0;
}

.align-label,
.align-value {
    padding: 18px;
}

.align-label {
    color: var(--gold-light);
    border-right: 1px solid var(--line);
    font-weight: 800;
}

.align-value {
    color: var(--muted);
}

@media (max-width: 1180px) {
    .header-grid {
        grid-template-columns: auto 1fr auto;
        gap: 14px;
    }

    .main-nav a {
        padding: 0 9px;
        font-size: 13px;
    }

    .grid-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .auth-layout {
        grid-template-columns: 1fr 1fr;
    }

    .auth-intro {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .header-grid {
        min-height: 68px;
        grid-template-columns: 1fr auto;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-actions .btn {
        display: none;
    }

    .main-nav {
        position: fixed;
        left: 0;
        right: 0;
        top: 68px;
        height: calc(100vh - 68px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: #0b0b0a;
        border-top: 1px solid var(--line);
        padding: 14px;
        overflow-y: auto;
    }

    body.is-menu-open .main-nav {
        display: flex;
    }

    .main-nav a {
        height: 50px;
        justify-content: flex-start;
        border: 1px solid rgba(201, 162, 74, 0.22);
        border-bottom: 0;
        padding: 0 16px;
        font-size: 15px;
    }

    .main-nav a:last-child {
        border-bottom: 1px solid rgba(201, 162, 74, 0.22);
    }

    .hero-grid,
    .split-layout,
    .article-layout,
    .document-layout {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .doc-toc,
    .split-layout > .sidebar,
    .article-layout > .sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .grid-4,
    .grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .value-grid,
    .feature-band {
        grid-template-columns: 1fr;
    }

    .value-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .value-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 720px) {
    :root {
        --gap: 14px;
    }

    .hero {
        padding: 34px 0 24px;
    }

    .hero-panel,
    .article-main,
    .doc-content {
        padding: 24px 18px;
    }

    .hero-panel {
        min-height: auto;
    }

    .hero-side .media-frame {
        min-height: 260px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .section {
        padding: 42px 0;
    }

    .section-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .stat:last-child {
        border-bottom: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .align-row {
        grid-template-columns: 1fr;
    }

    .align-label {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .brand-sub {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 20px, var(--container));
    }

    .brand {
        grid-template-columns: auto auto;
        gap: 8px;
    }

    .logo-img {
        width: auto;
        height: 42px;
        max-width: none;
        object-fit: contain;
    }

    .brand-name {
        font-size: 17px;
    }

    h1 {
        font-size: 32px;
    }

    .hero-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }
}


/* V9 refinement: stronger alignment, readable black-gold contrast, sticky sidebars */
.hero-side .media-frame {
    min-height: 420px;
}

.stat strong {
    font-size: 20px;
    letter-spacing: 0.06em;
}

.stat span {
    line-height: 1.65;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
}

.value-item {
    min-width: 0;
    padding: 24px;
    border-right: 1px solid var(--line);
    background: rgba(15, 14, 12, 0.92);
}

.value-item:last-child {
    border-right: 0;
}

.value-label {
    display: block;
    margin-bottom: 12px;
    color: var(--gold-light);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.value-item p {
    margin: 0;
    color: #d8cdb6;
    overflow-wrap: anywhere;
}

.feature-band {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 28px;
    align-items: stretch;
}

.feature-panel {
    border: 1px solid var(--line);
    background: rgba(15, 14, 12, 0.96);
    padding: 28px;
}

.feature-panel h3 {
    margin-bottom: 12px;
    color: var(--gold-light);
}

.feature-panel p,
.feature-panel li {
    color: #d8cdb6;
}

.feature-panel .list-clean li {
    color: #d8cdb6;
}

.news-card-link {
    display: grid;
}

.news-card-link:hover .news-title {
    color: var(--gold-light);
}

.section-alt .news-card {
    background: #fffaf0;
    border-color: var(--paper-line);
}

.section-alt .news-thumb {
    background: #e8dfce;
    border-bottom-color: var(--paper-line);
}

.section-alt .tag {
    color: #6d5624;
    border-color: rgba(17, 16, 14, 0.22);
    background: rgba(201, 162, 74, 0.10);
}

.section-alt .btn {
    color: var(--ink);
    border-color: rgba(17, 16, 14, 0.28);
}

.section-alt .btn:hover {
    background: rgba(201, 162, 74, 0.18);
}

.section-alt .news-card .news-title,
.section-alt .news-card .card-title {
    color: var(--ink);
}

.section-alt .news-card .news-desc,
.section-alt .news-card .card-desc {
    color: #5f5848;
}

.section-alt .faq-item,
.section-alt .form-card,
.section-alt .auth-intro {
    background: #fffaf0;
    color: var(--ink);
    border-color: var(--paper-line);
}

.section-alt .faq-question,
.section-alt .form-card h3,
.section-alt .auth-intro h2,
.section-alt .auth-intro h3 {
    color: var(--ink);
}

.section-alt .faq-answer,
.section-alt .form-note,
.section-alt .auth-intro p {
    color: #5f5848;
}

.split-layout > .sidebar,
.article-layout > .sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    height: max-content;
    max-height: none;
    overflow: visible;
}

.split-layout > .sidebar > *,
.article-layout > .sidebar > * {
    overflow: visible;
}

.footer-contact strong {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-light);
    font-weight: 900;
}

.footer-contact span {
    display: block;
    margin-bottom: 8px;
    line-height: 1.65;
}

/* V12 news page: horizontal article entries with full-card links, no right sidebar */
.section-head-line {
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}

.news-list-stack {
    display: grid;
    gap: 18px;
}

.news-list-stack .news-card-link {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: stretch;
    min-height: 200px;
}

.news-list-stack .news-thumb {
    aspect-ratio: auto;
    height: 100%;
    min-height: 200px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
}

.news-list-stack .news-body {
    display: grid;
    align-content: center;
    padding: 22px 26px;
}

.news-list-stack .news-title {
    font-size: 21px;
}

.news-list-stack .news-desc {
    max-width: 860px;
}

@media (max-width: 760px) {
    .news-list-stack .news-card-link {
        grid-template-columns: 1fr;
    }

    .news-list-stack .news-thumb {
        height: auto;
        min-height: 0;
        aspect-ratio: 320 / 200;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .section-head-line {
        align-items: start;
    }
}


/* V12 refinements: horizontal news entries, stronger full-card links, black-gold named assets */
.news-horizontal-list {
    display: grid;
    gap: 18px;
}

.news-horizontal-list .news-card-link {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    min-height: 218px;
    color: inherit;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.news-horizontal-list .news-card-link:hover {
    border-color: var(--gold-light);
    background: #18150f;
    transform: translateY(-2px);
}

.news-horizontal-list .news-thumb {
    height: 100%;
    min-height: 218px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
}

.news-horizontal-list .news-body {
    padding: 24px 28px;
    display: grid;
    align-content: center;
}

.entry-more {
    display: inline-flex;
    margin-top: 14px;
    color: var(--gold-light);
    font-weight: 900;
    letter-spacing: 0.04em;
}

.card[href],
.news-card-link[href] {
    cursor: pointer;
}

.card[href]:hover .card-title,
.card[href]:hover .news-title,
.card[href]:hover h3 {
    color: var(--gold-light);
}

.section-alt .card[href]:hover .card-title,
.section-alt .card[href]:hover .news-title,
.section-alt .card[href]:hover h3 {
    color: #6d5624;
}

@media (max-width: 760px) {
    .news-horizontal-list .news-card-link {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .news-horizontal-list .news-thumb {
        height: auto;
        min-height: 0;
        aspect-ratio: 320 / 200;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}


/* V13 refinements: useful sidebar links, 4-column news grid, two-column auth cards */
.link-card .card-title {
    min-height: 0;
    margin-bottom: 18px;
}

.side-link-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.side-link-list a {
    display: grid;
    gap: 4px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(201, 162, 74, 0.22);
}

.side-link-list a:last-child {
    border-bottom: 0;
}

.side-link-list span {
    color: var(--gold-light);
    font-weight: 900;
    line-height: 1.4;
}

.side-link-list em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    line-height: 1.65;
}

.side-link-list a:hover span {
    color: #fff2bf;
}

.section-alt .side-link-list {
    border-top-color: var(--paper-line);
}

.section-alt .side-link-list a {
    border-bottom-color: var(--paper-line);
}

.section-alt .side-link-list span {
    color: #5f4615;
}

.section-alt .side-link-list em {
    color: #635a48;
}

.news-card-grid .news-card-link {
    display: grid;
    min-height: 100%;
}

.news-card-grid .news-thumb {
    aspect-ratio: 320 / 200;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--paper-line);
}

.news-card-grid .news-body {
    display: grid;
    align-content: start;
    padding: 18px;
}

.news-card-grid .news-title {
    font-size: 18px;
}

.news-card-grid .entry-more {
    margin-top: 12px;
}

.auth-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1040px;
}

.section-alt .form-card h2,
.section-alt .form-card label {
    color: var(--ink);
}

.section-alt .input,
.section-alt .textarea,
.section-alt .select {
    background: #fffaf0;
    color: var(--ink);
    border-color: rgba(17, 16, 14, 0.24);
}

.section-alt .input::placeholder,
.section-alt .textarea::placeholder {
    color: #8a806f;
}

@media (max-width: 980px) {
    .auth-two-column {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}


/* V15 card text safety: keep every card aligned when TXT replacement is longer */
.card,
.portal-card,
.news-card,
.value-item,
.feature-panel,
.paper-panel,
.form-card,
.auth-intro,
.timeline-item,
.stat,
.side-link-list a,
.faq-item,
.align-label,
.align-value,
.info-table th,
.info-table td {
    min-width: 0;
    overflow: hidden;
}

.card-title,
.news-title,
.article-title-link,
.value-label,
.stat strong,
.feature-panel h3,
.paper-panel h2,
.paper-panel h3,
.form-card h2,
.form-card h3,
.auth-intro h2,
.auth-intro h3,
.side-link-list span,
.timeline-num,
.info-table th,
.align-label,
.faq-question span:first-child {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: break-word;
}

.card-desc,
.news-desc,
.article-summary,
.value-item p,
.stat span,
.feature-panel p,
.feature-panel li,
.paper-panel p,
.form-note,
.auth-intro p,
.side-link-list em,
.faq-answer,
.align-value,
.info-table td {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: break-word;
}

.card-title,
.news-title,
.article-title-link {
    min-height: auto;
    max-height: 2.9em;
}

.card-desc,
.news-desc,
.article-summary {
    min-height: auto;
    max-height: 5.25em;
}

.card,
.portal-card,
.news-body,
.value-item,
.feature-panel,
.form-card,
.auth-intro {
    display: grid;
    align-content: start;
}

.card,
.portal-card,
.value-item {
    min-height: 190px;
}

.news-card-grid .news-card-link,
.grid-4 .news-card-link {
    min-height: 100%;
}

.news-card-grid .news-body,
.grid-4 .news-body {
    min-height: 220px;
}

.value-grid {
    align-items: stretch;
}

.value-label {
    line-height: 1.45;
    max-height: 2.9em;
}

.value-item p {
    line-height: 1.75;
    max-height: 5.25em;
}

.align-grid {
    table-layout: fixed;
}

.align-value,
.info-table td {
    line-height: 1.75;
    max-height: 5.25em;
}

.info-table th {
    max-height: 2.9em;
}

.side-link-list span {
    max-height: 2.8em;
}

.side-link-list em {
    max-height: 3.9em;
    -webkit-line-clamp: 2;
}

.faq-question {
    gap: 16px;
}

.faq-question span:first-child {
    line-height: 1.45;
    max-height: 2.9em;
}

/* Keep visible placeholders from breaking the layout before replacement */
[class*="card"] *,
.value-grid *,
.stats-grid *,
.align-grid *,
.info-table *,
.side-link-list * {
    word-break: normal;
    overflow-wrap: break-word;
}

/* Final responsive rules placed at the end to avoid being overridden by later component blocks */
@media (max-width: 1180px) {
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .grid-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .grid-4,
    .news-card-grid,
    .grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-two-column,
    .auth-layout,
    .document-layout,
    .article-layout,
    .split-layout,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .doc-toc,
    .split-layout > .sidebar,
    .article-layout > .sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 720px) {
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .news-card-grid,
    .value-grid,
    .stats-grid,
    .auth-two-column,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .card,
    .portal-card,
    .value-item {
        min-height: auto;
    }

    .news-card-grid .news-body,
    .grid-4 .news-body {
        min-height: auto;
    }

    .align-row {
        grid-template-columns: 1fr;
    }

    .align-label {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .info-table {
        min-width: 560px;
    }
}


/* ================================
   Template A: Deep Blue Sports Hub
   Layout target: media-left hero, left sidebar pages, asymmetric cards
   ================================ */
:root {
    --bg: #071427;
    --bg-soft: #0b1c30;
    --surface: #0e2740;
    --surface-2: #112f4d;
    --paper: #eaf8ff;
    --paper-2: #d8eef8;
    --ink: #071427;
    --ink-soft: #31465a;
    --text: #f4fbff;
    --muted: #a9c4d8;
    --gold: #54c6d8;
    --gold-light: #a6f1ff;
    --gold-deep: #1b7586;
    --line: rgba(84, 198, 216, 0.42);
    --line-soft: rgba(234, 248, 255, 0.13);
    --paper-line: rgba(7, 20, 39, 0.18);
    --container: 1240px;
}
html { background: var(--bg); }
body {
    background:
        radial-gradient(circle at 10% 12%, rgba(84, 198, 216, 0.18), transparent 32%),
        linear-gradient(120deg, rgba(84, 198, 216, 0.07) 1px, transparent 1px) 0 0 / 96px 96px,
        linear-gradient(180deg, #071427 0%, #0b1c30 48%, #071427 100%);
}
.site-header {
    border-bottom-color: rgba(84,198,216,.38);
    background: rgba(7,20,39,.94);
}
.header-grid { min-height: 82px; grid-template-columns: auto 1fr auto; }
.logo-img { height: 50px; width: auto; max-width: none; background: #071427; border-color: var(--line); object-fit: contain; }
.brand { grid-template-columns: auto auto; }
.brand-name { color: var(--gold-light); }
.brand-sub { color: #9cc9dc; }
.main-nav a { border-left-color: rgba(84,198,216,.16); color: #d8eef8; }
.main-nav a:last-child { border-right-color: rgba(84,198,216,.16); }
.main-nav a:hover, .main-nav a.active { background: rgba(84,198,216,.12); color: #ffffff; }
.btn { border-radius: 0; color: var(--gold-light); border-color: var(--line); }
.btn-primary { color: #061120; background: linear-gradient(135deg, #54c6d8, #a6f1ff); border-color: transparent; }
.hero { padding: 56px 0 38px; }
.hero-grid { grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr); gap: 26px; }
.hero-panel { order: 2; min-height: 460px; border-radius: 0; padding: 46px; background: linear-gradient(145deg, rgba(14,39,64,.98), rgba(6,17,32,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.34); }
.hero-panel::before { background: radial-gradient(circle at 88% 16%, rgba(166,241,255,.22), transparent 34%), linear-gradient(120deg, transparent 0 44%, rgba(84,198,216,.10) 45% 46%, transparent 47%); }
.hero-side { order: 1; grid-template-rows: auto 1fr; }
.hero-side .media-frame { min-height: 310px; border-radius: 0; background: #0b1c30; border-color: var(--line); }
.media-frame img { object-fit: cover; filter: saturate(1.05) contrast(1.04); }
.stats-grid { grid-template-columns: 1fr; border-radius: 0; overflow: hidden; background: rgba(8,25,45,.92); }
.stat { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; }
.stat:last-child { border-bottom: 0; }
.stat strong { color: var(--gold-light); font-size: 22px; }
.section { padding: 68px 0; }
.section-alt { background: linear-gradient(180deg, #eaf8ff 0%, #dff3fb 100%); color: var(--ink); }
.section-dark { background: linear-gradient(90deg, rgba(8,25,45,.82), rgba(12,47,74,.62)); }
.section-head { grid-template-columns: 300px minmax(0,1fr); align-items: center; border: 0; padding: 0; margin-bottom: 30px; }
.section-head::before { content: ""; width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 0; background: linear-gradient(135deg, rgba(84,198,216,.20), transparent); grid-row: 1 / span 2; display: none; }
.section-title { padding-left: 18px; border-left: 4px solid var(--gold); }
.section-desc { max-width: 940px; color: #a9c4d8; }
.section-alt .section-desc { color: #40586b; }
.grid-2, .grid-3, .grid-4, .grid-5 { gap: 22px; }
.grid-4 { grid-template-columns: 1.15fr .85fr .85fr; }
.grid-4 > *:nth-child(1) { grid-row: span 2; }
.grid-4 > *:nth-child(4n) { grid-column: span 2; }
.grid-3 { grid-template-columns: .85fr 1.15fr 1fr; }
.grid-3 > *:nth-child(2) { transform: translateY(18px); }
.grid-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-5 > * { grid-column: span 2; }
.grid-5 > *:nth-child(1), .grid-5 > *:nth-child(2) { grid-column: span 3; }
.card, .portal-card, .news-card, .feature-panel, .paper-panel, .form-card, .auth-intro, .article-main, .doc-content, .doc-toc, .faq-item, .table-wrap, .align-grid, .timeline { border-radius: 0; border-color: var(--line); background: linear-gradient(180deg, rgba(14,39,64,.96), rgba(8,25,45,.96)); }
.card::before, .portal-card::before, .paper-panel::before, .form-card::before { width: 5px; height: 54px; border-radius: 0; left: 18px; top: 18px; background: linear-gradient(180deg, #54c6d8, #a6f1ff); }
.card, .portal-card { padding: 28px 24px 24px 34px; }
.card-title, .news-title, .article-title-link { color: #f4fbff; }
.card-desc, .news-desc, .article-summary { color: #a9c4d8; }
.section-alt .card, .section-alt .portal-card, .section-alt .news-card, .paper-panel { background: #ffffff; border-color: rgba(7,20,39,.16); box-shadow: 0 14px 34px rgba(7,20,39,.08); }
.section-alt .card-title, .section-alt .news-title, .section-alt .article-title-link, .paper-panel h2, .paper-panel h3 { color: #071427; }
.section-alt .card-desc, .section-alt .news-desc, .section-alt .article-summary, .paper-panel p { color: #40586b; }
.split-layout { grid-template-columns: 330px minmax(0,1fr); }
.split-layout > .sidebar { order: -1; }
.article-layout { grid-template-columns: 320px minmax(0,1fr); }
.article-layout > .sidebar { order: -1; }
.sidebar { top: 104px; }
.feature-band { grid-template-columns: minmax(320px,.82fr) minmax(0,1.18fr); }
.feature-band > *:first-child { order: 2; }
.feature-band > *:last-child { order: 1; }
.value-grid { grid-template-columns: .95fr 1.15fr .95fr .95fr; border-radius: 0; overflow: hidden; }
.value-item:nth-child(even) { background: rgba(17,47,77,.98); }
.timeline { overflow: hidden; }
.timeline-item { grid-template-columns: 1fr 92px; }
.timeline-num { order: 2; text-align: right; }
.news-horizontal-list .news-card-link, .news-list-stack .news-card-link { grid-template-columns: minmax(0,1fr) 300px; }
.news-horizontal-list .news-thumb, .news-list-stack .news-thumb { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.news-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.news-card-grid > *:nth-child(1) { grid-column: span 2; }
.news-card-grid > *:nth-child(6) { grid-column: span 2; }
.tag { border-radius: 0; color: var(--gold-light); background: rgba(84,198,216,.10); }
.input, .textarea, .select { border-radius: 0; background: rgba(7,20,39,.72); border-color: var(--line); }
.site-footer { background: #061120; border-top-color: var(--line); }
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
.footer-grid > div:first-child { padding-right: 20px; }
.footer-grid h3, .footer-contact strong { color: var(--gold-light); }
@media (max-width: 1180px) {
    .grid-4, .news-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .grid-4 > *, .grid-4 > *:nth-child(4n), .news-card-grid > *:nth-child(1), .news-card-grid > *:nth-child(6) { grid-column: auto; grid-row: auto; }
    .grid-5 { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .grid-5 > *, .grid-5 > *:nth-child(1), .grid-5 > *:nth-child(2) { grid-column: auto; }
}
@media (max-width: 980px) {
    .main-nav { background: #071427; }
    .hero-grid, .split-layout, .article-layout, .feature-band { grid-template-columns: 1fr; }
    .hero-panel, .hero-side, .split-layout > .sidebar, .article-layout > .sidebar, .feature-band > * { order: initial; }
    .section-head { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .grid-3 > *:nth-child(2) { transform: none; }
}
@media (max-width: 720px) {
    .grid-2, .grid-3, .grid-4, .grid-5, .news-card-grid, .value-grid, .stats-grid { grid-template-columns: 1fr; }
    .stat { grid-template-columns: 1fr; }
    .news-horizontal-list .news-card-link, .news-list-stack .news-card-link { grid-template-columns: 1fr; }
    .news-horizontal-list .news-thumb, .news-list-stack .news-thumb { order: initial; border-left: 0; border-bottom: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width:480px) { .logo-img { height:42px; width:auto; max-width:none; object-fit:contain; } }

.section-label{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 12px;margin-bottom:12px;border:1px solid var(--line);border-radius: 0;color:var(--gold-light);font-size:12px;font-weight:900;letter-spacing:.10em;}
.section-alt .section-label{color:var(--ink);border-color:var(--paper-line);background:rgba(232,95,123,.07);}


/* V24.1 homepage straight-corner news grid override */
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-news-grid .news-card-link,
.home-news-grid .news-card,
.home-news-grid .news-thumb,
.home-news-grid .news-thumb img,
.home-news-grid .news-body {
    border-radius: 0;
}

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

@media (max-width: 560px) {
    .home-news-grid {
        grid-template-columns: 1fr;
    }
}
/* End V24.1 override */


/* V24.2 global straight-corner + news page 3-column override */
*,
*::before,
*::after {
    border-radius: 0 !important;
}

.news-card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

.news-card-grid > *,
.news-card-grid > *:nth-child(1),
.news-card-grid > *:nth-child(2),
.news-card-grid > *:nth-child(3),
.news-card-grid > *:nth-child(4),
.news-card-grid > *:nth-child(5),
.news-card-grid > *:nth-child(6),
.news-card-grid > *:nth-child(7),
.news-card-grid > *:nth-child(8),
.news-card-grid > *:nth-child(9) {
    grid-column: auto !important;
    grid-row: auto !important;
    transform: none !important;
}

.news-card-grid .news-card-link,
.news-card-grid .news-card,
.news-card-grid .news-thumb,
.news-card-grid .news-thumb img,
.news-card-grid .news-body {
    width: auto;
    max-width: none;
    border-radius: 0 !important;
}

@media (max-width: 900px) {
    .news-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .news-card-grid {
        grid-template-columns: 1fr !important;
    }
}
/* End V24.2 override */
