:root {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fdba74;
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --text-color: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #475569;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html{font-size:16px;}
@media (max-width: 1300px) {html { font-size: 14px; }}
@media (max-width: 768px) {html { font-size: 13px; }}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: var(--bg-color); color: var(--text-color); line-height: 1.6; min-height: 100vh; font-size: 1rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }
.header { background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); padding: 0.5rem 0; position: sticky; top: 0; z-index: 100; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.3rem 1rem; border-radius: 0.5rem; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; }
.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: var(--bg-card); color: var(--text-color); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--border-color); }
.hero { padding: 80px 0; text-align: center; background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%); }
.hero-title { font-size: 3rem; font-weight: 800; margin-bottom: 20px; background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px; }
.hero-stats { display: flex; justify-content: center; gap: 60px; margin-bottom: 40px; }
.stat-item { text-align: center; }
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); }
.stat-label { color: var(--text-secondary); margin-top: 4px; }
.test-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding: 40px 0; }
.test-card { background: var(--bg-secondary); border-radius: 16px; padding: 24px; border: 1px solid var(--border-color); transition: all 0.3s; cursor: pointer; }
.test-card:hover { transform: translateY(-4px); border-color: var(--primary-color); box-shadow: 0 10px 40px rgba(249, 115, 22, 0.15); }
.test-card-icon { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 16px; }
.test-card-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.test-card-subtitle { color: var(--text-secondary); margin-bottom: 12px; }
.test-card-desc { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.test-card-meta { display: flex; gap: 16px; color: var(--text-secondary); }
.test-card-meta span { display: flex; align-items: center; gap: 4px; }
.test-container { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.progress-container { margin-bottom: 1.5rem; }
.progress-bar { height: 8px; background: var(--bg-card); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); border-radius: 4px; transition: width 0.3s ease; }
.progress-text { color: var(--text-secondary); text-align: center; }
.question-card { background: var(--bg-secondary); border-radius: 16px; padding: 32px; border: 1px solid var(--border-color); }
.question-header { margin-bottom: 1.5rem; }
.question-number { color: var(--primary-color); font-weight: 600; }
.question-text { font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; line-height: 1.6; }
.question-hint { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.7; padding: 0.8rem 1rem; background:rgb(107 107 96 / 23%); border-radius: 0.6rem; border-left: 3px solid var(--primary-color); opacity: 0.85; }
.question-options { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.option-btn { display: flex; align-items: center; padding: 1rem; background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 0.6rem; cursor: pointer; transition: all 0.2s; text-align: left; color: var(--text-color); position: relative; overflow: hidden; }
.option-btn::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%; background: rgba(249, 115, 22, 0.25); z-index: 0; transform-origin: left center; }
.option-btn.animating::before { animation: optionFill 0.5s ease-out forwards; }

.option-btn.selected { border-color: var(--primary-color); background: rgba(249, 115, 22, 0.2); box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.3); }
.option-btn.selected::before { width: 100%; }
@keyframes optionFill { 0% { width: 0; left: 0; } 100% { width: 100%; left: 0; } }
.option-btn > * { position: relative; z-index: 1; }
.option-btn.scale-7, .option-btn.scale-5 { justify-content: center; text-align: center; }
.option-btn.options-5 { display: flex; align-items: center;}
.option-letter { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; border-radius: 8px; font-weight: 700; font-size: 1rem; margin-right: 16px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3); }

.option-btn.selected .option-letter { background: linear-gradient(135deg, #fff, #f0f0f0); color: var(--primary-color); }
.option-label { font-weight: 500; font-size: 1.125rem; line-height: 1.5; }
.question-nav { display: flex; justify-content: space-between; gap: 16px; }
.nav-btn { flex: 1; padding: 0.8rem 1.2rem; border-radius: 0.5rem; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; }
.prev-btn { background: var(--bg-card); color: var(--text-color); border: 1px solid var(--border-color); }
.prev-btn:hover { background: var(--border-color); }
.next-btn { background: var(--primary-color); color: white; }
.next-btn:hover { background: var(--primary-dark); }
.next-btn:disabled, .next-btn.disabled { background: var(--bg-card); color: var(--text-secondary); cursor: not-allowed; }
.result-container { max-width: 800px; margin: 0 auto; padding: 1rem 0.5rem; }
.result-header { text-align: center; margin-bottom: 40px; }
.result-emoji { font-size: 4rem; margin-bottom: 16px; }
.result-level { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.result-title { color: var(--text-secondary); }
.result-score { margin: 30px 0; text-align: center; }
.score-label { color: var(--text-secondary); margin-bottom: 8px; }
.score-value { font-size: 3rem; font-weight: 800; color: var(--primary-color); }
.score-unit { color: var(--text-secondary); }
.result-section { background: var(--bg-secondary); border-radius: 16px; padding: 24px; margin-bottom: 24px; border: 1px solid var(--border-color); }
.result-section-title { font-weight: 700; color: var(--primary-color); }
.result-section-content { color: var(--text-secondary); line-height: 1.8; }
.dimension-bars { display: flex; flex-direction: column; gap: 16px; }
.dimension-bar { display: flex; flex-direction: column; gap: 8px; }
.dimension-bar-header { display: flex; justify-content: space-between; align-items: center; }
.dimension-bar-name { font-weight: 600; }
.dimension-bar-value { color: var(--primary-color); font-weight: 600; }
.dimension-bar-track { height: 8px; background: var(--bg-card); border-radius: 4px; overflow: hidden; }
.dimension-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.tips-list { list-style: none; }
.tips-list li { padding: 12px 0; border-bottom: 1px solid var(--border-color); display: flex; align-items: flex-start; gap: 12px; }
.tips-list li:last-child { border-bottom: none; }
.tips-list li::before { content: '💡'; flex-shrink: 0; }
.share-section { text-align: center; padding: 40px 0; }
.share-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.share-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.share-btn { display: flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
.share-btn-wechat { background: #07c160; color: white; }
.share-btn-weibo { background: #e6162d; color: white; }
.share-btn-copy { background: var(--bg-card); color: var(--text-color); border: 1px solid var(--border-color); }
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 2rem 0; margin-top: 0.5rem; text-align: center; color: var(--text-secondary); }
@media (max-width: 768px) {
    .header-content { gap: 8px; }
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 30px; flex-wrap: wrap; }
    .stat-value { font-size: 2rem; }
    .question-card { padding: 16px; }
    .question-text { font-size: 1.25rem; }
    .result-level { font-size: 1.5rem; }
    .score-value { font-size: 2.5rem; }
    .option-label { font-size: 1rem; }
    .option-letter { width: 28px; height: 28px; font-size: 0.875rem; margin-right: 12px; }
    .intro-card { padding: 24px 20px; }
    .intro-title { font-size: 1.5rem; }
    .intro-desc { font-size: 0.875rem; margin-bottom: 20px; }
    .intro-notice { padding: 14px; margin-bottom: 20px; }
    .intro-notice h4 { font-size: 1.1rem; }
    .intro-notice li { font-size: 1rem; }
    .intro-countdown { font-size: 1.125rem; }
    .intro-countdown span { font-size: 2rem; }
    .intro-btn { padding: 12px 32px; font-size: 1rem; }
    .timer-display { font-size: 0.8125rem; padding: 4px 8px; }
    .nav-right { gap: 8px; }
    .mode-switch { display: none; }
}
