:root {
    --ink: #0b1c1c;
    --muted: #4f5b5b;
    --accent: #d9833a;
    --accent-dark: #8a4a1b;
    --accent-rgb: 217, 131, 58;
    --accent-dark-rgb: 138, 74, 27;
    --bg: #f7f4ee;
    --bg-alt: #eef2f0;
    --bg-top: #fff6e5;
    --bg-bottom: #e8f1ee;
    --card: #ffffff;
    --line: rgba(17, 24, 39, 0.08);
    --font-body: "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    --font-head: "STZhongsong", "Noto Serif SC", "Source Han Serif SC", serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: radial-gradient(circle at top, var(--bg-top), var(--bg) 55%, var(--bg-bottom) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(var(--accent-rgb), 0.04);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-head);
    line-height: 1.1;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.brand:hover {
    opacity: 0.8;
}

.brand-mark {
    letter-spacing: 0.04em;
    font-size: 20px;
    color: var(--accent-dark);
}

.brand-sub {
    font-size: 14px;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    font-size: 14px;
    color: var(--muted);
    position: relative;
    padding: 6px 2px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-dark);
}

.nav-link.active {
    color: var(--accent-dark);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-cta .btn.ghost {
    border-color: rgba(var(--accent-rgb), 0.4);
    color: var(--accent-dark);
}

.header-cta .btn.ghost:hover {
    background: rgba(var(--accent-rgb), 0.08);
}

.header-cta .btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.16);
    color: var(--accent-dark);
    font-size: 13px;
    max-width: 160px;
}

.user-chip-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero {
    position: relative;
    padding: 80px 0 60px;
}

.hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: 6vw;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--accent-dark);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 44px);
    margin: 16px 0 10px;
}

.hero-sub {
    font-size: 16px;
    color: var(--muted);
    margin: 0 0 18px;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 8px;
}

.hero-points li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-card {
    background: var(--card);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 28px 60px rgba(11, 28, 28, 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.18);
}

.hero-card-inner {
    display: grid;
    gap: 14px;
}

.hero-metric {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-head);
}

.metric-label {
    font-size: 12px;
    color: var(--muted);
}

.metric-value {
    font-size: 18px;
}

.hero-highlight {
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--accent-dark);
    font-size: 14px;
}

.section {
    padding: 70px 0;
}

.section.alt {
    background: var(--bg-alt);
}

.section-title {
    font-family: var(--font-head);
    font-size: 28px;
    margin-bottom: 8px;
}

.section-sub {
    color: var(--muted);
    margin-bottom: 28px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.section-head .section-sub {
    margin-bottom: 0;
}

.section-link {
    color: var(--accent-dark);
    font-size: 14px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card h3 {
    margin-top: 0;
    font-family: var(--font-head);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.module-card {
    background: linear-gradient(135deg, #ffffff, #fef7ef);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.module-title {
    font-family: var(--font-head);
    margin-bottom: 6px;
}

.module-desc {
    color: var(--muted);
    font-size: 14px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.pricing-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    margin: 18px 0 10px;
}

.pricing-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--accent-dark);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-tab.active {
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 12px 24px rgba(11, 28, 28, 0.08);
}

.pricing-note {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.pricing-panel {
    display: none;
}

.pricing-panel.active {
    display: block;
}

.price-card {
    background: var(--card);
    border-radius: 20px;
    padding: 26px;
    border: 1px solid rgba(11, 28, 28, 0.08);
    box-shadow: 0 18px 40px rgba(11, 28, 28, 0.08);
    display: grid;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.price-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-tags {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.price-name {
    font-family: var(--font-head);
    font-size: 18px;
}

.price-tag {
    background: rgba(var(--accent-rgb), 0.16);
    color: var(--accent-dark);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
}

.price-tag.price-tag-secondary {
    background: rgba(15, 23, 42, 0.06);
    color: var(--muted);
}

.price-value {
    font-size: 24px;
    font-family: var(--font-head);
}

.price-desc {
    font-size: 13px;
    color: var(--muted);
    margin-top: -6px;
}

.price-value span {
    font-size: 14px;
    color: var(--muted);
    margin-left: 4px;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.about-box {
    background: var(--card);
    border-radius: 20px;
    padding: 26px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.contact-card {
    background: var(--card);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    display: grid;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.contact-item strong {
    font-size: 15px;
}

.contact-map {
    background: var(--card);
    border-radius: 18px;
    border: 1px dashed rgba(11, 28, 28, 0.2);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.map-placeholder {
    padding: 30px;
}

.empty-state {
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent-dark);
    border-radius: 12px;
    padding: 16px;
}

.plain-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.plain-table th,
.plain-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
}

.plain-table th {
    font-weight: 600;
    color: var(--muted);
}

.plain-table tr:last-child td {
    border-bottom: none;
}

.article-hero {
    padding-top: 90px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.article-card {
    background: var(--card);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    display: grid;
    gap: 10px;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.module-card:hover,
.price-card:hover,
.article-card:hover,
.contact-card:hover,
.about-box:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow: 0 26px 50px rgba(var(--accent-rgb), 0.22);
}

.module-card:hover {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), #ffffff 55%);
}

.article-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

.article-title {
    font-family: var(--font-head);
    font-size: 18px;
}

.article-summary {
    color: var(--muted);
    font-size: 14px;
}

.article-more {
    color: var(--accent-dark);
    font-size: 13px;
}

.article-body {
    background: var(--card);
    border-radius: 18px;
    padding: 26px;
    border: 1px solid var(--line);
    line-height: 1.8;
    color: var(--muted);
}

.article-hero-cover {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 20px;
}

.article-back {
    margin-top: 20px;
}

.site-footer {
    padding: 40px 0 60px;
    background: #0f1d1c;
    color: #f5f3ee;
}

.footer-inner {
    display: grid;
    gap: 12px;
}

.footer-brand {
    font-family: var(--font-head);
    font-size: 18px;
}

.footer-text {
    color: rgba(245, 243, 238, 0.7);
    font-size: 13px;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.25);
}

.btn.ghost {
    border-color: rgba(11, 28, 28, 0.2);
    color: var(--ink);
    background: transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.35);
}

.auth-modal {
    position: absolute;
    top: 12vh;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card);
    border-radius: 18px;
    padding: 22px 24px 20px;
    min-width: 320px;
    max-width: 420px;
    width: 92vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.auth-modal-tabs {
    display: inline-flex;
    border-radius: 999px;
    background: var(--bg-alt);
    padding: 2px;
}

.auth-tab {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    color: var(--muted);
}

.auth-tab.active {
    background: var(--accent);
    color: #fff;
}

.auth-close {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.auth-field {
    margin-bottom: 10px;
    font-size: 13px;
}

.auth-field label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
}

.auth-field input {
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    font-size: 13px;
}

.auth-actions {
    margin-top: 10px;
}

.auth-actions .btn {
    width: 100%;
}

.auth-msg {
    margin-top: 6px;
    font-size: 12px;
    color: #d9483b;
}

.reveal {
    animation: fadeUp 0.8s ease both;
}

.delay-1 {
    animation-delay: 0.15s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
    }

    .hero {
        padding-top: 60px;
    }

    .nav {
        justify-content: center;
    }

    .section-head {
        align-items: flex-start;
    }
}
