/* =========================================
   现代化前端样式优化
   设计目标：现代、清新、流畅交互、优雅排版
   ========================================= */

/* 基础重置与变量 */
:root {
    /* 主色调 - 红调 */
    --primary: #dc2626;
    --primary-light: #ef4444;
    --primary-dark: #b91c1c;

    /* 强调色 - 橙红 */
    --accent: #f97316;
    --accent-light: #fb923c;

    /* 中性色 */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;

    /* 间距系统 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

    /* 动画 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Tailwind 工具类支持（最小子集）
   ========================================= */
/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1 1 0%; }
.min-h-\[40px\] { min-height: 40px; }

/* Grid */
.grid { display: grid; }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-1 { gap: 4px; }
.gap-0\.5 { gap: 2px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }
.gap-14 { gap: 56px; }
.gap-16 { gap: 64px; }

/* 间距 */
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.pb-4 { padding-bottom: 16px; }
.pt-4 { padding-top: 16px; }
.m-0 { margin: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-14 { margin-bottom: 56px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-10 { margin-top: 40px; }

/* 文字 */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.leading-1\.3 { line-height: 1.3; }
.leading-1\.4 { line-height: 1.4; }
.leading-1\.6 { line-height: 1.6; }
.tracking-\[0\.3px\] { letter-spacing: 0.3px; }
.tracking-\[0\.5px\] { letter-spacing: 0.5px; }
.tracking-\[-0\.3px\] { letter-spacing: -0.3px; }
.tracking-\[-0\.5px\] { letter-spacing: -0.5px; }

/* 颜色 */
.text-white { color: white; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-green-400 { color: #4ade80; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }
.text-orange-400 { color: #fb923c; }
.text-orange-500 { color: #f97316; }
.text-orange-600 { color: #ea580c; }
.text-yellow-500 { color: #eab308; }
.text-yellow-600 { color: #ca8a04; }
.text-pink-400 { color: #f472b6; }
.text-purple-400 { color: #c084fc; }
.text-blue-400 { color: #60a5fa; }
.text-indigo-400 { color: #818cf8; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* 背景色 */
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-900\/30 { background-color: rgba(17, 24, 39, 0.3); }
.bg-gray-800\/50 { background-color: rgba(31, 41, 55, 0.5); }
.bg-gray-750 { background-color: #2d3748; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-900\/30 { background-color: rgba(30, 27, 27, 0.3); }
.bg-red-900\/20 { background-color: rgba(30, 27, 27, 0.2); }
.bg-orange-50 { background-color: #fff7ed; }
.bg-orange-900\/30 { background-color: rgba(34, 30, 27, 0.3); }
.bg-pink-50 { background-color: #fdf2f8; }
.bg-pink-900\/30 { background-color: rgba(34, 27, 27, 0.3); }
.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-900\/30 { background-color: rgba(34, 32, 27, 0.3); }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-900\/20 { background-color: rgba(20, 35, 27, 0.2); }
.bg-green-900\/30 { background-color: rgba(20, 35, 27, 0.3); }
.bg-purple-50 { background-color: #faf5ff; }
.bg-purple-900\/30 { background-color: rgba(31, 27, 35, 0.3); }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-900\/30 { background-color: rgba(23, 27, 35, 0.3); }
.bg-transparent { background-color: transparent; }
.bg-primary { background-color: var(--primary); }
.bg-primary-light { background-color: var(--primary-light); }

.dark\:bg-gray-800 { background-color: #1f2937; }
.dark\:bg-gray-900 { background-color: #111827; }
.dark\:bg-gray-600 { background-color: #4b5563; }
.dark\:bg-gray-700 { background-color: #374151; }
.dark\:bg-gray-900\/50 { background-color: rgba(17, 24, 39, 0.5); }
.dark\:bg-gray-750 { background-color: #2d3748; }
.dark\:bg-red-900\/30 { background-color: rgba(30, 27, 27, 0.3); }
.dark\:bg-green-900\/20 { background-color: rgba(20, 35, 27, 0.2); }
.dark\:bg-green-900\/30 { background-color: rgba(20, 35, 27, 0.3); }
.dark\:bg-blue-900\/30 { background-color: rgba(23, 27, 35, 0.3); }

/* 边框 */
.border { border: 1px solid var(--border); }
.border-2 { border: 2px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-l-4 { border-left: 4px solid var(--primary); }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-700 { border-color: #374151; }
.border-red-200 { border-color: #fecaca; }
.border-red-800 { border-color: #991b1b; }
.border-orange-200 { border-color: #fed7aa; }
.border-orange-800 { border-color: #9a3412; }
.border-pink-200 { border-color: #fbcfe8; }
.border-pink-800 { border-color: #9d174d; }
.border-yellow-200 { border-color: #fef08a; }
.border-yellow-800 { border-color: #a16207; }
.border-green-200 { border-color: #bbf7d0; }
.border-green-800 { border-color: #166534; }
.border-purple-200 { border-color: #e9d5ff; }
.border-purple-800 { border-color: #6b21a8; }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-800 { border-color: #1e40af; }
.border-transparent { border-color: transparent; }

/* 圆角 */
.rounded { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: 20px; }
.rounded-2xl { border-radius: 24px; }
.rounded-full { border-radius: var(--radius-full); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }

/* 阴影 */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* 过渡 */
.transition { transition: all var(--transition-base); }
.transition-colors { transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base); }
.transition-all { transition: all var(--transition-base); }
.transition-transform { transition: transform var(--transition-base); }
.transition-opacity { transition: opacity var(--transition-base); }
.transition-none { transition: none; }
.duration-300 { transition-duration: 300ms; }

/* 布局 */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }

/* 溢出 */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* 尺寸 */
.w-full { width: 100%; }
.max-w-md { max-width: 448px; }
.max-w-\[400px\] { max-width: 400px; }
.max-h-\[40px\] { max-height: 40px; }
.h-5 { height: 20px; }
.h-6 { height: 24px; }
.w-5 { width: 20px; }
.w-6 { width: 24px; }
.w-11 { width: 44px; }
.h-11 { height: 44px; }
.min-h-\[40px\] { min-height: 40px; }
.min-h-\[60px\] { min-height: 60px; }
.min-h-\[80px\] { min-height: 80px; }
.min-h-\[180px\] { min-height: 180px; }

/* Flex 项目 */
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* 显示/隐藏 */
.hidden { display: none; }
.block { display: block; }

/* 鼠标 */
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }

/* 变换 */
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) scale(var(--tw-scale, 1)); }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.-translate-y-2 { transform: translateY(-8px); }
.-translate-y-4 { transform: translateY(-16px); }
.-translate-y-6 { transform: translateY(-24px); }
.translate-y-\[-2px\] { transform: translateY(-2px); }

/* 渐变 */
.bg-gradient-to-r { background: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-primary { --tw-gradient-from: var(--primary); }
.to-primary-light { --tw-gradient-to: var(--primary-light); }
.bg-gradient-90deg { background: linear-gradient(90deg, var(--tw-gradient-from), var(--tw-gradient-to)); }

/* 触摸高亮 */
.touch-none { touch-action: none; }

/* 字体 */
.font-mono {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.serif {
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

/* 内容可见性 */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.opacity-50 { opacity: 0.5; }

/* 模糊背景 */
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* 列表 */
.list-none { list-style: none; }

/* 表格 */
.table { display: table; }
.table-row { display: table-row; }
.table-cell { display: table-cell; }

/* 网格背景 */
.bg-\[f9fafb\] { background-color: #f9fafb; }

/* 按钮 */
button { cursor: pointer; border: none; background: none; font: inherit; }

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* =========================================
   头部设计
   ========================================= */
.header {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: var(--space-sm) 0; /* 减小上下padding */
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: 100px; /* 加大logo尺寸以补偿隐藏的标题 */
    border-radius: var(--radius-md);
    object-fit: contain;
    transition: transform var(--transition-base);
}

.logo img:hover {
    transform: scale(1.05);
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.site-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
}

/* =========================================
   主要内容区域
   ========================================= */
.main {
    padding: var(--space-2xl) 0;
    min-height: calc(100vh - 300px);
}

/* =========================================
   汇率卡片 - 现代卡片设计
   ========================================= */
.exchange-rates {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition-base);
}

.exchange-rates:hover {
    box-shadow: var(--shadow-lg);
}

.exchange-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.exchange-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.exchange-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.exchange-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.exchange-card {
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.exchange-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.exchange-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.exchange-card:hover::before {
    opacity: 1;
}

.exchange-card .currency-code {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.5px;
}

.exchange-card .currency-name {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.exchange-card .exchange-rate {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.exchange-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.exchange-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.exchange-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xl);
    color: var(--accent);
    font-size: 15px;
    background: #fef2f2;
    border-radius: var(--radius-md);
}

.exchange-footer {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: var(--space-md);
    margin-top: var(--space-md);
}

.exchange-footer small {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* =========================================
   分类标签 - 现代胶囊样式
   ========================================= */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    justify-content: center;
}

.category-tag {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.category-tag:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-tag.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* =========================================
   网站卡片 - 现代化卡片设计
   ========================================= */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.site-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.site-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.site-card:hover::before {
    transform: scaleX(1);
}

.site-card .site-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.site-card .site-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--bg-hover), var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.site-card .site-info {
    flex: 1;
    min-width: 0;
}

.site-card .site-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.site-card .site-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.3px;
}

.site-card .site-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-card .site-url {
    font-size: 13px;
    color: var(--text-muted);
    word-break: break-all;
    line-height: 1.4;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    margin-top: auto;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

/* =========================================
   页脚 - 现代清新风格
   ========================================= */
.footer {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section {
    padding: var(--space-md);
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: transform var(--transition-base);
}

.footer-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-section p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.footer-section a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================================
   响应式设计 - 全面优化移动端
   ========================================= */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    .header {
        padding: var(--space-md) 0;
    }

    .header .container {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .logo img {
        width: auto;
        height: auto;
        max-width: none;
        max-height: 80px;
    }

    .site-title {
        font-size: 22px;
    }

    .site-subtitle {
        font-size: 13px;
    }

    .main {
        padding: var(--space-lg) 0;
    }

    .exchange-rates {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
    }

    .exchange-title {
        font-size: 20px;
    }

    .exchange-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--space-sm);
    }

    .exchange-card {
        padding: var(--space-md);
    }

    .exchange-card .exchange-rate {
        font-size: 18px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input,
    .search-box button {
        width: 100%;
    }

    .categories {
        gap: var(--space-xs);
    }

    .category-tag {
        padding: 8px 16px;
        font-size: 13px;
    }

    .sites-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .site-card {
        padding: var(--space-md);
    }

    .site-card::before {
        height: 3px;
    }

    .site-card .site-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .site-card .site-info h3 {
        font-size: 16px;
    }

    .footer {
        padding: var(--space-xl) 0 var(--space-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-section {
        padding: var(--space-md);
    }

    .footer-section h3 {
        font-size: 16px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .exchange-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   骨架屏加载效果
   ========================================= */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================================
   平滑滚动
   ========================================= */
html {
    scroll-behavior: smooth;
}

/* =========================================
   焦点可见性 (无障碍)
   ========================================= */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* =========================================
   减少动画 (用户偏好)
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   顶部导航栏
   ========================================= */
.header .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xs); /* 减小下边距 */
    flex-wrap: wrap;
    gap: var(--space-sm); /* 减小间距 */
}

.main-nav {
    display: flex;
    gap: var(--space-xs); /* 减小导航按钮间距 */
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.nav-link:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =========================================
   页面切换
   ========================================= */
.page-section {
    display: none;
    animation: fadeIn var(--transition-base);
}

.page-section.active {
    display: block;
}

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

/* =========================================
   首页样式
   ========================================= */
.home-hero {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--border);
}

.home-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
}

.home-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.quick-links {
    margin-bottom: var(--space-2xl);
}

.quick-links h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    max-width: 600px;
    margin: 0 auto;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    border: 2px solid var(--border);
    transition: all var(--transition-base);
    cursor: pointer;
}

.quick-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.quick-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
}

.quick-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* =========================================
   历史页面样式
   ========================================= */
.history-hero {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--border);
}

.history-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.history-hero p {
    font-size: 18px;
    color: var(--text-secondary);
}

.history-list {
    display: grid;
    gap: var(--space-md);
}

.history-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    transition: all var(--transition-base);
    position: relative;
}

.history-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.history-search-icon {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    opacity: 0;
    font-size: 20px; /* 增大图标尺寸 */
    text-decoration: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    line-height: 1;
    filter: grayscale(100%);
}

/* 移动端：隐藏搜索图标 */
@media (max-width: 768px) {
    .history-search-icon {
        display: none !important;
    }
}

/* 桌面端：悬停显示 */
.history-item:hover .history-search-icon {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.history-year {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    min-width: 80px;
    text-align: center;
    padding: var(--space-sm);
    background: rgba(220, 38, 38, 0.1);
    border-radius: var(--radius-sm);
}

.history-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.history-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.history-content h3 a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* 移动端标题链接样式：保持默认，无下划线，无强调色 */
@media (max-width: 768px) {
    .history-content h3 a {
        color: inherit;
        text-decoration: none;
        font-weight: inherit;
    }
}

.history-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =========================================
   响应式 - 首页
   ========================================= */
@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 28px;
    }

    .home-hero p {
        font-size: 16px;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .home-stats {
        grid-template-columns: 1fr;
    }

    .history-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .history-year {
        min-width: auto;
        width: 100%;
    }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .main-nav {
        gap: var(--space-xs);
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 13px;
    }

    .home-hero {
        padding: var(--space-lg) var(--space-md);
    }

    .quick-card {
        padding: var(--space-md);
    }

    .quick-icon {
        font-size: 36px;
    }
}


/* =========================================
   历史模块头部
   ========================================= */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-sm);
}

.history-date {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

/* =========================================
   万年历样式 - 统一网站风格
   ========================================= */
/* 容器样式 */
.main > .container > div:first-of-type {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

/* 控制栏头部 */
#calendar-month + .bg-white,
#calendar-month + .bg-white + .bg-white {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* 年份月份选择器 */
#year-select, #month-select {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 80px;
}

#year-select:hover, #month-select:hover {
    border-color: var(--primary-light);
}

#year-select:focus, #month-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* 控制按钮 */
#prev-year, #prev-month, #next-month, #next-year,
#view-month, #view-year, #today-btn,
.festival-btn {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    padding: 8px;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#prev-year:hover, #prev-month:hover, #next-month:hover, #next-year:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

#view-month.active, #view-year.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

#today-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    padding: 8px 16px;
    font-weight: 600;
}

#today-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

/* 星期切换 */
#week-start-toggle:checked + div {
    background: var(--primary) !important;
}

#week-start-toggle:checked + div::after {
    transform: translateX(100%);
}

.festival-btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
}

.festival-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* 日历头部显示 */
#current-date-display {
    font-family: "Noto Serif SC", "Songti SC", serif;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
}

#lunar-year-display {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

#current-time {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
}

/* 星期标题 */
#weekday-headers .grid > div {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-hover);
    border-bottom: 2px solid var(--border);
}

/* 月视图单元格 */
.calendar-cell {
    min-height: 85px;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.calendar-cell:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    z-index: 5;
}

.calendar-cell.today {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border-color: transparent;
    color: white !important;
    box-shadow: var(--shadow-md);
}

.calendar-cell.today .solar-date {
    color: white !important;
}

.solar-date {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.calendar-cell.today .lunar-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

.weekday-indicator {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

/* 年视图 */
#calendar-year .bg-gray-50 {
    background: var(--bg-card) !important;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

#calendar-year .bg-gray-50:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

#calendar-year h3 {
    color: var(--text-primary);
    font-weight: 700;
}

.calendar-grid {
    gap: 4px;
}

/* 模态框 */
#date-modal {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

#modal-content {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

#modal-solar-date {
    font-family: "Noto Serif SC", "Songti SC", serif;
}

#modal-lunar-date {
    font-family: "Noto Serif SC", "Songti SC", serif;
}

#modal-ganzhi, #modal-zodiac {
    font-family: "Noto Serif SC", "Songti SC", serif;
}

/* 弹窗内部卡片 */
#modal-content .rounded-lg {
    background: var(--bg-hover);
    border: 1px solid var(--border);
}

/* 深色模式适配 */
.dark .calendar-cell {
    background: var(--bg-card);
}

.dark .calendar-cell:not(.today) {
    background: var(--bg-card);
    color: var(--text-primary);
}

.dark .calendar-cell:hover:not(.today) {
    background: var(--bg-hover);
}

.dark #year-select,
.dark #month-select,
.dark #view-month:not(.active),
.dark #view-year:not(.active),
.dark #prev-year,
.dark #prev-month,
.dark #next-month,
.dark #next-year,
.dark .festival-btn {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
}

.dark #year-select:hover,
.dark #month-select:hover,
.dark #view-month:not(.active):hover,
.dark #view-year:not(.active):hover,
.dark #prev-year:hover,
.dark #prev-month:hover,
.dark #next-month:hover,
.dark #next-year:hover,
.dark .festival-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.dark #weekday-headers .grid > div {
    background: rgba(31, 41, 55, 0.5);
}

.dark #calendar-year .bg-gray-50 {
    background: var(--bg-card) !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .main > .container > div:first-of-type {
        margin: 0 var(--space-sm) var(--space-lg);
        border-radius: var(--radius-md);
    }
    
    .calendar-cell {
        min-height: 65px;
        padding: 4px;
    }
    
    .solar-date {
        font-size: 15px !important;
    }
    
    .lunar-text, .calendar-cell .text-xs {
        font-size: 9px !important;
    }
    
    #current-date-display {
        font-size: 22px;
    }
    
    #year-select, #month-select {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 70px;
    }
    
    #prev-year, #prev-month, #next-month, #next-year {
        padding: 6px;
    }
    
    #today-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* =========================================
   缺失的 Tailwind 工具类补充
   ========================================= */

/* 间距系统扩展 */
.p-3 { padding: 12px; }
.p-5 { padding: 20px; }
.px-1 { padding-left: 4px; padding-right: 4px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.pt-2 { padding-top: 8px; }
.pt-5 { padding-top: 20px; }
.pb-2 { padding-bottom: 8px; }
.pb-5 { padding-bottom: 20px; }

/* 边距扩展 */
.m-1 { margin: 4px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }
.m-5 { margin: 20px; }
.mx-1 { margin-left: 4px; margin-right: 4px; }
.mx-3 { margin-left: 12px; margin-right: 12px; }
.my-1 { margin-top: 4px; margin-bottom: 4px; }
.my-3 { margin-top: 12px; margin-bottom: 12px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.my-5 { margin-top: 20px; margin-bottom: 20px; }

/* 圆角扩展 */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: 20px; }
.rounded-2xl { border-radius: 24px; }
.rounded-full { border-radius: var(--radius-full); }
.rounded-t-lg { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.rounded-b-lg { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }

/* 阴影扩展 */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* 网格系统 */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.gap-0 { gap: 0; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }
.gap-14 { gap: 56px; }
.gap-16 { gap: 64px; }

/* Flex 工具 */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }
.order-first { order: -9999; }
.order-last { order: 9999; }

/* 文本工具 */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 颜色工具 */
.text-white { color: white; }
.text-black { color: black; }
.text-transparent { color: transparent; }

.gray-50 { color: #f9fafb; }
.gray-100 { color: #f3f4f6; }
.gray-200 { color: #e5e7eb; }
.gray-300 { color: #d1d5db; }
.gray-400 { color: #9ca3af; }
.gray-500 { color: #6b7280; }
.gray-600 { color: #4b5563; }
.gray-700 { color: #374151; }
.gray-800 { color: #1f2937; }
.gray-900 { color: #111827; }

.red-50 { color: #fef2f2; }
.red-100 { color: #fee2e2; }
.red-200 { color: #fecaca; }
.red-300 { color: #fca5a5; }
.red-400 { color: #f87171; }
.red-500 { color: #ef4444; }
.red-600 { color: #dc2626; }
.red-700 { color: #b91c1c; }
.red-800 { color: #991b1b; }
.red-900 { color: #7f1d1d; }

.green-50 { color: #f0fdf4; }
.green-100 { color: #dcfce7; }
.green-200 { color: #bbf7d0; }
.green-300 { color: #86efac; }
.green-400 { color: #4ade80; }
.green-500 { color: #22c55e; }
.green-600 { color: #16a34a; }
.green-700 { color: #15803d; }
.green-800 { color: #166534; }
.green-900 { color: #14532d; }

.blue-50 { color: #eff6ff; }
.blue-100 { color: #dbeafe; }
.blue-200 { color: #bfdbfe; }
.blue-300 { color: #93c5fd; }
.blue-400 { color: #60a5fa; }
.blue-500 { color: #3b82f6; }
.blue-600 { color: #2563eb; }
.blue-700 { color: #1d4ed8; }
.blue-800 { color: #1e40af; }
.blue-900 { color: #1e3a8a; }

.yellow-50 { color: #fefce8; }
.yellow-100 { color: #fef9c3; }
.yellow-200 { color: #fef08a; }
.yellow-300 { color: #fde047; }
.yellow-400 { color: #facc15; }
.yellow-500 { color: #eab308; }
.yellow-600 { color: #ca8a04; }
.yellow-700 { color: #a16207; }
.yellow-800 { color: #854d0e; }
.yellow-900 { color: #713f12; }

.purple-50 { color: #faf5ff; }
.purple-100 { color: #f3e8ff; }
.purple-200 { color: #e9d5ff; }
.purple-300 { color: #d8b4fe; }
.purple-400 { color: #c084fc; }
.purple-500 { color: #a855f7; }
.purple-600 { color: #9333ea; }
.purple-700 { color: #7e22ce; }
.purple-800 { color: #6b21a8; }
.purple-900 { color: #581c87; }

.indigo-50 { color: #eef2ff; }
.indigo-100 { color: #e0e7ff; }
.indigo-200 { color: #c7d2fe; }
.indigo-300 { color: #a5b4fc; }
.indigo-400 { color: #818cf8; }
.indigo-500 { color: #6366f1; }
.indigo-600 { color: #4f46e5; }
.indigo-700 { color: #4338ca; }
.indigo-800 { color: #3730a3; }
.indigo-900 { color: #312e81; }

.pink-50 { color: #fdf2f8; }
.pink-100 { color: #fce7f3; }
.pink-200 { color: #fbcfe8; }
.pink-300 { color: #f9a8d4; }
.pink-400 { color: #f472b6; }
.pink-500 { color: #ec4899; }
.pink-600 { color: #db2777; }
.pink-700 { color: #be185d; }
.pink-800 { color: #9d174d; }
.pink-900 { color: #831843; }

.orange-50 { color: #fff7ed; }
.orange-100 { color: #ffedd5; }
.orange-200 { color: #fed7aa; }
.orange-300 { color: #fdba74; }
.orange-400 { color: #fb923c; }
.orange-500 { color: #f97316; }
.orange-600 { color: #ea580c; }
.orange-700 { color: #c2410c; }
.orange-800 { color: #9a3412; }
.orange-900 { color: #7c2d12; }

/* 背景色工具 */
.bg-transparent { background-color: transparent; }
.bg-white { background-color: white; }
.bg-black { background-color: black; }

.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }

.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-200 { background-color: #fecaca; }
.bg-red-800 { background-color: #991b1b; }
.bg-red-900\/30 { background-color: rgba(153, 27, 27, 0.3); }
.bg-red-900\/20 { background-color: rgba(153, 27, 27, 0.2); }

.bg-orange-50 { background-color: #fff7ed; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-orange-200 { background-color: #fed7aa; }
.bg-orange-900\/30 { background-color: rgba(154, 52, 18, 0.3); }

.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-100 { background-color: #fef9c3; }
.bg-yellow-200 { background-color: #fef08a; }
.bg-yellow-900\/30 { background-color: rgba(166, 72, 14, 0.3); }

.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-200 { background-color: #bbf7d0; }
.bg-green-700\/50 { background-color: rgba(21, 128, 61, 0.5); }
.bg-green-800 { background-color: #166534; }
.bg-green-900\/20 { background-color: rgba(20, 83, 45, 0.2); }
.bg-green-900\/30 { background-color: rgba(20, 83, 45, 0.3); }

.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-200 { background-color: #bfdbfe; }
.bg-blue-900\/30 { background-color: rgba(30, 58, 138, 0.3); }

.bg-purple-50 { background-color: #faf5ff; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-purple-200 { background-color: #e9d5ff; }
.bg-purple-900\/30 { background-color: rgba(107, 33, 168, 0.3); }

.bg-pink-50 { background-color: #fdf2f8; }
.bg-pink-100 { background-color: #fce7f3; }
.bg-pink-200 { background-color: #fbcfe8; }
.bg-pink-900\/30 { background-color: rgba(157, 23, 77, 0.3); }

.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-indigo-200 { background-color: #c7d2fe; }
.bg-indigo-900\/30 { background-color: rgba(55, 48, 163, 0.3); }

.bg-primary { background-color: var(--primary); }
.bg-primary-light { background-color: var(--primary-light); }
.bg-primary-dark { background-color: var(--primary-dark); }

/* 深色模式背景 */
.dark .bg-white { background-color: #1f2937; }
.dark .bg-gray-50 { background-color: #374151; }
.dark .bg-gray-100 { background-color: #4b5563; }
.dark .bg-gray-200 { background-color: #6b7280; }
.dark .bg-gray-800 { background-color: #111827; }
.dark .bg-gray-900 { background-color: #030712; }

.dark .bg-red-50 { background-color: rgba(254, 242, 242, 0.1); }
.dark .bg-red-100 { background-color: rgba(254, 226, 226, 0.1); }
.dark .bg-red-200 { background-color: rgba(254, 202, 202, 0.1); }

.dark .bg-green-50 { background-color: rgba(240, 253, 244, 0.1); }
.dark .bg-green-100 { background-color: rgba(220, 252, 231, 0.1); }
.dark .bg-green-200 { background-color: rgba(187, 247, 208, 0.1); }

.dark .bg-blue-50 { background-color: rgba(239, 246, 255, 0.1); }
.dark .bg-blue-100 { background-color: rgba(219, 234, 254, 0.1); }
.dark .bg-blue-200 { background-color: rgba(191, 219, 254, 0.1); }

/* 边框工具 */
.border { border: 1px solid var(--border); }
.border-2 { border: 2px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-l { border-left: 1px solid var(--border); }
.border-r { border-right: 1px solid var(--border); }
.border-0 { border: 0; }
.border-t-0 { border-top: 0; }
.border-b-0 { border-bottom: 0; }

.border-gray-200 { border-color: #e5e7eb; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }

.border-red-200 { border-color: #fecaca; }
.border-red-800 { border-color: #991b1b; }

.border-green-200 { border-color: #bbf7d0; }
.border-green-800 { border-color: #166534; }

.border-blue-200 { border-color: #bfdbfe; }
.border-blue-800 { border-color: #1e40af; }

.border-l-4 { border-left-width: 4px; }
.border-t-2 { border-top-width: 2px; }
.border-b-2 { border-bottom-width: 2px; }

/* 圆角工具 */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: 20px; }
.rounded-2xl { border-radius: 24px; }
.rounded-full { border-radius: var(--radius-full); }
.rounded-t-lg { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.rounded-b-lg { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }
.rounded-t-xl { border-top-left-radius: 20px; border-top-right-radius: 20px; }
.rounded-b-xl { border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; }

/* 阴影工具 */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-xl); }

/* 过渡工具 */
.transition { transition: all var(--transition-base); }
.transition-none { transition: none; }
.transition-all { transition: all var(--transition-base); }
.transition-colors { transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base); }
.transition-opacity { transition: opacity var(--transition-base); }
.transition-shadow { transition: box-shadow var(--transition-base); }
.transition-transform { transition: transform var(--transition-base); }

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* 变换工具 */
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) scale(var(--tw-scale, 1)); }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.-translate-y-1 { transform: translateY(-4px); }
.-translate-y-2 { transform: translateY(-8px); }
.-translate-y-4 { transform: translateY(-16px); }
.-translate-y-6 { transform: translateY(-24px); }

/* 渐变 */
.bg-gradient-to-r { background: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-br { background: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-bl { background: linear-gradient(to bottom left, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-primary { --tw-gradient-from: var(--primary); --tw-gradient-to: var(--primary-dark); }
.to-primary-light { --tw-gradient-to: var(--primary-light); }

/* 溢出 */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* 定位 */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* 尺寸 */
.w-full { width: 100%; }
.max-w-md { max-width: 448px; }
.max-w-lg { max-width: 512px; }
.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }
.max-w-4xl { max-width: 896px; }
.max-w-5xl { max-width: 1024px; }
.max-w-6xl { max-width: 1152px; }
.max-w-7xl { max-width: 1280px; }
.max-w-full { max-width: 100%; }
.max-h-full { max-height: 100%; }
.h-4 { height: 16px; }
.h-5 { height: 20px; }
.h-6 { height: 24px; }
.h-8 { height: 32px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }
.h-16 { height: 64px; }
.h-24 { height: 96px; }
.h-32 { height: 128px; }
.w-4 { width: 16px; }
.w-5 { width: 20px; }
.w-6 { width: 24px; }
.w-8 { width: 32px; }
.w-10 { width: 40px; }
.w-12 { width: 48px; }
.w-16 { width: 64px; }
.w-24 { width: 96px; }
.w-32 { width: 128px; }
.min-h-0 { min-height: 0; }
.min-h-\[60px\] { min-height: 60px; }
.min-h-\[85px\] { min-height: 85px; }

/* Flex 项目 */
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

/* 边框圆角 (更精细) */
.rounded-t { border-top-left-radius: var(--radius-sm); border-top-right-radius: var(--radius-sm); }
.rounded-b { border-bottom-left-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
.rounded-l { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
.rounded-r { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
.rounded-t-md { border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); }
.rounded-b-md { border-bottom-left-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }
.rounded-t-lg { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.rounded-b-lg { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }
.rounded-t-xl { border-top-left-radius: 20px; border-top-right-radius: 20px; }
.rounded-b-xl { border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; }

/* 位置 */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

/* Z-index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* 光标 */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

/* 用户选择 */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }

/* 指针事件 */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* 透明度 */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* 模糊 */
.backdrop-blur-none { backdrop-filter: blur(0); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }
.backdrop-blur-2xl { backdrop-filter: blur(40px); }
.backdrop-blur-3xl { backdrop-filter: blur(64px); }

/* 混合模式 */
.mix-blend-normal { mix-blend-mode: normal; }
.mix-blend-multiply { mix-blend-mode: multiply; }
.mix-blend-screen { mix-blend-mode: screen; }
.mix-blend-overlay { mix-blend-mode: overlay; }
.mix-blend-darken { mix-blend-mode: darken; }
.mix-blend-lighten { mix-blend-mode: lighten; }
.mix-blend-color-dodge { mix-blend-mode: color-dodge; }
.mix-blend-color-burn { mix-blend-mode: color-burn; }
.mix-blend-hard-light { mix-blend-mode: hard-light; }
.mix-blend-soft-light { mix-blend-mode: soft-light; }
.mix-blend-difference { mix-blend-mode: difference; }
.mix-blend-exclusion { mix-blend-mode: exclusion; }
.mix-blend-hue { mix-blend-mode: hue; }
.mix-blend-saturation { mix-blend-mode: saturation; }
.mix-blend-color { mix-blend-mode: color; }
.mix-blend-luminosity { mix-blend-mode: luminosity; }

/* 表格 */
.table { display: table; }
.table-row { display: table-row; }
.table-cell { display: table-cell; }

/* 列表 */
.list-none { list-style: none; }
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }

/* 字体 */
.font-sans { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif; }
.font-serif { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; }
.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }

/* 屏幕阅读器 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 常用工具组合 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

/* =========================================
   万年历专用样式（基于网站变量）
   ========================================= */

/* 控制栏 */
.calendar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.calendar-controls select {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.calendar-controls select:hover {
    border-color: var(--primary-light);
}

.calendar-controls button,
.festival-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    padding: 8px 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-controls button:hover,
.festival-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.calendar-controls button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

#today-btn {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    padding: 8px 20px !important;
}

#today-btn:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

/* 节日导航 */
.festival-nav {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    overflow-x: auto;
}

.festival-btn {
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-full);
}

/* 日历卡片 */
.calendar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

/* 日历头部 */
.calendar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#current-date-display {
    font-family: "Noto Serif SC", "Songti SC", serif;
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

#lunar-year-display {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

#current-time {
    font-family: ui-monospace, monospace;
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
}

/* 星期标题 */
#weekday-headers {
    background: var(--bg-hover);
    border-bottom: 2px solid var(--border);
}

#weekday-headers .grid > div {
    padding: var(--space-sm);
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 月视图网格 */
#calendar-month {
    border: none;
}

.calendar-cell {
    min-height: 80px;
    border: 1px solid var(--border);
    border-width: 1px 0 0 0;
    padding: 6px;
    transition: all var(--transition-fast);
    background: var(--bg-card);
    cursor: pointer;
}

.calendar-cell:nth-child(7n) {
    border-right: 1px solid var(--border);
}

.calendar-cell:hover {
    background: var(--bg-hover);
    border-color: var(--primary-light);
    z-index: 2;
}

.calendar-cell.today {
    background: var(--primary) !important;
    color: white !important;
}

.calendar-cell.today .solar-date,
.calendar-cell.today .lunar-text,
.calendar-cell.today .text-xs {
    color: white !important;
}

.calendar-cell.other-month {
    background: var(--bg-hover);
    color: var(--text-muted);
}

.calendar-cell .weekday-indicator {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.calendar-cell.today .weekday-indicator {
    color: rgba(255, 255, 255, 0.7);
}

.solar-date {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.lunar-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.text-xs {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* 年视图 */
#calendar-year {
    border: none;
    padding: var(--space-lg);
}

#calendar-year h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-align: center;
    font-family: "Noto Serif SC", "Songti SC", serif;
}

#calendar-year .bg-gray-50 {
    background: var(--bg-card) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all var(--transition-fast);
}

#calendar-year .bg-gray-50:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

#calendar-year .calendar-grid {
    gap: 6px;
}

#calendar-year div[class*="rounded"] {
    min-height: 85px;
}

/* 模态框 */
#date-modal {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

#modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 420px;
    width: 100%;
    border: 1px solid var(--border);
}

#modal-content .bg-gradient-to-r {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    padding: var(--space-xl);
}

#modal-solar-date {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 32px;
    font-weight: 700;
    color: white;
}

#modal-lunar-date {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
}

#modal-content .rounded-lg {
    background: var(--bg-hover);
    border: 1px solid var(--border);
}

/* 深色模式 */
.dark .calendar-controls,
.dark .festival-nav,
.dark .calendar-card,
.dark #modal-content,
.dark .calendar-cell,
.dark #calendar-year .bg-gray-50,
.dark .calendar-cell.other-month {
    background: var(--bg-card);
    border-color: var(--border);
}

.dark .calendar-controls select,
.dark .calendar-controls button,
.dark .festival-btn,
.dark #calendar-year h3 {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.dark .calendar-cell.other-month {
    background: rgba(31, 41, 55, 0.3);
}

.dark #weekday-headers {
    background: rgba(31, 41, 55, 0.3);
}

/* 响应式 */
@media (max-width: 768px) {
    .calendar-controls {
        padding: var(--space-sm);
        gap: var(--space-sm);
        justify-content: center;
    }
    
    .calendar-controls select {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 65px;
    }
    
    .calendar-cell {
        min-height: 60px;
        padding: 4px;
    }
    
    .solar-date {
        font-size: 15px !important;
    }
    
    .lunar-text, .text-xs {
        font-size: 9px !important;
    }
    
    .weekday-indicator {
        display: none;
    }
    
    .festival-nav {
        padding: var(--space-sm);
    }
    
    #current-date-display {
        font-size: 22px;
    }
    
    #modal-content {
        margin: var(--space-sm);
        max-width: none;
    }
    
    #modal-solar-date {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .calendar-cell {
        min-height: 50px;
    }
    
    .solar-date {
        font-size: 14px !important;
    }
    
    .lunar-text {
        display: none;
    }
}
