/* ============================================
   技术文档页面专用样式 - dict.css
   基于all.css的根字体10px，放大1.6倍
   ============================================ */

/* CSS变量定义 */
:root { --bg-primary: #0f0f1a; --bg-secondary: #1a1a2e; --bg-card: rgba(255,255,255,0.03); --text-primary: #fff; --text-secondary: rgba(255,255,255,0.7); --text-muted: rgba(255,255,255,0.5); --accent-purple: #a5b4fc; --accent-pink: #ec4899; --accent-blue: #60a5fa; --accent-green: #4ade80; --accent-yellow: #fbbf24; --border-color: rgba(255,255,255,0.1); --gradient-purple: linear-gradient(135deg, #667eea, #764ba2); }

/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.8; min-height: 100vh; }

/* 英雄区域 */
.hero { background: linear-gradient(160deg, #0f0f1a 0%, #1a1a2e 40%, #16213e 70%, #1a1a2e 100%); padding: 8rem 2rem 6rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at 50% 0%, rgba(102,126,234,0.15) 0%, transparent 60%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 90rem; margin: 0 auto; }
.hero-badge { display: inline-block; padding: 0.5rem 1.5rem; background: rgba(102,126,234,0.2); border: 1px solid rgba(102,126,234,0.4); border-radius: 2rem; color: var(--accent-purple); margin-bottom: 2rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.188rem); font-weight: 800; margin-bottom: 2rem; background: linear-gradient(135deg, #fff, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.1rem; color: var(--text-secondary); max-width: 70rem; margin: 0 auto 3rem; }
.hero-actions { display: flex; gap: 1.625rem; justify-content: center; flex-wrap: wrap; }

/* 按钮 */
.btn { font-size: 1.25rem;}
.btn-primary { background: var(--gradient-purple); color: #fff; box-shadow: 0 0.375rem 2rem rgba(102,126,234,0.4); }
.btn-primary:hover { transform: translateY(-0.188rem); box-shadow: 0 0.625rem 3rem rgba(102,126,234,0.5); color: #fff;}
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); color: var(--text-primary);}

/* 导航容器 */
.nav-container { position: sticky; top: 0; z-index: 100; background: rgba(15,15,26,0.95); backdrop-filter: blur(1.25rem); border-bottom: 1px solid var(--border-color); padding: 1.188rem 2rem; }
.nav-inner { max-width: 120rem; margin: 0 auto; display: flex; align-items: center; gap: 1.625rem; }
.nav-title { font-weight: 700; font-size: 1.625rem; color: var(--accent-purple); white-space: nowrap; flex-shrink: 0; }
.nav-links { display: flex; gap: 0.625rem; overflow-x: auto; flex: 1; scrollbar-width: none; padding: 0.375rem 0; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link { padding: 0.625rem 1.188rem; background: rgba(255,255,255,0.05); border-radius: 1.625rem; font-size: 1.188rem; color: var(--text-secondary); text-decoration: none; white-space: nowrap; transition: all 0.2s; flex-shrink: 0; }
.nav-link:hover { background: rgba(102,126,234,0.2); color: var(--accent-purple); }

/* 主容器 */
.container { max-width: 95rem; margin: 0 auto; padding: 6rem 2rem; }

/* 区块 */
.section { margin-bottom: 8rem; scroll-margin-top: 8rem; }
.section-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.375rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.section-icon { width: 5rem; height: 5rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; flex-shrink: 0; }
.section-title { font-size: 1.812rem; font-weight: 700; }

/* 卡片 */
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 2rem; padding: 2.812rem; margin-bottom: 2rem; font-weight: 300;}
.card h3 { font-size: 1.562rem; margin-bottom: 1.5rem; color: var(--accent-purple); display: flex; align-items: center; gap: 1rem; }
.card h3::before { content: ''; width: 0.375rem; height: 2rem; background: var(--accent-purple); border-radius: 0.2rem; }
.card p { color: var(--text-secondary); margin-bottom: 1.3rem; }
.card p:last-child { margin-bottom: 0; }

/* 高亮和代码 */
.highlight { color: var(--accent-pink); font-weight: 600; }
.code { font-family: "Fira Code", "Consolas", monospace; background: rgba(102,126,234,0.15); padding: 0.188rem 0.812rem; border-radius: 0.375rem; font-size: 0.9em; }

/* 公式框 */
.formula-box { background: rgba(102,126,234,0.08); border: 1px solid rgba(102,126,234,0.25); border-radius: 1.188rem; padding: 2.375rem; margin: 2rem 0; font-family: "Fira Code", monospace; text-align: center; overflow-x: auto; }
.formula { font-size: 1.125rem; color: var(--accent-purple); white-space: nowrap; }
.formula-small { font-size: 1rem; color: var(--text-secondary); margin-top: 1rem; }

/* 技术规格 */
.tech-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr)); gap: 1.625rem; margin: 2rem 0; }
.spec-item { background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); border-radius: 1.188rem; padding: 1.625rem; text-align: center; }
.spec-item .value { font-size: 1.812rem; font-weight: 700; color: var(--accent-purple); }
.spec-item .label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.375rem; }

/* 维度网格 */
.dimension-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(21.25rem, 1fr)); gap: 1.625rem; margin: 2.375rem 0; }
.dimension-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); border-radius: 1.625rem; padding: 2rem; }
.dimension-card h4 { font-size: 1.125rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.812rem; }
.dimension-card .score { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.812rem; }
.dimension-card .desc { font-size: 0.9rem; color: var(--text-muted); }
.progress-demo { height: 1rem; background: rgba(255,255,255,0.1); border-radius: 0.5rem; overflow: hidden; margin: 1.188rem 0; }
.progress-fill { height: 100%; border-radius: 0.5rem; transition: width 0.5s ease; }

/* 示例框 */
.example-box { background: rgba(236,72,153,0.08); border-left: 0.375rem solid var(--accent-pink); padding: 2rem; margin: 2rem 0; border-radius: 0 1.188rem 1.188rem 0; }
.example-box h4 { color: var(--accent-pink); margin-bottom: 1.188rem; }

/* 趣味提示 */
.fun-fact { background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(245,158,11,0.05)); border-radius: 1rem; padding: 1.5rem; margin: 2rem 0 0 0; border: 1px solid rgba(251,191,36,0.2); }
.fun-fact p { color: var(--text-secondary); font-size: 1.125rem; margin: 0; }
.fun-fact strong { color: var(--accent-yellow); }

/* 认知功能流 */
.cognitive-flow { display: flex; flex-wrap: wrap; gap: 1.188rem; justify-content: center; margin: 2.375rem 0; }
.cognitive-item { padding: 1.188rem 2rem; border-radius: 1.188rem; text-align: center; min-width: 12rem; }
.cognitive-item.dominant { background: linear-gradient(135deg, rgba(251,191,36,0.3), rgba(245,158,11,0.2)); border: 1px solid rgba(251,191,36,0.5); }
.cognitive-item.auxiliary { background: linear-gradient(135deg, rgba(96,165,250,0.3), rgba(59,130,246,0.2)); border: 1px solid rgba(96,165,250,0.5); }
.cognitive-item.tertiary { background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); }
.cognitive-item.inferior { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); }
.cognitive-item .rank { color: var(--text-muted); margin-bottom: 0.375rem; }
.cognitive-item .code { font-size: 1.188rem; font-weight: 700; }
.cognitive-item .name { font-size: 0.85rem; color: var(--text-secondary); }

/* 匹配演示 */
.match-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.625rem; margin: 2.375rem 0; }
.match-card { text-align: center; padding: 2rem; border-radius: 1.625rem; }
.match-card.best { background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(244,114,182,0.1)); border: 1px solid rgba(236,72,153,0.4); }
.match-card.good { background: linear-gradient(135deg, rgba(74,222,128,0.2), rgba(34,197,94,0.1)); border: 1px solid rgba(74,222,128,0.4); }
.match-card.challenge { background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(245,158,11,0.1)); border: 1px solid rgba(251,191,36,0.4); }
.match-card .label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.812rem; }
.match-card .types { font-size: 1.5rem; font-weight: 700; }

/* 统计演示 */
.stats-demo { display: flex; align-items: flex-end; justify-content: center; gap: 1.625rem; height: 22rem; padding: 2.375rem; background: rgba(255,255,255,0.02); border-radius: 1.625rem; margin: 2.375rem 0; border: 1px solid var(--border-color); }
.stat-bar { display: flex; flex-direction: column; align-items: center; gap: 1rem; flex: 1; max-width: 6rem; }
.stat-fill { width: 4rem; min-height: 1rem; border-radius: 0.625rem 0.625rem 0 0; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-align: center; line-height: 1.4; }

/* 返回按钮 */
.back-btn { display: inline-flex; align-items: center; gap: 0.812rem; padding: 1rem 2rem; background: rgba(102,126,234,0.15); border: 1px solid rgba(102,126,234,0.3); border-radius: 1rem; color: var(--accent-purple); font-size: 1.1rem; font-weight: 600; text-decoration: none; transition: all 0.2s; margin-top: 2rem; }
.back-btn:hover { background: rgba(102,126,234,0.25); transform: translateX(-0.375rem); }

/* 分享区域 */
.share-section { text-align: center; padding: 6rem 2rem; background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1)); border-radius: 2.375rem; margin-top: 4rem; }
.share-section h2 { font-size: 1.812rem; margin-bottom: 1.625rem; }
.share-section p { color: var(--text-secondary); margin-bottom: 2.375rem; }
.share-buttons { display: flex; gap: 1.188rem; justify-content: center; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 0.812rem; padding: 1.188rem 2.375rem; border-radius: 1rem; font-size: 1.5rem; font-weight: 600; text-decoration: none; transition: all 0.3s; cursor: pointer; border: none; }
.share-btn.copy { background: rgba(255,255,255,0.1); color: var(--text-primary); border: 1px solid var(--border-color); }
.share-btn:hover { transform: translateY(-0.188rem); }

/* Toast提示 */
.toast { position: fixed; bottom: 10rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.9); color: #fff; padding: 1.375rem 2.812rem; border-radius: 1rem; font-size: 1.5rem; z-index: 1000; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.toast.show { opacity: 1; }

/* 页脚 */
.footer { text-align: center; padding: 4rem 2rem; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; }
.footer a { color: var(--accent-purple); text-decoration: none; }

/* 算法步骤 */
.algorithm-step { display: flex; gap: 1.5rem; margin: 1.5rem 0; padding: 1.5rem; background: rgba(255,255,255,0.02); border-radius: 1.188rem; }
.step-number { width: 3.188rem; height: 3.188rem; background: var(--gradient-purple); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 1.3rem; }
.step-content h4 { margin-bottom: 0.625rem; font-size: 1rem; }
.step-content p { color: var(--text-secondary); margin: 0; }

/* 数据表格 */
.data-table { width: 100%; border-collapse: collapse;}
.data-table th, .data-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.data-table th { background: rgba(102,126,234,0.1); color: var(--accent-purple); font-weight: 600; }
.data-table tr:hover { background: rgba(255,255,255,0.02); }

/* 浮动导航 */
.float-nav { position: fixed; right: 1.6rem; bottom: 8rem; display: flex; flex-direction: column; gap: 0.812rem; z-index: 999; }
.float-nav-btn { width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); font-size: 1.625rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.float-nav-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); color: #fff; }
.float-nav-btn svg { width: 1.812rem; height: 1.812rem; }

/* 移动端响应式 */
@media (max-width: 768px) {
.hero { padding: 6rem 1.625rem 4rem; }
.hero h1 { font-size: 1.625rem; }
.hero p { font-size: 1.125rem; }
.container { padding: 1.625rem; }
.section { margin-bottom: 5rem; }
.section-title { font-size: 1.375rem; }
.card { padding: 2rem; }
.card h3 { font-size: 1.25rem; }
.card p { font-size: 1rem; }
.match-demo { grid-template-columns: 1fr; }
.nav-links { display: none; }
.stats-demo { height: 15rem; padding: 1.5rem; gap: 0.75rem; }
.stat-bar { max-width: 4rem; }
.stat-fill { width: 2.5rem; }
.stat-label { font-size: 0.625rem; }
.data-table { font-size: 1rem; }
.data-table th, .data-table td { padding: 1rem 1.188rem; }
.formula { font-size: 1rem; }
.formula-small { font-size: 0.875rem; }
.spec-item .value { font-size: 1.5rem; }
.spec-item .label { font-size: 0.938rem; }
.dimension-card .desc { font-size: 0.938rem; }
.algorithm-step { gap: 1rem; align-items: center; padding: 1.25rem 0.625rem;}
.step-content h4 { font-size: 1.062rem; }
.step-content p { font-size: 0.938rem; }
.formula-box{padding: 0.625rem;}
.fun-fact p { font-size: 1rem; }
.share-btn { font-size: 1.125rem; padding: 1rem; }
.toast { font-size: 1.125rem; padding: 1.125rem 2rem; }
.footer { font-size: 0.938rem; }
}
@media (max-width: 480px) {
.hero { padding: 4rem 1.25rem 3rem; }
.hero h1 { font-size: 1.375rem; }
.hero p { font-size: 1rem; }
.hero-badge { font-size: 1.125rem; padding: 0.625rem 1.5rem; }
.section-title { font-size: 1.188rem; }
.card { padding: 1.5rem; }
.card h3 { font-size: 1.125rem; }
.card p { font-size: 0.938rem; }
.data-table { font-size: 0.875rem; }
.data-table th, .data-table td { padding: 0.75rem 0.875rem; }
.nav-title { font-size: 1.25rem; }
.btn { font-size: 1rem; }
.share-section { padding: 4rem 1.25rem; }
.share-section h2 { font-size: 1.375rem; }
}
