/* ==============================================================
   IVD 行业信息聚合平台 — 灵动呼吸感·玻璃拟态卡片网格
   Lightweight Glassmorphism 2-Column Card Grid
   ============================================================== */

/* ==================== 全局 ==================== */

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

:root {
    --bg: #f6f5f2;
    --card-bg: rgba(255, 255, 255, 0.78);
    --card-border: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 2px 10px rgba(0,0,0,0.02);
    --card-shadow-hover: 0 4px 16px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.03);
    --glow-border: rgba(14, 165, 233, 0.12);
    --text-primary: #1c1917;
    --text-secondary: #78716c;
    --text-muted: #a8a29e;
    --accent: #292524;
    --accent-light: #f5f4f0;
    --border: #e8e6e1;
    --border-light: #f0efeb;
    --radius: 12px;
    --radius-sm: 8px;
    --font-serif: Georgia, 'Times New Roman', 'Noto Serif SC', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
    --sidebar-width: 220px;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(14, 165, 233, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==================== 容器 ==================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== 导航栏 ==================== */

.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    padding: 0 24px;
    max-width: 1280px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-title h1 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.nav-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.5);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-refresh:hover:not(:disabled) {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: var(--accent-light);
}

.btn-refresh:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--border);
    border-top-color: var(--text-secondary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 行业标语横幅 ==================== */

.quote-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0f2fe 100%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    padding: 7px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #1e40af;
    font-style: normal;
    letter-spacing: 0.01em;
}

.quote-banner-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.quote-banner-text {
    max-width: 600px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 小部件折叠箭头 ==================== */

.collapse-arrow {
    margin-left: auto;
    font-size: 8px;
    transition: transform 0.25s ease;
    opacity: 0.4;
}

.collapse-arrow.collapsed {
    transform: rotate(-90deg);
}

/* ==================== 三栏布局 ==================== */

.main-layout {
    display: flex;
    gap: 24px;
    padding: 24px 24px 0;
    align-items: flex-start;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
}

.content-center {
    flex: 1;
    min-width: 0;
    padding-bottom: 40px;
}

/* ==================== 小部件通用 ==================== */

.widget {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 14px 16px;
    transition: box-shadow 0.25s;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.widget-header svg {
    opacity: 0.5;
    flex-shrink: 0;
}

.widget-empty {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 8px 0;
}

/* ==================== 发现按钮 ==================== */

.dice-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.dice-btn:hover:not(:disabled) {
    border-color: var(--text-muted);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.dice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dice-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.dice-btn:hover .dice-icon {
    transform: rotate(90deg) scale(1.1);
}

.dice-text {
    letter-spacing: 0.02em;
}

/* ==================== 热词云 ==================== */

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.word-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.word-tag:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ==================== 今日星座运势 ==================== */

.widget-zodiac {
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.7));
    border-left: 3px solid #8b5cf6;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 4px;
}

.zodiac-item {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    border-left: 2px solid var(--zodiac-accent, #eab308);
    transition: all 0.2s ease;
    cursor: default;
}

.zodiac-item:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

.zodiac-emoji {
    font-size: 20px;
    display: block;
    line-height: 1.2;
}

.zodiac-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-top: 2px;
}

.zodiac-stars {
    font-size: 9px;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 1px;
    color: var(--zodiac-accent, #eab308);
}

.zodiac-text {
    font-size: 10px;
    color: var(--text-secondary);
    display: block;
    margin-top: 3px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== AI 辣评 ==================== */

.widget-ai-review {
    border-left: 3px solid #8b5cf6;
}

.ai-review-body {
    padding: 2px 0;
}

.ai-review-text {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}


/* ==================== 随机翻牌浮层 ==================== */

.random-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.random-modal {
    background: white;
    border-radius: 16px;
    padding: 32px 36px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    animation: modal-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.random-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, #292524);
}

.random-modal-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 8px;
}

.random-modal-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.random-modal-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}

.random-modal-title a {
    color: var(--text-primary);
    transition: color 0.2s;
}

.random-modal-title a:hover {
    color: var(--card-accent);
}

.random-modal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.random-source {
    font-weight: 500;
    color: var(--card-accent);
}

.random-modal-summary {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.random-modal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.random-link-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.random-link-btn:hover {
    background: #44403c;
}

.random-again-btn {
    padding: 8px 20px;
    background: var(--accent-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.random-again-btn:hover {
    border-color: var(--text-primary);
}

.random-close-btn {
    padding: 8px 20px;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
    margin-left: auto;
}

.random-close-btn:hover {
    color: var(--text-primary);
}

@keyframes modal-pop {
    0% { opacity: 0; transform: scale(0.85) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-fade-enter-active { transition: opacity 0.25s ease; }
.modal-fade-leave-active { transition: opacity 0.2s ease; }
.modal-fade-enter-from,
.modal-fade-leave-to { opacity: 0; }

/* ==================== 主体 ==================== */

.main-content {
    padding: 24px 0 40px;
    min-height: calc(100vh - 100px);
}

/* ==================== 极简统计 ==================== */

.stats-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 0 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.stat-mini-num {
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.stat-mini-sep {
    color: var(--border);
    font-size: 10px;
}

.stat-mini-date {
    color: var(--text-secondary);
}

/* ==================== 搜索栏 ==================== */

.search-section {
    margin-bottom: 18px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 2px;
    box-shadow: var(--card-shadow);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.search-box:focus-within {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08), var(--card-shadow);
}

.search-icon {
    margin: 0 8px 0 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    padding: 8px 0;
    border: none;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-primary);
    background: transparent;
    outline: none;
}

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

.btn-search {
    padding: 6px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-search:hover:not(:disabled) {
    background: #44403c;
}

.btn-search:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== 分类标签 — Notion 下划线 ==================== */

.category-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-button:hover {
    color: var(--text-secondary);
}

.tab-button.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
    font-weight: 600;
}

/* ==================== 热点子分类 ==================== */

.platform-sub-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 18px;
    padding: 10px 0;
}

.sub-tab-button {
    padding: 7px 6px;
    background: var(--card-bg);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
    letter-spacing: 0.02em;
}

.sub-tab-button:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.sub-tab-button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
}

/* ==================== 搜索结果提示 ==================== */

.search-result-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 13px;
}

.btn-clear-search {
    margin-left: auto;
    padding: 2px 10px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-search:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* ==================== 新闻卡片网格 — 双列玻璃拟态 ==================== */

.news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.news-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 18px 20px 14px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--card-accent, #ccc);
    opacity: 0.7;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.07), 0 4px 14px rgba(0,0,0,0.04);
    border-color: var(--card-accent, var(--glow-border));
    border-color: color-mix(in srgb, var(--card-accent, #ccc) 20%, transparent);
}

.news-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 14px var(--card-accent, #ccc);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.news-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.news-title a {
    color: var(--text-primary);
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--card-accent);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.news-source {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.news-source::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--source-dot, var(--text-muted));
    flex-shrink: 0;
    display: inline-block;
}

.news-date {
    font-size: 11px;
    color: var(--text-muted);
}

.news-summary {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 卡片水印 ==================== */

.card-watermark {
    position: absolute;
    right: 10px;
    bottom: 6px;
    font-size: 44px;
    opacity: 0.045;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
}

/* ==================== 热度暴击 ==================== */

.is-hot {
    position: relative;
}

.is-hot::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    border: 1.5px solid rgba(239, 68, 68, 0.15);
    pointer-events: none;
    animation: hot-glow 2s ease-in-out infinite;
}

@keyframes hot-glow {
    0%, 100% { box-shadow: 0 0 4px rgba(239, 68, 68, 0.06); }
    50% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.12), 0 0 20px rgba(239, 68, 68, 0.05); }
}

.hot-badge {
    display: inline-block;
    animation: hot-bounce 0.5s ease-in-out infinite alternate;
    font-size: 13px;
    margin-right: 2px;
    transform-origin: center;
}

@keyframes hot-bounce {
    0% { transform: scale(1); }
    100% { transform: scale(1.25); }
}

/* ==================== 经典小品（右侧栏） ==================== */

.widget-retro-tv {
    padding: 10px 10px 14px;
    overflow: hidden;
    cursor: default;
    position: relative;
}

.widget-retro-tv .widget-header svg {
    opacity: 0.5;
}

.tv-fallback {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.tv-fallback a {
    color: #2563eb;
    text-decoration: underline;
}

.tv-fallback a:hover {
    color: #1d4ed8;
}

.tv-fallback a:hover {
    color: #1d4ed8;
}

/* ==================== 复古电视 ==================== */

.retro-tv {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tv-body {
    background: #5c3a1e;
    background: linear-gradient(145deg, #6b4423, #4a2d14);
    border-radius: 14px 14px 6px 6px;
    padding: 10px 10px 6px;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
    width: 100%;
    position: relative;
}

.tv-screen {
    background: #1a1a2e;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 2px solid #3a2210;
    position: relative;
}

.tv-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.tv-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 6px 0 2px;
}

.tv-knob {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4a76a;
    background: radial-gradient(circle at 35% 35%, #e8c48a, #b8894e);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.2);
}

.tv-knob-right {
    width: 14px;
    height: 14px;
}

.tv-legs {
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    margin-top: -2px;
}

.tv-leg {
    display: block;
    width: 6px;
    height: 10px;
    background: #4a2d14;
    border-radius: 0 0 3px 3px;
}

.news-card-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s, gap 0.2s;
}

.news-link:hover {
    color: var(--text-primary);
    gap: 8px;
}

/* ==================== 空状态 ==================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state svg {
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 14px;
}

/* ==================== 分页 ==================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.btn-page {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--card-bg);
    backdrop-filter: blur(4px);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-page:hover:not(:disabled) {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-page:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.page-current {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ==================== 白噪音 ==================== */

.widget-white-noise {
    border-left: 3px solid #06b6d4;
}

.noise-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.noise-bubble-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.noise-bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #e0f2fe, #bae6fd);
    box-shadow: 0 2px 12px rgba(6, 182, 212, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.noise-bubble::after {
    content: '🎧';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
}

.noise-bubble.playing {
    animation: bubble-breathe 3s ease-in-out infinite;
    background: radial-gradient(circle at 35% 35%, #a5f3fc, #22d3ee);
    box-shadow: 0 2px 20px rgba(6, 182, 212, 0.3);
}

@keyframes bubble-breathe {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 12px rgba(6, 182, 212, 0.15); }
    50% { transform: scale(1.15); box-shadow: 0 4px 28px rgba(6, 182, 212, 0.25); }
}

.noise-buttons {
    display: flex;
    gap: 4px;
    width: 100%;
}

.noise-btn {
    flex: 1;
    padding: 4px 6px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
}

.noise-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.noise-btn.active {
    background: #06b6d4;
    border-color: #06b6d4;
    color: white;
    font-weight: 600;
}

/* ==================== 骰子旋转动画 ==================== */

.dice-btn .dice-icon {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dice-btn.spinning .dice-icon {
    animation: dice-spin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2;
}

@keyframes dice-spin {
    0% { transform: perspective(200px) rotateX(0deg) rotateY(0deg) scale(1); }
    25% { transform: perspective(200px) rotateX(180deg) rotateY(90deg) scale(1.2); }
    50% { transform: perspective(200px) rotateX(360deg) rotateY(180deg) scale(1.15); }
    75% { transform: perspective(200px) rotateX(540deg) rotateY(270deg) scale(1.2); }
    100% { transform: perspective(200px) rotateX(720deg) rotateY(360deg) scale(1); }
}

/* ==================== 热词云增强 - 错落排版 ==================== */

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 7px;
    align-items: center;
    justify-content: center;
    padding: 2px 0;
    line-height: 1.8;
}

.word-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
    line-height: 1.6;
    border: 1px solid transparent;
}

.word-tag:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.2);
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    border-color: currentColor;
}

.widget-ai-review {
    position: relative;
}

.widget-ai-review::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    border: 1px solid rgba(139, 92, 246, 0.08);
    pointer-events: none;
    transition: opacity 0.3s;
}

.widget-ai-review:hover::before {
    opacity: 1;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.06);
}

/* ==================== 页脚 ==================== */

.footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
}

.footer-meta {
    font-size: 11px !important;
    color: var(--text-muted) !important;
    margin-top: 2px;
}

/* ==================== 响应式 ==================== */

@media (max-width: 1100px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .sidebar .widget {
        flex: 1;
        min-width: 200px;
    }

    .sidebar-left {
        order: -1;
    }

    /* 在移动布局中，骰子按钮宽度自适应 */
    .widget-dice {
        flex: 0 0 auto;
        min-width: 140px;
    }
}

@media (max-width: 820px) {
    .news-list {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    :root {
        --sidebar-width: 100%;
    }

    .news-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
        height: 50px;
    }

    .nav-title h1 {
        font-size: 15px;
    }

    .nav-subtitle {
        display: none;
    }

    .platform-sub-tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-content,
    .main-layout {
        padding: 18px 0 28px;
    }

    .category-tabs {
        gap: 0;
    }

    .tab-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .news-card {
        padding: 14px 16px 12px;
    }

    .news-title {
        font-size: 14px;
    }

    .pagination {
        gap: 10px;
    }

    .btn-page {
        padding: 4px 10px;
        font-size: 12px;
    }

    .btn-refresh {
        padding: 4px 12px;
        font-size: 12px;
    }

    .sidebar {
        flex-direction: column;
    }

    .sidebar .widget {
        min-width: unset;
    }

    .widget-retro-tv {
        max-width: unset;
    }

    .random-modal {
        padding: 24px 20px;
    }

    .random-modal-title {
        font-size: 16px;
    }

    .random-modal-actions {
        flex-direction: column;
    }

    .random-close-btn {
        margin-left: 0;
    }
}

@media (max-width: 400px) {
    .nav-title h1 {
        font-size: 13px;
    }

    .tab-button {
        font-size: 11px;
        padding: 6px 10px;
    }

    .news-title {
        font-size: 14px;
    }
}
