: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 B: Rose Red Sports Gate
   Layout target: two-row header, stacked hero, warm offset cards
   ================================ */
:root {
    --bg: #471021;
    --bg-soft: #5a1629;
    --surface: #641b31;
    --surface-2: #7a263c;
    --paper: #fff4ec;
    --paper-2: #ffe2d7;
    --ink: #2f0b15;
    --ink-soft: #64404b;
    --text: #fff7f2;
    --muted: #f0c0ca;
    --gold: #e85f7b;
    --gold-light: #ffd1db;
    --gold-deep: #a72b4a;
    --line: rgba(232, 95, 123, 0.44);
    --line-soft: rgba(255, 244, 236, 0.16);
    --paper-line: rgba(71, 16, 33, 0.18);
    --container: 1180px;
}
html { background: var(--bg); }
body {
    background:
        radial-gradient(circle at 80% 8%, rgba(255,209,219,.24), transparent 30%),
        radial-gradient(circle at 12% 46%, rgba(232,95,123,.16), transparent 32%),
        linear-gradient(135deg, #471021 0%, #5a1629 48%, #3b0d1b 100%);
}
.site-header { position: sticky; background: rgba(71,16,33,.94); border-bottom-color: rgba(232,95,123,.40); }
.header-grid { min-height: auto; padding: 12px 0 10px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "nav nav"; row-gap: 10px; }
.brand { grid-area: brand; grid-template-columns: auto auto; width: max-content; }
.logo-img { height: 50px; width: auto; max-width: none; background: #471021; border-color: var(--line); border-radius: 0; object-fit: contain; }
.brand-name { color: #fff7f2; letter-spacing: .12em; }
.brand-sub { color: #ffd1db; }
.header-actions { grid-area: actions; justify-self: end; }
.main-nav { grid-area: nav; justify-content: flex-start; overflow-x: auto; border-top: 1px solid rgba(232,95,123,.20); padding-top: 8px; }
.main-nav a { height: 42px; border: 1px solid rgba(232,95,123,.22); border-right: 0; padding: 0 18px; color: #ffe7ed; }
.main-nav a:first-child { border-radius: 0; }
.main-nav a:last-child { border-right: 1px solid rgba(232,95,123,.22); border-radius: 0; }
.main-nav a:hover, .main-nav a.active { background: #fff4ec; color: #471021; }
.btn { border-radius: 0; color: #ffd1db; border-color: var(--line); }
.btn-primary { background: linear-gradient(135deg, #fff4ec, #ffd1db); color: #471021; border-color: transparent; }
.hero { padding: 44px 0 30px; }
.hero-grid { grid-template-columns: 1fr; gap: 20px; }
.hero-panel { min-height: 390px; padding: 48px; border-radius: 0; background: linear-gradient(145deg, rgba(100,27,49,.98), rgba(71,16,33,.98)); box-shadow: 0 26px 80px rgba(32,0,10,.38); }
.hero-panel::before { background: radial-gradient(circle at 84% 20%, rgba(255,209,219,.22), transparent 34%), linear-gradient(135deg, transparent 0 57%, rgba(232,95,123,.13) 58% 59%, transparent 60%); }
.hero-content { max-width: 920px; margin: 0 auto; text-align: center; }
.kicker { justify-content: center; color: #ffd1db; }
.kicker::before, .kicker::after { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero-actions { justify-content: center; }
.hero-side { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); grid-template-rows: auto; }
.hero-side .media-frame { min-height: 280px; border-radius: 0; border-color: var(--line); background: #5a1629; }
.stats-grid { grid-template-columns: 1fr; border-radius: 0; overflow: hidden; background: rgba(90,22,41,.94); }
.stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 22px; }
.stat:last-child { border-bottom: 0; }
.stat strong { color: #ffd1db; }
.section { padding: 66px 0; }
.section-alt { background: linear-gradient(180deg, #fff4ec, #ffe8df); color: var(--ink); }
.section-dark { background: rgba(59,13,27,.70); border-color: rgba(255,244,236,.12); }
.section-head { display: block; text-align: center; max-width: 860px; margin: 0 auto 32px; border: 0; padding: 0; }
.section-title { color: inherit; }
.section-title::after { content: ""; display: block; width: 78px; height: 3px; margin: 16px auto 0; border-radius: 0; background: var(--gold); }
.section-desc { margin: 16px auto 0; color: #f0c0ca; }
.section-alt .section-desc { color: #744b57; }
.grid-2 { grid-template-columns: .9fr 1.1fr; }
.grid-3 { grid-template-columns: 1fr 1fr; }
.grid-3 > *:first-child { grid-column: span 2; }
.grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-4 > *:nth-child(3) { transform: translateY(22px); }
.grid-4 > *:nth-child(4) { transform: translateY(-14px); }
.grid-5 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-5 > *:nth-child(1), .grid-5 > *:nth-child(5) { grid-column: span 2; }
.card, .portal-card, .news-card, .feature-panel, .paper-panel, .form-card, .auth-intro, .article-main, .doc-content, .doc-toc, .faq-item, .timeline, .align-grid, .table-wrap { border-radius: 0; border-color: var(--line); background: linear-gradient(180deg, rgba(100,27,49,.96), rgba(71,16,33,.96)); box-shadow: 0 18px 50px rgba(32,0,10,.22); }
.card::before, .portal-card::before, .paper-panel::before, .form-card::before { left: 24px; top: auto; bottom: -1px; width: 76px; height: 5px; border-radius: 0; background: linear-gradient(90deg, #e85f7b, #ffd1db); }
.card, .portal-card { padding: 28px; }
.card-title, .news-title, .article-title-link { color: #fff7f2; }
.card-desc, .news-desc, .article-summary { color: #f0c0ca; }
.section-alt .card, .section-alt .portal-card, .section-alt .news-card, .paper-panel { background: #ffffff; border-color: rgba(71,16,33,.16); box-shadow: 0 18px 42px rgba(71,16,33,.10); }
.section-alt .card-title, .section-alt .news-title, .section-alt .article-title-link, .paper-panel h2, .paper-panel h3 { color: #2f0b15; }
.section-alt .card-desc, .section-alt .news-desc, .section-alt .article-summary, .paper-panel p { color: #744b57; }
.split-layout { grid-template-columns: minmax(0,1fr) 340px; gap: 30px; }
.sidebar { top: 126px; }
.feature-band { grid-template-columns: minmax(0,1fr); }
.feature-band .feature-panel:nth-child(2) { max-width: 760px; justify-self: end; margin-top: -16px; }
.value-grid { grid-template-columns: repeat(2, minmax(0,1fr)); border-radius: 0; overflow: hidden; }
.value-item { border-bottom: 1px solid var(--line); }
.value-item:nth-child(2n) { border-right: 0; }
.timeline { border-radius: 0; overflow: hidden; }
.timeline-item { grid-template-columns: 72px minmax(0,1fr); }
.timeline-num { width: 52px; height: 52px; display: inline-flex; align-items:center; justify-content:center; border-radius: 0; background: rgba(232,95,123,.15); color: #ffd1db; font-size: 22px; }
.news-horizontal-list .news-card-link, .news-list-stack .news-card-link { grid-template-columns: 260px minmax(0,1fr); }
.news-horizontal-list .news-thumb, .news-list-stack .news-thumb { border-right-color: var(--line); }
.news-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.news-card-grid > *:nth-child(4) { grid-column: span 2; }
.tag { border-radius: 0; color: #ffd1db; background: rgba(255,244,236,.08); }
.section-alt .tag { color: #8b2540; background: rgba(232,95,123,.10); }
.input, .textarea, .select { border-radius: 0; background: rgba(71,16,33,.72); border-color: var(--line); }
.auth-layout { grid-template-columns: minmax(300px,.72fr) minmax(300px,1fr) minmax(300px,1fr); }
.document-layout { grid-template-columns: minmax(0,1fr) 270px; }
.doc-toc { order: 2; }
.site-footer { background: #2f0b15; border-top-color: var(--line); }
.footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)) 1.2fr; }
.footer-grid > div:first-child { grid-column: span 2; }
.footer-grid h3, .footer-contact strong { color: #ffd1db; }
.footer-bottom { border-top-color: rgba(232,95,123,.24); }
@media (max-width: 1180px) {
    .grid-5, .news-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .grid-5 > *, .grid-5 > *:nth-child(1), .grid-5 > *:nth-child(5), .news-card-grid > *:nth-child(4) { grid-column: auto; }
}
@media (max-width: 980px) {
    .header-grid { grid-template-columns: 1fr auto; grid-template-areas: "brand actions"; min-height: 68px; padding: 0; }
    .main-nav { position: fixed; top: 68px; background: #471021; border-top: 1px solid var(--line); padding: 14px; }
    .main-nav a, .main-nav a:first-child, .main-nav a:last-child { border-radius: 0; }
    .hero-side, .split-layout, .auth-layout, .document-layout, .article-layout { grid-template-columns: 1fr; }
    .doc-toc { order: initial; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .grid-3 > *:first-child { grid-column: auto; }
    .grid-4 > *:nth-child(3), .grid-4 > *:nth-child(4) { transform: none; }
}
@media (max-width: 720px) {
    .hero-content { text-align: left; }
    .kicker, .hero-actions { justify-content: flex-start; }
    .kicker::after { display:none; }
    .grid-2, .grid-3, .grid-4, .grid-5, .news-card-grid, .value-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:first-child { grid-column: auto; }
    .news-horizontal-list .news-card-link, .news-list-stack .news-card-link { 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 */


/* V24.2 rose-red layout stabilizer */
.grid-4 > *:nth-child(3),
.grid-4 > *:nth-child(4),
.feature-band .feature-panel:nth-child(2) {
    transform: none !important;
    margin-top: 0 !important;
}

.grid-4,
.grid-5 {
    align-items: stretch;
}

.news-card,
.news-card-link,
.portal-card,
.card,
.feature-panel,
.paper-panel {
    overflow: hidden;
}
/* End V24.2 rose-red layout stabilizer */
