/* 全局样式 */
:root {
    --shu-page-bg: #f4efe7;
    --shu-page-bg-2: #ebe5da;
    --shu-surface: #fffdf8;
    --shu-border: rgba(36, 28, 19, 0.1);
    --shu-text: #1f2937;
    --shu-muted: #6b7280;
    --shu-primary: #0f766e;
    --shu-primary-strong: #115e59;
    --shu-accent: #c08a3f;
    --shu-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(192, 138, 63, 0.16), transparent 28%),
        linear-gradient(180deg, var(--shu-page-bg) 0%, var(--shu-page-bg-2) 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--shu-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid var(--shu-border);
    border-radius: 20px;
    box-shadow: var(--shu-shadow);
    padding: 30px;
    backdrop-filter: blur(10px);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--shu-border);
}

header h1 {
    color: var(--shu-text);
    font-size: 28px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--shu-primary) 0%, var(--shu-primary-strong) 100%);
    color: white;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.3);
}

.btn-secondary {
    background: #e8e4db;
    color: var(--shu-text);
}

.btn-secondary:hover {
    background: #ddd7cb;
}

/* 登录框 */
.login-box {
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
}

.login-box h1 {
    color: var(--shu-text);
    margin-bottom: 30px;
}

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

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(31, 41, 55, 0.14);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.88);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 错误消息 */
.error-msg {
    color: #dc3545;
    margin-top: 10px;
    font-size: 14px;
}

.error {
    background: #fff1f2;
    color: #9f1239;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid rgba(159, 18, 57, 0.16);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--shu-primary);
    font-size: 16px;
}

/* 菜单网格 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.menu-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 118, 110, 0.92) 55%, rgba(192, 138, 63, 0.94) 100%);
    color: white;
    padding: 30px;
    border-radius: 18px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.26);
}

.menu-card h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.menu-card p {
    opacity: 0.9;
    font-size: 14px;
}

/* 结果展示 */
.result-section {
    margin-top: 30px;
}

.section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    border: 1px solid var(--shu-border);
}

.section h2 {
    color: var(--shu-text);
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid var(--shu-primary);
    padding-bottom: 10px;
}

/* 用户信息卡片 */
.user-info-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
    border: 1px solid var(--shu-border);
}

.user-info-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    color: var(--shu-muted);
    font-weight: 500;
}

/* 四柱排盘（以四柱为列，类似参考图） */
.pan-pillars-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: rgba(255, 255, 255, 0.82);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--shu-border);
}

.pan-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--shu-border);
    border-radius: 14px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.78);
}

.pan-column-header {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

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

.pillar-ten-god {
    font-size: 12px;
    color: var(--shu-primary);
}

/* 天干地支圆圈 */
.pan-stem-circle,
.pan-branch-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    font-size: 28px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 五行颜色 */
.wuxing-wood {
    background: linear-gradient(135deg, #2f855a 0%, #68d391 100%);
}

.wuxing-fire {
    background: linear-gradient(135deg, #c05621 0%, #f6ad55 100%);
}

.wuxing-earth {
    background: linear-gradient(135deg, #b7791f 0%, #f6e05e 100%);
}

.wuxing-metal {
    background: linear-gradient(135deg, #6b7280 0%, #d1d5db 100%);
}

.wuxing-water {
    background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
}

.stem-char,
.branch-char {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 藏干 */
.pan-hidden-stems {
    width: 100%;
    margin: 15px 0;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.hidden-stem-item {
    font-size: 13px;
    color: #333;
    text-align: center;
    line-height: 1.6;
}

.hidden-char {
    font-weight: 500;
    color: var(--shu-primary);
}

.hidden-ten-god {
    color: #999;
    font-size: 11px;
}

/* 纳音 */
.pan-nayin {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--shu-accent);
    font-weight: 500;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--shu-border);
}

/* 响应式：移动端改为垂直布局 */
@media (max-width: 768px) {
    .pan-pillars-columns {
        grid-template-columns: 1fr;
    }
    
    .user-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .user-info-content {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
}

/* 五行统计 */
.wuxing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.wuxing-item {
    background: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--shu-border);
}

.wuxing-name {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--shu-primary);
    margin-bottom: 5px;
}

.wuxing-count {
    display: block;
    color: var(--shu-muted);
    font-size: 14px;
}

.wuxing-percent {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 5px;
}

/* 大运列表 */
.dayun-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dayun-item {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 14px;
    border-left: 4px solid var(--shu-primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--shu-border);
}

.dayun-item.current {
    border-left-color: var(--shu-accent);
    background: #fffaf0;
}

.dayun-item h3 {
    color: var(--shu-text);
    margin-bottom: 10px;
}

.dayun-item .info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.dayun-item .info-item {
    color: var(--shu-muted);
    font-size: 14px;
}

.dayun-item .info-item strong {
    color: var(--shu-text);
}

/* 流年列表 */
.liunian-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.liunian-item {
    background: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--shu-border);
    transition: transform 0.3s;
}

.liunian-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.liunian-item.current {
    background: #fffaf0;
    border: 2px solid var(--shu-accent);
}

.liunian-item .year {
    font-size: 24px;
    font-weight: bold;
    color: var(--shu-primary);
    margin-bottom: 5px;
}

.liunian-item .ganzhi {
    font-size: 18px;
    color: var(--shu-text);
    margin-bottom: 5px;
}

.liunian-item .age {
    font-size: 14px;
    color: var(--shu-muted);
}

/* 卦象展示 */
.gua-result {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gua-result .gua-name {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin: 20px 0;
}

.gua-result .gua-info {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gua-result .gua-info p {
    margin: 10px 0;
    color: #333;
    line-height: 1.6;
}

.gua-result .interpretation {
    text-align: left;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    white-space: pre-line;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

    .liunian-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* 万年历样式 */
.calendar-container {
    margin-bottom: 30px;
}

.calendar-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    color: white;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.calendar-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: white;
}

.calendar-date-picker {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.calendar-date-picker::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.calendar-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 日期区域 */
.calendar-date-section {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.calendar-solar-date {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.calendar-weekday {
    font-size: 18px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.calendar-lunar-date {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
}

.calendar-extra-info {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

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

.info-tag.jieqi {
    background: rgba(76, 175, 80, 0.3);
}

/* 节日 */
.calendar-festivals-section {
    text-align: center;
}

.festivals-items {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.festival-tag {
    padding: 6px 14px;
    background: rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    font-size: 14px;
    color: #fff3cd;
}

/* 通用 Section 标题 */
.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* 干支八字 */
.calendar-ganzhi-section {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

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

.ganzhi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.ganzhi-label {
    font-size: 12px;
    opacity: 0.7;
}

.ganzhi-value {
    font-size: 22px;
    font-weight: bold;
}

.nayin-value {
    font-size: 11px;
    opacity: 0.7;
    text-align: center;
}

.wuxing-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wuxing-label {
    font-size: 13px;
    opacity: 0.8;
}

.wuxing-value {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-size: 13px;
}

/* 宜忌 */
.calendar-yiji-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.yi-section,
.ji-section {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.yiji-label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-block;
}

.yi-label {
    background: rgba(76, 175, 80, 0.4);
    color: #a5d6a7;
}

.ji-label {
    background: rgba(244, 67, 54, 0.4);
    color: #ef9a9a;
}

.yiji-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.yiji-item {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.yi-item {
    background: rgba(76, 175, 80, 0.25);
    color: #c8e6c9;
}

.ji-item {
    background: rgba(244, 67, 54, 0.25);
    color: #ffcdd2;
}

/* 吉凶等级 */
.calendar-luck-section {
    text-align: center;
    padding: 10px;
}

.luck-level {
    font-size: 32px;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 10px;
    display: inline-block;
}

.luck-good {
    background: rgba(76, 175, 80, 0.4);
    color: #a5d6a7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.luck-bad {
    background: rgba(244, 67, 54, 0.4);
    color: #ef9a9a;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 神煞方位 */
.calendar-deities-section {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.deities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.deity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.deity-label {
    font-size: 12px;
    opacity: 0.7;
}

.deity-value {
    font-size: 16px;
    font-weight: bold;
}

/* 冲合煞 */
.calendar-chonghesha-section {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

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

.chonghesha-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.chonghesha-label {
    font-size: 12px;
    opacity: 0.7;
}

.chonghesha-value {
    font-size: 14px;
    font-weight: bold;
}

.chong-value {
    color: #ffcdd2;
}

.he-value {
    color: #c8e6c9;
}

.sha-value {
    color: #ffe0b2;
}

/* 吉神凶煞 */
.calendar-shensha-section {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.shensha-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.shensha-row:last-child {
    margin-bottom: 0;
}

.shensha-label {
    font-size: 14px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.jishen-label {
    background: rgba(76, 175, 80, 0.4);
    color: #a5d6a7;
}

.xiongsha-label {
    background: rgba(244, 67, 54, 0.4);
    color: #ef9a9a;
}

.shensha-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shensha-tag {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.jishen-tag {
    background: rgba(76, 175, 80, 0.2);
    color: #c8e6c9;
}

.xiongsha-tag {
    background: rgba(244, 67, 54, 0.2);
    color: #ffcdd2;
}

/* 星宿 */
.calendar-xingxiu-section {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.xingxiu-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xingxiu-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.xingxiu-name {
    font-size: 20px;
    font-weight: bold;
}

.xingxiu-luck {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.xingxiu-luck.luck-good {
    background: rgba(76, 175, 80, 0.3);
}

.xingxiu-luck.luck-bad {
    background: rgba(244, 67, 54, 0.3);
}

.xingxiu-zheng,
.xingxiu-animal {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-size: 13px;
}

.xingxiu-song {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.85;
    padding: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

/* 彭祖百忌 */
.calendar-pengzu-section {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.pengzu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pengzu-item {
    font-size: 14px;
    padding: 8px 12px;
    background: rgba(255, 193, 7, 0.15);
    border-radius: 6px;
    border-left: 3px solid rgba(255, 193, 7, 0.5);
}

/* 九星 */
.calendar-jiuxing-section {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

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

.jiuxing-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.jiuxing-label {
    font-size: 12px;
    opacity: 0.7;
}

.jiuxing-value {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

/* 其他信息 */
.calendar-other-section {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.other-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.other-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.other-label {
    font-size: 12px;
    opacity: 0.7;
}

.other-value {
    font-size: 14px;
    font-weight: 500;
}

.wuhou-desc {
    font-size: 13px;
    opacity: 0.8;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    text-align: center;
}

/* 加载和错误状态 */
.calendar-loading,
.calendar-error {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: white;
}

.calendar-error {
    color: #ffebee;
}

/* 响应式设计 - 万年历 */
@media (max-width: 768px) {
    .calendar-card {
        padding: 15px;
    }

    .calendar-solar-date {
        font-size: 28px;
    }

    .ganzhi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-yiji-section {
        flex-direction: column;
    }

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

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

    .xingxiu-song {
        font-size: 12px;
    }
}
