/* 自定义视觉美化、Dark Mode 与 Google AdSense 规范容器 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* 顶部阅读进度条 (Sleek Tech Gradient) */
#readingProgress {
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.4);
}

/* AI 核心要点发光边框 */
.ai-takeaways-card {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.85) 0%, rgba(245, 243, 255, 0.85) 100%);
    border-left: 4px solid #3b82f6;
}

/* 缺省封面图渐变背景 (优雅兜底) */
.placeholder-tech {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #4c1d95 100%);
}
.placeholder-ai {
    background: linear-gradient(135deg, #065f46 0%, #1e3a8a 60%, #4338ca 100%);
}
.placeholder-finance {
    background: linear-gradient(135deg, #78350f 0%, #854d0e 50%, #1e3a8a 100%);
}
.placeholder-world {
    background: linear-gradient(135deg, #374151 0%, #1f2937 60%, #111827 100%);
}

/* ========================================================
   深色模式 (Dark Mode) 全局自适应强化
   ======================================================== */
.dark body {
    background-color: #0b0f19 !important;
    color: #e2e8f0 !important;
}

.dark header {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
}

.dark footer {
    background-color: #0d121f !important;
    border-color: #1f2937 !important;
}

.dark .bg-white {
    background-color: #131b2e !important;
    color: #f1f5f9;
}

.dark .bg-gray-50 {
    background-color: #0b0f19 !important;
}

.dark .bg-gray-100 {
    background-color: #1e293b !important;
    color: #e2e8f0;
}

.dark .text-gray-900 {
    color: #f8fafc !important;
}

.dark .text-gray-800 {
    color: #e2e8f0 !important;
}

.dark .text-gray-700 {
    color: #cbd5e1 !important;
}

.dark .text-gray-600 {
    color: #94a3b8 !important;
}

.dark .text-gray-500 {
    color: #94a3b8 !important;
}

.dark .border-gray-100, 
.dark .border-gray-200, 
.dark .border-gray-300 {
    border-color: #1e293b !important;
}

.dark .divide-gray-100 > * {
    border-color: #1e293b !important;
}

.dark .ai-takeaways-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(49, 46, 129, 0.5) 100%) !important;
    border-left: 4px solid #60a5fa !important;
}

/* 抽屉遮罩层与动画 */
.drawer-backdrop {
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease-in-out;
}

/* 移动端分类横滑栏: 隐藏滚动条, 保留横滑 */
.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
