
:root {
    --primary: #6b5cff;
    --primary-hover: #5b4cef;
    --primary-light: #eef2ff;
    --primary-soft: #f0eef9;
    --primary-deep: #4a3dc7;
    --accent: #00c2a8;
    --text-1: #1e293b;
    --text-2: #334155;
    --text-3: #64748b;
    --text-4: #94a3b8;
    --border: #e5e7eb;
    --border-soft: #f1f5f9;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-soft-2: #f1f5f9;
    --bg-side: #f4f2f6;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --container: 1240px;
}
.xinyue_wp {
    flex-direction: column;
}
.xinyue_container {
    background: #f8fafc;
    padding: 0;
}

        /* ===================================================================
           Hero 搜索区
           =================================================================== */
        .hero {
            position: relative; padding: 56px 0 36px;
            background:
                radial-gradient(ellipse 800px 400px at 50% 0%, rgba(107, 92, 255, 0.10), transparent 60%),
                radial-gradient(ellipse 600px 300px at 80% 50%, rgba(0, 194, 168, 0.06), transparent 60%),
                linear-gradient(180deg, #faf9ff 0%, var(--bg-soft) 100%);
        }
        .hero-content { position: relative; text-align: center; max-width: 800px; margin: 0 auto; }
        .hero-badge {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 5px 14px; border-radius: 100px;
            background: white; border: 1px solid var(--border);
            font-size: 13px; color: var(--text-2); font-weight: 500;
            margin-bottom: 18px; box-shadow: var(--shadow-sm);
        }
        .hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(0, 194, 168, 0.18); }
        .hero h1 { font-size: 38px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
        .hero h1 .highlight {
            background: linear-gradient(120deg, var(--primary) 0%, #4a3dc7 50%, #00a890 100%);
            -webkit-background-clip: text; background-clip: text; color: transparent;
        }
        .hero-sub { font-size: 16px; color: var(--text-3); margin-bottom: 28px; }

        /* 搜索框容器 - 包裹插件 */
        .search-box { position: relative; max-width: 720px; margin: 0 auto; }

        /* 主题色覆盖插件的默认样式（tang_search_input） */
        .tang_search_input {
            position: relative;
        }
        .tang_search_input .sp-search-wrapper {
            position: relative;
        }
        .tang_search_input .sp-input-container {
            background: white;
            border: 2px solid transparent;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
            transition: all 0.2s;
        }
        .tang_search_input .sp-input-container:focus-within {
            border-color: var(--primary);
            box-shadow: 0 8px 32px rgba(107, 92, 255, 0.2), 0 2px 8px rgba(15, 23, 42, 0.04);
        }
        .tang_search_input .sp-search-icon {
            font-size: 18px;
        }
        .tang_search_input .sp-search-input {
            padding: 18px 0;
            font-size: 16px;
            color: var(--text-1);
        }
        .tang_search_input .sp-search-input::placeholder {
            color: var(--text-4);
            font-size: 15px;
        }
        .tang_search_input .sp-clear-btn {
            padding: 8px 16px 8px 4px;
        }
        /* 让下拉风格与 hero 一致 */
        .tang_search_input .sp-dropdown {
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
            border: 1px solid var(--border-soft);
            max-height: 460px;
            text-align: left;
        }
        .tang_search_input .sp-dropdown-header {
            border-radius: 16px 16px 0 0;
        }
        .tang_search_input .sp-dropdown-footer {
            border-radius: 0 0 16px 16px;
        }



        .hot-words {
            margin-top: 14px; display: flex; align-items: center; justify-content: center;
            flex-wrap: wrap; gap: 6px;
            font-size: 13px; color: var(--text-3);
        }
        .hot-words-label { display: flex; align-items: center; gap: 4px; }
        .hot-words-label svg { width: 14px; height: 14px; }
        .hot-words a {
            padding: 4px 11px; border-radius: 100px;
            background: white; border: 1px solid var(--border);
            color: var(--text-2); font-weight: 500;
            transition: all 0.15s;
        }
        .hot-words a:hover { background: var(--primary); border-color: var(--primary); color: white; }


/* ===================================================================
    三大数据库
    =================================================================== */
.section { padding: 40px 0; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.section-head p { font-size: 14px; color: var(--text-3); }
.db-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.db-card {
    position: relative; background: white; border-radius: var(--radius-lg);
    padding: 24px; border: 1px solid var(--border-soft);
    transition: all 0.25s; overflow: hidden;
}
.db-card::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 160px; height: 160px; border-radius: 50%;
    opacity: 0.5; filter: blur(40px);
}
.db-card.cpu::before { background: #818cf8; }
.db-card.gpu::before { background: #34d399; }
.db-card.soc::before { background: #fbbf24; }
.db-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.db-card:hover::before { opacity: 0.8; transform: scale(1.2); }
.db-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; position: relative;
}
.db-icon svg { width: 24px; height: 24px; }
.db-card.cpu .db-icon { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4f46e5; }
.db-card.gpu .db-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.db-card.soc .db-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.db-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; position: relative; }
.db-desc { font-size: 13px; color: var(--text-3); margin-bottom: 14px; position: relative; }
.db-stats { display: flex; gap: 20px; margin-bottom: 14px; position: relative; }
.db-stat-num { font-size: 20px; font-weight: 700; line-height: 1.1; }
.db-stat-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.db-entries { display: flex; flex-wrap: wrap; gap: 5px; position: relative; }
.db-entry {
    padding: 3px 9px; border-radius: 100px; font-size: 11px;
    background: var(--bg-soft); color: var(--text-2);
    border: 1px solid var(--border-soft);
    transition: all 0.15s;
}
.db-entry:hover { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.db-link {
    display: flex; align-items: center; gap: 6px;
    margin-top: 16px; font-size: 13px; font-weight: 600; position: relative;
}
.db-card.cpu .db-link { color: #4f46e5; }
.db-card.gpu .db-link { color: #059669; }
.db-card.soc .db-link { color: #d97706; }
.db-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.db-card:hover .db-link svg { transform: translateX(4px); }

.section-bar { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.section-title { display: flex; align-items: center; gap: 10px; }
.section-title .ico {
    width: 32px; height: 32px; border-radius: 9px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.section-title .ico svg { width: 18px; height: 18px; }
.section-title h2 { font-size: 20px; font-weight: 700; }
.section-title p { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.view-more { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); font-weight: 500; transition: color 0.15s; }
.view-more:hover { color: var(--primary); }
.view-more svg { width: 14px; height: 14px; transition: transform 0.2s; }
.view-more:hover svg { transform: translateX(3px); }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-soft-2); border-radius: 12px; }
.tab { padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: all 0.15s;cursor: pointer;}
.tab.active { background: white; color: var(--text-1); box-shadow: var(--shadow-sm); font-weight: 600; }
.tab:hover:not(.active) { color: var(--text-1); }

/* 热门硬件 - 紧凑列表式 */
.hot-list { display: grid; gap: 8px; }
.hot-panel { display: none; }
.hot-panel.active { display: grid; gap: 8px; }
@media (min-width: 1025px) {
    .hot-panel.active { grid-template-columns: 1fr 1fr; }
}
.hot-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; background: white; border-radius: 12px;
    border: 1px solid var(--border-soft);
    transition: all 0.2s; position: relative;
}
.hot-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.hi-rank { width: 32px; flex-shrink: 0; text-align: center; font-size: 18px; font-weight: 800; color: var(--text-4); font-feature-settings: "tnum"; }
.hi-rank.top-1 { color: #ef4444; }
.hi-rank.top-2 { color: #f59e0b; }
.hi-rank.top-3 { color: #eab308; }
.hi-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.hi-icon img { width: 44px; height: 44px; }
.hot-item.cpu .hi-icon { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.hot-item.gpu .hi-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.hot-item.soc .hi-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.hi-info { flex: 1; min-width: 0; }
.hi-name { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-spec { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hi-spec span:not(:last-child)::after { content: '·'; margin-left: 6px; color: var(--text-4); }
.hi-score { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.score-bar { flex: 1; max-width: 120px; height: 4px; border-radius: 2px; background: var(--bg-soft-2); overflow: hidden; min-width: 40px; }
.score-bar-fill { height: 100%; border-radius: 2px; }
.hot-item.cpu .score-bar-fill { background: linear-gradient(90deg, #818cf8, #4f46e5); }
.hot-item.gpu .score-bar-fill { background: linear-gradient(90deg, #34d399, #059669); }
.hot-item.soc .score-bar-fill { background: linear-gradient(90deg, #fbbf24, #d97706); }
.score-num { font-size: 12px; font-weight: 700; color: var(--text-2); font-feature-settings: "tnum"; }
.hi-price { font-size: 14px; font-weight: 700; color: var(--text-1); flex-shrink: 0; }
.hi-price small { display: block; font-size: 10px; font-weight: 500; color: var(--text-4); margin-top: 2px; text-align: right; }

/* 天梯图 */
.tier-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.tier-card { position: relative; background: white; border-radius: var(--radius-lg); padding: 22px; border: 1px solid var(--border-soft); overflow: hidden; transition: all 0.2s; }
.tier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tier-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tier-name { display: flex; align-items: center; gap: 10px; }
.tier-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.tier-ico svg { width: 18px; height: 18px; }
.tier-card.cpu .tier-ico { background: #e0e7ff; color: #4f46e5; }
.tier-card.gpu .tier-ico { background: #d1fae5; color: #059669; }
.tier-card.soc .tier-ico { background: #fef3c7; color: #d97706; }
.tier-name h3 { font-size: 15px; font-weight: 700; }
.tier-name p { font-size: 11px; color: var(--text-3); }
.tier-badge { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 100px; background: var(--primary-soft); color: var(--primary); }
.tier-list { display: flex; flex-direction: column; gap: 2px; }
.tier-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 13px; transition: background 0.15s; }
.tier-row:hover { background: var(--bg-soft); }
.tier-row .tier-pos { color: var(--text-4); font-weight: 700; width: 22px; flex-shrink: 0; text-align: center; font-feature-settings: "tnum"; }
.tier-row .tier-pos.top-1 { color: #ef4444; }
.tier-row .tier-pos.top-2 { color: #f59e0b; }
.tier-row .tier-pos.top-3 { color: #eab308; }
.tier-row .tier-product { flex: 1; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tier-row .tier-score { color: var(--text-4); font-size: 12px; font-weight: 600; font-feature-settings: "tnum"; }

/* 资讯 */
.post-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { background: white; border-radius: var(--radius-md); border: 1px solid var(--border-soft); overflow: hidden; transition: all 0.2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-cover { aspect-ratio: 16/9; background: var(--bg-soft-2); background-size: cover; background-position: center; position: relative; }
.post-cover-tag { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, 0.95); color: var(--text-2); }
.post-body { padding: 14px; }
.post-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-3); }
.post-meta span { display: flex; align-items: center; gap: 3px; }
.post-meta svg { width: 12px; height: 12px; }

/* 底部 */
.footer { background: white; border-top: 1px solid var(--border-soft); padding: 32px 20px 20px; margin-top: 32px; }
.footer-top { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; margin-bottom: 24px; }
.footer-brand .logo { margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: var(--text-3); line-height: 1.6; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: var(--text-3); transition: color 0.15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--text-4); flex-wrap: wrap; gap: 10px; }

/* 移动端抽屉 */
.mobile-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(15, 23, 42, 0.5); opacity: 0; visibility: hidden; transition: all 0.2s; }
.mobile-drawer.open { opacity: 1; visibility: visible; }
.mobile-drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 280px; background: white; padding: 20px; transform: translateX(100%); transition: transform 0.25s; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mobile-drawer-close { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.mobile-drawer-close:hover { background: var(--bg-soft); }
.md-section { font-size: 11px; font-weight: 700; color: var(--text-4); letter-spacing: 0.05em; text-transform: uppercase; padding: 12px 14px 4px; }
.mobile-drawer a { padding: 11px 14px; border-radius: 10px; font-size: 14px; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.mobile-drawer a:hover, .mobile-drawer a.active { background: var(--primary-soft); color: var(--primary); }
.mobile-drawer a svg { width: 18px; height: 18px; }

/* 响应式 */
@media (min-width: 1025px) {
    .mobile-header { display: none; }
    .app-main { margin-left: 200px; min-height: 100vh; }
}
@media (max-width: 1024px) {
    .app-sidebar { display: none; }
    .app-main { margin-left: 0; }
    .mobile-header { display: block; }
    .db-grid { grid-template-columns: 1fr; }
    .tier-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .hero { padding: 32px 0 24px; }
    .hero h1 { font-size: 26px; }
    .hero-sub { font-size: 14px; }
    .tang_search_input .sp-input-container { border-radius: 14px; }
    .tang_search_input .sp-search-input { padding: 14px 0; font-size: 15px; }
    .tang_search_input .sp-search-input::placeholder { font-size: 14px; }
    .tang_search_input .sp-search-icon { font-size: 16px; }
    .section { padding: 28px 0; }
    .section-head h2 { font-size: 20px; }
    .db-card { padding: 20px; }
    .db-name { font-size: 18px; }
    .hot-item { padding: 12px 14px; }
    .hi-name { font-size: 14px; }
    .tier-card { padding: 18px; }
    .post-grid { grid-template-columns: 1fr; gap: 12px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 480px) {
    .hot-item { gap: 10px; }
    .hi-rank { font-size: 16px; width: 26px; }
    .hi-icon { width: 38px; height: 38px; font-size: 18px; }
    .hi-spec { font-size: 11px; }
    .score-bar { max-width: 70px; }
    .hi-price { font-size: 13px; }
}
