:root {
    --bg: #0f1117;
    --bg-secondary: #161822;
    --bg-card: #1c1e2e;
    --border: #2a2d3e;
    --text: #e4e6f0;
    --text-secondary: #8b8fa3;
    --accent: #e74c3c;
    --accent-light: #ff6b6b;
    --accent-glow: rgba(231, 76, 60, 0.12);
    --success: #00cec9;
    --warning: #fdcb6e;
    --info-bg: rgba(108, 92, 231, 0.1);
    --info-border: rgba(108, 92, 231, 0.25);
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Bengali", "Noto Sans Devanagari", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon {
    font-size: 1.6rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    position: relative;
}

.lang-btn {
    padding: 7px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.lang-btn:hover { border-color: var(--accent); }

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 200;
    max-height: 400px;
    overflow-y: auto;
}

.lang-dropdown.show { display: block; }

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.15s;
}

.lang-dropdown a:hover {
    background: var(--accent-glow);
    color: var(--text);
}

.lang-dropdown a.active {
    color: var(--accent-light);
    font-weight: 600;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input::placeholder { color: var(--text-secondary); }

.search-box::before {
    content: "\1F50D";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
}

/* Layout */
.layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr 220px;
    gap: 0;
    min-height: calc(100vh - 64px);
}

/* Sidebar */
.sidebar {
    border-right: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    padding: 0 20px;
    margin: 16px 0 6px;
}

.sidebar-title:first-child { margin-top: 0; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--accent-glow);
    color: var(--text);
}

.nav-item.active {
    color: var(--accent-light);
    background: var(--accent-glow);
    border-left-color: var(--accent);
    font-weight: 500;
}

.nav-icon { font-size: 1rem; width: 22px; text-align: center; }

/* Main Content */
.main {
    padding: 28px 44px;
    min-width: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-light); }

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

.content-section { display: none; }
.content-section.active { display: block; }

/* Article blocks */
.article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 20px;
    animation: fadeIn 0.35s ease;
}

.article h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.article h3 {
    font-size: 1.05rem;
    margin: 22px 0 10px;
    color: var(--accent-light);
}

.article p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.85;
}

.article ul, .article ol {
    margin: 10px 0;
    padding-left: 22px;
    color: var(--text-secondary);
}

.article li { margin-bottom: 8px; line-height: 1.7; }

.article strong { color: var(--text); }

.article code {
    background: var(--bg);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.86em;
    color: var(--accent-light);
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", monospace;
}

.article pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    overflow-x: auto;
    margin: 14px 0;
    position: relative;
}

.article pre code {
    background: none;
    padding: 0;
    color: #c9d1d9;
    font-size: 0.88em;
    line-height: 1.6;
}

/* Copy button */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    background: var(--border);
    border: none;
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.2s;
}

.article pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: var(--accent); color: white; }

/* Callouts */
.callout {
    padding: 16px 18px;
    border-radius: 8px;
    margin: 18px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.callout-tip {
    background: rgba(0, 206, 201, 0.08);
    border: 1px solid rgba(0, 206, 201, 0.2);
}

.callout-warn {
    background: rgba(253, 203, 110, 0.08);
    border: 1px solid rgba(253, 203, 110, 0.2);
}

.callout-info {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
}

.callout-danger {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.callout-icon { font-size: 1.15rem; flex-shrink: 0; margin-top: 2px; }
.callout-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

/* Step cards */
.step {
    display: flex;
    gap: 18px;
    margin: 20px 0;
    padding: 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
}

.step:hover { border-color: var(--accent); }

.step-num {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.step-content { flex: 1; }
.step-content h4 { margin-bottom: 6px; font-size: 1rem; color: var(--text); }
.step-content p { margin-bottom: 8px; font-size: 0.9rem; color: var(--text-secondary); }

/* Home cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    cursor: pointer;
    transition: all 0.25s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.card p { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.6; }

.card-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--accent-glow);
    color: var(--accent-light);
    border-radius: 20px;
    font-size: 0.72rem;
    margin-top: 10px;
}

/* TOC */
.toc {
    border-left: 1px solid var(--border);
    padding: 20px;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.toc-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.toc-link {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0 4px 12px;
    border-left: 2px solid transparent;
    transition: all 0.15s;
}

.toc-link:hover { color: var(--text); }
.toc-link.active { color: var(--accent-light); border-left-color: var(--accent); }
.toc-link.sub { padding-left: 24px; font-size: 0.78rem; }

/* Stats */
.stats-bar { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 24px;
    flex: 1;
    min-width: 120px;
    text-align: center;
}
.stat-number { font-size: 1.6rem; font-weight: 800; color: var(--accent-light); }
.stat-label { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }

/* Platform tabs */
.platform-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
}

.platform-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.88rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.platform-tab:hover { color: var(--text); }
.platform-tab.active { color: var(--accent-light); border-bottom-color: var(--accent); }

.platform-content { display: none; padding-top: 16px; }
.platform-content.active { display: block; }

/* FAQ accordion */
.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-q {
    padding: 16px 20px;
    background: var(--bg-card);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.faq-q:hover { background: var(--accent-glow); }
.faq-q::after { content: "+"; font-size: 1.2rem; color: var(--text-secondary); transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: "-"; }

.faq-a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.open .faq-a {
    padding: 16px 20px;
    max-height: 800px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 28px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer a { color: var(--accent-light); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 1024px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar, .toc { display: none; }
    .main { padding: 20px 16px; }
    .search-box { width: 160px; }
    .header-inner { gap: 8px; }
    .stats-bar { flex-direction: column; }
    .cards-grid { grid-template-columns: 1fr; }
}

/* Mobile menu toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .mobile-menu-btn { display: block; }
    .sidebar.mobile-open {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        width: 280px;
        height: calc(100vh - 64px);
        background: var(--bg-secondary);
        z-index: 150;
        box-shadow: var(--shadow);
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════ Models-specific styles ═══════ */

/* Star ratings */
.stars { display: inline-flex; gap: 2px; font-size: 1rem; }
.stars .filled { color: #f59e0b; }
.stars .empty { color: var(--border); }
.stars .half { background: linear-gradient(90deg, #f59e0b 50%, var(--border) 50%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.rating-row:last-child { border-bottom: none; }
.rating-label { font-size: 0.9rem; color: var(--text-secondary); min-width: 100px; }
.rating-value { font-size: 0.85rem; color: var(--text); font-weight: 600; margin-left: 8px; }
.rating-bar-bg { flex: 1; height: 8px; background: var(--border); border-radius: 4px; margin: 0 12px; overflow: hidden; }
.rating-bar { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.rating-bar.excellent { background: linear-gradient(90deg, #22c55e, #4ade80); }
.rating-bar.good { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.rating-bar.average { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.rating-bar.poor { background: linear-gradient(90deg, #ef4444, #f87171); }

/* Comparison table */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0;
    font-size: 0.88rem;
}
.compare-table th {
    background: var(--bg-secondary);
    color: var(--text);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
}
.compare-table th:first-child { border-radius: 8px 0 0 0; }
.compare-table th:last-child { border-radius: 0 8px 0 0; }
.compare-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: middle;
}
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table .winner { color: var(--accent-light); font-weight: 600; }
.compare-table .model-name { color: var(--text); font-weight: 600; }

/* Model badge/tag */
.model-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-premium { background: rgba(168,85,247,0.15); color: #c084fc; }
.badge-balanced { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-budget { background: rgba(34,197,94,0.15); color: #4ade80; }
.badge-china { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-free { background: rgba(0,206,201,0.15); color: var(--success); }

/* Pricing highlight */
.price-tag {
    display: inline-block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    padding: 2px 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--accent-light);
}

/* Review cards */
.review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    margin: 10px 0;
}
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}
.review-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.review-date { font-size: 0.75rem; color: var(--text-secondary); }
.review-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin-top: 6px; }
.review-source { font-size: 0.72rem; color: var(--text-secondary); margin-top: 8px; opacity: 0.7; }

/* VS badge */
.vs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
    margin: 0 16px;
    flex-shrink: 0;
}

.vs-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
    flex-wrap: wrap;
    gap: 8px;
}
.vs-model {
    text-align: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 160px;
}
.vs-model-name { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.vs-model-sub { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }

/* Verdict box */
.verdict {
    background: var(--accent-glow);
    border: 1px solid rgba(231,76,60,0.25);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
    text-align: center;
}
.verdict h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--accent-light); }
.verdict p { color: var(--text-secondary); font-size: 0.92rem; }

/* Score circle */
.score-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 8px;
}
.score-high { background: linear-gradient(135deg, #22c55e, #4ade80); }
.score-mid { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.score-low { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

/* Model grid on hub page */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.model-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
}
.model-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.model-card-name { font-size: 1.05rem; font-weight: 700; }
.model-card-company { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }
.model-card-scores { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.model-card-score {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.model-card-score .val { color: var(--accent-light); font-weight: 600; }

/* Sidebar expand/collapse toggle */
.sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    color: var(--accent-light);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    user-select: none;
}
.sidebar-toggle:hover {
    background: var(--accent-glow);
    color: var(--accent-light);
}
.sidebar-toggle::before {
    content: "▶";
    font-size: 0.6rem;
    transition: transform 0.2s;
}
.sidebar-toggle.expanded::before {
    transform: rotate(90deg);
}

/* Interactive rating on hub model cards */
.interactive-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.rate-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.rate-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 1.1rem;
    cursor: pointer;
}
.rate-stars span {
    color: var(--border);
    transition: color 0.15s, transform 0.15s;
}
.rate-stars span:hover,
.rate-stars span.hovered {
    color: #f59e0b;
    transform: scale(1.15);
}
.rate-stars span.rated {
    color: #f59e0b;
}
.rate-thanks {
    font-size: 0.75rem;
    color: #4ade80;
    animation: fadeIn 0.3s ease;
}

/* Comment form */
.comment-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 20px;
}
.comment-form h3 {
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: var(--text);
}
.comment-form-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-input,
.comment-textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}
.comment-input:focus,
.comment-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.comment-input::placeholder,
.comment-textarea::placeholder {
    color: var(--text-secondary);
}
.comment-stars {
    display: flex;
    gap: 4px;
    font-size: 1.4rem;
    cursor: pointer;
}
.comment-stars span {
    color: var(--border);
    transition: color 0.15s, transform 0.15s;
    user-select: none;
}
.comment-stars span:hover,
.comment-stars span.active {
    color: #f59e0b;
    transform: scale(1.1);
}
.comment-submit {
    align-self: flex-start;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.comment-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.3);
}
.comment-success {
    padding: 12px 18px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 8px;
    color: #4ade80;
    font-size: 0.88rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* TOC related links */
.toc-related {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.toc-related-link {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0 4px 12px;
    border-left: 2px solid transparent;
    transition: all 0.15s;
    line-height: 1.5;
}
.toc-related-link:hover {
    color: var(--accent-light);
    border-left-color: var(--accent);
}

/* Like/Dislike buttons */
.vote-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.vote-bar-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-right: auto;
}
.vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.25s;
    user-select: none;
    position: relative;
}
.vote-btn:hover { border-color: var(--accent); transform: scale(1.12); }
.vote-btn.voted-up { border-color: #22c55e; background: rgba(34,197,94,0.15); transform: scale(1.15); }
.vote-btn.voted-down { border-color: #ef4444; background: rgba(239,68,68,0.15); transform: scale(1.15); }

/* Burst particle */
.vote-particle {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    animation: vote-burst 0.7s ease-out forwards;
}
@keyframes vote-burst {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}

/* Dimension analysis cards */
.dim-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}
.dim-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
}
.dim-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dim-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}
.dim-winner {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(34,197,94,0.1);
    color: #4ade80;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-left: auto;
}

/* Scenario recommendation cards */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.scenario-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
}
.scenario-card h4 {
    font-size: 0.92rem;
    color: var(--accent-light);
    margin-bottom: 6px;
}
.scenario-card p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.scenario-card .rec-model {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-glow);
    color: var(--accent-light);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

/* Expert quote */
.expert-quote {
    background: var(--bg);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 14px 0;
    font-style: italic;
}
.expert-quote p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 6px;
}
.expert-quote .expert-source {
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.7;
    font-style: normal;
}

/* Media badge */
.media-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(108,92,231,0.12);
    color: #a78bfa;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 6px;
}

@media (max-width: 1024px) {
    .dim-analysis { grid-template-columns: 1fr; }
    .scenario-grid { grid-template-columns: 1fr; }
    .vote-bar { flex-wrap: wrap; }
}

/* Rating popup toast */
.rating-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(34, 197, 94, 0.95);
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    pointer-events: none;
}
.rating-toast.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1024px) {
    .model-grid { grid-template-columns: 1fr; }
    .vs-header { flex-direction: column; }
    .compare-table { font-size: 0.8rem; }
    .compare-table th, .compare-table td { padding: 8px 10px; }
    .comment-form { padding: 16px; }
    .toc-related { display: none; }
}
