/* quiz.html 抽出的样式 — 2026-09-26 拆分，便于缓存 */
      .site-nav {
        position: sticky; top: 0; z-index: 200;
        background: rgba(17,16,8,0.92);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 0 24px; height: 56px;
        display: flex; align-items: center; justify-content: space-between;
        font-family: -apple-system, "PingFang SC", sans-serif;
      }
      .site-nav-logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
      .site-nav-logo img { width:32px; height:32px; border-radius:6px; object-fit:cover; }
      .site-nav-logo span { font-size:15px; font-weight:700; color:#e8f5e8; letter-spacing:1px; }
      .site-nav-links { display:flex; gap:4px; }
      .site-nav-links a { text-decoration:none; color:rgba(200,230,200,0.5); font-size:14px; padding:6px 12px; border-radius:8px; transition:all 0.2s; }
      .site-nav-links a:hover, .site-nav-links a.active { color:#e8f5e8; background:rgba(255,255,255,0.08); }

        :root {
            --primary: #2D5A27;
            --secondary: #8B4513;
            --accent: #E67E22;
            --bg: #FEFDF8;
            --card: #FFFFFF;
            --text: #1A1A1A;
            --muted: #6B7C6B;
            --shadow: 0 4px 20px rgba(45, 90, 39, 0.1);
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Noto Sans SC', sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            line-height: 1.6;
        }
        .container { max-width: 800px; margin: 0 auto; padding: 20px; }
        header { text-align: center; padding: 40px 20px 20px; }
        .logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
        .logo-icon { font-size: 2.5rem; }
        .logo h1 { font-family: 'Noto Serif SC', serif; font-size: 2rem; color: var(--primary); }
        .tagline { color: var(--muted); font-size: 0.95rem; }
        .hero { text-align: center; padding: 60px 20px; position: relative; overflow: hidden; }
        .hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at center, rgba(45, 90, 39, 0.05) 0%, transparent 70%); pointer-events: none; }
        .hero h2 { font-family: 'Noto Serif SC', serif; font-size: 1.8rem; color: var(--primary); margin-bottom: 16px; }
        .hero p { color: var(--muted); max-width: 500px; margin: 0 auto 32px; font-size: 1.05rem; }
        .hero-birds { font-size: 3rem; margin-bottom: 24px; animation: float 3s ease-in-out infinite; }
        @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
        .btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px; font-size: 1.1rem; font-weight: 500; color: white; background: linear-gradient(135deg, var(--primary), #3d7a37); border: none; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; box-shadow: var(--shadow); }
        .btn:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(45, 90, 39, 0.2); }
        .btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
        .btn-secondary:hover { background: var(--primary); color: white; }
        .stats { display: flex; justify-content: center; gap: 40px; padding: 30px; margin: 40px 0; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
        .stat { text-align: center; }
        .stat-number { font-family: 'Noto Serif SC', serif; font-size: 2rem; color: var(--primary); font-weight: 700; }
        .stat-label { color: var(--muted); font-size: 0.9rem; }
        .quiz-section, .result-section { display: none; padding: 20px; }
        .quiz-section.active, .result-section.active { display: block; animation: fadeIn 0.4s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        .progress-container { margin-bottom: 30px; }
        .progress-bar { height: 8px; background: #e8efe8; border-radius: 4px; overflow: hidden; }
        .progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.4s ease; }
        .progress-text { text-align: center; margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
        .question-card { background: var(--card); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); margin-bottom: 24px; }
        .question-number { display: inline-block; background: var(--primary); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; margin-bottom: 16px; }
        .question-type { display: inline-block; background: var(--accent); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; margin-left: 8px; }
        .question-title { font-family: 'Noto Serif SC', serif; font-size: 1.4rem; color: var(--text); margin-bottom: 24px; white-space: pre-line; }
        .options { display: flex; flex-direction: column; gap: 12px; }
        .option { padding: 16px 20px; border: 2px solid #e8efe8; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 12px; }
        .option:hover { border-color: var(--primary); background: rgba(45, 90, 39, 0.03); }
        .option.selected { border-color: var(--primary); background: rgba(45, 90, 39, 0.08); }
        .option-icon { font-size: 1.5rem; flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
        .option-indicator { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c0cfc0; background: #fff; transition: all 0.25s ease; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .option.selected .option-indicator { border-color: var(--primary); background: var(--primary); }
        .option.selected .option-indicator::after { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
        .option-text { font-size: 1rem; color: var(--text); }
        .nav-buttons { display: flex; justify-content: space-between; gap: 16px; }
        .nav-buttons .btn { padding: 14px 28px; font-size: 1rem; }
        .result-card { background: var(--card); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); margin-bottom: 30px; text-align: center; }
        .bird-icon-large { margin-bottom: 20px; animation: float 3s ease-in-out infinite; display: flex; align-items: center; justify-content: center; }
        .bird-name { font-family: 'Noto Serif SC', serif; font-size: 2.5rem; color: var(--primary); margin-bottom: 8px; }
        .bird-name-en { color: var(--muted); font-size: 1.1rem; margin-bottom: 20px; }
        .match-badge { display: inline-block; background: linear-gradient(135deg, var(--accent), #f39c12); color: white; padding: 8px 24px; border-radius: 30px; font-size: 1.1rem; font-weight: 600; margin-bottom: 30px; }
        .bird-description { font-size: 1.1rem; color: var(--text); line-height: 1.8; margin-bottom: 30px; padding: 20px; background: rgba(45, 90, 39, 0.03); border-radius: 12px; }
        .dimensions-title { font-family: 'Noto Serif SC', serif; font-size: 1.3rem; color: var(--primary); margin-bottom: 20px; text-align: center; }
        .dimensions-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 30px; }
        .dimension-item { background: #f8faf8; padding: 16px; border-radius: 12px; }
        .dimension-name { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
        .dimension-bar { height: 8px; background: #e8efe8; border-radius: 4px; overflow: hidden; }
        .dimension-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; transition: width 0.8s ease; }
        .dimension-score { text-align: right; font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-top: 4px; }
        .result-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
        .birds-table-section { background: var(--card); border-radius: 20px; padding: 32px; margin: 40px 0; box-shadow: var(--shadow); }
        .birds-table-section h3 { font-family: 'Noto Serif SC', serif; font-size: 1.3rem; color: var(--primary); margin-bottom: 20px; text-align: center; }
        .birds-table { width: 100%; overflow-x: auto; }
        .birds-table table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
        .birds-table th, .birds-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid #e8efe8; }
        .birds-table th { background: var(--primary); color: white; font-weight: 600; }
        .birds-table tr:hover { background: rgba(45, 90, 39, 0.03); }
        .bird-cell { display: flex; align-items: center; gap: 6px; justify-content: flex-start; }
        .score-bar { display: inline-block; width: 20px; height: 8px; border-radius: 4px; margin: 0 1px; }
        .score-high { background: #2D5A27; }
        .score-mid { background: #8B9D8B; }
        .score-low { background: #E67E22; }
        .about-section { background: var(--card); border-radius: 20px; padding: 32px; margin-top: 40px; box-shadow: var(--shadow); }
        .about-section h3 { font-family: 'Noto Serif SC', serif; font-size: 1.3rem; color: var(--primary); margin-bottom: 16px; }
        .about-section p { color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
        .bird-photo-container { width: 100%; max-width: 340px; margin: 0 auto 20px; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.12); background: #f5f8f2; }
        .bird-photo { width: 100%; height: 240px; object-fit: cover; display: block; object-position: center top; }
        .bird-photo-credit { font-size: 0.72rem; color: var(--muted); margin-top: 8px; text-align: center; padding: 0 12px 12px; line-height: 1.5; }
        .disclaimer { background: #fff9e6; border-left: 4px solid var(--accent); padding: 16px; border-radius: 0 8px 8px 0; font-size: 0.9rem; color: #8b6914; margin-top: 20px; }
        footer { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 0.9rem; }
        .brand-bar { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
        .brand-bar a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 0.8rem; padding: 4px 10px; border-radius: 20px; background: rgba(45, 90, 39, 0.05); transition: all 0.3s; }
        .brand-bar a:hover { background: rgba(45, 90, 39, 0.12); color: var(--primary); }
        .brand-bar a svg { width: 16px; height: 16px; }
        .brand-handle { font-size: 0.95rem; color: var(--primary); font-weight: 600; }
        .share-section { background: var(--card); border-radius: 20px; padding: 28px; margin: 24px 0; box-shadow: var(--shadow); text-align: center; }
        .share-section h3 { font-family: 'Noto Serif SC', serif; font-size: 1.2rem; color: var(--primary); margin-bottom: 16px; }
        .share-preview { max-width: 300px; margin: 0 auto 20px; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.1); background: #f5f8f2; }
        .share-preview canvas { width: 100%; height: auto; display: block; }
        .share-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
        .share-actions .btn { padding: 12px 24px; font-size: 0.95rem; }
        #share-link-hint { font-size: 0.8rem; color: var(--muted); margin-top: 10px; text-align: center; display: none; padding: 8px 16px; background: rgba(45,90,39,0.06); border-radius: 20px; line-height: 1.5; }
        .footer-brand { margin-top: 12px; }
        .footer-brand a { color: var(--primary); text-decoration: none; font-weight: 600; }
        .footer-brand a:hover { text-decoration: underline; }
        .footer-social { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
        .footer-social a { color: var(--muted); transition: color 0.3s; }
        .footer-social a:hover { color: var(--primary); }
        .footer-social a svg { width: 20px; height: 20px; }
        .icp-link { margin-top: 8px; font-size: 0.78rem; }
        .icp-link a { color: var(--muted); text-decoration: none; }
        .icp-link a:hover { color: var(--primary); text-decoration: underline; }
        .fact-box { background: rgba(45, 90, 39, 0.04); border-left: 3px solid var(--primary); padding: 16px 20px; border-radius: 0 12px 12px 0; margin-top: 16px; font-size: 0.95rem; color: var(--text); line-height: 1.8; }
        .fact-label { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 6px; letter-spacing: 1px; }

        .hidden { display: none !important; }
        .stats-panel { background: var(--card); border-radius: 20px; padding: 28px; margin: 24px 0; box-shadow: var(--shadow); }
        .stats-panel h3 { font-family: 'Noto Serif SC', serif; font-size: 1.2rem; color: var(--primary); margin-bottom: 16px; text-align: center; }
        .stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
        .stats-item { background: rgba(45, 90, 39, 0.04); border-radius: 12px; padding: 14px; text-align: center; }
        .stats-item-number { font-family: 'Noto Serif SC', serif; font-size: 1.6rem; color: var(--primary); font-weight: 700; }
        .stats-item-label { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
        .history-list { max-height: 300px; overflow-y: auto; }
        .history-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(45, 90, 39, 0.03); margin-bottom: 8px; font-size: 0.9rem; }
        .history-item-bird { font-weight: 600; color: var(--primary); }
        .history-item-match { color: var(--accent); font-weight: 500; font-size: 0.85rem; }
        .history-item-time { color: var(--muted); font-size: 0.8rem; margin-left: auto; }
        .stats-empty { text-align: center; color: var(--muted); padding: 24px; font-size: 0.95rem; }
        .stats-ranking { margin-top: 16px; }
        .ranking-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
        .ranking-label { width: 100px; font-size: 0.85rem; color: var(--text); text-align: right; flex-shrink: 0; }
        .ranking-track { flex: 1; height: 20px; background: #e8efe8; border-radius: 10px; overflow: hidden; position: relative; }
        .ranking-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #7CB342); border-radius: 10px; transition: width 0.6s ease; min-width: 2px; }
        .ranking-count { width: 30px; font-size: 0.8rem; color: var(--muted); text-align: left; flex-shrink: 0; }
        @media (max-width: 600px) {
            .logo h1 { font-size: 1.5rem; }
            .hero h2 { font-size: 1.4rem; }
            .stats { flex-direction: column; gap: 20px; }
            .bird-name { font-size: 2rem; }
            .bird-icon-large svg { width: 150px; height: 150px; }
            .question-card, .result-card { padding: 24px; }
            .dimensions-chart { grid-template-columns: 1fr; }
        }


/* 结果页下载转化条 — 转化入口，测完就能装 App */
.download-cta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  margin: 18px auto 8px; padding: 16px 18px; max-width: 560px;
  background: linear-gradient(135deg, rgba(45,90,39,0.18), rgba(139,69,19,0.12));
  border: 1px solid rgba(45,90,39,0.35); border-radius: 14px;
}
.download-cta-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; }
.download-cta-text strong { color: var(--primary); font-size: 1.02rem; }
.download-cta-text span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.download-cta-btn {
  flex: 0 0 auto; text-decoration: none; white-space: nowrap;
  background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
}
.download-cta-btn:hover { filter: brightness(1.08); }
