:root {
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #0f172a;
    --accent: #3b82f6;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.logo-box {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-list {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s;
}

.nav-item:hover, .nav-item.active {
    background-color: #f1f5f9;
    color: var(--primary);
}

.nav-item svg {
    width: 18px;
    height: 18px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: opacity 0.3s ease;
}

.top-bar {
    height: 64px;
    background-color: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.top-filters {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.filter-btn:hover {
    background: #f8fafc;
}

/* Dashboard Grid */
.dashboard-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: min-content;
    gap: 1.5rem;
    box-sizing: border-box;
    width: 100%;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
}

.visibility-chart-card {
    grid-column: span 8;
}

.competitors-card {
    grid-column: span 4;
}

.domains-card {
    grid-column: span 8;
}

.domain-types-card {
    grid-column: span 4;
}

.insights-card {
    grid-column: span 12;
    min-height: 250px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.brand-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #e2e8f0;
}

.trend-up { color: #10b981; }
.trend-down { color: #ef4444; }

/* Tag Styles */
.badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-ugc { background: #e0f2fe; color: #0369a1; }
.badge-editorial { background: #fef3c7; color: #92400e; }

#competitors-table tbody tr:hover {
    background-color: #f8fafc;
    transition: background-color 0.2s;
}

#domain-stats-summary > div:hover {
    background-color: #f8fafc;
    padding-left: 5px !important;
    transition: all 0.2s;
}

/* Custom Tooltip */
.tooltip-trigger {
    position: relative;
}

.tooltip-trigger {
    position: relative;
    cursor: help;
}

.custom-tooltip {
    position: absolute;
    bottom: 125%; /* 放在上方 */
    left: 0; /* 向右展开 */
    right: auto;
    width: 280px;
    background: #1e293b;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transition-delay: 0s;
    pointer-events: none;
    z-index: 10000;
    text-transform: none;
    font-weight: normal;
    text-align: left !important;
}

.tooltip-trigger:hover .custom-tooltip,
.custom-tooltip.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.1s; /* 响应变快 */
}

/* 随机展示时不需要延迟 */
.custom-tooltip.active {
    transition-delay: 0s;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 10px; /* 箭头对应左侧图标位置 */
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

/* User Tag */
#user-tag-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Detailed Records Filters Optimization */
.records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.records-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.records-filters .filter-select-v2 {
    flex-shrink: 0;
}

.search-wrapper {
    position: relative;
    width: 240px;
    flex: 0 1 240px;
    min-width: 160px;
}

.search-wrapper input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.4rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    background: #f8fafc;
    transition: all 0.2s;
}

.search-wrapper input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-wrapper i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    width: 16px;
    height: 16px;
}

/* High-Fidelity AI Detail Drawer Styles (Match Screenshot 5) */
.drawer-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(2px);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
}

.right-drawer {
    width: 950px; /* Wider for better breathing room like screenshot 5 */
    height: 100%;
    background: #fdfdfe; /* Almost pure white */
    box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.active {
    display: flex;
}

.drawer-overlay.active .right-drawer {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem 2.5rem;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 0; /* Removing padding to control it in sections */
}

/* AI Answer Rendering Styles (Match Screenshot 5) */
.ai-answer-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1.25rem 2.5rem;
    background: #f9fafb;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 2rem;
    text-align: center;
}

.meta-item .label {
    display: none; /* In screenshot 5, labels are hidden */
}

.meta-item .value {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 500;
}

.ai-answer-section {
    background: transparent;
    padding: 0 2.5rem;
    margin-bottom: 3rem;
}

.ai-answer-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #111827;
}

/* Doubao-Engine: High-Fidelity Content Rendering */
.ai-content-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.9;
    color: #374151;
    font-size: 1.05rem;
}

/* 豆包风格标题体系 */
.ai-content-body h1 { font-size: 1.5rem; font-weight: 800; color: #111827; margin: 2rem 0 1.5rem; border-bottom: none; }
.ai-content-body h3 { font-size: 1.2rem; font-weight: 700; color: #111827; margin: 2.5rem 0 1.25rem; }
.ai-content-body h4 { font-size: 1.05rem; font-weight: 700; color: #1f2937; margin: 1.5rem 0 0.75rem; }

/* 豆包风格列表 */
.ai-content-body ul { list-style: none; padding-left: 0; margin: 1rem 0; }
.ai-content-body ul li { 
    position: relative; 
    padding-left: 1.5rem; 
    margin-bottom: 0.8rem; 
    display: block;
}
.ai-content-body ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.7rem;
    width: 5px;
    height: 5px;
    background-color: #94a3b8;
    border-radius: 50%;
}

/* 强调文字 */
.ai-content-body strong { color: #111827; font-weight: 700; }

/* 豆包风格卡片组 (引用) */
.citation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.citation-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.citation-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.cite-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.ai-image-wrapper {
    margin: 2.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
}

.ai-image-wrapper img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    display: block;
}

.citation-section {
    padding: 0 2.5rem 3rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 2rem;
}

.citation-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.check-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.check-group input {
    cursor: pointer;
}

.citation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.citation-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.citation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cite-tag {
    font-size: 0.65rem;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.cite-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cite-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cite-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.cite-source {
    color: #94a3b8;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
}

.records-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    background: #f8fafc;
}

.records-table td {
    padding: 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.records-table tr:hover {
    background: #f8fafc;
}

.sentiment-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.sentiment-positive { background: #10b981; }
.sentiment-neutral { background: #94a3b8; }
.sentiment-negative { background: #ef4444; }

.op-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-item {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-item:hover, .page-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Demo Overlay */
/* Modal Stacking */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000; /* 演示动画中蒙层 z-index 是 900，这里必须高于它 */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.product-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.product-item:hover {
    border-color: var(--accent);
    background: #eff6ff;
}

.custom-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.custom-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary:hover { opacity: 0.9; }

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 2s linear infinite;
}

/* Right Drawer Improvements */
#export-drawer-btn:hover {
    background: #e2e8f0 !important;
    color: var(--primary) !important;
}

.login-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(248, 250, 252, 0.8); /* 改为半透明背景，更有质感 */
    backdrop-filter: blur(8px); /* 增加磨砂效果 */
    z-index: 9999;
    display: none; /* 默认隐藏，由 JS 控制 */
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--accent);
}

/* Tooltip */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

[data-tooltip]:hover:after {
    opacity: 1;
    visibility: visible;
}

/* Page V2 Styles (Brand Visibility etc.) */
.view-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 整体曝光看板（原概览）：KPI 区与品牌横幅留出统一间距，两行 KPI 卡片样式一致 */
#view-overview {
    padding: 0.75rem 2rem 2rem;
    box-sizing: border-box;
}

#view-overview .ovw-kpi-zone {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

#view-overview .ovw-stats-row {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
}

#view-overview #ovw-brand-kpis.ovw-brand-kpis-row {
    padding-top: 0;
}

#view-overview .ovw-dashboard-grid {
    padding: 1rem 0 0;
    margin: 0;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

/* 覆盖全局 12 列 span，形成规整的第一行（图+竞品）、第二行（信源饼+明细） */
#view-overview .ovw-dashboard-grid .visibility-chart-card,
#view-overview .ovw-dashboard-grid .competitors-card,
#view-overview .ovw-dashboard-grid .domains-card,
#view-overview .ovw-dashboard-grid .domain-types-card {
    grid-column: auto;
    min-width: 0;
}

#view-overview .ovw-chart-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

#view-overview .ovw-sessions-card {
    flex: 1;
}

#view-overview .ovw-competitors-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
}

#view-overview .ovw-competitors-scroll {
    overflow-y: auto;
    flex: 1;
    min-height: 280px;
}

.page-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-sizing: border-box;
    width: 100%;
    min-height: 108px;
}

.header-left {
    flex: 1;
    min-height: 60px;
}

.page-title-v2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-desc-v2 {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    min-height: 1.275rem;
}

.header-right-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    min-height: 60px;
}

.filter-select-v2 {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    height: 36px;
}

.stats-row-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 2rem 2rem;
    box-sizing: border-box;
    width: 100%;
}

.stat-card-v2 {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.stat-label-v2 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-icon-v2 {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.stat-value-v2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-icon-box-v2 {
    width: 48px;
    height: 48px;
    background: #f5f3ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
}

.stat-icon-box-v2 svg {
    width: 24px;
    height: 24px;
}

/* Content Generator Styles */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#generate-content-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

#generate-content-btn:active {
    transform: translateY(0);
}

#generate-content-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#content-topic-input:focus,
#content-output:focus,
#prompt-editor:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#copy-content-btn:hover {
    background: #e2e8f0;
}

#prompt-edit-modal .modal-content {
    animation: slideUp 0.3s ease-out;
}

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

/* =========================================================
 * v3 统一排版：所有页签统一容器、间距、卡片
 * ========================================================= */

.page-body {
    padding: 0 2rem 2rem;
    box-sizing: border-box;
    width: 100%;
}

.kw-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.72rem;
    font-weight: 600;
    margin: 2px 4px 2px 0;
    line-height: 1.4;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.btn-mini {
    border: 1px solid var(--border);
    background: #fff;
    color: #475569;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    cursor: pointer;
    line-height: 1.3;
}
.btn-mini:hover { background: #f1f5f9; }
.btn-mini-primary { border-color: #6366f1; color: #4338ca; }
.btn-mini-primary:hover { background: #eef2ff; }
.btn-mini-warn { border-color: #f59e0b; color: #92400e; background: #fef3c7; }
.btn-mini-warn:hover { background: #fde68a; }
.btn-mini-danger { border-color: #fecaca; color: #b91c1c; }
.btn-mini-danger:hover { background: #fee2e2; }

/* ---------- 资产库 ---------- */

.assets-summary-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.kpi-mini {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.kpi-mini-label { font-size: 0.72rem; color: var(--text-muted); }
.kpi-mini-value { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-top: 4px; }

.assets-grid {
    display: grid;
    grid-template-columns: 360px 1fr 360px;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 1280px) {
    .assets-grid { grid-template-columns: 1fr; }
    .assets-summary-row { grid-template-columns: repeat(3, 1fr); }
}

.assets-grid .card { margin: 0; }

.form-stack { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.78rem; color: #475569; font-weight: 600; }
.form-hint { font-size: 0.72rem; color: #94a3b8; }
.custom-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}
.custom-textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }

.asset-list { display: flex; flex-direction: column; gap: 0.6rem; max-height: 720px; overflow-y: auto; }
.asset-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    background: #fff;
}
.asset-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.asset-card-title { font-weight: 700; color: var(--primary); font-size: 0.92rem; }
.asset-card-meta { font-size: 0.72rem; color: #64748b; margin-top: 4px; display: flex; justify-content: space-between; }
.asset-card-preview { font-size: 0.78rem; color: #475569; margin-top: 6px; max-height: 56px; overflow: hidden; line-height: 1.5; }
.asset-card-facts { margin-top: 6px; font-size: 0.72rem; color: #475569; }
.asset-card-error { margin-top: 6px; font-size: 0.72rem; color: #b91c1c; background: #fee2e2; padding: 4px 8px; border-radius: 6px; }
.asset-card-actions { margin-top: 8px; display: flex; gap: 6px; justify-content: flex-end; }

.profile-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
.profile-block { margin-bottom: 0.85rem; }
.profile-block h5 {
    font-size: 0.72rem;
    color: #6366f1;
    letter-spacing: .04em;
    font-weight: 700;
    margin-bottom: 6px;
}

/* ---------- GEO 4 层策略 ---------- */

.opt-banner {
    background: linear-gradient(120deg, #fff 0%, #eef2ff 100%);
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}
.opt-banner-eyebrow { font-size: 0.7rem; color: #6366f1; font-weight: 700; letter-spacing: .04em; }
.opt-banner-title { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-top: 4px; }
.opt-banner-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 6px; }
.opt-banner-counts { display: flex; gap: 1.5rem; }
.opt-banner-counts > div { text-align: center; font-size: 0.72rem; color: #64748b; }
.opt-banner-num { font-size: 1.5rem; font-weight: 800; }

.layer-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0;
    margin-bottom: 1rem;
    overflow: hidden;
}
.layer-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
}
.layer-head svg { width: 22px; height: 22px; }
.layer-title { font-weight: 800; font-size: 1rem; }
.layer-subtitle { font-size: 0.72rem; opacity: 0.85; margin-top: 2px; }
.layer-count {
    margin-left: auto;
    background: rgba(255,255,255,.7);
    color: inherit;
    border-radius: 14px;
    padding: 2px 12px;
    font-weight: 700;
    font-size: 0.78rem;
}
.layer-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.strategy-empty { font-size: 0.78rem; color: #94a3b8; text-align: center; padding: 0.75rem 0; }
.strategy-card {
    background: #fafbfd;
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.strategy-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.strategy-card-title { font-weight: 700; color: var(--primary); font-size: 0.95rem; line-height: 1.4; }
.strategy-card-detail { font-size: 0.84rem; color: #475569; margin: 6px 0 8px; line-height: 1.6; }
.strategy-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0; font-size: 0.78rem; }
.strategy-meta-label { color: #64748b; margin-right: 4px; }
.strategy-facts { margin: 6px 0 0; padding-left: 1.2rem; font-size: 0.78rem; color: #475569; }
.strategy-facts li { margin-bottom: 2px; }
.strategy-evidence { margin-top: 6px; font-size: 0.78rem; }
.strategy-evidence-label { color: #64748b; margin-right: 4px; }
.strategy-rationale { font-size: 0.72rem; color: #94a3b8; margin-top: 6px; font-style: italic; }
.strategy-kpi {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ---------- 文案生成页：一键发布栏 ---------- */

.publish-bar {
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}
.publish-bar-label { font-size: 0.78rem; color: #475569; font-weight: 700; }
.publish-bar-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.publish-btn {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    transition: all .15s;
}
.publish-btn:hover { background: #eef2ff; border-color: #6366f1; color: #4338ca; }
.publish-bar-meta { width: 100%; font-size: 0.72rem; color: #64748b; }

/* ---------- 卡片头通用 ---------- */

.card-actions { display: flex; gap: 6px; align-items: center; }

/* ---------- 平台内容建模页 ---------- */

.platform-model-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #fef3c7 100%);
    border-radius: 14px;
    padding: 18px 22px;
    border: 1px solid rgba(99,102,241,0.12);
    box-shadow: 0 1px 3px rgba(15,23,42,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.platform-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 1rem;
}
.platform-model-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    background: #fff;
}

/* ---------- 内容生态分析页 ---------- */

.article-filter-chip:hover { opacity: 0.85; }
.article-filter-chip { transition: all .15s; }

@media (max-width: 1100px) {
    .platform-model-grid { grid-template-columns: 1fr; }
}

/* ── 页面加载进度条 ─────────────────────────────────────────────── */
/* ── 详情抽屉（最新数据/看板共用） ───────────────────────────────── */
.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0 1rem;
    padding: 0 2.5rem;
}
.detail-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    padding: 5px 11px;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1.2;
}
.detail-meta-pill.detail-meta-link {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}
.detail-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #e2e8f0;
    margin: 0 2.5rem 1rem;
    padding: 0;
}
.detail-tab {
    border: none;
    background: transparent;
    padding: 9px 14px;
    font-size: 0.84rem;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-weight: 500;
}
.detail-tab:hover { color: #334155; }
.detail-tab.is-active { color: #4338ca; border-bottom-color: #6366f1; font-weight: 700; }
.detail-pane {
    padding: 0 2.5rem 2.5rem;
}
.detail-section-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
    margin: 1.2rem 0 0.6rem;
}
.detail-refs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.detail-answer {
    padding: 0;
    background: transparent;
    margin-bottom: 1.2rem;
}
/* 原文卡片（替代 iframe 嵌入） */
.detail-source-card {
    margin: 0.5rem 0 1.2rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.detail-source-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4338ca;
    flex-shrink: 0;
}
.detail-source-text { flex: 1; min-width: 0; }
.detail-source-title { font-weight: 700; color: #1e1b4b; font-size: 0.88rem; }
.detail-source-url {
    color: #6366f1;
    font-size: 0.78rem;
    word-break: break-all;
    margin-top: 2px;
    line-height: 1.4;
}
.detail-source-btn {
    flex-shrink: 0;
    background: #6366f1;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.detail-source-btn:hover { background: #4f46e5; }
/* markdown 内容美化 */
.markdown-body {
    color: #0f172a;
    line-height: 1.75;
    font-size: 0.9rem;
    word-break: break-word;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
    color: #0f172a;
    margin: 1.2rem 0 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}
.markdown-body h1 { font-size: 1.2rem; }
.markdown-body h2 { font-size: 1.08rem; padding-bottom: 4px; border-bottom: 1px solid #f1f5f9; }
.markdown-body h3 { font-size: 0.98rem; }
.markdown-body h4 { font-size: 0.9rem; color: #334155; }
.markdown-body p { margin: 0.55rem 0; }
.markdown-body strong { color: #0f172a; font-weight: 700; }
.markdown-body ul, .markdown-body ol { margin: 0.55rem 0; padding-left: 1.4rem; }
.markdown-body li { margin: 0.25rem 0; }
.markdown-body li::marker { color: #6366f1; }
.markdown-body blockquote {
    margin: 0.6rem 0;
    padding: 0.4rem 0.9rem;
    border-left: 3px solid #6366f1;
    background: #f8fafc;
    color: #475569;
    border-radius: 0 6px 6px 0;
}
.markdown-body a { color: #4338ca; text-decoration: underline; word-break: break-all; }
.markdown-body code {
    background: #f1f5f9;
    color: #db2777;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.85em;
}
.markdown-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.82rem;
}
.markdown-body pre code { background: transparent; color: inherit; padding: 0; }
.markdown-body table {
    border-collapse: collapse;
    margin: 0.6rem 0;
    font-size: 0.85rem;
    width: 100%;
}
.markdown-body th, .markdown-body td {
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    text-align: left;
}
.markdown-body th { background: #f8fafc; font-weight: 700; }
.markdown-body hr { border: none; border-top: 1px solid #e2e8f0; margin: 1rem 0; }
.markdown-body img { max-width: 100%; border-radius: 6px; margin: 0.4rem 0; }

.cheetah-spinner-sm {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: plb-spin 0.8s linear infinite;
}
.btn-mini-primary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #6366f1;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}
.btn-mini-primary:hover { background: #4f46e5; }

/* ── 全局加载蒙层 ──────────────────────────────────────────────── */
#page-loading-bar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(248,250,252,0.78);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}
#page-loading-bar .plb-inner {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #8b5cf6, #3b82f6);
    background-size: 300% 100%;
    animation: plb-slide 1.6s linear infinite;
}
#page-loading-bar .plb-spinner {
    width: 44px; height: 44px;
    border: 3px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: plb-spin 0.8s linear infinite;
}
#page-loading-bar .plb-msg {
    background: transparent;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    pointer-events: none;
}
@keyframes plb-slide {
    0%   { background-position: 100% 0; }
    100% { background-position: -200% 0; }
}
@keyframes plb-spin {
    to { transform: rotate(360deg); }
}

/* 内容生态分析：修正内嵌 stats-row-v2 双重 padding */
#articles-body .stats-row-v2,
#platform-model-body .stats-row-v2 {
    padding-left: 0;
    padding-right: 0;
}
#articles-body .dashboard-grid,
#platform-model-body .dashboard-grid {
    padding-left: 0;
    padding-right: 0;
}

/* banner 中的 AUTR 评分数字（与下方模块保持同源一致） */
.opt-banner-score {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
#banner-autr-scores > div > div:last-child {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 2px;
}

/* ── AUTR 模型评分 ─────────────────────────────────────────────── */
.autr-section {
    background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.autr-empty, .autr-loading {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.autr-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}
.autr-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.autr-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin: 6px 0 4px;
}
.autr-meta {
    font-size: 0.78rem;
    color: #64748b;
}
.autr-overall-pill {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(99,102,241,.25);
}
.autr-overall-num { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.autr-overall-label { font-size: 0.7rem; margin-top: 4px; opacity: 0.92; }

.autr-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.autr-radar-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.autr-radar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: center;
}
.autr-dims-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 1280px) {
    .autr-grid { grid-template-columns: 1fr; }
    .autr-dims-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .autr-dims-grid { grid-template-columns: 1fr; }
}

.autr-card {
    background: #fff;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    border-top: 3px solid var(--dim-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.autr-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.autr-card-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.autr-card-icon i { width: 16px; height: 16px; }
.autr-card-titles { flex: 1; }
.autr-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.autr-card-sub {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}
.autr-card-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.autr-score-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 4px 0;
}
.autr-score-num {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
}
.autr-score-unit {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

.autr-bars { display: flex; flex-direction: column; gap: 4px; }
.autr-bar-item {
    display: grid;
    grid-template-columns: 56px 1fr 36px;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
}
.autr-bar-label { color: #64748b; }
.autr-bar-track {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}
.autr-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .5s cubic-bezier(.4,0,.2,1);
}
.autr-bar-val {
    text-align: right;
    color: #475569;
    font-weight: 600;
    font-size: 0.7rem;
}

.autr-best-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    color: #475569;
}
.autr-best-tag strong { color: #0f172a; }
.autr-gap-tag {
    background: #fff;
    color: #ef4444;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.autr-actions {
    background: #fefce8;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    padding: 6px 8px;
    margin-top: 4px;
}
.autr-action-item {
    font-size: 0.72rem;
    color: #713f12;
    line-height: 1.5;
    padding: 2px 0;
}

/* leaderboard */
.autr-leaderboard {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.autr-lb-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}
.autr-lb-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}
.autr-lb-title i { width: 18px; height: 18px; color: #f59e0b; }
.autr-lb-hint { font-size: 0.7rem; color: #94a3b8; }

.autr-lb-row {
    display: grid;
    grid-template-columns: 36px 1fr 80px 120px;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    border-radius: 6px;
    transition: background .15s;
}
.autr-lb-row:hover { background: #f8fafc; }
.autr-lb-row.is-user {
    background: linear-gradient(90deg, #eef2ff, transparent);
    border-left: 3px solid #6366f1;
    padding-left: 8px;
}
.autr-lb-rank { font-size: 1rem; text-align: center; }
.autr-lb-rank .lb-num {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 700;
}
.autr-lb-brand {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}
.autr-lb-you {
    background: #6366f1;
    color: #fff;
    font-size: 0.62rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}
.autr-lb-overall {
    font-size: 1rem;
    font-weight: 800;
    color: #6366f1;
    text-align: right;
}
.autr-lb-mini-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    height: 26px;
    align-items: end;
}
.autr-lb-mini {
    background: #f1f5f9;
    border-radius: 3px 3px 0 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: flex-end;
}
.autr-lb-mini > div {
    width: 100%;
    border-radius: 3px 3px 0 0;
    transition: height .4s ease;
}

/* ── 信源平台排行榜 ─────────────────────────────────────────────── */
.plat-row {
    display: grid;
    grid-template-columns: 24px 1fr 120px 44px 56px;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 6px;
    transition: background .15s;
}
.plat-row:hover { background: #f8fafc; }
.plat-rank {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
}
.plat-row:nth-child(1) .plat-rank { color: #f59e0b; }
.plat-row:nth-child(2) .plat-rank { color: #94a3b8; }
.plat-row:nth-child(3) .plat-rank { color: #b45309; }
.plat-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.plat-bar-wrap {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.plat-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 3px;
    transition: width .4s ease;
}
.plat-pct {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 600;
    text-align: right;
}
.plat-cnt {
    font-size: 0.75rem;
    color: #64748b;
    text-align: right;
}
