/* 付羽®老黄历 - 主样式文件 (深色主题统一版) */

:root {
    --primary-color: #c41e3a;
    --primary-dark: #8b0000;
    --secondary-color: #d4a574;
    --accent-gold: #ffd700;
    --bg-color: #0f0f1a;
    --bg-gradient: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    --card-bg: rgba(255,255,255,0.08);
    --card-gradient: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
    --text-color: rgba(255,255,255,0.9);
    --text-light: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.5);
    --border-color: rgba(255,255,255,0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden;
}

/* 16:9 宽屏容器优化 - 适配1920x1080等宽屏显示器 */
.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* 头部样式 - 现代化设计 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #600000 100%);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-opacity: 0.95;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 48px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-text h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.nav-link:hover::before {
    width: 200px;
    height: 200px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 18px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.nav-text {
    display: inline-block;
    vertical-align: middle;
}

/* 主内容区 - 16:9 宽屏显示 */
.main {
    flex: 1;
    padding: 50px 0;
    min-height: max(56.25vw, calc(100vh - 200px));
}

/* 页面标题区域 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--card-bg) 0%, #fafafa 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-gold), var(--secondary-color), var(--primary-color));
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* 通用区块样式 */
.section {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

.section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 加载中样式 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

/* 今日运势样式 */
.fortune-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.fortune-card {
    background: linear-gradient(145deg, #f8f8f8, #fff);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.fortune-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.fortune-score {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.fortune-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.fortune-bar {
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.fortune-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 今日黄历样式 */
.huangli-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.huangli-item {
    background: linear-gradient(145deg, #f8f8f8, #fff);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.huangli-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.huangli-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 八字柱样式 */
.bazi-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.bazi-pillar {
    background: linear-gradient(145deg, #f5f5f5, #fff);
    border-radius: var(--radius);
    padding: 18px 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.bazi-pillar div:first-child {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.bazi-pillar .wx {
    font-size: 13px;
    color: var(--secondary-color);
}

/* 宜忌样式 */
.yiji-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.yi-list,
.ji-list {
    background: linear-gradient(145deg, #f8fff8, #fff);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid #d4edda;
}

.ji-list {
    background: linear-gradient(145deg, #fff8f8, #fff);
    border-color: #f8d7da;
}

.yiji-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    color: white;
}

.yi-list .yiji-title {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.ji-list .yiji-title {
    background: linear-gradient(135deg, #f44336, #c62828);
}

.yiji-items {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.8;
}

/* 日期转换标签页 */
.convert-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.convert-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: var(--transition);
    position: relative;
}

.convert-tab:hover {
    color: var(--text-color);
    background: #f5f5f5;
}

.convert-tab.active {
    color: var(--primary-color);
    background: #fff5f5;
}

.convert-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* 结果展示框 */
.result-box {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(145deg, #f8f8f8, #fff);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: none;
}

.result-box.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 14px;
    color: var(--text-muted);
}

.result-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

/* 节气网格 */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.term-item {
    background: linear-gradient(145deg, #e8f5e9, #fff);
    border-radius: var(--radius);
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #c8e6c9;
    transition: var(--transition);
}

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

.term-name {
    font-size: 15px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 5px;
}

.term-date {
    font-size: 13px;
    color: var(--text-light);
}

/* 节日网格 */
.festival-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.festival-item {
    background: linear-gradient(145deg, #fce4ec, #fff);
    border-radius: var(--radius);
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #f8bbd0;
    transition: var(--transition);
}

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

.festival-name {
    font-size: 15px;
    font-weight: 600;
    color: #c2185b;
    margin-bottom: 5px;
}

.festival-date {
    font-size: 13px;
    color: var(--text-light);
}

/* 今日黄历卡片 - 现代化设计 */
.today-huangli {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    position: relative;
}

.today-huangli::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-gold), var(--secondary-color), var(--primary-color));
}

.today-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b8956a 50%, #a07850 100%);
    color: white;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.today-header h2 {
    font-size: 26px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.today-header .date {
    font-size: 18px;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
}

.today-festival {
    font-size: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    padding: 4px 16px;
    border-radius: 20px;
    margin-left: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.today-main {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    align-items: center;
}

.today-solar {
    text-align: center;
    padding: 30px;
    background: linear-gradient(145deg, #fff5f5, #fff);
    border-radius: var(--radius);
    border: 1px solid #ffe0e0;
}

.today-solar .weekday {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.today-solar .date {
    font-size: 28px;
    color: var(--text-light);
    font-weight: 500;
}

.divider {
    font-size: 36px;
    color: var(--secondary-color);
    opacity: 0.5;
}

.today-lunar {
    text-align: center;
    padding: 30px;
    background: linear-gradient(145deg, #fff8e7, #fff);
    border-radius: var(--radius);
    border: 1px solid #ffe4b5;
}

.today-lunar .ganzhi {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.today-lunar .date {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.today-lunar .zodiac {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), #a07850);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
}

/* 今日信息网格 */
.today-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 40px 30px;
}

.today-info-item {
    background: linear-gradient(145deg, #f8f8f8, #fff);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.today-info-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.today-info-item .label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.today-info-item .value {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 今日四柱 */
.today-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 0 40px 25px;
}

.pillar-item {
    background: linear-gradient(145deg, #f5f5f5, #fff);
    padding: 18px 15px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.pillar-item.highlight {
    background: linear-gradient(145deg, #fff8e7, #fff);
    border-color: #ffcc00;
}

.pillar-item.highlight .pillar-value {
    color: #e6a700;
}

.pillar-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pillar-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.pillar-wuxing {
    font-size: 12px;
    color: var(--text-light);
}

/* 今日底部：宜忌+节气 */
.today-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 40px 30px;
}

.yiji-section,
.term-section {
    background: linear-gradient(145deg, #f8f8f8, #fff);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.yiji-section h4,
.term-section h4 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yiji-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yi-items,
.ji-items {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.yiji-content .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.yiji-content .badge.yi {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.yiji-content .badge.ji {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: white;
}

.yiji-content .items {
    flex: 1;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

.term-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.term-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.term-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* 今日黄历简化样式 */
.today-huangli .solar-info {
    font-size: 28px;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 8px;
}

.today-huangli .solar-full {
    font-size: 13px;
    color: var(--text-muted);
}

.today-huangli .lunar-info {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.today-huangli .lunar-month {
    color: var(--primary-color);
}

.today-huangli .lunar-day {
    color: var(--secondary-color);
}

.today-huangli .zodiac-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), #a07850);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 13px;
}

/* 八字信息 */
.today-bazi {
    padding: 0 40px 30px;
}

.today-bazi h4 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bazi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.bazi-item {
    background: linear-gradient(145deg, #f0f7ff, #fff);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #d0e3ff;
    transition: var(--transition);
}

.bazi-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.bazi-item .label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.bazi-item .value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.bazi-item .wuxing {
    font-size: 12px;
    color: var(--text-light);
}

.bazi-item .hint {
    grid-column: 1 / -1;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

.bazi-item .label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.bazi-item .value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.bazi-item .wuxing {
    font-size: 12px;
    color: var(--secondary-color);
}

/* 宜忌事项 - 美化设计 */
.today-yiji {
    padding: 0 40px 40px;
}

.today-yiji h4 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: normal;
}

.yiji-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.yiji-item {
    background: linear-gradient(145deg, #f8fff8, #fff);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid #d4edda;
}

.yiji-item.yi {
    background: linear-gradient(145deg, #e8f5e9, #fff);
    border-color: #a5d6a7;
}

.yiji-item.ji {
    background: linear-gradient(145deg, #ffebee, #fff);
    border-color: #ef9a9a;
}

.yiji-item .badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.yiji-item.yi .badge {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.yiji-item.ji .badge {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.yiji-item .content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yiji-item .content span {
    padding: 4px 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    font-size: 13px;
}

/* 宜忌详细解读 */
.yiji-analysis {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(145deg, #f8f9fa, #fff);
    border-radius: var(--radius);
}

.yiji-analysis h5 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.yiji-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.yiji-detail h6 {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.yi-detail h6 { color: #2e7d32; }
.ji-detail h6 { color: #c62828; }

.yiji-detail ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yiji-detail ul li {
    padding: 10px 12px;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.yiji-detail ul li .explain {
    font-size: 12px;
    color: var(--text-light);
}

.yiji-suggestion {
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-radius: var(--radius);
}

.yiji-suggestion h6 {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.yiji-suggestion p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

/* 每日黄历详解 */
.today-huangli-detail {
    padding: 0 40px 40px;
}

.today-huangli-detail h4 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.huangli-content {
    background: linear-gradient(145deg, #fafafa, #fff);
    border-radius: var(--radius);
    padding: 25px;
}

.huangli-section {
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.huangli-section:last-child {
    margin-bottom: 0;
}

.huangli-section h5 {
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.huangli-section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}
    gap: 8px;
}

.yiji-item .content span {
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-color);
}

/* 节气 */
.today-term {
    padding: 0 40px 40px;
}

.today-term h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    color: var(--text-color);
}

.today-term .badge {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.today-term p {
    margin-top: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: var(--radius);
    color: #2e7d32;
    font-size: 14px;
}

/* 转换工具区 */
.convert-section {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: var(--transition);
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tab-btn:hover {
    color: var(--text-color);
    background: #f5f5f5;
}

.tab-btn.active {
    color: var(--primary-color);
    background: #fff5f5;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

/* 表单样式 */
.convert-form {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 180px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
}

/* 按钮样式 */
.btn {
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* 功能介绍区 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    padding: 35px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-gold), var(--secondary-color), var(--primary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul a::before {
    content: '›';
    color: var(--secondary-color);
    transform: translateX(-5px);
    opacity: 0;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section ul a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.link-icon {
    font-size: 14px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.social-icon {
    display: inline-block;
    vertical-align: middle;
}

.footer-links-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-links-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links-bottom a:hover {
    color: white;
    text-decoration: underline;
}

.footer-info {
    text-align: center;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* 万年历样式 */
.calendar-container {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, #f8f9fa, #fff);
    padding: 25px 30px;
    border-radius: 16px;
    margin: -40px -40px 30px -40px;
    border-bottom: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.calendar-header h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calendar-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.today-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.calendar-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    background: white;
    padding: 8px 16px;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.nav-arrows {
    display: flex;
    gap: 5px;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-today {
    margin-left: 10px;
}

.calendar-nav .btn {
    padding: 10px 20px;
    font-size: 14px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    background: linear-gradient(135deg, #f5f7fa, #fff);
    padding: 20px;
    border-radius: 16px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.calendar-day-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px 12px 0 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.calendar-day-header.weekend {
    background: linear-gradient(135deg, #e53935, #c62828);
    box-shadow: 0 3px 15px rgba(229, 57, 53, 0.3);
}

.calendar-day {
    background-color: white;
    padding: 12px;
    min-height: 95px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    margin: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calendar-day:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
    background-color: #fafafa;
}

.calendar-day:hover::before {
    opacity: 1;
}

.calendar-day.other-month {
    background-color: #fafafa;
    color: #bbb;
    opacity: 0.7;
}

.calendar-day.other-month:hover {
    opacity: 0.9;
    background-color: #f5f5f5;
}

.calendar-day.other-month .day-lunar {
    color: #ccc;
}

.calendar-day.today {
    background: linear-gradient(145deg, #fff8e8, #ffecb3);
    border: 2px solid #ffb300;
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.25), 0 2px 8px rgba(255, 179, 0, 0.15);
}

.calendar-day.today::before {
    background: linear-gradient(90deg, #ffb300, #ff8f00);
    opacity: 1;
    height: 4px;
}

.calendar-day.today:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 179, 0, 0.35);
}

/* 周末卡片样式 */
.calendar-day.weekend {
    background: linear-gradient(145deg, #fff5f5, #ffebee);
}

.calendar-day.weekend .day-number {
    color: #e53935;
    font-weight: 700;
}

.calendar-day.weekend:hover {
    background: linear-gradient(145deg, #ffebee, #ffcdd2);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.15);
}

.calendar-day.today .day-number {
    background: linear-gradient(135deg, #ffb300, #f57c00);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(255, 179, 0, 0.4);
    animation: todayPulse 2s ease-in-out infinite;
}

@keyframes todayPulse {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(255, 179, 0, 0.4);
    }
    50% {
        box-shadow: 0 3px 20px rgba(255, 179, 0, 0.6), 0 0 0 4px rgba(255, 179, 0, 0.1);
    }
}

.day-number {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* 今日标签 */
.day-label {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #ffb300, #f57c00);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(255, 179, 0, 0.4);
    animation: labelPulse 2s ease-in-out infinite;
}

@keyframes labelPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.day-lunar {
    font-size: 12px;
    color: #78909c;
    margin-bottom: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.day-lunar.lunar-first {
    color: #e53935;
    font-weight: 700;
    font-size: 13px;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(229, 57, 53, 0.2);
}

.day-lunar.lunar-fifteenth {
    color: #7b1fa2;
    font-weight: 700;
    font-size: 13px;
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(123, 31, 162, 0.2);
}

.day-lunar.lunar-last {
    color: #f39c12;
    font-weight: 600;
}

.day-term {
    font-size: 11px;
    color: #2e7d32;
    font-weight: 600;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-top: auto;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.15);
    transition: all 0.3s ease;
}

.calendar-day:hover .day-term {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.25);
}

.day-festival {
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.calendar-day:hover .day-festival {
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.calendar-day.has-festival .day-number {
    color: #e74c3c;
}

/* 调休工作日样式 */
.calendar-day.work-day {
    background: linear-gradient(145deg, #fff3e0, #ffe0b2);
}

.calendar-day.work-day::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ff9800;
}

.day-holiday.work-badge {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.4);
}

/* 假日样式 */
.calendar-day.holiday {
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
}

.calendar-day.holiday::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #4caf50;
}

.day-holiday.holiday-badge {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
}

/* 日历图例 */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    padding: 18px 30px;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 14px;
    flex-wrap: wrap;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-color);
    font-weight: 500;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

.legend-color.holiday {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.legend-color.work {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.legend-color.lunar-first {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border: 2px solid #e53935;
}

.legend-color.lunar-fifteenth {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border: 2px solid #7b1fa2;
}

.calendar-shortcuts {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: var(--radius);
    flex-wrap: wrap;
    border: 1px solid var(--border-color);
}

.shortcut-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.shortcut-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.shortcut-btn.today-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
}

.shortcut-btn.today-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

.lunar-months-card {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-top: 30px;
}

.lunar-months-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.lunar-months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.lunar-month-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.lunar-month-item:hover {
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.lunar-month-item .month-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.lunar-month-item .month-num {
    font-size: 12px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .calendar-shortcuts {
        gap: 8px;
        padding: 15px;
    }
    
    .shortcut-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .lunar-months-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    /* 移动端日历优化 */
    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .calendar-header h2 {
        font-size: 22px;
        text-align: center;
    }
    
    .calendar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .calendar-nav-form {
        display: flex;
        gap: 5px;
    }
    
    .calendar-nav-form select {
        padding: 8px;
        font-size: 14px;
    }
    
    .nav-arrows {
        display: none;
    }
    
    .btn-today {
        margin-left: 0;
    }
    
    .calendar-day {
        padding: 6px;
        min-height: 70px;
        border-radius: 8px;
        margin: 2px;
    }
    
    .day-number {
        font-size: 15px;
        margin-bottom: 3px;
    }
    
    .day-lunar {
        font-size: 10px;
    }
    
    .day-lunar.lunar-first,
    .day-lunar.lunar-fifteenth {
        font-size: 10px;
        padding: 1px 5px;
    }
    
    .day-festival,
    .day-term {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .day-label {
        font-size: 8px;
        padding: 1px 5px;
    }
    
    .calendar-day.today .day-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .calendar-day-header {
        padding: 12px;
        font-size: 13px;
        border-radius: 8px 8px 0 0;
    }
    
    .calendar-grid {
        padding: 10px;
        gap: 5px;
        border-radius: 12px;
    }
    
    .calendar-container {
        padding: 20px;
        border-radius: 16px;
    }
    
    .calendar-header {
        padding: 20px;
        margin: -20px -20px 20px -20px;
        border-radius: 16px 16px 0 0;
    }
    
    /* 导航栏移动端优化 */
    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .nav a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 表单移动端优化 */
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* 按钮移动端优化 */
    .btn-lg {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* 页面标题移动端 */
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    /* 主要内容区移动端 */
    .main {
        padding: 25px 0;
    }
    
    /* 卡片移动端 */
    .section-card {
        padding: 20px;
    }
    
    .section-card h2 {
        font-size: 22px;
    }
    
    /* 表格移动端 */
    .bazi-grid,
    .wuxing-grid,
    .dayun-list {
        grid-template-columns: 1fr;
    }
    
    /* 迷你日历移动端 */
    .mini-calendar {
        padding: 15px;
    }
    
    .mini-calendar-header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .mini-calendar-grid {
        font-size: 12px;
    }
    
    /* 首页横幅移动端 */
    .hero-section {
        padding: 25px;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 今日运势移动端 */
    .today-fortune-card {
        padding: 20px;
    }
    
    .fortune-content {
        grid-template-columns: 1fr;
    }
    
    .fortune-details {
        grid-template-columns: 1fr;
    }
    
    /* 功能卡片移动端 */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* 侧边栏移动端 */
    .home-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        width: 100%;
    }
    
    /* 详情页移动端 */
    .detail-card {
        padding: 20px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    /* 八字结果移动端 */
    .bazi-result-section {
        padding: 20px;
    }
    
    .bazi-main-display {
        flex-direction: column;
        text-align: center;
    }
    
    .bazi-pillars-display {
        grid-template-columns: 1fr;
    }
    
    .bazi-main-info {
        padding: 20px;
    }
    
    .bazi-main-info .ganzhi {
        font-size: 36px;
    }
    
    /* 大运列表移动端 */
    .dayun-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .dayun-progress {
        width: 100%;
    }
    
    /* 流年详解移动端 */
    .liunian-main-info {
        flex-direction: column;
        text-align: center;
    }
    
    .liunian-details {
        grid-template-columns: 1fr;
    }
    
    .liunian-cards {
        grid-template-columns: 1fr;
    }
    
    /* 命格详解移动端 */
    .destiny-analysis {
        padding: 15px;
    }
    
    .destiny-grid {
        grid-template-columns: 1fr;
    }
    
    /* 性格分析移动端 */
    .personality-grid {
        grid-template-columns: 1fr;
    }
    
    /* 运势详解移动端 */
    .fortune-year-meta {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fortune-item-full {
        padding: 15px;
    }
    
    /* 弹窗移动端 */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 20px;
        margin: 10px;
    }
    
    /* 合婚配对移动端 */
    .compatibility-modal {
        max-width: 95%;
    }
    
    .result-bazi {
        grid-template-columns: 1fr;
    }
    
    .compatibility-form .form-group {
        flex-direction: column;
    }
    
    .compatibility-form select {
        width: 100%;
    }
    
    /* 历史记录移动端 */
    .history-section .card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .history-item {
        padding: 15px;
    }
    
    /* 关于页面移动端 */
    .about-hero {
        padding: 25px;
    }
    
    .about-hero-content h1 {
        font-size: 28px;
    }
    
    .about-hero-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hero-stat {
        padding: 15px 20px;
    }
    
    .features-grid,
    .usage-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    /* 年度运势移动端 */
    .year-fortune-section {
        padding: 20px;
    }
    
    .year-fortune-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .year-fortune-summary {
        grid-template-columns: 1fr;
    }
    
    .year-fortune-grid {
        grid-template-columns: 1fr;
    }
    
    .year-fortune-item {
        padding: 15px;
    }
}

/* 关于页面样式 */
.about-section {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 50px;
    margin-bottom: 40px;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 32px;
}

.about-section h3 {
    color: var(--text-color);
    margin: 35px 0 15px;
    font-size: 22px;
}

.about-section p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.9;
    font-size: 16px;
}

.about-section ul {
    list-style: none;
    margin-bottom: 20px;
}

.about-section li {
    color: var(--text-light);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 16px;
    line-height: 1.8;
}

.about-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* 关于页面横幅 */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: var(--radius-lg);
    padding: 50px;
    margin-bottom: 40px;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.about-hero-content {
    text-align: center;
    margin-bottom: 40px;
}

.about-hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.about-hero-content p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 10px;
}

.about-hero-content .hero-sub {
    font-size: 16px;
    opacity: 0.8;
}

.about-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 20px 30px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.hero-stat .stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
}

.hero-stat .stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 功能特点 */
.features-section {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 50px;
    margin-bottom: 40px;
}

.features-section h2 {
    color: var(--primary-color);
    margin-bottom: 35px;
    font-size: 32px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    padding: 30px 25px;
    background: linear-gradient(145deg, #fafafa, #fff);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* 关于页面亮点 */
.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 30px;
    font-size: 15px;
    color: var(--text-color);
}

.highlight-icon {
    color: #4caf50;
    font-weight: bold;
}

/* 知识手风琴 */
.knowledge-section {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 50px;
    margin-bottom: 40px;
}

.knowledge-section h2 {
    color: var(--primary-color);
    margin-bottom: 35px;
    font-size: 32px;
}

.knowledge-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: linear-gradient(145deg, #fafafa, #fff);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background: linear-gradient(135deg, #f0f7ff, #e8f4ff);
}

.accordion-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-color);
}

.accordion-icon {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 300;
}

.accordion-content {
    display: none;
    padding: 0 25px 25px;
    border-top: 1px solid var(--border-color);
}

.accordion-content p {
    margin-bottom: 15px;
}

.accordion-content ul {
    list-style: disc;
    padding-left: 25px;
}

.accordion-content li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* 使用说明卡片 */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.usage-card {
    padding: 30px 25px;
    background: linear-gradient(145deg, #f8f9fa, #fff);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.usage-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.usage-card h3 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 12px;
    margin-top: 5px;
}

.usage-card p {
    font-size: 14px;
    margin: 0;
}

/* 技术说明列表 */
.tech-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.tech-list li {
    padding: 15px 20px;
    background: linear-gradient(145deg, #f8f9fa, #fff);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border-left: 4px solid var(--secondary-color);
}

.tech-list li strong {
    color: var(--primary-color);
}

/* FAQ 部分 */
.faq-section {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 50px;
    margin-bottom: 40px;
}

.faq-section h2 {
    color: var(--primary-color);
    margin-bottom: 35px;
    font-size: 32px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: linear-gradient(145deg, #fafafa, #fff);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.faq-question:hover {
    background: linear-gradient(135deg, #f0f7ff, #e8f4ff);
}

.faq-icon {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 300;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.faq-answer p {
    padding-bottom: 20px;
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

/* 联系我们 */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 50px;
    margin-bottom: 40px;
    color: white;
}

.contact-section h2 {
    color: white;
    margin-bottom: 30px;
    font-size: 32px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

.contact-icon {
    font-size: 24px;
}

.contact-message {
    background: rgba(255,255,255,0.15);
    padding: 25px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.contact-message p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.95;
}

/* 详情页面样式 */
.detail-card {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 30px;
}

.detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    font-size: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.detail-item {
    padding: 25px;
    background: linear-gradient(145deg, #f8f8f8, #fff);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.detail-item .label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.detail-item .value {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
}

/* 响应式设计 - 16:9 宽屏优化 */
@media (max-width: 1600px) {
    .container {
        max-width: 1400px;
        padding: 0 35px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1100px;
        padding: 0 30px;
    }
    
    .today-main {
        grid-template-columns: 1fr auto 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .today-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .today-solar,
    .today-lunar {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .divider {
        display: none;
    }
    
    .bazi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .yiji-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 15px 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 30px;
        gap: 10px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav a {
        padding: 15px 20px;
        font-size: 16px;
        border-radius: 10px;
        background: rgba(255,255,255,0.05);
        margin-bottom: 5px;
    }
    
    .nav a:hover,
    .nav a.active {
        background: rgba(196, 30, 58, 0.3);
    }
    
    .today-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .today-header h2 {
        font-size: 22px;
    }
    
    .today-header .date {
        font-size: 16px;
    }
    
    .today-main {
        padding: 30px 20px;
    }
    
    .today-info-grid,
    .today-bazi,
    .today-yiji,
    .today-term {
        padding: 0 20px 25px;
    }
    
    .today-solar .weekday {
        font-size: 40px;
    }
    
    .today-solar .date {
        font-size: 24px;
    }
    
    .today-lunar .date {
        font-size: 30px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .calendar-day {
        min-height: 70px;
        padding: 8px;
    }
    
    .day-lunar {
        font-size: 10px;
    }
    
    .day-term {
        font-size: 9px;
        padding: 1px 4px;
    }
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .convert-section,
    .features,
    .nav {
        display: none;
    }
    
    .today-huangli {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* ==================== 首页横幅样式 ==================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.hero-content {
    flex: 1;
    min-width: 280px;
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.hero-btn.primary {
    background: white;
    color: #667eea;
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.hero-btn.secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.hero-btn.secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 15px 25px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

/* ==================== 今日运势卡片样式 ==================== */
.today-fortune-card {
    background: linear-gradient(145deg, #f8f9fa, #fff);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.fortune-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.fortune-header h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 0;
}

.fortune-date {
    font-size: 14px;
    color: var(--text-light);
}

.fortune-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .fortune-content {
        grid-template-columns: 1fr;
    }
}

.fortune-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.fortune-score {
    text-align: center;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.score-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.score-label {
    font-size: 14px;
    color: var(--text-light);
}

.fortune-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.badge-item {
    padding: 10px 15px;
    background: linear-gradient(135deg, #f0f7ff, #e8f4ff);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-color);
    text-align: center;
}

.fortune-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 480px) {
    .fortune-details {
        grid-template-columns: 1fr;
    }
}

.fortune-item {
    padding: 20px;
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-radius: var(--radius);
}

.fortune-item .label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.fortune-item .progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.fortune-item .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.fortune-item .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ==================== 黄历知识样式 ==================== */
.huangli-knowledge {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-top: 30px;
}

.huangli-knowledge h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.knowledge-card {
    padding: 25px 20px;
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
}

.knowledge-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.knowledge-card h4 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.knowledge-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.modal-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* ==================== 首页侧边栏样式 ==================== */

/* 首页布局 */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

@media (max-width: 1024px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
}

.main-content {
    min-width: 0;
}

.sidebar {
    width: 320px;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 100%;
    }
}

/* 神位方位 */
.today-shen {
    padding: 0 40px 30px;
}

.today-shen h4 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.shen-item {
    background: linear-gradient(145deg, #fff8e1, #fff);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #ffe082;
    transition: var(--transition);
}

.shen-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.shen-item .label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.shen-item .value {
    font-size: 18px;
    font-weight: 600;
    color: #ff9800;
}

/* 八字时辰表 */
.shichen-table {
    background: var(--card-gradient);
    border-radius: var(--radius);
    padding: 25px;
    margin: 0 40px 30px;
    border: 1px solid var(--border-color);
}

.shichen-table h4 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shichen-table .section-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: normal;
}

.shichen-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

@media (max-width: 1200px) {
    .shichen-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .shichen-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.shichen-item {
    background: linear-gradient(145deg, #f5f5f5, #fff);
    border-radius: var(--radius);
    padding: 12px 8px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.shichen-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.shichen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.shichen-item .name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.shichen-luck {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.shichen-luck.excellent { background: #4caf50; color: white; }
.shichen-luck.good { background: #8bc34a; color: white; }
.shichen-luck.small-good { background: #cddc39; color: #333; }
.shichen-luck.normal { background: #9e9e9e; color: white; }
.shichen-luck.bad { background: #ff9800; color: white; }
.shichen-luck.terrible { background: #f44336; color: white; }

.shichen-item .time {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.shichen-gan {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 时辰弹窗样式 */
.shichen-modal-info {
    background: linear-gradient(145deg, #f5f5f5, #fff);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.shichen-modal-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.shichen-modal-info .info-row:last-child {
    border-bottom: none;
}

.shichen-modal-info .info-row .label {
    color: var(--text-light);
}

.shichen-modal-info .info-row .value {
    font-weight: 600;
}

.shichen-modal-info .info-row .value.good { color: #4caf50; }
.shichen-modal-info .info-row .value.bad { color: #f44336; }

.shichen-modal-desc,
.shichen-modal-good,
.shichen-modal-bad {
    margin-bottom: 20px;
}

.shichen-modal-desc h6,
.shichen-modal-good h6,
.shichen-modal-bad h6 {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.shichen-modal-good h6 { color: #2e7d32; }
.shichen-modal-bad h6 { color: #c62828; }

.shichen-modal-desc p,
.shichen-modal-good p,
.shichen-modal-bad p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

/* ==================== 年度运势预测样式 ==================== */
.yearly-fortune-section {
    padding: 0 40px 40px;
}

.yearly-fortune-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.yearly-fortune-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

.yearly-fortune-header select {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    background: white;
    cursor: pointer;
}

.yearly-fortune-content {
    background: linear-gradient(145deg, #fafafa, #fff);
    border-radius: var(--radius);
    padding: 25px;
}

.yearly-overview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 25px;
    color: white;
    margin-bottom: 25px;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.year-label {
    font-size: 28px;
    font-weight: 700;
}

.year-ganzhi {
    font-size: 18px;
    opacity: 0.9;
}

.overview-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.info-tag {
    padding: 6px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 14px;
}

.yearly-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .yearly-details {
        grid-template-columns: 1fr;
    }
}

.yearly-item {
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.yearly-item.wealth { border-left-color: #4caf50; }
.yearly-item.career { border-left-color: #2196f3; }
.yearly-item.love { border-left-color: #e91e63; }
.yearly-item.health { border-left-color: #ff9800; }

.yearly-item h4 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.yearly-item p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
}

.yearly-suggestion {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: var(--radius);
}

.yearly-suggestion h4 {
    font-size: 16px;
    color: #e65100;
    margin-bottom: 15px;
}

.yearly-suggestion ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yearly-suggestion li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: var(--text-color);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.yearly-suggestion li:last-child {
    border-bottom: none;
}

.yearly-suggestion li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff9800;
    font-weight: bold;
}

/* ==================== 合婚配对样式 ==================== */
.compatibility-modal {
    max-width: 700px;
}

.compatibility-form {
    padding: 20px 0;
}

.compatibility-form .form-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 15px;
}

.compatibility-form .form-row {
    margin-bottom: 20px;
}

.compatibility-form .form-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.compatibility-form select {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.compatibility-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.compatibility-form label {
    display: block;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 15px;
}

.compatibility-result {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.result-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: 25px;
}

.score-circle {
    text-align: center;
}

.score-circle .score-value {
    font-size: 48px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.score-circle .score-unit {
    font-size: 18px;
}

.score-info {
    text-align: left;
}

.score-level {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.score-desc {
    font-size: 15px;
    opacity: 0.95;
}

.result-bazi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 600px) {
    .result-bazi {
        grid-template-columns: 1fr;
    }
}

.bazi-person {
    padding: 20px;
    background: linear-gradient(145deg, #fafafa, #fff);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.bazi-person.male {
    border-left: 4px solid #2196f3;
}

.bazi-person.female {
    border-left: 4px solid #e91e63;
}

.bazi-person h4 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: center;
}

.bazi-pillars .pillar {
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    text-align: center;
}

.result-analysis {
    background: linear-gradient(145deg, #f8f9fa, #fff);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.result-analysis h5 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.analysis-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.analysis-item:last-child {
    border-bottom: none;
}

.analysis-item .label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 100px;
}

.analysis-item .value {
    flex: 1;
    color: var(--text-light);
}

.analysis-item.good .value {
    color: #2e7d32;
}

.analysis-item.bad .value {
    color: #c62828;
}

.result-suggestion {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-radius: var(--radius);
    padding: 20px;
}

.result-suggestion h5 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.result-suggestion p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
}

/* ==================== 历史记录样式 ==================== */
.history-section {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    margin: 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.history-item {
    padding: 20px;
    background: linear-gradient(145deg, #fafafa, #fff);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.history-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-date {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.history-pattern {
    font-size: 12px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
}

.history-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tag {
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-light);
}

.detail-tag.yong {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    font-weight: 600;
}

/* ==================== 年度运势预测样式 ==================== */
.year-fortune-section {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    margin: 30px 0;
}

.year-fortune-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.year-fortune-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-selector select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.year-fortune-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 15px;
}

@media (max-width: 1200px) {
    .year-fortune-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 600px) {
    .year-fortune-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.month-fortune-item {
    padding: 15px 10px;
    background: linear-gradient(145deg, #fafafa, #fff);
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    min-width: 80px;
}

.month-fortune-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.month-fortune-item.excellent {
    border-color: #4caf50;
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
}

.month-fortune-item.good {
    border-color: #8bc34a;
    background: linear-gradient(145deg, #f1f8e9, #dcedc8);
}

.month-fortune-item.normal {
    border-color: #ff9800;
    background: linear-gradient(145deg, #fff3e0, #ffe0b2);
}

.month-fortune-item.challenging {
    border-color: #f44336;
    background: linear-gradient(145deg, #ffebee, #ffcdd2);
}

.month-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.month-score {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.month-fortune-item.excellent .month-score { color: #4caf50; }
.month-fortune-item.good .month-score { color: #8bc34a; }
.month-fortune-item.normal .month-score { color: #ff9800; }
.month-fortune-item.challenging .month-score { color: #f44336; }

.month-label {
    font-size: 11px;
    color: var(--text-light);
}

/* 月份详情弹窗 */
.month-detail-modal {
    max-width: 500px;
}

.month-detail-content {
    padding: 20px 0;
}

.month-detail-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.month-detail-header h4 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.month-detail-header .overall-score {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.month-detail-section {
    margin-bottom: 20px;
}

.month-detail-section h5 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.month-detail-section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
}

.shichen-item .luck {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.shichen-item .luck.good {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.shichen-item .luck.normal {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

/* 迷你日历样式 */
.mini-calendar {
    background: var(--card-gradient);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.mini-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mini-calendar-header h3 {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

.mini-calendar-nav {
    display: flex;
    gap: 8px;
}

.mini-calendar-nav a {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.mini-calendar-nav a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.mini-calendar-day-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 10px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.mini-calendar-day-header.weekend {
    background: linear-gradient(135deg, #e65100, #bf360c);
}

.mini-calendar-day {
    background: white;
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    min-height: 55px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.mini-calendar-day:hover {
    background: #fff8e1;
}

.mini-calendar-day.other-month {
    background: #f5f5f5;
    color: #bbb;
}

.mini-calendar-day.other-month .day-lunar {
    color: #ccc;
}

.mini-calendar-day.today {
    background: #fff3e0;
}

.mini-calendar-day.today .day-num {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.mini-calendar-day .day-num {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 13px;
}

.mini-calendar-day .day-lunar {
    font-size: 10px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.mini-calendar-day .day-lunar.first-day {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 11px;
}

.mini-calendar-day .day-num.lunar-first {
    color: var(--primary-color);
    font-weight: 700;
}

.mini-calendar-day.weekend .day-num {
    color: #e65100;
}

.mini-calendar-day.weekend.today .day-num {
    font-size: 9px;
    color: #2e7d32;
    font-weight: 600;
    background: #e8f5e9;
    padding: 1px 4px;
    border-radius: 8px;
    display: inline-block;
}

.mini-calendar-day.has-term {
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
    border: 1px solid #81c784;
}

.mini-calendar-day.has-term .day-num {
    color: #2e7d32;
    font-weight: 700;
}

.mini-calendar-day .day-festival {
    font-size: 9px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 快捷查询卡片 */
.quick-search-card {
    background: var(--card-gradient);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.quick-search-card h3 {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 600;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-link {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f5f5f5, #eee);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.quick-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 节日提醒卡片 */
.festival-reminder {
    background: linear-gradient(145deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #90caf9;
}

.festival-reminder h3 {
    color: #1565c0;
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 600;
}

.festival-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.festival-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.festival-item .name {
    font-weight: 600;
    color: var(--text-color);
}

.festival-item .date {
    font-size: 12px;
    color: var(--text-muted);
}

/* 节日倒计时卡片 */
.countdown-card {
    background: linear-gradient(145deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #ffb74d;
}

.countdown-card h3 {
    color: #e65100;
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 600;
}

.countdown-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.countdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.countdown-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(5px);
}

.countdown-item .name {
    font-weight: 600;
    color: var(--text-color);
}

.countdown-item .days {
    font-weight: 700;
    color: #e65100;
    font-size: 16px;
}

.countdown-item.today {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 1px solid #ff9800;
}

.countdown-item.today .days {
    color: #e65100;
    font-size: 18px;
}

.countdown-item:last-child {
    margin-bottom: 0;
}

/* 增强结果样式 */
.enhanced-result {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #81c784;
}

.enhanced-result h3 {
    color: #2e7d32;
    margin-bottom: 25px;
    font-size: 22px;
}

.result-main-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.info-box {
    text-align: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
}

.info-box .label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.info-box .value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

/* 农历年份信息 */
.lunar-year-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: var(--radius);
    border: 1px solid #ffd54f;
}

.info-item {
    text-align: center;
}

.info-item .label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.info-item .value {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 错误提示 */
.error-message {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    padding: 18px 25px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    border-left: 4px solid #c62828;
    font-size: 14px;
}

/* 结果盒子 */
.result-box {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #ffd54f;
}

.result-box h3 {
    color: #f57c00;
    margin-bottom: 25px;
    font-size: 22px;
}

.result-content {
    display: grid;
    gap: 15px;
}

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

.result-value {
    color: var(--text-light);
    font-size: 20px;
    margin-bottom: 15px;
}

.result-yiji {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.result-yiji .yi .label {
    color: #4caf50;
    font-weight: 600;
}

.result-yiji .ji .label {
    color: #f44336;
    font-weight: 600;
}

/* 结果八字 */
.result-bazi {
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 25px;
}

.result-bazi h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

/* 今日八字四列布局 */
.today-bazi .bazi-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* 宜忌显示 */
.yi-ji {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 20px;
}

.yi-ji > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yi-ji .label {
    font-size: 16px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius);
}

.yi .label {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.ji .label {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.yi-ji .content {
    font-size: 16px;
    color: var(--text-color);
}

/* 复选框组 */
.checkbox-group {
    flex: none;
    min-width: auto;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* ========== 八字算命页面样式 ========== */
.bazi-section {
    margin-bottom: 30px;
}

.bazi-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(74, 111, 165, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-label:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(74, 111, 165, 0.08);
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.2);
}

/* 八字结果显示区 */
.bazi-result-section {
    margin-top: 30px;
}

.bazi-result-section .section-card {
    margin-bottom: 25px;
}

/* 历史记录 */
.history-section {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.history-header,
.history-section .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.history-header h3,
.history-section .card-header h2 {
    margin: 0;
    font-size: 20px;
}

.history-section .card-body {
    padding: 20px;
}

.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    .history-list {
        grid-template-columns: 1fr;
    }
    
    /* 合婚配对弹窗移动端 */
    .compatibility-modal {
        width: 95%;
        max-width: none;
        margin: 10px;
    }
    
    .compatibility-form select {
        min-width: 45%;
    }
    
    /* 年度运势移动端 */
    .yearly-overview {
        padding: 20px;
    }
    
    .year-label {
        font-size: 24px;
    }
    
    .year-ganzhi {
        font-size: 16px;
    }
    
    /* 首页横幅移动端 */
    .hero-section {
        padding: 25px;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-stats {
        width: 100%;
        justify-content: center;
    }
    
    .stat-item {
        flex: 1;
        min-width: 80px;
    }
    
    /* 今日运势移动端 */
    .fortune-content {
        grid-template-columns: 1fr;
    }
    
    .fortune-main {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .fortune-badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .badge-item {
        flex: 1;
        min-width: 120px;
    }
    
    /* 黄历知识移动端 */
    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 八字表单移动端 */
    .bazi-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bazi-form .form-group {
        min-width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* 八字结果移动端 */
    .bazi-pillars-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .pillar-display {
        padding: 12px 8px;
    }
    
    .pillar-display .pillar-name {
        font-size: 14px;
    }
    
    .pillar-display .pillar-value {
        font-size: 18px;
    }
    
    .wuxing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .personality-grid {
        grid-template-columns: 1fr;
    }
    
    .fortune-year-meta {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dayun-list {
        grid-template-columns: 1fr;
    }
    
    /* 流年详解移动端 */
    .liunian-main-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .liunian-details {
        grid-template-columns: 1fr;
    }
    
    .liunian-cards {
        grid-template-columns: 1fr;
    }
    
    /* 格局分析移动端 */
    .pattern-type-display {
        padding: 25px;
    }
    
    .pattern-icon {
        font-size: 40px;
    }
    
    .pattern-name {
        font-size: 24px;
    }
    
    /* 万年历移动端 */
    .calendar-container {
        padding: 20px;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .calendar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .calendar-grid {
        font-size: 12px;
    }
    
    .calendar-day {
        min-height: 70px;
        padding: 8px;
    }
    
    .calendar-shortcuts {
        gap: 8px;
        padding: 15px;
    }
    
    .shortcut-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 日期详情移动端 */
    .today-huangli {
        padding: 20px;
    }
    
    .today-main {
        flex-direction: column;
        gap: 15px;
    }
    
    .today-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shichen-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .yiji-grid {
        grid-template-columns: 1fr;
    }
    
    .yiji-detail {
        grid-template-columns: 1fr;
    }
    
    /* 关于页面移动端 */
    .about-hero {
        padding: 30px 20px;
    }
    
    .about-hero-content h1 {
        font-size: 28px;
    }
    
    .about-hero-stats {
        gap: 15px;
    }
    
    .hero-stat {
        padding: 15px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .usage-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* 首页侧边栏移动端 */
    .home-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 弹窗移动端 */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 25px;
        margin: 10px;
    }
    
    .close-btn {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
    
    /* 表格和卡片移动端 */
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-card {
        padding: 25px;
    }
    
    .detail-card h3 {
        font-size: 20px;
    }
    
    /* 星期标题移动端 */
    .calendar-day-header,
    .mini-calendar-day-header {
        padding: 10px;
        font-size: 12px;
    }
    
    /* 节气时间线移动端 */
    .terms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .term-item {
        padding: 12px;
    }
    
    .term-icon {
        font-size: 24px;
    }
    
    .term-date {
        font-size: 11px;
    }
    
    .term-name {
        font-size: 13px;
    }
    
    /* 节日倒计时移动端 */
    .countdown-item {
        padding: 12px 15px;
    }
    
    .countdown-item .days {
        font-size: 18px;
    }
    
    /* 页脚移动端 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* 小屏幕额外优化 */
    .section-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .section-card h2 {
        font-size: 20px;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    /* 今日黄历 */
    .today-header h2 {
        font-size: 22px;
    }
    
    .ganzhi {
        font-size: 24px;
    }
    
    /* 八字卡片 */
    .bazi-pillars-display {
        grid-template-columns: 1fr 1fr;
    }
    
    .pillar-display .pillar-name {
        font-size: 12px;
    }
    
    .pillar-display .pillar-value {
        font-size: 16px;
    }
    
    /* 五行分析 */
    .wuxing-item {
        padding: 15px;
    }
    
    .wuxing-name {
        font-size: 14px;
    }
    
    .wuxing-count {
        font-size: 20px;
    }
    
    /* 性格分析 */
    .personality-item {
        padding: 15px;
    }
    
    .personality-item h4 {
        font-size: 14px;
    }
    
    .personality-item p {
        font-size: 13px;
    }
    
    /* 运势详解 */
    .fortune-item-full {
        padding: 20px;
    }
    
    .fortune-item-full h3 {
        font-size: 16px;
    }
    
    /* 大运分析 */
    .dayun-item {
        padding: 15px;
    }
    
    .dayun-pillar {
        font-size: 20px;
    }
    
    .dayun-range {
        font-size: 12px;
    }
    
    /* 流年详解 */
    .liunian-pillar-large {
        font-size: 32px;
    }
    
    .liunian-year,
    .liunian-age {
        font-size: 14px;
    }
    
    /* 格局分析 */
    .pattern-name {
        font-size: 20px;
    }
    
    .pattern-desc {
        font-size: 13px;
    }
    
    /* 黄历知识卡片 */
    .knowledge-card {
        padding: 15px;
    }
    
    .knowledge-icon {
        font-size: 32px;
    }
    
    .knowledge-card h4 {
        font-size: 14px;
    }
    
    .knowledge-card p {
        font-size: 12px;
    }
    
    /* 功能卡片 */
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    .feature-card h3 {
        font-size: 16px;
    }
    
    .feature-card p {
        font-size: 13px;
    }
    
    /* 迷你日历 */
    .mini-calendar-grid {
        font-size: 11px;
    }
    
    .mini-calendar-day {
        padding: 5px;
        min-height: 45px;
    }
    
    .mini-calendar-day .day-num {
        font-size: 14px;
    }
    
    .mini-calendar-day .day-lunar {
        font-size: 9px;
    }
    
    /* 快捷链接 */
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .quick-link {
        padding: 12px;
        text-align: center;
    }
    
    /* 十二时辰 */
    .shichen-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .shichen-item {
        padding: 10px 5px;
    }
    
    .shichen-item .name {
        font-size: 13px;
    }
    
    .shichen-luck {
        font-size: 9px;
    }
    
    .shichen-item .time {
        font-size: 9px;
    }
    
    .shichen-gan {
        font-size: 10px;
    }
    
    /* 节气网格 */
    .terms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .term-item {
        padding: 10px;
    }
    
    /* 农历月份速查 */
    .lunar-months-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lunar-month-item {
        padding: 10px;
    }
    
    .lunar-month-item .month-name {
        font-size: 14px;
    }
    
    .lunar-month-item .month-num {
        font-size: 11px;
    }
    
    /* 节日倒计时 */
    .countdown-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    /* 星期网格 */
    .calendar-day-header,
    .mini-calendar-day-header {
        padding: 8px;
        font-size: 11px;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 5px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .day-lunar {
        font-size: 10px;
    }
    
    .day-term {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .day-festival {
        font-size: 8px;
        padding: 1px 3px;
    }
    
    /* 农历日显示优化 */
    .day-month-name {
        font-size: 9px;
    }
    
    /* 快捷导航 */
    .calendar-shortcuts {
        gap: 6px;
        padding: 12px;
    }
    
    .shortcut-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .shortcut-btn svg {
        width: 14px;
        height: 14px;
    }
    
    /* 关于页面统计 */
    .hero-stat {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    /* 关于页面功能卡片 */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .feature-icon {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    /* 导航菜单 */
    .nav {
        gap: 10px;
    }
    
    .nav a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

.history-item {
    padding: 15px;
    background: linear-gradient(145deg, #fafafa, #fff);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.history-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.history-date {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.history-pillar {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.history-yong {
    font-size: 12px;
    color: var(--text-light);
}

.empty-tip {
    text-align: center;
    color: var(--text-light);
    padding: 30px;
    font-size: 14px;
}

.history-item:last-child {
    margin-bottom: 0;
}

.btn-sm {
    padding: 6px 15px;
    font-size: 13px;
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* 八字四柱展示 */
.bazi-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pillar-item {
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-radius: var(--radius);
    padding: 25px 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.pillar-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.pillar-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.pillar-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    font-family: "KaiTi", "STKaiti", serif;
}

.pillar-wuxing {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 8px;
}

.pillar-nayin {
    font-size: 14px;
    color: var(--text-light);
}

/* 五行分析 */
.wuxing-analysis {
    padding: 10px 0;
}

.wuxing-analysis-full {
    padding: 10px 0;
}

.wuxing-chart {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.wuxing-item {
    text-align: center;
}

.wuxing-item .element {
    display: block;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.wuxing-item .element.metal { color: #d4a574; }
.wuxing-item .element.wood { color: #4caf50; }
.wuxing-item .element.water { color: #2196f3; }
.wuxing-item .element.fire { color: #f44336; }
.wuxing-item .element.earth { color: #795548; }

.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    transition: width 0.5s ease;
}

.wuxing-item .count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    min-width: 20px;
}

/* 五行高亮（喜用/忌） */
.wuxing-item.highlight {
    border: 2px solid rgba(76,175,80,0.18);
    background: linear-gradient(180deg, rgba(76,175,80,0.04), transparent);
    box-shadow: 0 4px 12px rgba(76,175,80,0.06);
    border-radius: 8px;
    padding: 8px;
}
.wuxing-item.warn {
    border: 2px solid rgba(244,67,54,0.14);
    background: linear-gradient(180deg, rgba(244,67,54,0.03), transparent);
    box-shadow: 0 4px 12px rgba(244,67,54,0.04);
    border-radius: 8px;
    padding: 8px;
}

/* 天干高亮 */
.gan.highlight-yong {
    box-shadow: inset 0 -6px 0 rgba(76,175,80,0.08);
    border-radius: 4px;
}
.gan.highlight-ji {
    box-shadow: inset 0 -6px 0 rgba(244,67,54,0.08);
    border-radius: 4px;
}

/* 表单错误提示 */
.form-error {
    background: #fff3f2;
    border: 1px solid #ffd6d1;
    color: #b00020;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.wuxing-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.wuxing-summary p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.wuxing-summary p:last-child {
    margin-bottom: 0;
}

/* 流年详解 - 年运小结 */
.fortune-year-summary {
    background: #f8f9fb;
    border-left: 4px solid var(--primary-color);
    padding: 16px 18px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}
.fortune-year-summary strong {
    color: var(--text-color);
}

.fortune-year-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px 16px;
    margin-bottom: 18px;
    font-size: 13px;
}
.fortune-year-meta .meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #fafbfc;
    border-radius: 6px;
}
.fortune-year-meta .label {
    color: var(--text-light);
}
.fortune-year-meta .value {
    font-weight: 600;
    color: var(--text-color);
}

/* =========================
   流年详解（bazi.php #liunianSection）
   ========================= */
.liunian-section .liunian-analysis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.liunian-main-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.10), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.liunian-pillar-large {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111827;
}

.liunian-year-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    color: #374151;
    font-weight: 600;
}

.liunian-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: #fff;
}

.liunian-detail-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #374151;
}

.liunian-detail-row .label {
    color: #6b7280;
    font-size: 13px;
    min-width: 92px;
}

.liunian-detail-row .value {
    color: #111827;
    font-weight: 700;
}

.liunian-analysis-content {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.liunian-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.liunian-card {
    padding: 12px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.liunian-card h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #111827;
}

.liunian-card p {
    margin: 0;
    color: #374151;
    line-height: 1.7;
}

.liunian-advice h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #111827;
}

.liunian-advice ul {
    margin: 0;
    padding-left: 18px;
    color: #374151;
}

.liunian-advice li {
    margin: 6px 0;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .liunian-details {
        grid-template-columns: 1fr;
    }
    .liunian-cards {
        grid-template-columns: 1fr;
    }
    .liunian-year-info {
        align-items: flex-start;
    }
}

/* 命格分析 */
.destiny-analysis {
    padding: 10px 0;
}

.destiny-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.destiny-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius);
}

.destiny-item .label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.destiny-item .value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.destiny-comment {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid #ffd54f;
}

.destiny-comment p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.destiny-comment p:last-child {
    margin-bottom: 0;
}

/* 运势简评 */
.fortune-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.fortune-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius);
}

.fortune-item h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fortune-item p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

/* 八字知识区 */
.bazi-knowledge-section {
    margin-top: 30px;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.knowledge-card {
    padding: 25px;
    background: linear-gradient(135deg, #fafafa, #f5f0e8);
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
}

.knowledge-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.knowledge-card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ========== 八字精批增强样式 ========== */

/* 八字四柱完整展示 */
.bazi-pillars-full {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pillar-row {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    border-radius: var(--radius);
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.pillar-row:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.pillar-row.highlight-row {
    background: linear-gradient(135deg, #f0f7ff, #e8f4ff);
    border-color: var(--primary-color);
}

.pillar-header {
    width: 100px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pillar-title {
    font-size: 18px;
    font-weight: 700;
}

.pillar-subtitle {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
}

.pillar-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gan-zhi {
    font-size: 32px;
    font-weight: 700;
    font-family: "KaiTi", "STKaiti", serif;
    color: var(--text-color);
    min-width: 80px;
}

.gan-detail {
    display: flex;
    gap: 10px;
}

.gan-detail .gan,
.gan-detail .zhi {
    padding: 5px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
}

.pillar-wuxing-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.pillar-wuxing-info .wuxing {
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
}

/* 五行颜色背景 */
.pillar-wuxing-info .wuxing.wuxing-wood {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.pillar-wuxing-info .wuxing.wuxing-fire {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.pillar-wuxing-info .wuxing.wuxing-earth {
    background: linear-gradient(135deg, #795548, #5d4037);
}

.pillar-wuxing-info .wuxing.wuxing-metal {
    background: linear-gradient(135deg, #d4a574, #b8860b);
}

.pillar-wuxing-info .wuxing.wuxing-water {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.pillar-wuxing-info .nayin {
    font-size: 13px;
    color: var(--text-light);
}

.pillar-wuxing-info .canggan {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
    font-style: italic;
}

/* 天干地支样式 */
.gan-detail .gan,
.gan-detail .zhi {
    padding: 5px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.gan-detail .gan:hover,
.gan-detail .zhi:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 五行颜色 */
.wuxing-wood { color: #4caf50; }
.wuxing-fire { color: #f44336; }
.wuxing-earth { color: #795548; }
.wuxing-metal { color: #d4a574; }
.wuxing-water { color: #2196f3; }

/* 八字排盘说明 */
.pillar-legend {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.legend-item {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-label {
    font-weight: 600;
    color: var(--primary-color);
}

.legend-value {
    color: var(--text-color);
}

/* 日主分析 */
.day-master-analysis {
    padding: 10px 0;
}

.day-master-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #f0f7ff, #e8f4ff);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.day-master-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gan-display {
    font-size: 36px;
    font-weight: 700;
    font-family: "KaiTi", "STKaiti", serif;
    color: var(--primary-color);
}

.wuxing-badge {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--secondary-color), #e67e22);
    color: white;
    border-radius: 20px;
    font-size: 14px;
}

.shengxiao-display {
    font-size: 16px;
    color: var(--text-light);
}

.day-master-detail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.day-master-detail .detail-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-radius: var(--radius);
}

.day-master-detail .label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.day-master-detail .value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.day-master-comment {
    padding: 20px;
    background: linear-gradient(135deg, #fafafa, #f5f0e8);
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
}

/* 大运分析 */
.dayun-analysis {
    padding: 10px 0;
}

.bazi-detail-wrap {
    padding: 10px 0;
}

.bazi-detail-title {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 14px;
}

.bazi-detail-title .label {
    color: var(--text-light);
    font-size: 14px;
}

.bazi-detail-title .value {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 18px;
}

.bazi-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.bazi-detail-item {
    background: linear-gradient(145deg, #ffffff, #fafafa);
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 16px;
}

.bazi-detail-item .k {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.bazi-detail-item .v {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-color);
    font-family: "KaiTi", "STKaiti", serif;
}

.bazi-detail-item .v.small {
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
}

.bazi-detail-comment {
    padding: 18px;
    background: linear-gradient(135deg, #f0f7ff, #fff7f0);
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
    line-height: 1.85;
    color: var(--text-color);
}

.bazi-detail-comment h4 {
    margin: 12px 0 8px;
    font-size: 15px;
    color: var(--primary-color);
}

.bazi-detail-comment p {
    margin: 8px 0;
}

.bazi-detail-comment .tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.65);
    margin: 0 6px;
}

.bazi-detail-comment .tag.good {
    color: #0f7b3b;
    border-color: rgba(15, 123, 59, 0.25);
}

.bazi-detail-comment .tag.warn {
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.25);
}

.bazi-detail-comment ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.bazi-detail-comment li {
    margin: 6px 0;
}

.section-card.dayun-section {
    /* 仅“大运分析”全宽铺满屏幕，不影响其它模块 */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
}

.section-card.dayun-section .card-header,
.section-card.dayun-section .card-body {
    /* 补回与 .container 一致的左右留白，视觉对齐 */
    padding-left: 40px;
    padding-right: 40px;
}

.section-card.dayun-section .card-body {
    /* 让大运网格真正占满可用宽度 */
    width: 100%;
}

.dayun-info {
    padding: 15px 20px;
    background: linear-gradient(135deg, #fafafa, #f0f7ff);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.dayun-info p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.dayun-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: var(--radius);
    margin-bottom: 25px;
    border: 1px solid #ffd54f;
}

.dayun-summary-item {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.dayun-summary-item .label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.dayun-summary-item .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.dayun-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dayun-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* bazi.php：#dayunList 内部会再渲染一层 .dayun-grid，避免父级 grid 把它压成 1/4 宽 */
.dayun-section #dayunList.dayun-list {
    display: block;
}

.dayun-grid.dayun-grid-detail {
    /* 桌面端：每行3张 */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* 大运卡片：中等屏幕自动变2列 */
@media (max-width: 1200px) {
    .section-card.dayun-section .card-header,
    .section-card.dayun-section .card-body {
        padding-left: 32px;
        padding-right: 32px;
    }

    .dayun-grid.dayun-grid-detail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bazi-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dayun-item {
    padding: 28px;
    background: linear-gradient(135deg, #fdfdfd, #f5f8ff);
    border-radius: 14px;
    border: 1px solid #e6ecf5;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.dayun-item.dayun-item-detail {
    text-align: left;
    min-height: 280px;
}

.dayun-item .dayun-age {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.dayun-item .dayun-pillar {
    font-size: 30px;
    font-weight: 700;
    font-family: "KaiTi", "STKaiti", serif;
    color: var(--text-color);
    margin-bottom: 8px;
}

.dayun-item .dayun-wuxing {
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--secondary-color), #7ac8ff);
    color: white;
    border-radius: 12px;
    font-size: 13px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 140, 255, 0.15);
}

.dayun-detail-title {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 12px;
    border-top: 1px dashed #e6e6e6;
}

.dayun-detail-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.75;
}

.dayun-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 140, 255, 0.25);
}

/* 大运概览 */
.dayun-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.dayun-overview .overview-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dayun-overview .overview-item.highlight {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #2196f3;
}

.dayun-overview .overview-item.good {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 2px solid #4caf50;
}

.dayun-overview .overview-item.warn {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px solid #ff9800;
}

.dayun-overview .overview-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.dayun-overview .overview-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.dayun-overview .overview-item.highlight .overview-value {
    color: #1976d2;
    font-size: 24px;
}

.dayun-overview .overview-item.good .overview-value {
    color: #2e7d32;
}

.dayun-overview .overview-item.warn .overview-value {
    color: #e65100;
}

/* 大运标签 */
.dayun-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.dayun-badge.current {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    animation: pulse 2s infinite;
}

.dayun-badge.past {
    background: #9e9e9e;
    color: white;
}

.dayun-badge.future {
    background: #2196f3;
    color: white;
}

.dayun-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
    background: #e0e0e0;
    color: #666;
}

.dayun-item.current-dayun .dayun-status {
    background: #4caf50;
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* 当前大运高亮 */
.dayun-item.current-dayun {
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
    border: 3px solid #4caf50;
    position: relative;
    overflow: hidden;
}

.dayun-item.current-dayun::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #8bc34a, #4caf50);
}

.dayun-item.past-dayun {
    opacity: 0.7;
}

/* ========== 当前大运独立显示样式 ========== */
.current-dayun-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    border: 2px solid #4caf50;
}

.current-dayun-section .card-header {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.current-dayun-display {
    padding: 20px;
}

.current-dayun-main {
    text-align: center;
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.dayun-pillar-large {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 8px;
    margin-bottom: 10px;
}

.dayun-age-range {
    font-size: 18px;
    color: var(--text-light);
    background: linear-gradient(135deg, #4caf50, #388e3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.current-dayun-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.dayun-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
}

.dayun-detail-row .label {
    font-size: 14px;
    color: var(--text-light);
}

.dayun-detail-row .value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.current-dayun-analysis {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: var(--radius);
}

.current-dayun-analysis h4 {
    color: var(--primary-color);
    margin: 15px 0 10px;
    font-size: 16px;
}

.current-dayun-analysis h4:first-child {
    margin-top: 0;
}

.current-dayun-analysis ul {
    margin: 10px 0;
    padding-left: 20px;
}

.current-dayun-analysis ul li {
    margin: 8px 0;
    color: var(--text-light);
    line-height: 1.6;
}

.dayun-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dayun-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.dayun-age {
    font-size: 12px;
    color: var(--text-light);
}

.dayun-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dayun-pillar {
    font-size: 24px;
    font-weight: 700;
    font-family: "KaiTi", "STKaiti", serif;
    color: var(--text-color);
}

.dayun-wuxing {
    padding: 4px 10px;
    background: var(--secondary-color);
    color: white;
    border-radius: 10px;
    font-size: 12px;
}

/* 命格详解 */
.destiny-analysis {
    padding: 10px 0;
}

.destiny-intro {
    padding: 20px;
    background: linear-gradient(135deg, #f0f7ff, #e8f4ff);
    border-radius: var(--radius);
    margin-bottom: 20px;
    text-align: center;
}

.destiny-intro p {
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.8;
}

.destiny-detail {
    margin-bottom: 25px;
}

.destiny-detail h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.destiny-points ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.destiny-points li {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 20px;
    font-size: 14px;
}

.destiny-comment {
    padding: 20px;
    background: linear-gradient(135deg, #fafafa, #f5f0e8);
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
}

.destiny-comment p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.destiny-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.point-tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.point-item {
    padding: 15px;
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.point-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.point-item.level-strong {
    border-left-color: #e74c3c;
    background: linear-gradient(145deg, #fff5f5, #ffe5e5);
}

.point-item.level-weak {
    border-left-color: #3498db;
    background: linear-gradient(145deg, #f0f8ff, #e5f0ff);
}

.point-item.level-balanced {
    border-left-color: #2ecc71;
    background: linear-gradient(145deg, #f0fff4, #e5ffe8);
}

.point-item.level-warning {
    border-left-color: #f39c12;
    background: linear-gradient(145deg, #fffbf0, #fff5e0);
}

.point-item.level-notice {
    border-left-color: #9b59b6;
    background: linear-gradient(145deg, #faf0ff, #f5e5ff);
}

.point-item.level-good {
    border-left-color: #10b981;
    background: linear-gradient(145deg, #f0fdf4, #dcfce7);
}

.point-item.level-medium {
    border-left-color: #6b7280;
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
}

.point-item .point-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.point-item .point-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.destiny-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius);
    margin-top: 20px;
}

.destiny-section h5 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.destiny-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.destiny-section ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: var(--text-color);
}

.destiny-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.destiny-suggestion {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f7ff, #e8f4ff);
    border-radius: var(--radius);
}

.destiny-suggestion h5 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.destiny-suggestion ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.destiny-suggestion ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: var(--text-color);
}

.destiny-suggestion ul li::before {
    content: '💡';
    position: absolute;
    left: 0;
}

/* 格局分析 */
.pattern-analysis {
    padding: 10px 0;
}

.pattern-main {
    margin-bottom: 25px;
}

.pattern-type-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    color: white;
}

.pattern-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.pattern-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pattern-desc {
    font-size: 14px;
    opacity: 0.9;
}

.pattern-details {
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-radius: var(--radius);
    padding: 25px;
}

.pattern-detail-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.pattern-detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pattern-detail-section h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.pattern-detail-section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.pattern-detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pattern-detail-section ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

.pattern-detail-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.personality-intro {
    padding: 20px;
    background: linear-gradient(135deg, #f0fff4, #e5ffe8);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.personality-intro p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

/* 性格分析 */
.personality-analysis {
    padding: 10px 0;
}

.personality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.personality-item {
    padding: 20px;
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-radius: var(--radius);
}

.personality-item h4 {
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.personality-item p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
}

/* 运势详解 */
.fortune-analysis {
    padding: 10px 0;
}

.fortune-item-full {
    padding: 25px;
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.fortune-item-full h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.fortune-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.fortune-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fortune-tips li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: var(--text-light);
}

.fortune-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* 贵人运与建议 */
.advice-section {
    padding: 10px 0;
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.advice-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-radius: var(--radius);
}

.advice-item h4 {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.advice-item p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.life-advice {
    padding: 25px;
    background: linear-gradient(135deg, #f0f7ff, #e8f4ff);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.life-advice p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

/* 适合职业 */
.career-section {
    padding: 10px 0;
}

.career-recommend {
    padding: 20px;
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.career-recommend p {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.career-tips {
    padding: 20px;
    background: linear-gradient(135deg, #fafafa, #f0f7ff);
    border-radius: var(--radius);
}

.career-tips p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    margin: 10px 0;
}

.career-tips h4 {
    color: var(--primary-color);
    margin: 15px 0 10px;
    font-size: 15px;
}

.career-tips ul {
    margin: 10px 0;
    padding-left: 20px;
}

.career-tips ul li {
    margin: 8px 0;
    color: var(--text-light);
}

/* ========== 响应式样式 ========== */
@media (max-width: 1200px) {
    .bazi-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .destiny-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        min-width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .bazi-pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .bazi-pillars-full {
        gap: 10px;
    }
    
    .pillar-row {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .pillar-header {
        width: 100%;
        text-align: center;
    }
    
    .pillar-content {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .pillar-wuxing-info {
        align-items: center;
        width: 100%;
    }
    
    .gan-zhi {
        font-size: 28px;
    }
    
    .pillar-legend {
        font-size: 12px;
    }
    
    .pillar-item {
        padding: 15px 10px;
    }
    
    .pillar-value {
        font-size: 22px;
    }
    
    .wuxing-chart {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .dayun-grid.dayun-grid-detail {
        grid-template-columns: 1fr;
    }

    .section-card.dayun-section .card-header,
    .section-card.dayun-section .card-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .bazi-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .destiny-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .fortune-section {
        grid-template-columns: 1fr;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bazi-pillars {
        grid-template-columns: 1fr;
    }
    
    .wuxing-chart {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .wuxing-item .element {
        font-size: 16px;
    }
}

/* 今年节气一览 */
.solar-terms-year {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.solar-terms-year h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e4dd;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.term-item {
    text-align: center;
    padding: 15px 10px;
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.term-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    background: linear-gradient(145deg, #fff5f5, #ffe8e8);
}

.term-item.today {
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
    border: 2px solid #4caf50;
}

.term-item.passed {
    opacity: 0.6;
}

.term-item.today .term-name {
    color: #2e7d32;
}

.term-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.term-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.term-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 1200px) {
    .terms-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .terms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .term-item {
        padding: 12px 8px;
    }
    
    .term-date {
        font-size: 12px;
    }
    
    .term-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .terms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== 年度运势预测样式 ==================== */
.year-fortune-section .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.year-selector select {
    padding: 10px 20px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
}

.year-fortune-content {
    padding: 10px 0;
}

.year-fortune-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: 25px;
}

.year-fortune-title {
    font-size: 24px;
    font-weight: 700;
}

.year-fortune-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 30px;
    border-radius: var(--radius);
    text-align: center;
}

.year-fortune-score .score-num {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.year-fortune-score .score-label {
    font-size: 14px;
    margin-top: 5px;
}

.year-fortune-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.fortune-detail-card {
    padding: 20px;
    background: linear-gradient(145deg, #fafafa, #fff);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.fortune-detail-card h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.fortune-detail-card .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.fortune-detail-card .detail-row .label {
    color: var(--text-light);
}

.fortune-detail-card .detail-row .value {
    font-weight: 600;
    color: var(--text-color);
}

.fortune-detail-card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.year-fortune-advice {
    padding: 25px;
    background: linear-gradient(135deg, #f0f7ff, #e8f4ff);
    border-radius: var(--radius);
}

.year-fortune-advice h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.year-fortune-advice ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.year-fortune-advice ul li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-color);
    border-bottom: 1px solid #e0e0e0;
}

.year-fortune-advice ul li:last-child {
    border-bottom: none;
}

/* ========== 年度运势弹窗 ========== */
.annual-forecast-modal {
    max-width: 700px;
    width: 90%;
}

#annualForecastContent {
    max-height: 70vh;
    overflow-y: auto;
}

.forecast-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.forecast-header h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.forecast-note {
    font-size: 13px;
    color: var(--text-light);
}

.forecast-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.forecast-item {
    display: grid;
    grid-template-columns: 80px 100px 50px 70px 40px 1fr;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--radius);
    border-left: 4px solid #4caf50;
}

.forecast-year {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.forecast-ganzhi {
    font-size: 14px;
    color: var(--text-light);
}

.forecast-score {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.forecast-level {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.forecast-element .match {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

.forecast-element .match.good {
    background: #e8f5e9;
    color: #4caf50;
}

.forecast-element .match.bad {
    background: #ffebee;
    color: #f44336;
}

.forecast-desc {
    font-size: 13px;
    color: var(--text-light);
}

.forecast-suggestion {
    background: #fafafa;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.forecast-suggestion h5 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.forecast-suggestion ul {
    list-style: none;
}

.forecast-suggestion ul li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
}

.forecast-suggestion ul li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: var(--primary-color);
}

/* ========== 合婚配对结果 ========== */
.compatibility-score {
    text-align: center;
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.compatibility-score .score-value {
    font-size: 60px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.compatibility-score .score-level {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-top: 10px;
}

.compatibility-score .score-desc {
    font-size: 16px;
    color: white;
    opacity: 0.9;
    margin-top: 5px;
}

.compatibility-compare {
    margin-bottom: 25px;
}

.compatibility-compare h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.compare-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: #fafafa;
    border-radius: var(--radius-sm);
}

.compare-item .label {
    font-size: 12px;
    color: var(--text-light);
}

.compare-item .value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.compatibility-reasons {
    margin-bottom: 25px;
}

.compatibility-reasons h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.compatibility-reasons ul {
    list-style: none;
    padding: 0;
}

.compatibility-reasons ul li {
    padding: 10px 15px;
    background: #fafafa;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-color);
    position: relative;
    padding-left: 30px;
}

.compatibility-reasons ul li::before {
    content: "✓";
    position: absolute;
    left: 10px;
    color: #4caf50;
    font-weight: 600;
}

.compatibility-advice {
    background: #f0f7ff;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid #d0e3ff;
}

.compatibility-advice h4 {
    font-size: 16px;
    color: #1976d2;
    margin-bottom: 10px;
}

.compatibility-advice p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
}

/* ========== 格局分析增强 ========== */
.pattern-detail {
    margin-top: 15px;
    padding: 15px;
    background: #fafafa;
    border-radius: var(--radius-sm);
}

.pattern-detail p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 10px;
}

.pattern-detail p:last-child {
    margin-bottom: 0;
}

.pattern-detail strong {
    color: var(--primary-color);
}

/* ========== 移动端汉堡菜单 ========== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .forecast-item {
        grid-template-columns: 60px 80px 40px 60px 30px 1fr;
        gap: 10px;
        padding: 12px;
    }
    
    .forecast-year {
        font-size: 14px;
    }
    
    .forecast-ganzhi {
        font-size: 12px;
    }
    
    .forecast-score {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .forecast-level {
        font-size: 12px;
    }
    
    .forecast-desc {
        font-size: 11px;
    }
    
    .compare-grid {
        grid-template-columns: 1fr;
    }
    
    .compatibility-score .score-value {
        font-size: 48px;
    }
    
    .compatibility-score .score-level {
        font-size: 20px;
    }
}

/* ========== 加载动画样式 ========== */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color, #e91e63);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 18px;
    margin: 10px 0;
    color: var(--text-color);
}

.loading small {
    color: var(--text-light);
    font-size: 12px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading .loading-text {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ========== 黄道吉日样式 ========== */
.golden-path-info {
    padding: 15px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.golden-path-info .info-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.golden-path-info .info-row:last-child {
    margin-bottom: 0;
}

.golden-path-info .label {
    font-weight: 600;
    color: #666;
    min-width: 90px;
}

.golden-path-info .value {
    color: #333;
    font-size: 15px;
}

/* 黄道吉日状态徽章 */
.golden-path-status {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    border-radius: 12px;
    border-left: 5px solid #ffc107;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-badge.huangdao {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.status-badge.heidao {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.status-icon {
    font-size: 24px;
    animation: twinkle 2s ease-in-out infinite;
}

.status-text {
    font-size: 20px;
    letter-spacing: 1px;
}

.status-desc {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.status-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.status-item .label {
    font-weight: 600;
    color: #666;
    margin-right: 8px;
    font-size: 14px;
}

.status-item .value {
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.level-badge.level-大吉 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.level-badge.level-吉 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.level-badge.level-平 {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.level-badge.level-凶 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.level-badge.level-大凶 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* 黄道吉日区块 */
.golden-path-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

.golden-path-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ffc107;
    display: inline-block;
}

.golden-path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.golden-path-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.info-group {
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.group-label {
    font-weight: 700;
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.group-value {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ========== 彭祖百忌样式 ========== */
.pengzu-info {
    padding: 15px;
    background: linear-gradient(135deg, #ffebee 0%, #fff3e0 100%);
    border-radius: 8px;
}

.pengzu-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
}

.pengzu-item {
    text-align: center;
}

.pengzu-item .label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.pengzu-item .value {
    font-size: 18px;
    font-weight: 600;
    color: #c41e3a;
}

.pengzu-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pengzu-detail .detail-col {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
}

.pengzu-detail h5 {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.pengzu-detail p {
    font-size: 13px;
    color: #c41e3a;
    font-weight: 500;
}