/* ========== 基础重置与变量 ========== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0d0d15;
    --bg-tertiary: #13131f;
    --bg-card: #12121c;
    --text-primary: #e8e6e3;
    --text-secondary: #b8b5b0;
    --text-muted: #7a7872;
    --gold: #c9a84c;
    --gold-light: #e0c76e;
    --gold-dark: #8b732a;
    --accent-red: #a05050;
    --accent-blue: #5080a0;
    --accent-green: #609060;
    --border: #222230;
    --border-light: #2a2a3a;
    --font-cn: "Noto Serif SC", "Source Han Serif SC", "SimSun", "STSong", serif;
    --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    --max-width: 920px;
    --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}

/* ========== 导航栏 ========== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-logo {
    font-family: var(--font-cn);
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 6px;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.25s ease;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.07);
}

.nav-toggle {
    display: none;
    font-size: 1.3rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

/* ========== Hero ========== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.05) 0%, transparent 70%),
        radial-gradient(ellipse at 25% 75%, rgba(160,80,80,0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 75%, rgba(80,128,160,0.03) 0%, transparent 60%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-bottom: 36px;
}

.hero-title {
    font-family: var(--font-cn);
    margin-bottom: 36px;
}

.title-line {
    display: block;
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    color: var(--gold);
    letter-spacing: 8px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

.divider-line {
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.divider-dot {
    width: 5px; height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 2.1;
    max-width: 620px;
    margin: 0 auto 32px;
}

.hero-quote {
    background: rgba(201,168,76,0.06);
    border-left: 3px solid var(--gold-dark);
    padding: 18px 24px;
    margin: 0 auto 48px;
    max-width: 680px;
    text-align: left;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.hero-quote p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.9;
    font-style: italic;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 3px;
    animation: fadeInUp 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes fadeInUp {
    0%,100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(5px); }
}

/* ========== Section 通用 ========== */
.content-section {
    padding: 90px 20px;
}

.dark-section {
    background: var(--bg-secondary);
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-number {
    display: inline-block;
    font-family: var(--font-cn);
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 5px;
    padding: 5px 16px;
    border: 1px solid rgba(201,168,76,0.22);
    border-radius: 20px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: var(--font-cn);
    font-size: 1.65rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.section-spacer {
    height: 60px;
}

/* ========== 用户原话框 ========== */
.user-original-box {
    background: rgba(201,168,76,0.05);
    border: 1px solid rgba(201,168,76,0.15);
    border-left: 3px solid var(--gold);
    padding: 22px 26px;
    margin-bottom: 32px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.user-label {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 12px;
    padding: 3px 12px;
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 12px;
}

.user-original-box p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 2;
    font-style: italic;
}

/* ========== 核心论点卡片 ========== */
.thesis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

.thesis-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.thesis-card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.thesis-card h3 {
    font-family: var(--font-cn);
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.card-quote {
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 8px;
}

/* ========== 分析块 ========== */
.analysis-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-bottom: 22px;
}

.analysis-block h3 {
    font-family: var(--font-cn);
    font-size: 1.15rem;
    color: var(--gold-light);
    margin-bottom: 16px;
    letter-spacing: 2px;
    font-weight: 500;
}

.analysis-block p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 2.1;
    margin-bottom: 10px;
}

.analysis-block p:last-child {
    margin-bottom: 0;
}

.analysis-block ol,
.analysis-block ul {
    padding-left: 22px;
    margin: 10px 0;
}

.analysis-block li {
    font-size: 0.91rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 6px;
}

.analysis-block strong {
    color: var(--gold-light);
    font-weight: 600;
}

.analysis-block blockquote {
    border-left: 2px solid var(--gold-dark);
    padding: 10px 18px;
    margin: 14px 0;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    background: rgba(201,168,76,0.03);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.explain-list li {
    padding: 10px 0;
    font-size: 0.93rem;
}

.highlight-note {
    color: var(--gold-light) !important;
    font-weight: 600 !important;
}

.conclusion-block {
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: rgba(201,168,76,0.05);
}

/* 章节内分割线 */
.section-divider {
    border: none;
    border-top: 1px solid rgba(201,168,76,0.12);
    margin: 36px 0;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.big-quote {
    font-family: var(--font-cn);
    font-size: 1.5rem !important;
    color: var(--gold) !important;
    text-align: center;
    letter-spacing: 4px;
    padding: 18px 0;
}

/* ========== 高亮引用 ========== */
.highlight-quote {
    background: rgba(201,168,76,0.06);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius);
    padding: 22px 28px;
    margin: 28px 0;
    text-align: center;
}

.highlight-quote p {
    font-size: 0.95rem;
    color: var(--gold-light);
    line-height: 2;
    font-style: italic;
}

/* ========== 系统架构图 ========== */
.architecture-diagram {
    max-width: 560px;
    margin: 0 auto 36px;
}

.arch-layer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    text-align: center;
    transition: all 0.3s ease;
}

.arch-layer:hover {
    border-color: var(--gold-dark);
}

.arch-arrow {
    text-align: center;
    color: var(--gold);
    font-size: 1.3rem;
    padding: 6px 0;
}

.layer-label {
    display: block;
    font-family: var(--font-cn);
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 6px;
}

.layer-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.layer-tao { border-left: 3px solid #6a4a6a; }
.layer-one { border-left: 3px solid var(--accent-blue); }
.layer-two { border-left: 3px solid var(--accent-green); }
.layer-three { border-left: 3px solid var(--accent-red); }
.layer-all { border-left: 3px solid var(--gold); }

/* ========== 八奇技网格 ========== */
.eight-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.tech-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.tech-card h3 {
    font-family: var(--font-cn);
    font-size: 1.05rem;
    color: var(--gold);
    margin-bottom: 3px;
    letter-spacing: 2px;
}

.tech-holder {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tech-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 6px;
}

.tech-card strong {
    color: var(--gold-light);
}

/* ========== JIT 流程 ========== */
.jit-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.jit-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 18px;
    flex: 1;
    min-width: 180px;
    transition: all 0.3s ease;
}

.jit-step:hover {
    border-color: var(--gold-dark);
}

.step-number {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.jit-step h4 {
    font-family: var(--font-cn);
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.jit-step p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

.step-example {
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
    font-style: italic;
}

.jit-connector {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

/* ========== 张之维比较卡片 ========== */
.comparison-grid {
    display: flex;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 36px;
}

.compare-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.card-software { border-top: 3px solid var(--accent-blue); }
.card-hardware { border-top: 3px solid var(--gold); }

.compare-card h3 {
    font-family: var(--font-cn);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.compare-tag {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 4px;
    font-size: 0.78rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.card-software .compare-tag {
    background: rgba(80,128,160,0.2);
    color: #80b8d8;
}

.card-hardware .compare-tag {
    background: rgba(201,168,76,0.2);
    color: var(--gold-light);
}

.compare-card ul {
    list-style: none;
    padding: 0;
}

.compare-card li {
    padding: 7px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.compare-card li::before {
    content: "·";
    color: var(--gold);
    font-weight: 700;
    margin-right: 8px;
}

.compare-vs {
    display: flex;
    align-items: center;
    font-family: var(--font-cn);
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 700;
    padding: 0 2px;
}

/* ========== 推演流程 ========== */
.deduction-flow {
    max-width: 620px;
    margin: 0 auto;
}

.deduction-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.deduction-step.conclusion {
    border-color: var(--gold-dark);
    background: rgba(201,168,76,0.06);
}

.deduction-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 28px;
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.deduction-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.95;
}

.deduction-step strong {
    color: var(--gold-light);
}

.deduction-arrow {
    text-align: center;
    color: var(--gold);
    font-size: 1.1rem;
    padding: 6px 0;
}

/* ========== 层级表格 ========== */
.hierarchy-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.hierarchy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.hierarchy-table thead {
    background: var(--bg-tertiary);
}

.hierarchy-table th {
    padding: 13px 14px;
    text-align: left;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.hierarchy-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: top;
    line-height: 1.75;
}

.hierarchy-table tr:last-child td {
    border-bottom: none;
}

.hierarchy-table tr:hover td {
    background: rgba(201,168,76,0.02);
}

.hierarchy-table strong {
    color: var(--text-primary);
}

.level-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.76rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.row-law .level-badge { background: rgba(201,168,76,0.15); color: var(--gold-light); border: 1px solid rgba(201,168,76,0.3); }
.row-native .level-badge { background: rgba(160,80,80,0.15); color: #d08080; border: 1px solid rgba(160,80,80,0.3); }
.row-daemon .level-badge { background: rgba(80,128,160,0.15); color: #80b8d8; border: 1px solid rgba(80,128,160,0.3); }
.row-architect .level-badge { background: rgba(96,144,96,0.15); color: #80c880; border: 1px solid rgba(96,144,96,0.3); }
.row-learner .level-badge { background: rgba(140,120,60,0.15); color: #d0b860; border: 1px solid rgba(140,120,60,0.3); }
.row-app .level-badge { background: rgba(108,108,108,0.15); color: #a0a0a0; border: 1px solid rgba(108,108,108,0.3); }

/* ========== 道家映射 ========== */
.tao-mapping {
    max-width: 520px;
    margin: 0 auto 36px;
}

.tao-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.tao-item:last-child {
    border-bottom: none;
}

.tao-left { width: 55px; }

.tao-char {
    font-family: var(--font-cn);
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: 4px;
}

.tao-center {
    width: 26px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.tao-right span {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.tao-right small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 3px;
    line-height: 1.7;
}

/* ========== 悟道过程 ========== */
.enlightenment-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.path-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 14px;
    text-align: center;
    flex: 1;
    min-width: 130px;
    transition: all 0.3s ease;
}

.path-step:hover {
    border-color: var(--gold-dark);
}

.path-icon {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 8px;
}

.path-step h4 {
    font-size: 0.82rem;
    color: var(--gold);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.path-step p {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.path-arrow {
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ========== 跋 ========== */
.epilogue-content {
    text-align: center;
}

.final-quote {
    border: none !important;
    background: none !important;
    margin: 0 auto 36px !important;
    padding: 0 !important;
    font-style: normal !important;
}

.final-quote p {
    font-family: var(--font-cn);
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: 4px;
    line-height: 2.5;
}

.final-quote strong {
    color: var(--gold-light);
    font-size: 1.4rem;
}

.epilogue-text {
    max-width: 620px;
    margin: 0 auto 36px;
}

.epilogue-text p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 2.3;
    margin-bottom: 10px;
}

.epilogue-text strong {
    color: var(--gold-light);
}

.epilogue-divider {
    font-size: 1.8rem;
    color: var(--gold);
    margin: 28px 0;
}

.epilogue-tag {
    font-family: var(--font-cn);
    font-size: 1.15rem;
    color: var(--gold-light);
    letter-spacing: 8px;
}

/* ========== 页脚 ========== */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 36px 20px;
    text-align: center;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-container p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 2;
}

.footer-tagline {
    margin-top: 10px !important;
    font-family: var(--font-cn);
    font-size: 0.88rem !important;
    color: var(--gold-dark) !important;
    letter-spacing: 4px;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .nav-links { display: none; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0; right: 0;
        background: rgba(10,10,15,0.98);
        backdrop-filter: blur(14px);
        padding: 14px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active a {
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .nav-toggle { display: block; }

    .thesis-grid { grid-template-columns: 1fr; }

    .comparison-grid { flex-direction: column; }
    .compare-vs { justify-content: center; padding: 6px 0; }

    .jit-flow { flex-direction: column; }
    .jit-connector { transform: rotate(90deg); }

    .enlightenment-path { flex-direction: column; }
    .path-arrow { transform: rotate(90deg); }

    .eight-tech-grid { grid-template-columns: 1fr; }

    .section-header h2 { font-size: 1.3rem; }
    .title-line { font-size: 1.5rem; letter-spacing: 4px; }

    .hierarchy-table { font-size: 0.76rem; }
    .hierarchy-table th, .hierarchy-table td { padding: 10px; }
}

@media (max-width: 480px) {
    .content-section { padding: 60px 14px; }
    .hero-desc { font-size: 0.85rem; }
    .analysis-block { padding: 18px 16px; }
}

/* ========== 滚动动画 ========== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
