/* style-wiki.css - Ultimate Version (Full Features + Branding) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&family=JetBrains+Mono:wght@500&display=swap');
@import url('https://cdn.jsdelivr.net/npm/remixicon@3.5.0/fonts/remixicon.css');

:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --color-bg: #FAFAFA;
    --color-card: #FFFFFF;
    --color-text-main: #111827;
    --color-text-sub: #6B7280;
    --color-accent: #2563EB;
    --color-border: #E5E7EB;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background-color: var(--color-bg);
    font-family: var(--font-sans);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }

.fade-in { animation: fadeIn 0.6s ease-out forwards; }

/* --- Brand & Navigation --- */
.nav-bar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-brand {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
    color: #111;
    text-decoration: none;
}
.nav-brand span.highlight { 
    color: var(--color-accent); 
    font-family: var(--font-mono);
    background: #EFF6FF;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 1.1rem;
}

/* --- Homepage Components --- */
.hero-section { max-width: 800px; margin: 60px auto 40px; text-align: center; padding: 0 20px; }
.hero-title { font-family: var(--font-serif); font-size: 2.8rem; margin-bottom: 15px; color: #000; line-height: 1.15; letter-spacing: -1px; }

.search-box { position: relative; max-width: 500px; margin: 30px auto; border-bottom: 2px solid #E5E7EB; transition: border-color 0.3s; }
.search-box:focus-within { border-color: var(--color-accent); }
.search-box input { width: 100%; border: none; background: transparent; padding: 15px 0; font-size: 1.1rem; outline: none; }

.filter-tags { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.filter-tag { font-size: 0.85rem; color: var(--color-text-sub); cursor: pointer; padding-bottom: 2px; border-bottom: 2px solid transparent; transition: all 0.2s; }
.filter-tag:hover { color: #111; }
.filter-tag.active { color: var(--color-accent); border-color: var(--color-accent); font-weight: 600; }

.wiki-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; max-width: 1200px; margin: 0 auto; padding: 20px; flex: 1;
}

.job-card {
    background: var(--color-card); border: 1px solid var(--color-border); padding: 24px;
    min-height: 200px; display: flex; flex-direction: column; justify-content: space-between;
    text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border-radius: 8px;
}
.job-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); border-color: var(--color-accent); }
.card-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; margin: 10px 0; line-height: 1.3; }
.card-trend { font-size: 0.75rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.card-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid #f3f4f6; }

/* --- Footer --- */
.site-footer {
    border-top: 1px solid #E5E7EB; background: #fff; padding: 30px 20px;
    text-align: center; margin-top: auto;
}
.footer-links { margin-bottom: 10px; }
.footer-links a { color: #666; text-decoration: none; font-size: 0.85rem; margin: 0 10px; }
.footer-links a:hover { text-decoration: underline; color: #111; }
.copyright { color: #999; font-size: 0.8rem; }

/* --- Quiz Layout --- */
.quiz-layout {
    display: grid; grid-template-columns: 1fr 320px; gap: 30px;
    max-width: 1000px; margin: 40px auto; padding: 0 20px; align-items: start; flex: 1;
}
.quiz-main { background: white; border: 1px solid var(--color-border); padding: 40px; border-radius: 12px; box-shadow: var(--shadow-soft); }
.sticky-sidebar { position: sticky; top: 100px; }

.option-btn {
    width: 100%; padding: 18px 24px; margin-bottom: 12px;
    background: #fff; border: 1px solid #E5E7EB; border-radius: 8px;
    text-align: left; font-size: 1rem; cursor: pointer; display: flex; justify-content: space-between; transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.option-btn:hover { background: #F8FAFC; border-color: var(--color-accent); transform: translateX(2px); }

.phase-badge { font-size: 0.75rem; font-weight: 600; color: var(--color-accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.question-text { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; margin-bottom: 25px; line-height: 1.4; }
.progress-indicator { margin-top: 25px; font-size: 0.85rem; color: var(--color-text-sub); text-align: right; }

/* --- Progress Bar (Zeno's Paradox Animation) --- */
#progress-bar {
    background: #111;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    animation: moveStripes 1s linear infinite, pulseGlow 2s ease-in-out infinite;
    transition: width 0.2s linear;
}
@keyframes moveStripes { 0% { background-position: 40px 0; } 100% { background-position: 0 0; } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); } 50% { box-shadow: 0 0 15px rgba(37, 99, 235, 0.3); background-color: #2563EB; } 100% { box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); } }
#loading-status-text { text-align: center; font-family: 'Inter', sans-serif; color: #666; }

/* --- High-End Paywall UI --- */
.paywall-wrapper { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); overflow: hidden; margin-top: 20px; }
.paywall-header { background: #111; color: #fff; padding: 24px; text-align: center; }
.paywall-body { padding: 30px; text-align: left; }
.benefit-list { list-style: none; padding: 0; margin: 0 0 25px 0; }
.benefit-list li { display: flex; align-items: center; margin-bottom: 12px; font-size: 0.95rem; }
.benefit-list li i { color: #059669; margin-right: 10px; font-size: 1.1rem; flex-shrink: 0; }
.premium-btn { background: #2563EB; color: white; width: 100%; border: none; padding: 16px; border-radius: 6px; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2); transition: all 0.2s; }
.premium-btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.trust-badges { margin-top: 15px; display: flex; justify-content: center; gap: 15px; font-size: 0.75rem; color: #6B7280; }

/* --- Report UI (Mobile UX Optimized) --- */
#report-container { max-width: 800px; margin: 40px auto; background: white; padding: 50px; border: 1px solid #ddd; box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-radius: 8px; }
.report-body { font-size: 1rem; color: #374151; overflow-wrap: break-word; word-wrap: break-word; }
.report-body h2 { font-family: var(--font-serif); font-size: 1.6rem; border-bottom: 1px solid #eee; padding-bottom: 12px; margin-top: 40px; color: #111; }
.highlight-box { background: #F3F4F6; padding: 20px; border-left: 4px solid var(--color-accent); margin: 30px 0; font-style: italic; color: #1F2937; border-radius: 0 8px 8px 0; }
.salary-table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 0.95rem; }
.salary-table th { text-align: left; border-bottom: 2px solid #000; padding: 12px; background: #f9fafb; font-weight: 600; }
.salary-table td { border-bottom: 1px solid #eee; padding: 12px; }

/* --- Utility Classes (必须保留) --- */
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: white; z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.ad-wrapper-safe { width: 100%; overflow: visible; display: flex; justify-content: center; margin: 10px 0; }
.toast-msg { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px); background: #111; color: white; padding: 12px 24px; border-radius: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); font-size: 0.9rem; z-index: 9999; opacity: 0; transition: all 0.5s; display: flex; align-items: center; gap: 8px; }
.toast-msg.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-success { border-left: 3px solid #10B981; }
.toast-info { border-left: 3px solid #3B82F6; }
.toast-warning { border-left: 3px solid #F59E0B; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-section { padding: 0 20px; margin-top: 30px; }
    .wiki-grid { grid-template-columns: 1fr; padding: 15px; gap: 15px; }
    .quiz-layout { grid-template-columns: 1fr; padding: 0 15px; margin: 20px auto; gap: 20px; }
    .quiz-main { padding: 20px; }
    .sticky-sidebar { position: static; margin-top: 0; }
    #report-container { width: 92%; margin: 20px auto; padding: 20px; }
    .salary-table { display: block; overflow-x: auto; white-space: nowrap; }
    .highlight-box { padding: 15px; margin: 20px 0; font-size: 0.95rem; }
    .paywall-body { padding: 20px; }
    .premium-btn { font-size: 1rem; padding: 14px; }
}
/* Social Proof Footer (Paywall) */
.social-proof-footer {
    margin-top: 0;
    padding: 15px 20px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    text-align: center;
    font-size: 0.85rem;
    color: #4B5563;
}

.rating-line {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.stars {
    color: #F59E0B; /* 金色星星 */
    letter-spacing: 2px;
}

.live-viewers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #111;
}

/* 呼吸绿点动画 */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}