:root {
    --ink: #18211f;
    --muted: #69736f;
    --line: #d9ded8;
    --paper: #fbfaf6;
    --panel: #ffffff;
    --teal: #08756f;
    --teal-dark: #064d49;
    --orange: #e95d2a;
    --gold: #b88a2d;
    --mist: #edf4f1;
    --shadow: 0 18px 55px rgba(24, 33, 31, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
}

body.modal-lock {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 246, 0.92);
    border-bottom: 1px solid rgba(24, 33, 31, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 232px;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-size: 19px;
    line-height: 1.2;
}

.brand em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: #eef3ef;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.site-nav a {
    padding: 9px 14px;
    color: #31423d;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--teal-dark);
    background: #ffffff;
}

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

.ghost-btn,
.solid-btn,
.text-btn,
.secondary-link,
.primary-link,
.detail-link,
.pay-read-btn,
.submit-btn {
    min-height: 40px;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ghost-btn,
.secondary-link {
    padding: 9px 16px;
    color: var(--teal-dark);
    background: transparent;
    border-color: #9fc8c1;
}

.solid-btn,
.primary-link,
.submit-btn,
.pay-read-btn {
    padding: 10px 18px;
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
    box-shadow: 0 10px 22px rgba(8, 117, 111, 0.18);
}

.text-btn {
    padding: 9px 6px;
    color: var(--muted);
    background: transparent;
}

.primary-link,
.secondary-link,
.detail-link,
.pay-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.button-like {
    border: 0;
}

.ghost-btn:hover,
.solid-btn:hover,
.secondary-link:hover,
.primary-link:hover,
.detail-link:hover,
.pay-read-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 56px;
    background:
        linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.84) 52%, rgba(237, 244, 241, 0.72) 100%),
        radial-gradient(circle at 80% 20%, rgba(233, 93, 42, 0.16), transparent 34%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    align-items: center;
    gap: 56px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.hero h1,
.section-head h2,
.member-grid h2,
.policy-article h1,
.detail-hero h1 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.15;
}

.hero h1 {
    max-width: 680px;
    font-size: 52px;
}

.hero-lead {
    max-width: 640px;
    margin: 24px 0 0;
    color: #4c5955;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 34px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 40px;
    max-width: 560px;
}

.metric-row div {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.metric-row strong {
    display: block;
    color: var(--teal-dark);
    font-size: 30px;
    line-height: 1;
}

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

.hero-board {
    position: relative;
    min-height: 520px;
}

.hero-board > img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(24, 33, 31, 0.08);
    box-shadow: var(--shadow);
}

.board-card,
.board-note {
    position: absolute;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(24, 33, 31, 0.08);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.board-card {
    left: -28px;
    bottom: 34px;
    width: min(360px, 78%);
    padding: 22px;
}

.board-card span,
.board-note span {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
}

.board-card strong,
.board-note strong {
    display: block;
    margin-top: 7px;
    font-size: 18px;
}

.board-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.board-note {
    top: 28px;
    right: -16px;
    padding: 16px 18px;
    max-width: 300px;
}

.signal-strip {
    padding: 24px 0;
    background: var(--ink);
    color: #fff;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.signal-grid div {
    padding: 22px;
    background: var(--ink);
}

.signal-grid span {
    display: block;
    color: #adc7c1;
    font-size: 12px;
}

.signal-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 17px;
}

.section-block {
    padding: 76px 0;
}

.section-head {
    max-width: 780px;
    margin-bottom: 34px;
}

.section-head.split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.48fr);
    gap: 50px;
    align-items: end;
}

.section-head h2,
.member-grid h2 {
    font-size: 36px;
}

.section-head p:not(.eyebrow),
.member-grid p {
    margin: 0;
    color: var(--muted);
}

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

.topic-grid article {
    min-height: 220px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.topic-grid span {
    color: var(--orange);
    font-weight: 800;
}

.topic-grid h3 {
    margin: 34px 0 10px;
    font-size: 21px;
}

.topic-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.news-block {
    background: #eef4f0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.filter-row button {
    padding: 9px 16px;
    border: 1px solid #b9c8c3;
    border-radius: 6px;
    color: #40504b;
    background: #fff;
}

.filter-row button.active {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

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

.news-card {
    display: flex;
    min-height: 200px;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d5dfda;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(24, 33, 31, 0.07);
    padding: 0;
}

.card-cat {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--ink);
    background: #eef3f0;
    padding: 3px 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.news-image span {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(24, 33, 31, 0.78);
    border-radius: 6px;
    font-size: 12px;
}

.news-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.news-content h3 {
    min-height: 78px;
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.45;
}

.news-content p {
    display: -webkit-box;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.detail-link {
    padding: 9px 12px;
    color: var(--teal-dark);
    border: 1px solid #9fc8c1;
    background: #f7fbf9;
}

.pay-read-btn {
    padding: 9px 12px;
}

.member-band {
    background: linear-gradient(135deg, #14211e 0%, #253b34 100%);
    color: #fff;
}

.member-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.55fr);
    gap: 52px;
    align-items: center;
}

.member-grid p {
    color: #c4d6d1;
}

.member-panel {
    padding: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
}

.member-panel ul {
    margin: 0 0 24px;
    padding-left: 20px;
}

.member-panel li {
    margin: 9px 0;
}

.site-footer {
    padding: 54px 0 24px;
    color: #dfe8e5;
    background: #111816;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr 1fr;
    gap: 36px;
}

.site-footer h3,
.site-footer h4 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 8px 0;
    color: #aebbb7;
    text-decoration: none;
    font-size: 14px;
}

.copyright {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a29e;
    font-size: 13px;
}

.compact-footer {
    padding-top: 28px;
}

.detail-main,
.policy-main {
    padding: 58px 0 80px;
}

.detail-layout {
    display: block;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.72fr);
    gap: 46px;
    align-items: center;
    padding: 36px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-hero h1 {
    margin-top: 10px;
    font-size: 40px;
}

.detail-hero p:not(.eyebrow) {
    color: var(--muted);
}


.back-link {
    color: var(--teal-dark);
    text-decoration: none;
    font-weight: 700;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.detail-body {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    margin-top: 34px;
}

.detail-body aside,
.detail-body section,
.policy-article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(24, 33, 31, 0.08);
}

.detail-body aside {
    height: fit-content;
    padding: 26px;
}

.detail-body section {
    padding: 34px 42px;
}

.detail-body h2,
.policy-article h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.detail-body p,
.policy-article p {
    color: #4f5b57;
}

.detail-body li {
    margin-bottom: 12px;
}

.locked-box,
.content-paybox {
    margin-top: 28px;
    padding: 20px;
    background: var(--mist);
    border-left: 4px solid var(--orange);
    border-radius: 8px;
}

.content-paybox h3 {
    margin: 0 0 8px;
}

.policy-article {
    max-width: 900px;
    padding: 42px 50px;
}

.policy-article h1 {
    margin-bottom: 20px;
    font-size: 42px;
}

.policy-article h2 {
    margin-top: 34px;
}

.policy-date {
    margin-top: 40px;
    text-align: right;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 52px 20px;
    overflow-y: auto;
    background: rgba(10, 16, 14, 0.68);
    backdrop-filter: blur(10px);
}

.modal.is-open {
    display: flex;
}

.modal-panel {
    position: relative;
    width: min(520px, 100%);
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.account-panel {
    width: min(500px, 100%);
}

.pay-panel {
    text-align: center;
}

.user-panel {
    width: min(860px, 100%);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    color: var(--muted);
    background: #f2f5f3;
    border: 0;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
}

.modal-title span {
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
}

.modal-title h2 {
    margin: 6px 0 20px;
    font-size: 27px;
    line-height: 1.25;
}

.account-form {
    display: grid;
    gap: 15px;
}

.account-form label {
    display: grid;
    gap: 7px;
    color: #2f3a37;
    font-size: 14px;
    font-weight: 700;
}

.account-form input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: #f8faf8;
    border: 1px solid #cbd7d2;
    border-radius: 6px;
}

.account-form input:focus {
    outline: 3px solid rgba(8, 117, 111, 0.16);
    border-color: var(--teal);
}

.account-form small,
.agreement-line {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.check-line {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 10px !important;
    font-weight: 400 !important;
}

.check-line input {
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
}

.switch-line {
    margin: 18px 0 0;
    color: var(--muted);
    text-align: center;
}

/* Captcha */
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-box { display: inline-flex; align-items: center; justify-content: center; min-width: 80px; height: 42px; background: var(--paper); border: 1px solid var(--line); font-size: 1.3rem; font-weight: 700; letter-spacing: 4px; color: var(--ink); cursor: pointer; user-select: none; font-family: 'Courier New', monospace; flex-shrink: 0; }

/* Cancel button (QR modal) */
.cancel-btn { width: 100%; padding: 11px 0; background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; cursor: pointer; font-family: inherit; transition: all .2s; margin-top: 8px; }
.cancel-btn:hover { border-color: #c0392b; color: #c0392b; }

.switch-line button {
    color: var(--teal-dark);
    background: transparent;
    border: 0;
    font-weight: 700;
}

.pay-price {
    color: var(--orange);
    font-size: 26px;
    font-weight: 700;
}

.pay-price strong {
    font-size: 52px;
}

.pay-price em {
    color: var(--muted);
    font-size: 16px;
    font-style: normal;
}

.pay-qr {
    width: 230px;
    height: 230px;
    object-fit: cover;
    margin: 22px auto;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.pay-note {
    color: var(--muted);
    font-size: 14px;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: var(--mist);
    border-radius: 8px;
}

.avatar-mark {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    color: #fff;
    background: var(--teal);
    border-radius: 50%;
    font-weight: 800;
}

.profile-summary strong {
    font-size: 20px;
}

.profile-summary p {
    margin: 4px 0 0;
    color: var(--muted);
}

.center-tabs {
    display: flex;
    gap: 8px;
    margin: 22px 0;
    border-bottom: 1px solid var(--line);
}

.center-tabs button {
    padding: 10px 16px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
}

.center-tabs button.active {
    color: var(--teal-dark);
    border-bottom-color: var(--teal);
    font-weight: 700;
}

.center-pane {
    display: none;
}

.center-pane.active {
    display: block;
}

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

.record-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px;
    background: #fbfcfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.record-item span {
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
}

.record-item h3 {
    margin: 4px 0;
    font-size: 16px;
}

.record-item p,
.empty-state {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.record-item a {
    align-self: center;
    color: var(--teal-dark);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 1080px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero-grid,
    .detail-hero,
    .member-grid,
    .section-head.split {
        grid-template-columns: 1fr;
    }

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

    .detail-body {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .shell {
        width: min(100% - 28px, 1180px);
    }

    .hero {
        padding-top: 48px;
    }

    .hero h1,
    .detail-hero h1,
    .policy-article h1 {
        font-size: 34px;
    }

    .section-head h2,
    .member-grid h2 {
        font-size: 28px;
    }

    .hero-board,
    .hero-board > img {
        min-height: 0;
        height: auto;
    }

    .board-card,
    .board-note {
        position: static;
        width: auto;
        max-width: none;
        margin-top: 12px;
    }

    .metric-row,
    .news-grid,
    .topic-grid,
    .signal-grid,
    .footer-grid,
    .card-actions {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .auth-actions,
    .site-nav,
    .detail-actions {
        flex-wrap: wrap;
    }

    .detail-hero,
    .detail-body section,
    .policy-article {
        padding: 24px;
    }

    .record-item {
        flex-direction: column;
    }
}
