/* ===== GEO 2.0 DESIGN SYSTEM ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, 'Segoe UI', 'PingFang SC', sans-serif; background: #0a0e1a; color: #e2e8f0; min-height: 100vh; }

/* === HERO === */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1a1040 40%, #0f172a 100%);
    border-bottom: 1px solid #2d1b69;
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(139,92,246,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(59,130,246,0.06) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow { 0%{opacity:0.5} 100%{opacity:1} }

.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-block;
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.3);
    color: #a78bfa;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .tagline {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 10px;
}
.hero .sub-tagline {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions a {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-primary { background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #6d28d9, #4f46e5); transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.05); border: 1px solid #334155; color: #e2e8f0; }
.btn-secondary:hover { border-color: #7c3aed; }

/* === WHY SECTION === */
.why-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}
.why-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 12px;
}
.why-section .why-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    text-align: left;
}
.why-card {
    background: rgba(30,41,59,0.6);
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
}
.why-card .why-icon { font-size: 1.5rem; margin-bottom: 10px; }
.why-card h3 { font-size: 0.95rem; font-weight: 600; color: #e2e8f0; margin-bottom: 6px; }
.why-card p { font-size: 0.8rem; color: #94a3b8; line-height: 1.6; }

/* === STATS BAR === */
.stats-bar {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
}
.stat-item {
    text-align: center;
    min-width: 100px;
}
.stat-item .stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-item .stat-lbl { font-size: 0.75rem; color: #64748b; margin-top: 2px; }

/* === SECTION === */
.section { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title .st-icon { font-size: 1.4rem; }
.section-more a {
    color: #a78bfa;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(139,92,246,0.3);
    padding: 5px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}
.section-more a:hover { background: rgba(139,92,246,0.15); }

/* === SITE CARD (GEO 2.0) === */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}
.site-card {
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 22px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.site-card:hover {
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124,58,237,0.12);
}
.site-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #3b82f6, #34d399);
    opacity: 0;
    transition: opacity 0.25s;
}
.site-card:hover::before { opacity: 1; }

/* Card: top row */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    text-decoration: none;
    line-height: 1.3;
}
.card-name:hover { color: #a78bfa; }
.card-trend {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.trend-rising { color: #34d399; background: rgba(52,211,153,0.1); }
.trend-new    { color: #f59e0b; background: rgba(245,158,11,0.1); }
.trend-stable { color: #60a5fa; background: rgba(96,165,250,0.1); }

/* Card: domain */
.card-domain {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 12px;
    display: block;
    word-break: break-all;
}

/* Card: visibility bar */
.visibility-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.visibility-label { font-size: 0.7rem; color: #64748b; white-space: nowrap; }
.visibility-bar {
    flex: 1;
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
}
.visibility-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #7c3aed, #3b82f6);
    transition: width 0.6s ease;
}
.visibility-score { font-size: 0.75rem; font-weight: 700; color: #a78bfa; min-width: 45px; text-align: right; }
.vis-very-high { color: #34d399; }
.vis-high      { color: #60a5fa; }
.vis-medium     { color: #f59e0b; }
.vis-low        { color: #94a3b8; }

/* Card: tags */
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.card-tag {
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(139,92,246,0.1);
    color: #a78bfa;
    border: 1px solid rgba(139,92,246,0.2);
}

/* Card: reason */
.card-reason {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.5;
    padding: 10px 12px;
    background: rgba(15,23,42,0.6);
    border-radius: 8px;
    border-left: 3px solid #7c3aed;
}
.card-reason strong { color: #94a3b8; }

/* Card: meta */
.card-meta {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    font-size: 0.7rem;
    color: #64748b;
}
.card-meta span { color: #a78bfa; font-weight: 600; }

/* === RISING SECTION === */
.rising-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rising-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
}
.rising-card:hover { border-color: #34d399; }
.rising-rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    -webkit-text-stroke: 1px #34d399;
    min-width: 40px;
    text-align: center;
}
.rising-info { flex: 1; }
.rising-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.rising-name a { color: #e2e8f0; text-decoration: none; }
.rising-name a:hover { color: #34d399; }
.rising-change { font-size: 0.75rem; color: #34d399; font-weight: 600; }
.rising-vis { font-size: 0.7rem; color: #64748b; }

/* === CATEGORIES === */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cat-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.cat-card:hover { border-color: #7c3aed; transform: translateY(-2px); }
.cat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
}
.cat-icon { font-size: 1.8rem; margin-bottom: 10px; }
.cat-name { font-size: 0.95rem; font-weight: 600; color: #e2e8f0; margin-bottom: 6px; }
.cat-stats { font-size: 0.75rem; color: #64748b; }
.cat-avg { font-size: 0.7rem; color: #a78bfa; margin-top: 6px; font-weight: 600; }

/* === AI QUESTIONS === */
.questions-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.question-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 16px 18px;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}
.question-card:hover { border-color: #3b82f6; background: #1a2040; }
.question-q {
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 4px;
    font-weight: 500;
}
.question-hint { font-size: 0.7rem; color: #64748b; }

/* === SEARCH TOOLBAR === */
.toolbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 30px;
}
.search-row { margin-bottom: 14px; }
.search-box {
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 14px 20px;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.search-box input:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.search-box input::placeholder { color: #475569; }

.sort-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sort-tab {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.sort-tab:hover { border-color: #334155; }
.sort-tab.active { background: rgba(139,92,246,0.15); color: #a78bfa; border-color: rgba(139,92,246,0.3); }

.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag {
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: none;
    border: 1px solid #1e293b;
    transition: all 0.2s;
}
.filter-tag:hover, .filter-tag.active { background: rgba(139,92,246,0.15); color: #a78bfa; border-color: rgba(139,92,246,0.3); }

/* === PAGINATION === */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 30px 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
}
.pagination a { color: #94a3b8; border: 1px solid #1e293b; }
.pagination a:hover { background: rgba(139,92,246,0.15); border-color: #7c3aed; }
.pagination .current { background: #7c3aed; color: #fff; }

/* === FOOTER === */
.footer {
    border-top: 1px solid #1e293b;
    padding: 30px 20px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: #94a3b8; font-size: 0.8rem; text-decoration: none; }
.footer-links a:hover { color: #a78bfa; }
.footer p { font-size: 0.75rem; color: #475569; }

/* === EMPTY === */
.empty { text-align: center; padding: 50px 20px; color: #64748b; }

/* === GEO评分解释系统（2.1新增）=== */
.score-explain { max-width: 900px; margin: 0 auto; padding: 50px 20px; }
.score-explain h2 { font-size: 1.4rem; font-weight: 700; color: #a78bfa; margin-bottom: 10px; text-align: center; }
.score-explain-desc { text-align: center; color: #94a3b8; font-size: 0.9rem; margin-bottom: 30px; line-height: 1.7; }
.score-breakdown { display: flex; flex-direction: column; gap: 18px; }
.score-bar-item { }
.score-bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; }
.score-bar-name { font-size: 0.85rem; color: #e2e8f0; font-weight: 600; }
.score-bar-pct { font-size: 0.85rem; color: #a78bfa; font-weight: 700; }
.score-bar-track { height: 10px; background: #1e293b; border-radius: 5px; overflow: hidden; margin-bottom: 4px; }
.score-bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #7c3aed, #3b82f6); }
.score-bar-desc { font-size: 0.75rem; color: #64748b; }
.score-explain-note { margin-top: 24px; padding: 14px 18px; background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.2); border-radius: 10px; color: #a78bfa; font-size: 0.83rem; text-align: center; }

/* === 卡片升级：趋势/等级/增长 === */
.card-growth { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.growth-up { color: #34d399; background: rgba(52,211,153,0.1); }
.growth-down { color: #f87171; background: rgba(248,113,113,0.1); }
.growth-stable { color: #60a5fa; background: rgba(96,165,250,0.1); }

.card-vis-level { font-size: 0.65rem; padding: 2px 8px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.vis-level-very-high { background: rgba(52,211,153,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.3); }
.vis-level-high { background: rgba(96,165,250,0.15); color: #60a5fa; border: 1px solid rgba(96,165,250,0.3); }
.vis-level-medium { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.vis-level-low { background: rgba(148,163,184,0.1); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); }

.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; }
.card-vis-badge { display: flex; align-items: center; gap: 6px; }
.card-growth-badge { display: flex; align-items: center; gap: 6px; }

@media (max-width: 768px) {
    .score-explain { padding: 30px 16px; }
}
/* === GEO 趋势栏目（新增）=== */
.trend-section { margin: 0 auto; padding: 40px 20px; max-width: 1100px; }
.trend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.trend-block { background: rgba(15,23,42,0.7); border: 1px solid #2d1b69; border-radius: 12px; padding: 20px; }
.trend-title { font-size: 0.95rem; font-weight: 700; color: #a78bfa; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #2d1b69; }
.trend-list { display: flex; flex-direction: column; gap: 8px; }
.trend-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(139,92,246,0.06); font-size: 0.85rem; }
.trend-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; white-space: nowrap; }
.trend-badge.rising { background: rgba(52,211,153,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.3); }
.trend-badge.new { background: rgba(250,204,21,0.15); color: #facc15; border: 1px solid rgba(250,204,21,0.3); }
.trend-name { flex: 1; color: #e2e8f0; text-decoration: none; font-weight: 600; }
.trend-name:hover { color: #a78bfa; }
.trend-score { color: #a78bfa; font-weight: 700; font-size: 0.8rem; }
.trend-meta { color: #64748b; font-size: 0.78rem; }

/* === 最新动态栏目（新增）=== */
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.activity-block { background: rgba(15,23,42,0.7); border: 1px solid #2d1b69; border-radius: 12px; padding: 18px; }
.activity-title { font-size: 0.9rem; font-weight: 700; color: #60a5fa; margin-bottom: 12px; }
.activity-list { display: flex; flex-direction: column; gap: 8px; }
.activity-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: rgba(59,130,246,0.06); font-size: 0.83rem; }
.activity-icon { font-size: 1rem; }
.activity-name { flex: 1; }
.activity-name a { color: #e2e8f0; text-decoration: none; }
.activity-name a:hover { color: #60a5fa; }
.activity-time { color: #64748b; font-size: 0.75rem; white-space: nowrap; }

/* === AI可见性解释栏目（新增）=== */
.geo-explain { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.geo-explain h2 { font-size: 1.4rem; font-weight: 700; color: #a78bfa; margin-bottom: 20px; text-align: center; }
.geo-explain-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.geo-explain-card { background: rgba(15,23,42,0.7); border: 1px solid #2d1b69; border-radius: 12px; padding: 22px; text-align: center; }
.geo-explain-card .ex-icon { font-size: 2rem; margin-bottom: 12px; }
.geo-explain-card h3 { font-size: 0.95rem; font-weight: 700; color: #e2e8f0; margin-bottom: 8px; }
.geo-explain-card p { font-size: 0.83rem; color: #94a3b8; line-height: 1.6; }

@media (max-width: 768px) {
    .trend-grid, .activity-grid { grid-template-columns: 1fr; }
    .geo-explain-grid { grid-template-columns: 1fr; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero .tagline { font-size: 0.95rem; }
    .sites-grid, .rising-grid, .cats-grid, .questions-grid { grid-template-columns: 1fr; }
    .stats-bar { gap: 14px; }
    .stat-item .stat-val { font-size: 1.4rem; }
}
