/* ============================================
   Clash Verge观察 - 观察站样式
   浅色简约 · 第三方视角 · 专业分析
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fb;
    --bg-tertiary: #f1f3f7;
    --bg-card: #ffffff;
    --bg-card-hover: #fafbfc;

    --text-primary: #1a1d23;
    --text-secondary: #5f6571;
    --text-tertiary: #9299a6;
    --text-inverse: #ffffff;

    --accent: #3b82f6;
    --accent-light: #dbeafe;
    --accent-dark: #1d4ed8;
    --accent-subtle: #eff6ff;

    --teal: #0d9488;
    --teal-light: #ccfbf1;
    --teal-dark: #0f766e;

    --amber: #d97706;
    --amber-light: #fef3c7;
    --amber-dark: #b45309;

    --red: #dc2626;
    --red-light: #fee2e2;
    --red-dark: #b91c1c;

    --green: #16a34a;
    --green-light: #dcfce7;
    --green-dark: #15803d;

    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.1);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;

    --max-width: 1120px;
    --header-height: 64px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}
.header-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 700; color: var(--text-primary);
}
.header-brand .brand-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
}
.header-brand .brand-tag {
    font-size: 11px; font-weight: 500; color: var(--teal);
    background: var(--teal-light); padding: 2px 8px; border-radius: 10px;
    margin-left: 4px;
}
.header-nav { display: flex; gap: 4px; align-items: center; }
.header-nav a {
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    padding: 6px 14px; border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.header-nav a:hover { color: var(--accent); background: var(--accent-subtle); }
.header-nav a.active { color: var(--accent); background: var(--accent-light); }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text-primary); margin: 4px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--accent-subtle) 0%, var(--bg-primary) 100%);
    text-align: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 6px 16px; border-radius: 20px;
    font-size: 13px; color: var(--text-secondary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero h1 {
    font-size: 48px; font-weight: 800; line-height: 1.2;
    letter-spacing: -0.02em; margin-bottom: 16px;
    color: var(--text-primary);
}
.hero h1 .gradient {
    background: linear-gradient(135deg, var(--accent), var(--teal));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 600; border: none; cursor: pointer;
    transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.section-header p { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ---------- Card ---------- */
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
    transition: all 0.25s;
}
.card:hover { border-color: var(--accent-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---------- Stats Row ---------- */
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    margin: 48px 0;
}
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 24px; text-align: center;
    transition: all 0.25s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-number { font-size: 36px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-tertiary); margin-top: 6px; }

/* ---------- Client Grid ---------- */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.client-card { position: relative; overflow: hidden; }
.client-card .client-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.client-card .client-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
}
.client-card .client-name { font-size: 18px; font-weight: 700; }
.client-card .client-platform { font-size: 12px; color: var(--text-tertiary); }
.client-card .client-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.client-card .client-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px;
    border-radius: 12px;
}
.tag-blue { background: var(--accent-light); color: var(--accent-dark); }
.tag-teal { background: var(--teal-light); color: var(--teal-dark); }
.tag-amber { background: var(--amber-light); color: var(--amber-dark); }
.tag-green { background: var(--green-light); color: var(--green-dark); }
.tag-red { background: var(--red-light); color: var(--red-dark); }

/* ---------- Rating ---------- */
.rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rating-stars { display: flex; gap: 2px; }
.star { color: var(--amber); font-size: 14px; }
.star.empty { color: var(--border); }
.rating-score { font-size: 14px; font-weight: 700; color: var(--text-primary); }

/* ---------- Score Card ---------- */
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.score-card { text-align: center; padding: 32px 24px; }
.score-circle {
    width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800;
}
.score-circle.excellent { background: var(--green-light); color: var(--green-dark); }
.score-circle.good { background: var(--accent-light); color: var(--accent-dark); }
.score-circle.average { background: var(--amber-light); color: var(--amber-dark); }
.score-circle.poor { background: var(--red-light); color: var(--red-dark); }
.score-label { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.score-detail { font-size: 12px; color: var(--text-tertiary); }

/* ---------- Benchmark Table ---------- */
.bench-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.bench-table th { background: var(--bg-tertiary); padding: 14px 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); text-align: left; }
.bench-table td { padding: 14px 18px; font-size: 14px; border-top: 1px solid var(--border-light); }
.bench-table tr:hover td { background: var(--bg-secondary); }
.bench-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.bench-best { color: var(--green); font-weight: 800; }
.bench-bar { height: 6px; border-radius: 3px; background: var(--bg-tertiary); margin-top: 4px; }
.bench-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 32px; padding: 20px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-primary); }
.timeline-date { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.timeline-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.timeline-desc { font-size: 14px; color: var(--text-secondary); }

/* ---------- Security Grid ---------- */
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.security-card { }
.security-card .sec-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-bottom: 14px;
}
.security-card .sec-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.security-card .sec-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.sec-safe .sec-icon { background: var(--green-light); }
.sec-warn .sec-icon { background: var(--amber-light); }
.sec-danger .sec-icon { background: var(--red-light); }

/* ---------- Comparison Table ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.compare-table th { background: var(--bg-tertiary); padding: 12px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); text-align: center; }
.compare-table th:first-child { text-align: left; }
.compare-table td { padding: 12px 16px; font-size: 14px; text-align: center; border-top: 1px solid var(--border-light); }
.compare-table td:first-child { text-align: left; font-weight: 600; }
.compare-table tr:hover td { background: var(--bg-secondary); }
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--text-tertiary); }
.highlight { background: var(--accent-subtle); font-weight: 700; color: var(--accent); }

/* ---------- Recommend Grid ---------- */
.recommend-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.recommend-card { padding: 32px; }
.recommend-card .rec-scenario {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent); margin-bottom: 12px;
}
.recommend-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.recommend-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.rec-pick {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent-subtle); padding: 6px 14px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; color: var(--accent-dark);
}

/* ---------- Observer Badge ---------- */
.observer-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-tertiary); margin-bottom: 8px;
}
.observer-badge::before { content: "🔍"; font-size: 14px; }

/* ---------- Pro/Con List ---------- */
.pro-con-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pro-list, .con-list { }
.pro-list h4, .con-list h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.pro-list h4 { color: var(--green); }
.con-list h4 { color: var(--red); }
.pro-list li, .con-list li { font-size: 13px; padding: 4px 0; padding-left: 18px; position: relative; color: var(--text-secondary); }
.pro-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.con-list li::before { content: "✗"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ---------- Info Box ---------- */
.info-box {
    background: var(--accent-subtle); border: 1px solid var(--accent-light);
    border-radius: var(--radius-md); padding: 16px 20px;
    font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}
.info-box.warn { background: var(--amber-light); border-color: #fcd34d; }
.info-box.danger { background: var(--red-light); border-color: #fca5a5; }

/* ---------- Footer ---------- */
.footer {
    background: var(--text-primary); color: var(--text-inverse);
    padding: 60px 0 30px; margin-top: 40px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: #9ca3af; line-height: 1.6; }
.footer-links h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: #d1d5db; }
.footer-links a { display: block; font-size: 13px; color: #9ca3af; padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #374151; padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: #6b7280;
}
.footer-disclaimer { font-size: 11px; color: #6b7280; margin-top: 12px; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .client-grid { grid-template-columns: repeat(2, 1fr); }
    .score-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 768px) {
    .header-nav { display: none; }
    .header-nav.open { display: flex; flex-direction: column; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; box-shadow: var(--shadow-md); }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .section { padding: 48px 0; }
    .section-header h2 { font-size: 24px; }
    .client-grid, .score-grid, .security-grid, .recommend-grid, .pro-con-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .bench-table, .compare-table { font-size: 12px; }
    .bench-table th, .bench-table td, .compare-table th, .compare-table td { padding: 10px 10px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .stats-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
}

/* ---------- Animations ---------- */
.animate-in {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Page specific: index observatory ---------- */
.observatory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.observatory-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
    transition: all 0.25s; cursor: pointer;
}
.observatory-card:hover { border-color: var(--accent-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.observatory-card .obs-icon { font-size: 28px; margin-bottom: 14px; }
.observatory-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.observatory-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.observatory-card .obs-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 12px; }

/* ---------- Ecosystem Map ---------- */
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eco-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 20px; text-align: center;
    transition: all 0.25s;
}
.eco-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.eco-card .eco-icon { font-size: 24px; margin-bottom: 10px; }
.eco-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.eco-card p { font-size: 12px; color: var(--text-tertiary); }

/* ---------- Verdict ---------- */
.verdict {
    background: linear-gradient(135deg, var(--accent-subtle), var(--teal-light));
    border: 1px solid var(--accent-light);
    border-radius: var(--radius-xl); padding: 40px;
    text-align: center;
}
.verdict h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.verdict p { font-size: 15px; color: var(--text-secondary); max-width: 500px; margin: 0 auto 20px; }
