/* ===== 本地字体 ===== */
@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/NotoSansSC-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/NotoSansSC-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/NotoSansSC-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/NotoSansSC-Bold.woff2') format('woff2');
}

/* ===== 全局变量 ===== */
:root {
    --gold-primary: #d4af37;
    --gold-light: #f4e4bc;
    --gold-dark: #996515;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    --dark-bg: #1a1a2e;
    --dark-secondary: #16213e;
    --dark-card: #0f3460;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-muted: #888888;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 4px 30px rgba(212, 175, 55, 0.3);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== 浏览提示 ===== */
.browser-notice {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.85rem;
    text-align: center;
    position: relative;
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.notice-item i {
    font-size: 1rem;
}

.notice-item strong {
    font-weight: 500;
}

.browser-notice i {
    font-size: 1rem;
}

.notice-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.notice-close:hover {
    opacity: 1;
}

@media (max-width: 992px) {
    .browser-notice {
        display: flex;
    }

    .main-content {
        margin-top: 110px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 头部导航 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
}

.nav-link.active {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== 主内容区 ===== */
.main-content {
    margin-top: 70px;
}

.page {
    display: none;
    min-height: calc(100vh - 70px);
}

.page.active {
    display: block;
}

/* ===== 首页英雄区 ===== */
.hero {
    position: relative;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 50%, #0d1b2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23d4af37" opacity="0.15"/><circle cx="10" cy="60" r="0.5" fill="%23d4af37" opacity="0.15"/><circle cx="90" cy="40" r="0.5" fill="%23d4af37" opacity="0.15"/></pattern></defs><rect fill="url(%23grain)" width="100" height="100"/></svg>');
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--dark-bg);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== 特性区域 ===== */
.features-section {
    padding: 100px 0;
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold-primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark-bg);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== 架构图区域 ===== */
.architecture-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
}

.architecture-section .section-title {
    color: var(--text-light);
}

.architecture-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.arch-party {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    min-width: 200px;
    transition: var(--transition);
}

.arch-party:hover {
    border-color: var(--gold-primary);
    transform: scale(1.05);
}

.party-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--dark-bg);
}

.arch-party h3 {
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.arch-party p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 10px;
}

.party-role {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.arch-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gold-primary);
}

.arrow-line {
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    position: relative;
}

.arrow-line::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    border: 6px solid transparent;
    border-left-color: var(--gold-primary);
}

.arch-arrow span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== 统计区域 ===== */
.stats-section {
    padding: 80px 0;
    background: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.stat-suffix {
    position: absolute;
    font-size: 2rem;
    color: var(--gold-primary);
    font-weight: 700;
}

/* ===== 页面英雄区 ===== */
.page-hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
    padding: 100px 20px 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-hero h1 i {
    color: var(--gold-primary);
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== 版本标签 ===== */
.version-tag {
    display: inline-block;
    padding: 4px 12px;
    margin-left: 10px;
    font-size: 0.5em;
    font-weight: 600;
    border-radius: 20px;
    background: var(--gold-gradient);
    color: var(--dark-bg);
    vertical-align: middle;
}

.version-tag.outline {
    background: linear-gradient(135deg, #5B9BD5 0%, #2E75B6 100%);
    color: white;
}

.version-tag.draft {
    background: linear-gradient(135deg, #888 0%, #666 100%);
    color: white;
}

.hero-download {
    margin-top: 25px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.btn-download i {
    font-size: 1.1rem;
}

/* ===== 内容卡片 ===== */
.content-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 30px 0;
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: var(--dark-bg);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold-light);
}

.content-card h2 i {
    color: var(--gold-primary);
}

/* ===== 流程图 ===== */
.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.process-step {
    text-align: center;
    min-width: 100px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-bg);
    z-index: 1;
}

.step-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold-primary);
    border: 3px solid var(--gold-light);
}

.process-step h4 {
    font-size: 1rem;
    color: var(--dark-bg);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.process-arrow {
    display: flex;
    align-items: center;
    color: var(--gold-primary);
    font-size: 1.2rem;
    padding-top: 25px;
}

/* ===== 模块网格 ===== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.module-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.module-header {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
}

.module-card.admin .module-header {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-secondary));
}

.module-card.branch .module-header {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
}

.module-header i {
    font-size: 1.8rem;
}

.module-header h3 {
    font-size: 1.2rem;
}

.module-list {
    list-style: none;
    padding: 25px;
    background: #fafafa;
}

.module-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.module-list li:last-child {
    border-bottom: none;
}

.module-list li i {
    color: var(--gold-primary);
    width: 20px;
}

/* ===== 三端架构模块样式 ===== */
.modules-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.arch-intro {
    background: linear-gradient(135deg, #f0f7ff, #e8f4f8);
    border-left: 4px solid var(--gold-primary);
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.arch-intro p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.arch-intro i {
    color: var(--gold-primary);
    margin-right: 8px;
}

.module-card.system .module-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.module-url {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: auto;
}

.module-desc {
    padding: 12px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .modules-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modules-grid.three-col {
        grid-template-columns: 1fr;
    }
}

/* ===== 优先级网格 ===== */
.priority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.priority-item {
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid;
}

.priority-item.high {
    background: #fff5f5;
    border-color: var(--danger);
}

.priority-item.medium {
    background: #fffbf0;
    border-color: var(--warning);
}

.priority-item.low {
    background: #f0fff4;
    border-color: var(--success);
}

.priority-badge {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.priority-item p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.priority-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
}

/* ===== 架构层级 ===== */
.architecture-layers {
    max-width: 800px;
    margin: 0 auto;
}

.layer {
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.layer h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.layer.presentation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.layer.business {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    color: var(--dark-bg);
}

.layer.data {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
    color: white;
}

.layer-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.layer-items span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.layer-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin: 15px 0;
}

/* ===== 技术栈 ===== */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-category h4 {
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-light);
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: var(--transition);
}

.tech-item:hover {
    background: var(--gold-light);
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--gold-dark);
    width: 30px;
}

/* ===== 实体网格 ===== */
.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.entity-card {
    text-align: center;
    padding: 25px 15px;
    background: #f8f8f8;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: var(--transition);
}

.entity-card:hover {
    border-color: var(--gold-primary);
    background: var(--gold-light);
}

.entity-card i {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.entity-card h4 {
    font-size: 1rem;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.entity-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== 安全设计 ===== */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.security-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-secondary));
    border-radius: var(--border-radius);
    color: var(--text-light);
}

.security-item i {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.security-item h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.security-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== API 列表 ===== */
.api-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.api-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border-left: 5px solid;
}

.api-card.priority-high {
    border-color: var(--danger);
}

.api-card.priority-medium {
    border-color: var(--warning);
}

.api-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f8f8;
}

.api-icon {
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--dark-bg);
}

.api-info h3 {
    font-size: 1.1rem;
    color: var(--dark-bg);
}

.api-id {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.api-priority {
    margin-left: auto;
    font-size: 0.9rem;
}

.api-body {
    padding: 20px;
}

.api-body p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.api-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.api-details span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.api-details span i {
    color: var(--gold-primary);
}

/* ===== 规范表格 ===== */
.spec-table {
    background: #f8f8f8;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.spec-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    flex: 0 0 200px;
    padding: 18px 25px;
    background: var(--dark-bg);
    color: var(--gold-primary);
    font-weight: 600;
}

.spec-value {
    flex: 1;
    padding: 18px 25px;
    color: var(--text-dark);
}

/* ===== 容错机制 ===== */
.fallback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.fallback-item {
    padding: 25px;
    background: #f8f8f8;
    border-radius: var(--border-radius);
    text-align: center;
}

.fallback-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.fallback-icon.warning { background: var(--warning); }
.fallback-icon.danger { background: var(--danger); }
.fallback-icon.info { background: var(--info); }
.fallback-icon.success { background: var(--success); }

.fallback-item h4 {
    font-size: 1rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.fallback-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gold-light);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 50px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    width: 34px;
    height: 34px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-size: 1rem;
    z-index: 1;
}

.timeline-content {
    background: #ffffff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--gold-primary);
}

.timeline-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gold-gradient);
    color: var(--dark-bg);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.timeline-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.timeline-duration i {
    color: var(--gold-primary);
}

.timeline-content ul {
    list-style: none;
    margin-bottom: 15px;
}

.timeline-content li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.timeline-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
}

.timeline-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-docs span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-docs span i {
    color: var(--gold-primary);
}

/* ===== 里程碑网格 ===== */
.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.milestone-card {
    text-align: center;
    padding: 30px;
    background: #f8f8f8;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.milestone-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.milestone-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.milestone-icon.m1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.milestone-icon.m2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.milestone-icon.m3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.milestone-icon.m4 { background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary)); }

.milestone-card h4 {
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.milestone-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.milestone-check {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--success);
}

.milestone-check i {
    margin-right: 5px;
}

/* ===== 风险概览 ===== */
.risk-overview {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.risk-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.risk-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: var(--border-radius);
    color: white;
}

.risk-stat.high { background: linear-gradient(135deg, #ff6b6b, #ee5a5a); }
.risk-stat.medium { background: linear-gradient(135deg, #feca57, #ff9f43); }
.risk-stat.low { background: linear-gradient(135deg, #1dd1a1, #10ac84); }

.risk-count {
    font-size: 2rem;
    font-weight: 700;
}

.risk-label {
    font-size: 1rem;
}

.risk-list-preview {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.risk-item-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: #f8f8f8;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.risk-item-mini.high { border-color: var(--danger); }
.risk-item-mini.medium { border-color: var(--warning); }

.risk-id {
    font-weight: 700;
    color: var(--dark-bg);
    min-width: 40px;
}

.risk-desc {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ===== 页脚 ===== */
.footer {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-secondary));
    padding: 50px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-brand i {
    font-size: 1.8rem;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 5px 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-primary);
}

/* ===== 分阶段流程详述 ===== */
.stage-detail {
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.stage-header {
    padding: 25px 30px;
    color: white;
    position: relative;
}

.stage-header.stage-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.stage-header.stage-2 { background: linear-gradient(135deg, #5B9BD5, #2E75B6); }
.stage-header.stage-3 { background: linear-gradient(135deg, #BF9000, #d4af37); }
.stage-header.stage-4 { background: linear-gradient(135deg, #70AD47, #538135); }
.stage-header.stage-5 { background: linear-gradient(135deg, #ED7D31, #C55A11); }
.stage-header.stage-6 { background: linear-gradient(135deg, #4472C4, #2F5496); }
.stage-header.stage-7 { background: linear-gradient(135deg, #7F7F7F, #595959); }
.stage-header.stage-8 { background: linear-gradient(135deg, #27ae60, #2ecc71); }

/* ===== 提成公式样式 ===== */
.commission-formula {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #fff9e6, #fff5cc);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--gold-primary);
}

.commission-formula h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.commission-formula h4 i {
    color: var(--gold-primary);
}

.formula-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.formula-box > p:first-child {
    font-size: 1.1rem;
    color: var(--dark-bg);
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

.formula-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.formula-box li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
    border-bottom: 1px dashed #eee;
}

.formula-box li:last-child {
    border-bottom: none;
}

.formula-box li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: var(--gold-primary);
    font-weight: bold;
}

.formula-example {
    padding: 15px;
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-secondary));
    border-radius: 8px;
    color: var(--text-light);
    margin: 0;
}

.formula-example .highlight {
    color: var(--gold-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.stage-num {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.stage-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.stage-goal {
    opacity: 0.9;
    font-size: 0.95rem;
    margin: 0;
}

.stage-content {
    padding: 30px;
    background: #fafafa;
}

/* ===== 流程图容器 ===== */
.flowchart-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #eee;
    overflow-x: auto;
}

.flowchart-container.large {
    padding: 40px;
}

.flowchart-container .mermaid {
    display: flex;
    justify-content: center;
}

/* ===== 步骤表格 ===== */
.step-table {
    overflow-x: auto;
}

.step-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.step-table th,
.step-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.step-table th {
    background: var(--dark-bg);
    color: var(--gold-primary);
    font-weight: 600;
    white-space: nowrap;
}

.step-table th:first-child {
    width: 60px;
}

.step-table tr:hover {
    background: #f8f8f8;
}

.step-table tr:last-child td {
    border-bottom: none;
}

/* ===== 执行方标签 ===== */
.executor {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.executor.party-a {
    background: linear-gradient(135deg, #4472C4, #2F5496);
    color: white;
}

.executor.party-b {
    background: linear-gradient(135deg, #70AD47, #538135);
    color: white;
}

.executor.party-c {
    background: linear-gradient(135deg, #FFC000, #BF9000);
    color: #333;
}

.executor.system {
    background: linear-gradient(135deg, #7F7F7F, #595959);
    color: white;
}

/* ===== 状态说明 ===== */
.status-legend {
    margin-top: 30px;
    padding: 25px;
    background: #f8f8f8;
    border-radius: var(--border-radius);
}

.status-legend h4 {
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-light);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
}

.status-code {
    display: inline-block;
    min-width: 35px;
    padding: 4px 8px;
    background: var(--dark-bg);
    color: var(--gold-primary);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

/* ===== 项目定位区域 ===== */
.project-position {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.position-highlight {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5cc 100%);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--gold-primary);
}

.position-highlight > i {
    font-size: 2.5rem;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.highlight-content h4 {
    font-size: 1.2rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.highlight-content p {
    color: var(--text-dark);
    line-height: 1.7;
}

.highlight-content strong {
    color: var(--gold-dark);
}

.position-goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.goal-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.goal-item:hover {
    background: var(--gold-light);
}

.goal-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gold-gradient);
    border-radius: 50%;
    font-weight: 700;
    color: var(--dark-bg);
    flex-shrink: 0;
}

.goal-item strong {
    display: block;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.goal-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== 角色区域 ===== */
.roles-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.role-group h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-light);
}

.role-group h4 i {
    color: var(--gold-primary);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.role-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: #f8f8f8;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--gold-primary);
    transition: var(--transition);
}

.role-card:hover {
    background: var(--gold-light);
    transform: translateX(5px);
}

.role-icon {
    width: 45px;
    height: 45px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.role-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark-bg);
    margin-bottom: 3px;
}

.role-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== 业务规则区域 ===== */
.business-rules {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed var(--gold-light);
}

.business-rules h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
}

.business-rules h4 i {
    color: var(--gold-primary);
}

.rules-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 0.95rem;
}

.rule-code {
    display: inline-block;
    padding: 4px 10px;
    background: var(--dark-bg);
    color: var(--gold-primary);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ===== 需求统计区域 ===== */
.req-stats-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.req-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.req-stat-box {
    text-align: center;
    padding: 25px 15px;
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-secondary));
    border-radius: var(--border-radius);
    color: white;
}

.req-stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.req-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.req-detail-table {
    overflow-x: auto;
}

.req-detail-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.req-detail-table th,
.req-detail-table td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.req-detail-table th {
    background: var(--dark-bg);
    color: var(--gold-primary);
    font-weight: 600;
}

.req-detail-table tr:hover {
    background: #f8f8f8;
}

.req-detail-table .total-row {
    background: var(--gold-light);
}

.req-detail-table .total-row:hover {
    background: var(--gold-light);
}

/* ===== 系统范围边界 ===== */
.scope-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.scope-box {
    padding: 25px;
    border-radius: var(--border-radius);
}

.scope-box.included {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 2px solid var(--success);
}

.scope-box.excluded {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border: 2px solid var(--danger);
}

.scope-box h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.scope-box.included h4 {
    color: #2e7d32;
}

.scope-box.excluded h4 {
    color: #c62828;
}

.scope-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scope-box li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.scope-box li:last-child {
    border-bottom: none;
}

.scope-box.included li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.scope-box.excluded li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: 700;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-list.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .architecture-diagram {
        flex-direction: column;
    }

    .arch-arrow {
        transform: rotate(90deg);
    }

    .risk-overview {
        grid-template-columns: 1fr;
    }

    .spec-row {
        flex-direction: column;
    }

    .spec-label {
        flex: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .content-card {
        padding: 25px 20px;
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
    }

    .process-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 0;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 系统架构页面样式 ===== */

/* 架构对比表格 */
.arch-comparison {
    margin-top: 20px;
}

.arch-table {
    width: 100%;
    margin-bottom: 20px;
}

.arch-table th.recommend,
.arch-table td.recommend {
    background: rgba(212, 175, 55, 0.1);
}

.arch-table .stars {
    color: var(--gold-primary);
    letter-spacing: 2px;
}

.arch-table .total-row {
    background: #f8f9fa;
    font-size: 1.1rem;
}

.arch-recommend-note {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-left: 4px solid var(--gold-primary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.arch-recommend-note i {
    color: var(--gold-primary);
    font-size: 1.5rem;
}

.arch-recommend-note strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-bg);
}

.arch-recommend-note p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 架构图 */
.arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 20px;
}

.layer-label {
    width: 80px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
    flex-shrink: 0;
}

.layer-content {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.arch-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 140px;
}

.arch-box i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.arch-box span {
    font-weight: 600;
}

.arch-box small {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 5px;
}

.user-box {
    background: white;
    border: 2px solid #ddd;
    color: var(--dark-bg);
}

.frontend-box {
    color: white;
    min-width: 160px;
}

.frontend-box.admin {
    background: linear-gradient(135deg, #4472C4, #2F5496);
}

.frontend-box.hq {
    background: linear-gradient(135deg, #70AD47, #538135);
}

.frontend-box.store {
    background: linear-gradient(135deg, #FFC000, #BF9000);
    color: var(--dark-bg);
}

.frontend-box .box-header {
    font-weight: 700;
    font-size: 1rem;
}

.frontend-box .box-tech {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 5px 0;
}

.frontend-box .box-url {
    font-size: 0.75rem;
    opacity: 0.7;
    font-family: monospace;
}

.gateway-box {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    flex: 1;
    max-width: 500px;
}

.service-box {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    flex: 1;
    max-width: 400px;
    border: 2px solid var(--gold-primary);
}

.service-box .box-header {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gold-primary);
}

.service-modules {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-tag {
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    color: white;
}

.data-box {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.arch-arrow {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 5px 0;
}

.arch-arrow i {
    margin-right: 5px;
}

/* 技术选型 */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tech-category {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
}

.tech-category h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--dark-bg);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-primary);
}

.tech-category h4 i {
    color: var(--gold-primary);
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
}

.tech-name {
    font-weight: 600;
    color: var(--dark-bg);
}

.tech-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 开发阶段进度条 */
.dev-phases {
    margin-bottom: 30px;
}

.phase-bar {
    display: flex;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.phase-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.phase-segment.phase-1 {
    background: linear-gradient(135deg, #4472C4, #2F5496);
}

.phase-segment.phase-2 {
    background: linear-gradient(135deg, #70AD47, #538135);
}

.phase-segment.phase-3 {
    background: linear-gradient(135deg, #FFC000, #BF9000);
    color: var(--dark-bg);
}

.phase-segment.phase-4 {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.phase-labels {
    display: flex;
    justify-content: space-around;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.milestone-marker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 工作量与团队配置 */
.workload-summary {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.workload-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.workload-stat {
    text-align: center;
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-secondary));
    border-radius: var(--border-radius);
    color: white;
}

.workload-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.workload-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.team-config h4 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--dark-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.team-role {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.team-role:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.team-role i {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.team-role .role-name {
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.team-role .role-count {
    display: inline-block;
    padding: 3px 12px;
    background: var(--gold-primary);
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.team-role .role-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 风险表格 */
.risk-table {
    margin-top: 20px;
}

.risk-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.risk-badge.high {
    background: #fce4e4;
    color: #c0392b;
}

.risk-badge.medium {
    background: #fef5e7;
    color: #d68910;
}

.risk-badge.low {
    background: #e8f8f5;
    color: #27ae60;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .arch-layer {
        flex-direction: column;
        align-items: stretch;
    }

    .layer-label {
        text-align: center;
        width: auto;
    }

    .layer-content {
        flex-direction: column;
        align-items: center;
    }

    .arch-box {
        width: 100%;
        max-width: 280px;
    }

    .workload-stats {
        gap: 15px;
    }

    .workload-stat {
        padding: 15px 25px;
    }

    .workload-stat .stat-number {
        font-size: 2rem;
    }

    .phase-bar {
        flex-direction: column;
        height: auto;
        border-radius: 10px;
    }

    .phase-segment {
        height: 35px;
    }

    .phase-labels {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

/* ===== 多页面导航新样式 ===== */

/* 快速导航区域 */
.quick-nav-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.quick-nav-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.quick-nav-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold-primary);
}

.quick-nav-icon {
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
}

.quick-nav-card h3 {
    font-size: 1.2rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.quick-nav-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.quick-nav-arrow {
    position: absolute;
    right: 25px;
    bottom: 25px;
    width: 35px;
    height: 35px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    transition: var(--transition);
}

.quick-nav-card:hover .quick-nav-arrow {
    background: var(--gold-primary);
    color: white;
}

/* 流程详述链接 */
.process-detail-link {
    text-align: center;
    margin-top: 30px;
}

/* 流程页面导航 */
.process-nav-card {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: white;
}

.process-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.process-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.process-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.process-nav-item .nav-num {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* 阶段导航背景色 */
.stage-1-bg { background: linear-gradient(135deg, #667eea, #764ba2); }
.stage-2-bg { background: linear-gradient(135deg, #5B9BD5, #2E75B6); }
.stage-3-bg { background: linear-gradient(135deg, #BF9000, #d4af37); }
.stage-4-bg { background: linear-gradient(135deg, #FFC000, #BF9000); color: #333 !important; }
.stage-5-bg { background: linear-gradient(135deg, #ED7D31, #C55A11); }
.stage-6-bg { background: linear-gradient(135deg, #4472C4, #2F5496); }
.stage-7-bg { background: linear-gradient(135deg, #7F7F7F, #595959); }
.stage-8-bg { background: linear-gradient(135deg, #27ae60, #2ecc71); }

/* 设计页面样式 */
.design-points {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.design-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.design-point:hover {
    background: var(--gold-light);
}

.design-point .point-icon {
    color: var(--success);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.design-point .point-content h4 {
    font-size: 1rem;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.design-point .point-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* 接口设计原则 */
.api-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.principle-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.principle-item:hover {
    background: var(--gold-light);
}

.principle-num {
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark-bg);
    flex-shrink: 0;
}

.principle-content h4 {
    font-size: 1rem;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.principle-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* API 示例代码块 */
.api-example h4 {
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.code-block {
    background: #1e1e1e;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #2d2d2d;
    border-bottom: 1px solid #3d3d3d;
}

.http-method {
    padding: 4px 12px;
    background: #4CAF50;
    color: white;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}

.endpoint {
    color: #9cdcfe;
    font-family: 'Consolas', monospace;
}

.code-content {
    padding: 20px;
    color: #d4d4d4;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    margin: 0;
}

/* 服务商对比表格 */
.vendor-comparison {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.data-table th,
.data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: var(--dark-bg);
    color: var(--gold-primary);
    font-weight: 600;
}

.data-table tr:hover {
    background: #f8f8f8;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* 集成计划 */
.integration-plan {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.plan-phase {
    background: #f8f8f8;
    border-radius: var(--border-radius);
    padding: 25px;
}

.plan-phase-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.phase-badge {
    padding: 6px 15px;
    background: var(--gold-gradient);
    color: var(--dark-bg);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.phase-time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.plan-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.plan-item i {
    color: var(--gold-primary);
}

.plan-item.done {
    border-color: var(--success);
    background: #e8f5e9;
}

.plan-item.done i {
    color: var(--success);
}

.plan-item.optional {
    border-style: dashed;
    color: var(--text-muted);
}

/* 开发阶段进度条修正 */
.phase-segment .phase-weeks {
    white-space: nowrap;
}

/* 多页面响应式 */
@media (max-width: 768px) {
    .quick-nav-grid {
        grid-template-columns: 1fr;
    }

    .process-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .process-nav-item {
        justify-content: center;
    }

    .process-nav-card {
        position: static;
    }

    .api-principles {
        grid-template-columns: 1fr;
    }

    .plan-items {
        flex-direction: column;
    }
}

/* 时间线阶段颜色区分 */
.timeline-item.phase1 .timeline-marker { background: linear-gradient(135deg, #667eea, #764ba2); }
.timeline-item.phase2 .timeline-marker { background: linear-gradient(135deg, #70AD47, #538135); }
.timeline-item.phase3 .timeline-marker { background: linear-gradient(135deg, #FFC000, #BF9000); }
.timeline-item.phase4 .timeline-marker { background: linear-gradient(135deg, #9b59b6, #8e44ad); }

/* ===== 代销业务页面样式 ===== */

/* 代销业务英雄区 */
.consignment-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.consignment-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* 文档介绍区 */
.doc-intro {
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
    border-left: 4px solid var(--gold-primary);
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.doc-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.doc-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 问题清单 */
.problem-list h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.problem-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
    transition: var(--transition);
}

.problem-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.problem-num {
    width: 36px;
    height: 36px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark-bg);
    flex-shrink: 0;
}

.problem-content strong {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-bg);
}

.problem-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 代销业务页内导航 */
.consignment-nav-card {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: white;
}

.consignment-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.consignment-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.consignment-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.consignment-nav-item .nav-num {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.nav-part1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.nav-part2 { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.nav-recommend { background: linear-gradient(135deg, #d4af37, #b08d3c); }
.nav-scheme-a { background: linear-gradient(135deg, #3498db, #2980b9); }
.nav-scheme-b { background: linear-gradient(135deg, #f39c12, #d68910); }
.nav-scheme-c { background: linear-gradient(135deg, #27ae60, #1e8449); }
.nav-decision { background: linear-gradient(135deg, #9b59b6, #8e44ad); }

/* 三方关系图 */
.tri-party-diagram {
    margin: 30px 0;
}

.party-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.party-box {
    text-align: center;
    padding: 25px 35px;
    border-radius: 15px;
    min-width: 150px;
    transition: var(--transition);
}

.party-box:hover {
    transform: translateY(-5px);
}

.party-head {
    background: linear-gradient(135deg, #d4af37, #b08d3c);
    color: white;
}

.party-store {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.party-customer {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: white;
}

.party-icon-large {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.party-box h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.party-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.party-action {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.9;
}

.flow-arrows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.arrow-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.arrow-label.goods {
    background: #fff3e0;
    color: #f39c12;
}

.arrow-label.money {
    background: #e8f5e9;
    color: #27ae60;
}

.arrow-label.invoice {
    background: #e3f2fd;
    color: #2196f3;
}

.arrow-label.service {
    background: #fce4ec;
    color: #e91e63;
}

.customer-section {
    display: flex;
    justify-content: center;
}

.customer-arrows {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* 分析卡片网格 */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.analysis-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
}

.analysis-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--dark-bg);
    font-size: 1.1rem;
}

.analysis-card.risk-price h4 i { color: #f39c12; }
.analysis-card.risk-delivery h4 i { color: #3498db; }
.analysis-card.risk-tax h4 i { color: #27ae60; }

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.mini-table th,
.mini-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.mini-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--dark-bg);
}

.mini-table .highlight {
    color: var(--gold-primary);
    font-weight: 600;
}

.mini-table .low-risk {
    color: #27ae60;
}

.mini-table .high-risk {
    color: #e74c3c;
}

.core-question {
    margin-top: 15px;
    padding: 12px 15px;
    background: #fff3e0;
    border-radius: 8px;
    color: #f39c12;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 合规部分样式 */
.compliance-alert {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border-left: 4px solid #f39c12;
}

.compliance-alert i {
    font-size: 1.5rem;
    color: #f39c12;
}

.compliance-section {
    margin-top: 35px;
}

.compliance-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-primary);
    color: var(--dark-bg);
}

.law-ref {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.law-ref i {
    color: var(--gold-primary);
}

/* 黄金标准定义 */
.gold-standard {
    background: linear-gradient(135deg, #fefefe, #f8f9fa);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.gold-standard h4 {
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.standard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.standard-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.standard-item .label {
    padding: 6px 12px;
    background: var(--gold-gradient);
    color: var(--dark-bg);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.standard-item .value {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* 税收对比表格 */
.tax-comparison {
    margin-bottom: 25px;
}

.tax-comparison h4 {
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.highlight-row {
    background: #fff8e1 !important;
}

.highlight-green {
    color: #27ae60 !important;
    font-weight: 600;
}

.highlight-red {
    color: #e74c3c !important;
    font-weight: 600;
}

/* 税务警告 */
.tax-warning {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    background: #ffebee;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border-left: 4px solid #e74c3c;
}

.tax-warning i {
    font-size: 1.3rem;
    color: #e74c3c;
    margin-top: 2px;
}

/* 税务处理流程图 */
.tax-flow-diagram {
    margin-top: 30px;
}

.tax-flow-diagram h4 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--dark-bg);
}

.tax-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.tax-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    max-width: 500px;
    width: 100%;
    position: relative;
}

.tax-step .step-num {
    width: 35px;
    height: 35px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark-bg);
    flex-shrink: 0;
}

.tax-step .step-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.tax-step .step-content strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-bg);
}

.tax-step .step-content p {
    margin: 0 0 8px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tax-step .step-doc {
    display: inline-block;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 0.85rem;
}

.tax-arrow {
    padding: 10px 0;
    color: var(--gold-primary);
    font-size: 1.2rem;
}

/* 反洗钱卡片网格 */
.aml-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.aml-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
}

.aml-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.aml-header i {
    font-size: 1.3rem;
    color: var(--gold-primary);
}

.aml-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--dark-bg);
}

.aml-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aml-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.aml-list li:last-child {
    border-bottom: none;
}

.aml-list .amount {
    display: inline-block;
    padding: 2px 8px;
    background: #ffebee;
    color: #e74c3c;
    border-radius: 4px;
    font-weight: 600;
}

.aml-list .time-limit {
    display: inline-block;
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-weight: 600;
}

/* 可疑交易表格 */
.suspicious-table {
    margin-top: 30px;
}

.suspicious-table h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.system-action {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #27ae60;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.system-action.highlight-red {
    background: #ffebee;
}

/* 合规功能表格 */
.compliance-features {
    margin-top: 20px;
    overflow-x: auto;
}

.priority-high {
    display: inline-block;
    padding: 4px 10px;
    background: #ffebee;
    color: #e74c3c;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.priority-medium {
    display: inline-block;
    padding: 4px 10px;
    background: #fff3e0;
    color: #f39c12;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Mermaid 图表容器 */
.mermaid-container {
    background: #fafafa;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 25px 0;
    overflow-x: auto;
}

.mermaid-container.large {
    padding: 40px;
}

.mermaid {
    display: flex;
    justify-content: center;
}

/* 方案对比表格 */
.scheme-comparison {
    overflow-x: auto;
}

.comparison-table th {
    text-align: center;
}

.comparison-table td {
    text-align: center;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.scheme-a-header { background: linear-gradient(135deg, #3498db, #2980b9) !important; }
.scheme-b-header { background: linear-gradient(135deg, #f39c12, #d68910) !important; }
.scheme-c-header { background: linear-gradient(135deg, #27ae60, #1e8449) !important; }

/* 推荐方案卡片 */
.recommend-card {
    border: 3px solid var(--gold-primary);
    position: relative;
    overflow: visible;
}

.recommend-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--gold-gradient);
    color: var(--dark-bg);
    border-radius: 20px;
    font-weight: 700;
    box-shadow: var(--shadow-medium);
}

.recommend-desc {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #fff8e1;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--gold-primary);
}

/* 互惠互利机制 */
.mutual-benefit {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.benefit-side {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-soft);
}

.benefit-side h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
}

.benefit-side.company h4 {
    border-color: var(--gold-primary);
    color: #b08d3c;
}

.benefit-side.store h4 {
    border-color: #3498db;
    color: #2980b9;
}

.benefit-side ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-side li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.benefit-side li i {
    color: #27ae60;
}

.benefit-balance {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    padding: 25px;
}

.benefit-balance h4 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.balance-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.balance-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    font-size: 0.85rem;
}

.balance-item .risk-left {
    text-align: right;
    color: #e74c3c;
}

.balance-item .risk-right {
    text-align: left;
    color: #f39c12;
}

.balance-item .control {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--gold-light);
    border-radius: 20px;
    color: var(--dark-bg);
    font-weight: 600;
    white-space: nowrap;
}

.balance-item .control i {
    color: var(--gold-primary);
}

/* 保证金公式 */
.deposit-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 25px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.formula-box {
    padding: 15px 25px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.formula-box.result {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: white;
}

.formula-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.formula-box.result .formula-label {
    color: rgba(255,255,255,0.8);
}

.formula-content {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-bg);
}

.formula-box.result .formula-content {
    color: white;
}

.formula-constraint {
    display: block;
    font-size: 0.8rem;
    margin-top: 8px;
    opacity: 0.9;
}

.formula-arrow {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.formula-factors {
    display: flex;
    gap: 15px;
}

.formula-factors .factor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.formula-factors .factor i {
    font-size: 1.3rem;
    color: var(--gold-primary);
}

.formula-factors .factor span {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* 系数表格 */
.coefficient-table {
    margin-top: 25px;
    overflow-x: auto;
}

/* 佣金机制 */
.commission-table {
    margin: 25px 0;
}

.commission-formula {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.commission-note {
    margin-top: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.commission-note p {
    margin: 0 0 15px 0;
    color: var(--text-dark);
}

/* 方案卡片 */
.scheme-card {
    border-left: 5px solid;
    position: relative;
}

.scheme-card.scheme-a { border-color: #3498db; }
.scheme-card.scheme-b { border-color: #f39c12; }
.scheme-card.scheme-c { border-color: #27ae60; }

.scheme-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.scheme-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.scheme-a .scheme-badge { background: linear-gradient(135deg, #3498db, #2980b9); }
.scheme-b .scheme-badge { background: linear-gradient(135deg, #f39c12, #d68910); }
.scheme-c .scheme-badge { background: linear-gradient(135deg, #27ae60, #1e8449); }

.scheme-tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.recommend-tag {
    background: #e3f2fd;
    color: #1976d2;
}

.balance-tag {
    background: #e8f5e9;
    color: #27ae60;
}

/* 方案流程步骤 */
.scheme-flow {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.flow-step .step-num {
    width: 30px;
    height: 30px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark-bg);
    flex-shrink: 0;
}

.step-parties {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.step-parties .party {
    padding: 6px 12px;
    background: var(--dark-bg);
    color: var(--gold-primary);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-parties .action {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 发票流向 */
.invoice-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: #e3f2fd;
    border-radius: var(--border-radius);
    color: #1976d2;
    font-weight: 600;
    margin: 20px 0;
}

.invoice-flow.two-stage {
    background: #fff3e0;
    color: #f39c12;
}

.deposit-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: #e8f5e9;
    border-radius: var(--border-radius);
    color: #27ae60;
    font-weight: 600;
}

/* 优缺点对比 */
.scheme-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 25px;
}

.pros, .cons {
    padding: 20px;
    border-radius: var(--border-radius);
}

.pros {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.cons {
    background: #ffebee;
    border: 1px solid #ffcdd2;
}

.pros h4, .cons h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pros h4 { color: #27ae60; }
.cons h4 { color: #e74c3c; }

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros li, .cons li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

.cons li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: 700;
}

/* 金价风险表格 */
.price-risk-table {
    margin: 20px 0;
}

.price-risk-table h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.success-row { background: #e8f5e9 !important; }
.warning-row { background: #fff3e0 !important; }
.danger-row { background: #ffebee !important; }

/* 决策矩阵 */
.decision-matrix {
    overflow-x: auto;
    margin: 20px 0;
}

.stars-5 { color: var(--gold-primary); }
.stars-4 { color: #27ae60; }
.stars-3 { color: #f39c12; }
.stars-2 { color: #e74c3c; }

/* 场景卡片 */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.scenario-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
}

.scenario-card.hybrid {
    grid-column: span 2;
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.scenario-header i {
    font-size: 1.3rem;
    color: var(--gold-primary);
}

.scenario-header h4 {
    margin: 0;
    color: var(--dark-bg);
}

.scenario-recommend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.scenario-recommend .recommend-label {
    padding: 4px 10px;
    background: var(--gold-gradient);
    color: var(--dark-bg);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

.scenario-recommend .recommend-scheme {
    font-weight: 600;
    color: var(--dark-bg);
}

.scenario-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scenario-card li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.scenario-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
}

/* 混合模式表格 */
.hybrid-table {
    margin: 15px 0;
}

.hybrid-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.hybrid-row .level {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.level-a { background: linear-gradient(135deg, #27ae60, #1e8449); }
.level-b { background: linear-gradient(135deg, #3498db, #2980b9); }
.level-c { background: linear-gradient(135deg, #f39c12, #d68910); }

.hybrid-row .desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
}

.hybrid-row .options {
    font-weight: 600;
    color: var(--dark-bg);
    font-size: 0.9rem;
}

.hybrid-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 15px;
    background: #e3f2fd;
    border-radius: 8px;
    color: #1976d2;
    font-size: 0.9rem;
}

/* 文档列表 */
.document-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.doc-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.doc-item:hover {
    background: var(--gold-light);
}

.doc-item .doc-num {
    width: 35px;
    height: 35px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark-bg);
    flex-shrink: 0;
}

.doc-item .doc-content strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-bg);
}

.doc-item .doc-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 文档链接样式 */
a.doc-item.doc-link {
    text-decoration: none;
    cursor: pointer;
    align-items: center;
    border: 2px solid transparent;
}

a.doc-item.doc-link:hover {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border-color: var(--gold-primary);
    transform: translateX(5px);
}

a.doc-item.doc-link .doc-content {
    flex: 1;
}

a.doc-item.doc-link .doc-arrow {
    color: var(--gold-primary);
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

a.doc-item.doc-link:hover .doc-arrow {
    opacity: 1;
}

/* 代销业务响应式 */
@media (max-width: 992px) {
    .mutual-benefit {
        grid-template-columns: 1fr;
    }

    .scenario-card.hybrid {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .consignment-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .consignment-nav-item {
        justify-content: center;
    }

    .consignment-nav-card {
        position: static;
    }

    .party-flow {
        flex-direction: column;
    }

    .flow-arrows {
        transform: rotate(90deg);
        padding: 10px;
    }

    .customer-arrows {
        flex-direction: column;
        align-items: center;
    }

    .scheme-pros-cons {
        grid-template-columns: 1fr;
    }

    .deposit-formula {
        flex-direction: column;
    }

    .formula-factors {
        flex-direction: column;
    }

    .balance-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .balance-item .risk-left,
    .balance-item .risk-right {
        text-align: center;
    }
}
