/* ===== 完整的亮色主题 · 典雅东方 ===== */
:root {
    --gj-bg: #fcf8f2;
    --gj-surface: #ffffff;
    --gj-stone: #f5efe8;
    --gj-ink: #2c2418;
    --gj-ink-light: #5a4e3e;
    --gj-jade: #3a7b6a;
    --gj-gold: #b8865b;
    --gj-gold-light: #d9b48b;
    --gj-gold-pale: #f0e3d4;
    --gj-shadow: rgba(44, 36, 24, 0.08);
    --gj-card-border: rgba(184, 134, 91, 0.2);
    --gj-glow: rgba(58, 123, 106, 0.08);
    --gj-glow-gold: rgba(184, 134, 91, 0.1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gj-gold) var(--gj-bg);
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gj-bg); }
::-webkit-scrollbar-thumb { background: var(--gj-gold); border-radius: 8px; }

body {
    background-color: var(--gj-bg);
    color: var(--gj-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* ===== 顶部导航 ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: rgba(252, 248, 242, 0.85);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--gj-card-border);
    padding: 0.6rem 2rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* 
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gj-ink);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;

    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    background: rgba(184, 134, 91, 0.1);
}

.logo-link:hover {
    opacity: 1;
    background: rgba(184, 134, 91, 0.18);
    transform: scale(1.02);
} */

.logo-icon {
    font-size: 1.5rem;
    color: var(--gj-gold);
}
.logo-text {
    background: linear-gradient(135deg, var(--gj-gold-light), var(--gj-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-btn {
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.nav-btn.outline {
    border-color: var(--gj-gold);
    color: var(--gj-gold);
    background: transparent;
}
.nav-btn.outline:hover {
    background: var(--gj-gold);
    color: #fff;
    box-shadow: 0 0 20px rgba(184, 134, 91, 0.3);
}
.nav-btn.primary {
    background: var(--gj-gold);
    color: #fff;
}
.nav-btn.primary:hover {
    background: var(--gj-gold-light);
    box-shadow: 0 0 25px rgba(184, 134, 91, 0.4);
    transform: scale(1.03);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gj-ink);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 0.2rem;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(252, 248, 242, 0.98);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid var(--gj-card-border);
}
.mobile-menu.open {
    display: flex;
}
.mobile-nav-link {
    color: var(--gj-ink);
    text-decoration: none;
    padding: 0.6rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(44, 36, 24, 0.05);
}
.mobile-nav-link:hover {
    color: var(--gj-gold);
}
.mobile-menu hr {
    border-color: var(--gj-card-border);
    margin: 0.5rem 0;
}
/* @media (max-width: 768px) {
    .site-header { padding: 0.4rem 1rem; }
    .header-nav .nav-btn { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-menu { display: none; }
    .mobile-menu.open { display: flex; }
} */

/* ===== 右侧导航点 ===== */
.dot-nav {
    position: fixed;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-end;
}
.dot-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.2s;
}
.dot-item:hover,
.dot-item.active {
    opacity: 1;
}
.dot-item.active .dot-circle {
    background: var(--gj-gold);
    box-shadow: 0 0 16px rgba(184, 134, 91, 0.4);
    transform: scale(1.15);
}
.dot-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--gj-ink);
    background: rgba(252, 248, 242, 0.8);
    backdrop-filter: blur(4px);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    border: 1px solid var(--gj-card-border);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}
.dot-item:hover .dot-label {
    opacity: 1;
}
.dot-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gj-gold);
    border: 1px solid var(--gj-gold);
    transition: all 0.3s ease;
    flex-shrink: 0;
}


/* ===== 滚动容器 - 翻页吸附 ===== */
.scroll-container {
    /* margin-top: 68px;
    height: calc(100vh - 68px); */
    margin-top: 0;                 /* 由 JS 动态控制 */
    height: 100vh;                /* 由 JS 动态调整 */

    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
    scroll-behavior: smooth;

    scrollbar-width: none;
    -ms-overflow-style: none;
}


.section {
    /* min-height: calc(100vh - 68px);
    height: calc(100vh - 68px); */
    min-height: 100vh;
    height: 100vh;
    
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    position: relative;
    /* overflow-y: auto; */
    overflow: hidden;   /* 消除内部滚动 */
}
.section-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ===== 通用组件 ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gj-gold);
    background: var(--gj-gold-pale);
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    border: 1px solid var(--gj-card-border);
    margin-bottom: 0.8rem;
}
.section-title {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', '思源宋体', serif;
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gj-ink), var(--gj-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.section-sub {
    font-size: 1.1rem;
    color: var(--gj-ink-light);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== HERO ===== */
.hero-section {
    background: radial-gradient(ellipse at 20% 30%, rgba(58, 123, 106, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 70%, rgba(184, 134, 91, 0.05) 0%, transparent 50%),
                var(--gj-bg);
}
.hero-bg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* top: -10%;
    left: -10%;
    width: 120%;
    height: 120%; */
    background: radial-gradient(circle at 30% 40%, rgba(58, 123, 106, 0.04), transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(184, 134, 91, 0.03), transparent 50%);
    pointer-events: none;
}
/* .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
} */
.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--gj-gold);
    background: var(--gj-gold-pale);
    padding: 0.35rem 1.4rem;
    border-radius: 40px;
    border: 1px solid var(--gj-card-border);
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}
.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gj-gold);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.6); }
}
.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero-title .title-line {
    display: inline-block;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--gj-gold), #d9a066);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(184, 134, 91, 0.2);
}
.hero-sub {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--gj-ink-light);
    letter-spacing: 4px;
    margin-bottom: 1rem;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--gj-ink-light);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}
.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2.2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    background: var(--gj-gold);
    color: #fff;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(184, 134, 91, 0.2);
}
.btn-primary-glow:hover {
    background: var(--gj-gold-light);
    color: #fff;
    transform: scale(1.04);
    box-shadow: 0 0 50px rgba(184, 134, 91, 0.3);
}
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2.2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    background: transparent;
    color: var(--gj-ink);
    text-decoration: none;
    border: 1px solid rgba(44, 36, 24, 0.2);
    transition: all 0.3s ease;
}
.btn-outline-light:hover {
    background: rgba(44, 36, 24, 0.02);
    border-color: var(--gj-gold);
    color: var(--gj-gold);
    transform: scale(1.04);
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gj-card-border);
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2.6rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: var(--gj-gold);
    letter-spacing: -1px;
}
.stat-suffix {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--gj-gold);
    margin-left: 0.1rem;
}
.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gj-ink-light);
    margin-top: 0.2rem;
}
.stat-divider {
    width: 1px;
    background: var(--gj-card-border);
}
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gj-ink-light);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    animation: float-down 2.5s ease-in-out infinite;
}
@keyframes float-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-hint i { font-size: 1.4rem; }

/* @media (max-width: 768px) {
    .hero-title { font-size: 3.8rem; }
    .hero-sub { font-size: 1.2rem; }
    .hero-stats { gap: 1.5rem; }
    .stat-number { font-size: 2rem; }
    .section-title { font-size: 2rem; }
} */

/* ===== 核心功能 ===== */
.features-section {
    background: var(--gj-stone);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.feature-card {
    background: var(--gj-surface);
    backdrop-filter: blur(6px);
    border: 1px solid var(--gj-card-border);
    border-radius: 24px;
    padding: 2rem 1.8rem;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--gj-shadow);
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(184, 134, 91, 0.03), transparent 70%);
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--gj-gold);
    box-shadow: 0 20px 40px var(--gj-shadow), 0 0 30px var(--gj-glow-gold);
}
.card-icon {
    font-size: 2.4rem;
    color: var(--icon-color, var(--gj-gold));
    margin-bottom: 1rem;
    display: inline-block;
}
.card-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--gj-ink);
}
.card-desc {
    color: var(--gj-ink-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}
.card-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
}
.card-tags li {
    background: var(--gj-gold-pale);
    border: 1px solid var(--gj-card-border);
    padding: 0.2rem 0.9rem;
    border-radius: 30px;
    font-size: 0.75rem;
    color: var(--gj-gold);
    letter-spacing: 0.3px;
}
.addon-section {
    text-align: center;
    margin-top: 2rem;
}
.addon-label {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--gj-ink-light);
    margin-bottom: 1.2rem;
    padding: 0.2rem 1.5rem;
    border: 1px solid var(--gj-card-border);
    border-radius: 40px;
}
.addon-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.addon-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gj-ink-light);
    font-size: 1rem;
}
.addon-item i {
    font-size: 1.3rem;
    color: var(--gj-gold);
}

/* ===== 技术特色 ===== */
.tech-section {
    background: var(--gj-bg);
}
.tech-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3.5rem;
}
.tech-visual {
    flex: 1 1 300px;
    text-align: center;
}
.tech-orb {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
}
.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(184, 134, 91, 0.2);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: spin 12s linear infinite;
}
.orb-ring:nth-child(1) {
    border-color: rgba(58, 123, 106, 0.2);
    animation-duration: 14s;
}
.orb-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-color: rgba(184, 134, 91, 0.25);
    animation-duration: 10s;
    animation-direction: reverse;
}
.orb-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-color: rgba(44, 36, 24, 0.05);
    animation-duration: 18s;
}
.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--gj-gold);
    background: radial-gradient(circle, rgba(184, 134, 91, 0.05), transparent);
    border-radius: 50%;
}
.orb-core span {
    background: var(--gj-gold-pale);
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.tech-arch-desc {
    font-size: 1rem;
    color: var(--gj-ink-light);
}
.tech-metrics {
    flex: 1 1 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
.metric-block {
    background: var(--gj-surface);
    border: 1px solid var(--gj-card-border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    min-width: 120px;
    text-align: center;
    flex: 1 1 120px;
    transition: border-color 0.3s;
}
.metric-block:hover {
    border-color: var(--gj-gold);
}
.metric-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gj-gold);
    line-height: 1.2;
}
.metric-number small {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--gj-gold);
}
.metric-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.3rem;
    color: var(--gj-ink);
}
.metric-detail {
    font-size: 0.75rem;
    color: var(--gj-ink-light);
    margin-top: 0.2rem;
}
.tech-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}
.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--gj-surface);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--gj-card-border);
    transition: all 0.3s;
}
.highlight-item:hover {
    border-color: rgba(184, 134, 91, 0.3);
    background: rgba(184, 134, 91, 0.02);
}
.highlight-item i {
    font-size: 2rem;
    color: var(--gj-gold);
    flex-shrink: 0;
}
.highlight-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--gj-ink);
}
.highlight-item p {
    font-size: 0.85rem;
    color: var(--gj-ink-light);
    margin: 0;
}

/* ===== 功能演示 ===== */
.demo-section {
    background: var(--gj-stone);
}
.demo-tabs {
    background: var(--gj-surface);
    border-radius: 24px;
    border: 1px solid var(--gj-card-border);
    overflow: hidden;
    margin-bottom: 2.5rem;
}
.demo-tab-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--gj-card-border);
    background: var(--gj-stone);
}
.demo-tab-btn {
    flex: 1 1 auto;
    padding: 0.8rem 1.8rem;
    background: transparent;
    border: none;
    color: var(--gj-ink-light);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}
.demo-tab-btn:hover {
    color: var(--gj-ink);
    background: rgba(44, 36, 24, 0.02);
}
.demo-tab-btn.active {
    color: var(--gj-gold);
    border-bottom-color: var(--gj-gold);
    background: rgba(184, 134, 91, 0.04);
}
.demo-panels {
    padding: 2rem;
    background: var(--gj-surface);
}
.demo-panel {
    display: none;
    animation: fade-in 0.4s ease;
}
.demo-panel.active {
    display: block;
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.demo-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
}
.demo-image {
    flex: 1 1 200px;
    min-height: 200px;
}
.demo-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: var(--gj-stone);
    border: 1px dashed var(--gj-card-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gj-ink-light);
    font-size: 0.9rem;
}
.demo-img-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.demo-result {
    flex: 2 1 300px;
    background: var(--gj-stone);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--gj-card-border);
}
.demo-result.full {
    flex: 1 1 100%;
}
.demo-result-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--gj-gold);
}
.demo-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--gj-ink);
    background: var(--gj-surface);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    /* height: 350px; */
}
.demo-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--gj-ink-light);
}
.demo-meta i {
    margin-right: 0.3rem;
}
.demo-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.demo-badge {
    background: var(--gj-gold-pale);
    border: 1px solid var(--gj-card-border);
    padding: 0.15rem 0.9rem;
    border-radius: 30px;
    font-size: 0.7rem;
    color: var(--gj-gold);
}
.demo-pdf-preview {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}
.pdf-page {
    width: 200px;
    height: 260px;
    background: var(--gj-surface);
    border: 1px solid var(--gj-card-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.pdf-layer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    gap: 0.5rem;
}
.pdf-layer.image-layer {
    background: rgba(58, 123, 106, 0.05);
    border-bottom: 1px solid var(--gj-card-border);
}
.pdf-layer.text-layer {
    background: rgba(184, 134, 91, 0.05);
}
.demo-align-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: var(--gj-stone);
    padding: 1rem;
    border-radius: 12px;
}
.align-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.align-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--gj-ink-light);
    text-transform: uppercase;
    border-bottom: 1px solid var(--gj-card-border);
    padding-bottom: 0.3rem;
}
.align-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.9rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--gj-card-border);
}
.demo-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ===== API 文档 ===== */
.docs-section {
    background: var(--gj-bg);
}
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.docs-card {
    background: var(--gj-surface);
    border: 1px solid var(--gj-card-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
}
.docs-card:hover {
    transform: translateY(-4px);
    border-color: var(--gj-gold);
    box-shadow: 0 12px 30px var(--gj-shadow);
}
.docs-card-icon {
    font-size: 2.4rem;
    color: var(--gj-gold);
    margin-bottom: 0.8rem;
}
.docs-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--gj-ink);
}
.docs-card p {
    font-size: 0.9rem;
    color: var(--gj-ink-light);
    margin-bottom: 1rem;
}
.docs-link {
    color: var(--gj-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.docs-link:hover {
    color: var(--gj-gold-light);
}
.docs-quick {
    max-width: 700px;
    margin: 0 auto;
}
.quick-code {
    background: var(--gj-surface);
    border-radius: 16px;
    border: 1px solid var(--gj-card-border);
    overflow: hidden;
}
.quick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: var(--gj-stone);
    border-bottom: 1px solid var(--gj-card-border);
}
.quick-header span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gj-ink-light);
}
.copy-btn {
    background: none;
    border: none;
    color: var(--gj-ink-light);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}
.copy-btn:hover {
    color: var(--gj-gold);
}
.quick-code pre {
    margin: 0;
    padding: 1.2rem;
    overflow-x: auto;
    font-size: 0.85rem;
}
.quick-code code {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    color: var(--gj-ink);
}

/* ===== FOOTER ===== */
.footer-section {
    min-height: 40vh;
    background: var(--gj-stone);
    border-top: 1px solid var(--gj-card-border);
    display: flex;
    align-items: center;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.footer-brand .footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gj-gold);
}
.footer-brand p {
    color: var(--gj-ink-light);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}
.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    color: var(--gj-ink-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--gj-gold);
}
.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--gj-card-border);
    font-size: 0.8rem;
    color: var(--gj-ink-light);
}
.footer-version {
    font-weight: 600;
    color: var(--gj-gold);
}



/* ===== 返回首页链接（与 Chat 风格统一） ===== */
.home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--gj-ink);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(184, 134, 91, 0.1);
    border: 1px solid transparent;
}
.home-link:hover {
    opacity: 1;
    background: rgba(184, 134, 91, 0.18);
    transform: scale(1.02);
}
.home-link .home-icon {
    font-size: 1.1rem;
    line-height: 1;
}


/* ===== PDF 演示面板 ===== */
.demo-panel#demoPdf .demo-content {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.demo-panel#demoPdf .demo-result {
    flex: 1 1 45%;
}
.demo-panel#demoPdf iframe {
    width: 100%;
    height: 300px;           /* 桌面端高度 */
    border: 1px solid var(--gj-card-border);
    border-radius: 8px;
    background: var(--gj-surface);
}

.stat-year {
    display: block;
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 0.1rem;
    font-weight: 300;
}


@media (max-width: 640px) {
    .home-link span:not(.home-icon) {
        display: none;
    }
    .home-link .home-icon {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {


    /* 导航菜单切换 */
    .header-nav .nav-btn {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .mobile-menu {
        display: none;
    }
    .mobile-menu.open {
        display: flex;
    }

    /* 滚动容器与区块 — 保留吸附，固定高度 */
    .scroll-container {
        margin-top: 60px;               /* fallback，JS 会覆盖 */
        height: calc(100vh - 60px);
        scroll-snap-type: y mandatory;  /* 保留吸附 */
    }

    .section {
        min-height: calc(100vh - 60px);
        height: calc(100vh - 60px);     /* 固定高度，由 JS 动态覆盖 */
        padding: 0.8rem 0;              /* 减少上下内边距 */
        overflow-y: auto;               /* 内部滚动 */
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .section-inner {
        padding: 0 0.8rem;
    }

    /* 标题与描述更紧凑 */
    .section-header {
        margin-bottom: 0.8rem;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }
    .section-sub {
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    .section-tag {
        font-size: 0.6rem;
        padding: 0.15rem 0.8rem;
        margin-bottom: 0.4rem;
    }

    /* HERO 区 */
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-sub {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    .hero-desc {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    .hero-actions {
        gap: 0.5rem;
        margin-bottom: 1.2rem;
    }
    .hero-stats {
        gap: 1rem;
        padding-top: 0.8rem;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .stat-suffix {
        font-size: 0.8rem;
    }
    .stat-label {
        font-size: 0.65rem;
    }
    .stat-divider {
        display: none;
    }
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.2rem 1rem;
        margin-bottom: 1rem;
    }
    .scroll-hint {
        bottom: 0.8rem;
        font-size: 0.6rem;
    }
    .scroll-hint i {
        font-size: 1rem;
    }


    /* 功能卡片 */
    .features-grid {
        grid-template-columns: 1fr;
        /* gap: 0.6rem; */
        gap: 0.5rem;
        /* margin-bottom: 0.6rem; */
        margin-bottom: 0.4rem;
    }
    .feature-card {
        /* padding: 0.6rem 0.8rem; */
        padding: 0.2rem 0.8rem;
        border-radius: 14px;
    }
    .card-icon {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }
    .card-title {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }
    .card-desc {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.3rem;
    }
    .card-tags li {
        font-size: 0.55rem;
        padding: 0.1rem 0.5rem;
    }

    .addon-section {
        /* margin-top: 0.4rem; */
        margin-top: 0.2rem;
    }
    .addon-label {
        font-size: 0.6rem;
        padding: 0.1rem 0.8rem;
        /* margin-bottom: 0.5rem; */
        margin-bottom: 0.3rem;
    }
    .addon-grid {
        gap: 0.6rem;
    }
    .addon-item {
        font-size: 0.7rem;
    }
    .addon-item i {
        font-size: 0.9rem;
    }

    /* 技术特色 */
    .tech-showcase {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    .tech-orb {
        width: 90px;
        height: 90px;
        margin-bottom: 0.3rem;
    }
    .tech-orb .orb-core {
        font-size: 0.7rem;
    }
    .tech-arch-desc {
        font-size: 0.7rem;
    }
    .tech-metrics {
        gap: 0.4rem;
    }
    .metric-block {
        padding: 0.4rem 0.6rem;
        min-width: 60px;
        border-radius: 12px;
    }
    .metric-number {
        font-size: 1.4rem;
    }
    .metric-number small {
        font-size: 0.8rem;
    }
    .metric-label {
        font-size: 0.65rem;
    }
    .metric-detail {
        font-size: 0.55rem;
    }
    .tech-highlights {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        margin-top: 0.2rem;
    }
    .highlight-item {
        padding: 0.4rem 0.6rem;
        gap: 0.5rem;
        border-radius: 10px;
    }
    .highlight-item i {
        font-size: 1.2rem;
    }
    .highlight-item h4 {
        font-size: 0.75rem;
        margin-bottom: 0;
    }
    .highlight-item p {
        font-size: 0.65rem;
    }

    /* 演示区 */
    /* .demo-tabs {
        border-radius: 12px;
        margin-bottom: 0.8rem;
    }
    .demo-tab-btn {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
    }
    .demo-panels {
        padding: 0.5rem;
    } */

    /* .demo-content {
        gap: 0.6rem;
        flex-direction: column;
    }
    .demo-image {
        min-height: 80px;
    }
    .demo-result {
        padding: 0.5rem;
        flex: 1 1 auto;
    } */

    /* 功能演示 —— 移动端上下排列，图片高度固定，完整显示 */
    .demo-content {
        flex-direction: column;
        gap: 0.4rem;
        /* align-items: center; */
        align-items: left;        
    }
    .demo-image {
        flex: 0 0 auto;
        height: 130px;                /* 固定高度，可根据需要调整 */
        width: auto;
        max-width: 100%;
        border-radius: 8px;
        overflow: hidden;
        background: var(--gj-stone);  /* 留白背景，可选 */
    }
    .demo-image img {
        display: block;
        height: 100%;
        width: auto;
        max-width: 100%;
        object-fit: contain;          /* 完整显示，不裁剪 */
    }
    .demo-result {
        flex: 0 0 auto;
        width: 100%;
        padding: 0.3rem 0.6rem;       /* 进一步压缩内边距 */
    }
    /* 当有多个 demo-result（如标点左右两栏）时，在移动端上下排列，并压缩间距 */
    .demo-content .demo-result {
        flex: 1 1 auto;
        width: 100%;
        margin-bottom: 0.2rem;
    }
    .demo-content .demo-result:last-child {
        margin-bottom: 0;
    }
    .demo-result-header {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
    .demo-text {
        font-size: 0.7rem;
        line-height: 1.5;
        padding: 0.3rem 0.5rem;
        margin-bottom: 0.2rem;
    }
    .demo-meta {
        font-size: 0.6rem;
        gap: 0.6rem;
    }
    .demo-badge-row {
        gap: 0.3rem;
        margin-top: 0.2rem;
    }
    .demo-badge {
        font-size: 0.55rem;
        padding: 0.05rem 0.5rem;
    }
    /* 图片下方的文本区域顶部内边距减少 */
    .demo-result:first-of-type {
        padding-top: 0.2rem;
    }

    .demo-tabs {
        margin-bottom: 0.4rem;
        border-radius: 10px;
    }
    .demo-tab-btn {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
    .demo-panels {
        padding: 0.4rem;
    }
    .demo-cta {
        margin-top: 0.3rem;
    }
    .btn-primary-glow,
    .btn-outline-light {
        font-size: 0.7rem;
        padding: 0.3rem 1rem;
    }

    /* PDF 演示移动端适配 */
    .demo-panel#demoPdf .demo-content {
        flex-direction: column;     /* 上下排列 */
        gap: 0.8rem;
    }
    .demo-panel#demoPdf .demo-result {
        flex: 0 0 auto;
        width: 100%;
    }
    .demo-panel#demoPdf iframe {
        height: 150px;              /* 与图片高度（130px）相近，略高以便显示内容 */
    }


    /* 文档区 */
    .docs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .docs-card {
        padding: 0.6rem 0.4rem;
        border-radius: 12px;
    }
    .docs-card-icon {
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }
    .docs-card h4 {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }
    .docs-card p {
        font-size: 0.65rem;
        margin-bottom: 0.3rem;
    }
    .docs-link {
        font-size: 0.7rem;
    }
    .quick-code pre {
        font-size: 0.6rem;
        padding: 0.4rem;
    }
    .quick-header {
        padding: 0.3rem 0.6rem;
    }
    .quick-header span {
        font-size: 0.65rem;
    }

    /* 底部 */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    .footer-brand .footer-logo {
        font-size: 1.2rem;
    }
    .footer-brand p {
        font-size: 0.7rem;
        margin-top: 0;
    }
    .footer-links {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-links a {
        font-size: 0.7rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        font-size: 0.6rem;
    }

    /* 右侧导航点 */
    .dot-nav {
        right: 0.3rem;
        gap: 0.6rem;
    }
    .dot-circle {
        width: 6px;
        height: 6px;
    }
    .dot-label {
        display: none;
    }
}

/* 更小屏幕（< 480px）进一步收紧 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .feature-card {
        padding: 1rem;
    }
    .card-title {
        font-size: 1rem;
    }
    .card-desc {
        font-size: 0.8rem;
    }
    .demo-tab-btn {
        font-size: 0.65rem;
        padding: 0.4rem 0.6rem;
    }
    .docs-grid {
        grid-template-columns: 1fr;
    }
    /* .btn-primary-glow,
    .btn-outline-light {
        font-size: 0.85rem;
        padding: 0.6rem 1.5rem;
    } */
}