/* 万年历样式 - 手机端专用 - 优化版 */
.calendar-modal-box {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 12px 8px;
    box-sizing: border-box;
    background: var(--bg-gradient, linear-gradient(145deg, #0a0a0a, #000000));
    border: 2px solid var(--border-color, rgba(255,255,255,0.1));
}

/* 隐藏双栏布局，使用单栏 */
.calendar-main-layout {
    display: block;
}

.calendar-left-panel,
.calendar-right-panel {
    width: 100%;
}

.calendar-close-btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: rgba(0,0,0,0.6);
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.calendar-close-btn:hover {
    background: rgba(212, 175, 55, 0.8);
    color: #000;
    transform: rotate(90deg);
}

/* 新的模态框头部 - 手机端 */
.calendar-modal-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 19px !important;
    font-weight: 600;
    padding: 0 40px; /* 留出关闭按钮空间 */
    box-sizing: border-box;
    text-align: center;
    width: 100%;
    margin: 0;
}

/* 筛选容器 - 手机端 */
.calendar-filter-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 5px;
    align-items: center;
    margin: 10px 0;
    padding: 0;
    min-height: 68px;
}

/* 前端宜/忌切换按钮 - 手机端 */
.calendar-filter-mode-switch {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.filter-mode-btn {
    padding: 6px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 白色模式下未选中按钮的可见性优化 - 金色渐变效果 */
.calendar-modal-box.light-skin .filter-mode-btn,
body.calendar-light-mode .filter-mode-btn {
    background: linear-gradient(135deg, rgba(238,223,204,0.9) 0%, rgba(212,186,155,0.85) 100%);
    border: 2px solid rgba(154,124,84,0.5);
    color: #5a4a35;
    box-shadow: 0 2px 6px rgba(154,124,84,0.25), inset 0 1px 2px rgba(255,255,255,0.5);
    font-weight: 700;
}

.calendar-modal-box.light-skin .filter-mode-btn:active,
body.calendar-light-mode .filter-mode-btn:active {
    background: linear-gradient(135deg, rgba(212,186,155,0.95) 0%, rgba(201,169,110,0.9) 100%);
    box-shadow: 0 1px 3px rgba(154,124,84,0.3), inset 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(1px);
}

.filter-mode-btn:active {
    transform: scale(0.95);
}

.filter-mode-btn.active {
    background: linear-gradient(135deg, var(--gold), #d4a574);
    border-color: var(--gold);
    color: #000;
    box-shadow: 0 2px 8px rgba(238,187,85,0.4);
}

/* 快捷筛选标签 */
.calendar-filter-tags {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    height: 64px;
}

.calendar-filter-tag {
    padding: 0 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    color: var(--text-color);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    white-space: nowrap;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-filter-tag:hover,
.calendar-filter-tag:active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
}

.calendar-filter-tag.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    font-weight: 600;
}

/* 白色模式下筛选标签增强对比度 */
.calendar-modal-box.light-skin .calendar-filter-tag,
body.calendar-light-mode .calendar-filter-tag {
    background: linear-gradient(135deg, rgba(238,223,204,0.8), rgba(230,215,195,0.7));
    border: 2px solid rgba(154,124,84,0.5);
    color: #5a4a35;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(154,124,84,0.2), inset 0 1px 1px rgba(255,255,255,0.7);
}

.calendar-modal-box.light-skin .calendar-filter-tag:active,
body.calendar-light-mode .calendar-filter-tag:active {
    background: linear-gradient(135deg, rgba(212,186,155,0.9), rgba(201,169,110,0.8));
    border-color: rgba(154,124,84,0.7);
    box-shadow: 0 1px 3px rgba(154,124,84,0.3), inset 0 2px 3px rgba(0,0,0,0.1);
}

.calendar-modal-box.light-skin .calendar-filter-tag.active,
body.calendar-light-mode .calendar-filter-tag.active {
    background: linear-gradient(135deg, #c9a96e, #9a7c54);
    border: 2.5px solid #9a7c54;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(154,124,84,0.5), inset 0 1px 2px rgba(255,255,255,0.3);
}

/* 筛选设置按钮 - 手机端 */
.calendar-filter-settings-btn {
    padding: 5px 11px;
    background: rgba(238,187,85,0.1);
    border: 1px solid rgba(238,187,85,0.4);
    border-radius: 14px;
    color: var(--gold);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}

.calendar-filter-settings-btn:active {
    background: rgba(238,187,85,0.25);
    transform: scale(0.95);
}

.settings-icon {
    font-size: 12px;
}

.settings-text {
    font-weight: 600;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.calendar-nav-btn {
    padding: 7px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: var(--gold);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.calendar-nav-btn:active {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(0.95);
}

.calendar-current-month {
    font-size: 17px;
    font-weight: 600;
    color: var(--gold);
    min-width: 115px;
    text-align: center;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s;
}

.calendar-current-month:active {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(0.95);
}

.calendar-today-btn {
    padding: 7px 14px;
    background: linear-gradient(135deg, var(--gold), #d4a574);
    border: none;
    border-radius: 6px;
    color: #000;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.calendar-today-btn:active {
    transform: scale(0.95);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(6, minmax(0, 60px));
    gap: 3px;
    margin: 10px 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.calendar-weekday {
    text-align: center;
    padding: 7px 2px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 11px;
}

.calendar-weekday.weekend {
    color: var(--gold);
}

.calendar-day {
    padding: 4px 2px;
    background: color-mix(in srgb, var(--card-bg, #000000) 60%, black 40%);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 1px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

.calendar-day:active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    transform: scale(1.1);
    z-index: 10;
}
}

.calendar-day.today {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8a2be2;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
}

.calendar-day.selected {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.calendar-day.other-month {
    opacity: 0.25;
}

.calendar-day.filter-match {
    background: rgba(255, 215, 0, 0.2);
    border-color: gold;
}

.calendar-day.has-festival .calendar-day-solar {
    color: #ff6b6b;
}

.calendar-day-solar {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.calendar-day.weekend-day .calendar-day-solar {
    color: #ff6b6b;
}

.calendar-day.selected .calendar-day-solar {
    color: var(--gold);
}

.calendar-day-lunar {
    font-size: 10px;
    color: #999;
    line-height: 1;
}

.calendar-day.selected .calendar-day-lunar {
    color: var(--gold);
}

.calendar-day-ganzhi {
    font-size: 9px;
    color: #777;
    line-height: 1;
}

.calendar-day.selected .calendar-day-ganzhi {
    color: var(--gold);
}

.calendar-day-festival {
    font-size: 7px;
    color: #ff6b6b;
    font-weight: 600;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-weekend-mark {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff6b6b;
    color: #fff;
    font-size: 7px;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 600;
}

.calendar-today-mark {
    position: absolute;
    top: 2px;
    left: 2px;
    background: #2196f3;
    color: #fff;
    font-size: 7px;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 600;
}

/* 新版日期详情 */
.calendar-detail-new {
    margin: 10px 0;
    padding: 12px;
    /* background: rgba(0,0,0,0.3); */ /* 移除默认背景，使用主题背景 */
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.calendar-detail-new-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-lunar-title {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 8px;
}

.calendar-date-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.calendar-date-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.calendar-date-row .label {
    font-size: 11px;
    color: #999;
    min-width: 24px;
    text-align: center;
}

.calendar-date-row.ganzhi-row {
    gap: 10px;
}

.gz {
    font-size: 14px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.gz-wood { color: #51cf66; }
.gz-fire { color: #ff6b6b; }
.gz-earth { color: #ffd43b; }
.gz-metal { color: #74c0fc; }
.gz-water { color: #339af0; }

/* 响应式三栏布局 - 手机端垂直堆叠 */
.three-column-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-col-left, .detail-col-middle, .detail-col-right {
    width: 100%;
}

/* 左栏：农历标题（手机端改横排） */
.calendar-lunar-title-vertical {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
    writing-mode: horizontal-tb; /* 恢复横排 */
    text-orientation: mixed;
    letter-spacing: 2px;
    padding: 10px;
    border: none;
    border-radius: 0;
    background: none;
    text-shadow: 0 0 12px rgba(255,107,107,0.5);
    text-align: center;
}

/* 中栏：八字容器 */
.bazi-wuxing-unified {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.bazi-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bazi-header {
    display: flex;
    justify-content: space-around;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 6px 4px;
    margin-bottom: 12px;
}

.bazi-header-item {
    flex: 1;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 700;
    text-align: center;
}

.bazi-body {
    display: flex;
    justify-content: space-around;
    flex: 1;
}

.bazi-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gz-char {
    font-size: 24px;
    font-weight: 700;
}

.gz-wood { color: #00CC66; }
.gz-fire { color: #FF3333; }
.gz-earth { color: #CC8800; }
.gz-metal { color: #FFD700; }
.gz-water { color: #1E90FF; }

.wuxing-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wuxing-header {
    display: flex;
    justify-content: space-around;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 6px 4px;
    margin-bottom: 12px;
}

.wuxing-header-item {
    flex: 1;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 700;
    text-align: center;
}

.wuxing-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    flex: 1;
    padding: 0 6px;
}

.wuxing-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    height: 100%;
}

.wuxing-percent {
    font-size: 10px;
    font-weight: 600;
}

.wuxing-bar-container {
    width: 20px;
    flex: 1;
    background: rgba(0,0,0,0.25);
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
}

.wuxing-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: all 0.5s ease;
    min-height: 5%;
}

.wuxing-label {
    font-size: 12px;
    font-weight: 700;
}

.calendar-basic-info {
    text-align: center;
    font-size: 11px;
    color: #fff;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-yi-ji-new {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yi-ji-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255,255,255,0.02);
    border: 1.5px solid rgba(212,175,55,0.25);
    border-radius: 8px;
    padding: 8px;
}

.yi-ji-row:active {
    background: rgba(212,175,55,0.15) !important;
    border: 2px solid rgba(212,175,55,0.5) !important;
    box-shadow: 0 2px 10px rgba(212,175,55,0.3);
    transform: scale(0.98);
}

.yi-ji-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.yi-icon {
    background: rgba(81, 207, 102, 0.2);
    color: #51cf66;
    border: 2px solid #51cf66;
}

.ji-icon {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

.yi-ji-content {
    flex: 1;
    font-size: 12px;
    line-height: 1.7;
    padding: 5px 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
    align-items: center;
}

.yiji-tag {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    white-space: nowrap;
}

.yiji-more {
    color: rgba(255,255,255,0.5) !important;
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.yi-content {
    color: #51cf66;
}

.yi-content .yiji-tag {
    color: #51cf66;
    background: rgba(81,207,102,0.15);
    border-color: rgba(81,207,102,0.3);
}

.ji-content {
    color: #ff6b6b;
}

.ji-content .yiji-tag {
    color: #ff6b6b;
    background: rgba(255,107,107,0.15);
    border-color: rgba(255,107,107,0.3);
}

/* 白色模式下宜忌行的特效 - 增强对比度和护眼效果 */
.calendar-modal-box.light-skin .yi-ji-row,
body.calendar-light-mode .yi-ji-row {
    background: rgba(245,235,220,0.6);
    border: 2px solid rgba(154,124,84,0.5);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(154,124,84,0.2), inset 0 1px 1px rgba(255,255,255,0.8);
}

.calendar-modal-box.light-skin .yi-ji-row:active,
body.calendar-light-mode .yi-ji-row:active {
    background: rgba(201,169,110,0.4) !important;
    border: 2px solid rgba(154,124,84,0.7) !important;
    box-shadow: 0 2px 10px rgba(154,124,84,0.4), inset 0 1px 2px rgba(0,0,0,0.1);
    transform: scale(0.98);
}

/* 时辰列表 */
.shichen-list {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

.shichen-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
}

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

.shichen-item {
    padding: 6px 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.08);
}

/* 节气物候区域 */
.calendar-solar-terms {
    margin: 10px 0;
    padding: 12px;
    /* background: rgba(138, 43, 226, 0.1); */ /* 移除默认背景，使用主题背景 */
    border-radius: 10px;
    /* border: 1px solid rgba(138, 43, 226, 0.3); */ /* 移除默认边框，使用主题边框 */
}

.solar-terms-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 10px;
    text-align: center;
}

.solar-terms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.solar-term-item {
    /* 样式已移至 solar-terms.css，此处保留空规则以防覆盖 */
}

.solar-term-item.current {
    /* 样式已移至 solar-terms.css，此处保留空规则以防覆盖 */
}

.solar-term-name {
    font-size: 11px;
    color: var(--text-color);
}

.solar-term-item.current .solar-term-name {
    color: #8a2be2;
}

/* 节假日列表 */
.calendar-holidays {
    margin: 10px 0;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.holidays-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.holidays-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.holiday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.holiday-item:active {
    background: rgba(255,255,255,0.1);
    transform: scale(0.98);
}

.holiday-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.holiday-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.holiday-date {
    font-size: 10px;
    color: #999;
}

.holiday-right {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-end;
}

.holiday-days {
    font-size: 11px;
    color: #8a2be2;
    font-weight: 600;
}

.holiday-countdown {
    font-size: 10px;
    color: var(--gold);
}

/* 年月选择器 - 手机端优化 */
@media (max-width: 768px) {
    .year-month-selector {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10000;
        background: rgba(0,0,0,0.85);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .year-month-selector.show {
        opacity: 1;
    }

    .year-month-selector-content {
        background: linear-gradient(145deg, rgba(26,26,26,0.98), rgba(10,10,10,0.98));
        backdrop-filter: blur(20px);
        border: 2px solid rgba(238,187,85,0.5);
        border-radius: 15px;
        padding: 20px 15px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.9);
        max-height: 85vh;
        overflow-y: auto;
        width: 100%;
        max-width: 380px;
    }

    /* 白色模式下年月选择器样式 */
    body.calendar-light-mode .year-month-selector {
        background: rgba(255,255,255,0.85);
    }
    
    body.calendar-light-mode .year-month-selector-content {
        background: linear-gradient(145deg, rgba(245,232,216,0.98), rgba(255,255,255,0.98));
        border: 2px solid rgba(154,124,84,0.6);
        box-shadow: 0 20px 60px rgba(61,40,23,0.3);
    }

    body.calendar-light-mode .selector-section label {
        color: #9a7c54;
        text-shadow: 0 0 10px rgba(154,124,84,0.3);
    }

    body.calendar-light-mode .selector-nav-btn {
        background: rgba(201,169,110,0.2);
        border: 1.5px solid #9a7c54;
        color: #9a7c54;
    }

    body.calendar-light-mode .selector-nav-btn:active {
        background: #9a7c54;
        color: #ffffff;
    }

    body.calendar-light-mode .btn-selector-confirm {
        background: linear-gradient(135deg, #c9a96e, #9a7c54);
        box-shadow: 0 4px 15px rgba(154,124,84,0.4);
    }

    body.calendar-light-mode .btn-selector-cancel {
        background: rgba(201,169,110,0.15);
        border: 1.5px solid rgba(122,95,62,0.4);
        color: #3d2817;
    }

    body.calendar-light-mode .btn-selector-cancel:active {
        background: rgba(201,169,110,0.25);
    }

    .selector-section {
        margin-bottom: 20px;
    }

    .selector-section:last-of-type {
        margin-bottom: 15px;
    }

    .selector-section label {
        display: block;
        color: var(--gold);
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 12px;
        text-align: center;
        letter-spacing: 2px;
        text-shadow: 0 0 10px rgba(238,187,85,0.3);
    }

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

    .selector-nav-btn {
        padding: 10px 8px;
        background: rgba(238,187,85,0.1);
        border: 1.5px solid var(--gold);
        border-radius: 8px;
        color: var(--gold);
        cursor: pointer;
        font-size: 12px;
        font-weight: 700;
        transition: all 0.3s;
        flex-shrink: 0;
        min-width: 40px;
    }

    .selector-nav-btn:active {
        background: var(--gold);
        color: #000;
        transform: scale(0.92);
    }

    .year-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
        flex: 1;
    }

    .year-item {
        padding: 10px 4px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        color: var(--text-color);
        font-size: 12px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
        font-weight: 600;
    }

    .year-item:active {
        background: rgba(212, 175, 55, 0.25);
        transform: scale(0.92);
    }

    .year-item.selected {
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.25));
        border-color: var(--gold);
        border-width: 2px;
        color: var(--gold);
        font-weight: 700;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
        transform: scale(1.05);
    }

    /* 白色模式下年份选项样式 */
    body.calendar-light-mode .year-item {
        background: rgba(201,169,110,0.15);
        border: 1px solid rgba(122,95,62,0.3);
        color: #3d2817;
    }

    body.calendar-light-mode .year-item:active {
        background: rgba(154,124,84,0.3);
    }

    body.calendar-light-mode .year-item.selected {
        background: linear-gradient(135deg, rgba(201,169,110,0.5), rgba(154,124,84,0.4));
        border-color: #9a7c54;
        color: #3d2817;
        box-shadow: 0 0 15px rgba(154,124,84,0.5);
    }

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

    .month-item {
        padding: 14px 8px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        color: var(--text-color);
        font-size: 14px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
        font-weight: 600;
    }

    .month-item:active {
        background: rgba(212, 175, 55, 0.25);
        transform: scale(0.92);
    }

    .month-item.selected {
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.25));
        border-color: var(--gold);
        border-width: 2px;
        color: var(--gold);
        font-weight: 700;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
        transform: scale(1.05);
    }

    /* 白色模式下月份选项样式 */
    body.calendar-light-mode .month-item {
        background: rgba(201,169,110,0.15);
        border: 1px solid rgba(122,95,62,0.3);
        color: #3d2817;
    }

    body.calendar-light-mode .month-item:active {
        background: rgba(154,124,84,0.3);
    }

    body.calendar-light-mode .month-item.selected {
        background: linear-gradient(135deg, rgba(201,169,110,0.5), rgba(154,124,84,0.4));
        border-color: #9a7c54;
        color: #3d2817;
        box-shadow: 0 0 15px rgba(154,124,84,0.5);
    }

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

    .btn-selector-confirm,
    .btn-selector-cancel {
        padding: 12px 0;
        border: none;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s;
        flex: 1;
    }

    .btn-selector-confirm {
        background: linear-gradient(135deg, var(--gold), #d4a574);
        color: #000;
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    }

    .btn-selector-confirm:active {
        transform: scale(0.95);
        box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    }

    .btn-selector-cancel {
        background: rgba(255,255,255,0.12);
        border: 1.5px solid rgba(255,255,255,0.3);
        color: var(--text-color);
    }

    .btn-selector-cancel:active {
        background: rgba(255,255,255,0.18);
        transform: scale(0.95);
    }

    /* 筛选设置模态框 - 手机端 */
    #filter-settings-modal {
        z-index: 20000 !important;
    }

    /* 震动动画 */
    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
        20%, 40%, 60%, 80% { transform: translateX(5px); }
    }

    .shake {
        animation: shake 0.5s;
    }

    .filter-settings-box {
        background: var(--card-bg, linear-gradient(145deg, rgba(26,26,26,0.98), rgba(10,10,10,0.98)));
        margin: 5vh auto;
        padding: 20px;
        border: 2px solid var(--border-color, rgba(238,187,85,0.5));
        border-radius: 15px;
        width: 92%;
        max-height: 85vh;
        overflow-y: auto;
        color: var(--text-color, #eee);
        text-align: center;
        transform: scale(0.95);
        transition: transform 0.3s ease;
        box-shadow: 0 20px 60px rgba(0,0,0,0.9);
        position: relative;
    }

    /* 白色模式下筛选设置框样式 */
    body.calendar-light-mode .filter-settings-box {
        background: linear-gradient(145deg, rgba(245,232,216,0.98), rgba(255,255,255,0.98));
        border: 2px solid rgba(154,124,84,0.6);
        box-shadow: 0 20px 60px rgba(61,40,23,0.3);
        color: #3d2817;
    }

    body.calendar-light-mode .filter-settings-box .modal-title {
        color: #9a7c54;
    }

    body.calendar-light-mode .filter-selection-info {
        background: rgba(138,43,226,0.1);
        border: 1px solid rgba(138,43,226,0.3);
    }

    body.calendar-light-mode .selection-limit {
        color: rgba(0,0,0,0.6);
    }

    .modal-overlay.show .filter-settings-box {
        transform: scale(1);
    }

    .filter-settings-box .modal-title {
        font-size: 18px !important;
        margin-bottom: 20px !important;
    }

    /* 宜/忌模式切换 - 手机端 */
    .filter-mode-switch {
        display: flex;
        gap: 0;
        justify-content: center;
        margin: 20px 0;
        background: rgba(255,255,255,0.08);
        border-radius: 10px;
        padding: 3px;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    /* 白色模式下模式切换容器 */
    body.calendar-light-mode .filter-mode-switch {
        background: rgba(201,169,110,0.2);
    }

    .mode-btn {
        padding: 10px 35px;
        background: transparent;
        border: none;
        color: rgba(255,255,255,0.6);
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s;
        border-radius: 8px;
    }

    .mode-btn.active {
        background: linear-gradient(135deg, var(--gold), #d4a574);
        color: #000;
        box-shadow: 0 3px 12px rgba(238,187,85,0.5);
    }

    .mode-btn:active:not(.active) {
        background: rgba(255,255,255,0.12);
        transform: scale(0.95);
    }

    /* 白色模式下模式按钮样式 */
    body.calendar-light-mode .mode-btn {
        color: rgba(0,0,0,0.5);
    }

    body.calendar-light-mode .mode-btn.active {
        background: linear-gradient(135deg, #c9a96e, #9a7c54);
        color: #ffffff;
        box-shadow: 0 3px 12px rgba(154,124,84,0.5);
    }

    body.calendar-light-mode .mode-btn:active:not(.active) {
        background: rgba(0,0,0,0.08);
    }

    /* 标签网格 - 手机端 */
    .filter-tags-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin: 20px 0;
        max-height: 50vh;
        overflow-y: auto;
        padding: 10px;
        background: rgba(0,0,0,0.4);
        border-radius: 12px;
    }

    /* 白色模式下标签网格背景 */
    body.calendar-light-mode .filter-tags-grid {
        background: rgba(201,169,110,0.15);
    }

    .filter-tags-grid::-webkit-scrollbar {
        width: 4px;
    }

    .filter-tags-grid::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.05);
        border-radius: 2px;
    }

    .filter-tags-grid::-webkit-scrollbar-thumb {
        background: rgba(238,187,85,0.4);
        border-radius: 2px;
    }

    /* 白色模式下滚动条样式 */
    body.calendar-light-mode .filter-tags-grid::-webkit-scrollbar-track {
        background: rgba(122,95,62,0.1);
    }

    body.calendar-light-mode .filter-tags-grid::-webkit-scrollbar-thumb {
        background: rgba(154,124,84,0.5);
    }

    .filter-tag-item {
        padding: 12px 8px;
        background: rgba(255,255,255,0.08);
        border: 1.5px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        color: var(--text-color);
        font-size: 12px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
        user-select: none;
        font-weight: 600;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        word-break: keep-all;
        white-space: nowrap;
    }

    .filter-tag-item:active {
        background: rgba(238,187,85,0.2);
        transform: scale(0.92);
    }

    .filter-tag-item.selected {
        background: linear-gradient(135deg, rgba(138,43,226,0.4), rgba(138,43,226,0.25));
        border-color: #8a2be2;
        border-width: 2px;
        color: #8a2be2;
        font-weight: 700;
        box-shadow: 0 0 15px rgba(138,43,226,0.6);
        transform: scale(1.05);
    }

    /* 白色模式下筛选标签样式 */
    body.calendar-light-mode .filter-tag-item {
        background: rgba(201,169,110,0.15);
        border: 1.5px solid rgba(122,95,62,0.3);
        color: #3d2817;
    }

    body.calendar-light-mode .filter-tag-item:active {
        background: rgba(154,124,84,0.3);
    }

    body.calendar-light-mode .filter-tag-item.selected {
        background: linear-gradient(135deg, rgba(138,43,226,0.3), rgba(138,43,226,0.2));
        border-color: #8a2be2;
        color: #8a2be2;
        box-shadow: 0 0 15px rgba(138,43,226,0.4);
    }

    /* 选择数量提示 - 手机端 */
    .filter-selection-info {
        text-align: center;
        margin: 12px 0;
        padding: 10px;
        background: rgba(138,43,226,0.15);
        border-radius: 8px;
        border: 1px solid rgba(138,43,226,0.4);
    }

    .selection-count {
        color: #8a2be2;
        font-weight: 700;
        font-size: 15px;
    }

    .selection-limit {
        color: rgba(255,255,255,0.7);
        font-size: 12px;
        margin-top: 4px;
    }

    .selection-warning {
        color: #ff6b6b;
        font-size: 12px;
        margin-top: 4px;
    }

    /* 筛选操作按钮 - 手机端 */
    .filter-actions {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 20px;
    }

    .filter-actions .btn {
        padding: 14px 0;
        font-size: 16px;
        font-weight: 700;
        border-radius: 12px;
        flex: 1;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        letter-spacing: 1px;
    }

    .filter-actions .btn-gold {
        background: linear-gradient(135deg, #f4d03f 0%, #c9a96e 50%, #d4a03a 100%);
        color: #000;
        box-shadow: 0 4px 15px rgba(238,187,85,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
        border: 1px solid rgba(212,160,58,0.8);
    }

    .filter-actions .btn-gold:active {
        transform: scale(0.97);
        box-shadow: 0 2px 8px rgba(238,187,85,0.4), inset 0 2px 4px rgba(0,0,0,0.2);
    }

    .filter-actions .btn-reset {
        background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
        border: 2px solid rgba(255,255,255,0.3);
        color: var(--text-color);
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .filter-actions .btn-reset:active {
        background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12));
        transform: scale(0.97);
        box-shadow: 0 1px 4px rgba(0,0,0,0.3), inset 0 2px 4px rgba(0,0,0,0.2);
    }

    /* 白色模式下筛选操作按钮样式 */
    body.calendar-light-mode .filter-actions .btn-gold {
        background: linear-gradient(135deg, #c9a96e, #9a7c54);
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(154,124,84,0.4);
    }

    body.calendar-light-mode .filter-actions .btn-gold:active {
        box-shadow: 0 2px 8px rgba(154,124,84,0.3);
    }

    body.calendar-light-mode .filter-actions .btn-reset {
        background: rgba(201,169,110,0.15);
        border: 2px solid rgba(122,95,62,0.4);
        color: #3d2817;
    }

    body.calendar-light-mode .filter-actions .btn-reset:active {
        background: rgba(201,169,110,0.25);
    }
}


/* 宜忌详情弹窗 */
.yiji-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yiji-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
}

.yiji-detail-content {
    position: relative;
    background: #1a1a1a;
    border-radius: 12px 12px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 98vh;
    overflow-y: auto;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.5);
    padding: 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.yiji-detail-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yiji-date-info {
    font-size: 14px;
    font-weight: 600;
    color: #ffd700;
    text-align: center;
    padding: 8px 0 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yiji-detail-top {
    margin-bottom: 15px;
}

.yiji-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s;
}

.yiji-row:active {
    background: rgba(255,255,255,0.08);
    transform: scale(0.98);
}

/* 白色模式下宜忌详情弹窗的行效果 - 增强可见性 */
.calendar-modal-box.light-skin .yiji-row,
body.calendar-light-mode .yiji-row {
    background: rgba(250,245,235,0.9);
    border: 2px solid rgba(154,124,84,0.6);
    box-shadow: 0 1px 3px rgba(154,124,84,0.25), inset 0 1px 1px rgba(255,255,255,0.9);
}

.calendar-modal-box.light-skin .yiji-row:active,
body.calendar-light-mode .yiji-row:active {
    background: rgba(201,169,110,0.5) !important;
    border: 2.5px solid rgba(154,124,84,0.8) !important;
    box-shadow: 0 4px 15px rgba(154,124,84,0.45), inset 0 2px 3px rgba(0,0,0,0.1);
    transform: scale(0.98);
}

.yiji-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 10px;
}

.yi-icon {
    background: #51cf66;
    color: #fff;
}

.ji-icon {
    background: #ff6b6b;
    color: #fff;
}

.yiji-text {
    flex: 1;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    line-height: 1.6;
}

.yiji-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

/* 手机端5列信息框 - 重新设计为垂直堆叠布局 */
.yiji-detail-grid-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

/* 前4个信息框使用2列网格布局 */
.yiji-detail-grid-row .yiji-grid-item:not(.yiji-grid-item-compact) {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}

/* 前4个框容器 */
.yiji-detail-grid-row::before {
    content: '';
    display: none;
}

/* 使用CSS Grid将前4个框分成2x2布局 */
.yiji-detail-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
}

/* 让第5个紧凑框占满整行 */
.yiji-detail-grid-row .yiji-grid-item-compact {
    grid-column: 1 / -1;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 紧凑框内的行 */
.yiji-detail-grid-row .yiji-compact-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.yiji-detail-grid-row .yiji-compact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.yiji-detail-grid-row .yiji-compact-label {
    color: var(--gold, #d4af37);
    font-weight: 700;
    min-width: 75px;
    font-size: 11px;
    flex-shrink: 0;
}

.yiji-detail-grid-row .yiji-compact-value {
    flex: 1;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 11px;
    word-wrap: break-word;
    word-break: break-all;
    line-height: 1.6;
}

.yiji-grid-item {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.yiji-grid-label {
    font-size: 12px;
    color: var(--gold, #d4af37);
    margin-bottom: 6px;
    font-weight: 700;
}

.yiji-grid-value {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-all;
}

/* 白色模式下5列信息框增强对比度 */
.calendar-modal-box.light-skin .yiji-detail-grid-row .yiji-grid-item,
body.calendar-light-mode .yiji-detail-grid-row .yiji-grid-item {
    background: rgba(245,235,220,0.7);
    border: 2px solid rgba(154,124,84,0.5);
    box-shadow: 0 1px 3px rgba(154,124,84,0.2), inset 0 1px 1px rgba(255,255,255,0.9);
}

.calendar-modal-box.light-skin .yiji-detail-grid-row .yiji-grid-item-compact,
body.calendar-light-mode .yiji-detail-grid-row .yiji-grid-item-compact {
    background: rgba(250,245,235,0.8);
    border: 2px solid rgba(154,124,84,0.5);
    box-shadow: 0 1px 3px rgba(154,124,84,0.25), inset 0 1px 1px rgba(255,255,255,0.95);
}

.calendar-modal-box.light-skin .yiji-grid-label,
body.calendar-light-mode .yiji-grid-label {
    color: #9a7c54;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(154,124,84,0.3);
}

.calendar-modal-box.light-skin .yiji-grid-value,
body.calendar-light-mode .yiji-grid-value {
    color: #3d2817;
    font-weight: 600;
}

.calendar-modal-box.light-skin .yiji-compact-label,
body.calendar-light-mode .yiji-compact-label {
    color: #9a7c54;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(154,124,84,0.3);
}

.calendar-modal-box.light-skin .yiji-compact-value,
body.calendar-light-mode .yiji-compact-value {
    color: #3d2817;
    font-weight: 600;
}

.yiji-detail-info {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
}

.yiji-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.yiji-info-label {
    color: rgba(255,255,255,0.6);
}

.yiji-info-value {
    color: rgba(255,255,255,0.9);
}

.yiji-detail-section {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
}

.yiji-section-row {
    display: flex;
    margin-bottom: 6px;
    font-size: 12px;
}

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

.yiji-section-label {
    color: #d4af37;
    min-width: 70px;
    font-weight: 500;
}

.yiji-section-value {
    flex: 1;
    color: rgba(255,255,255,0.85);
}

.yiji-detail-pengzu {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    text-align: center;
}

.yiji-pengzu-label {
    color: #d4af37;
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: 500;
}

.yiji-pengzu-value {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
}

.yiji-detail-shichen {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
}

.yiji-shichen-title {
    color: #d4af37;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
}

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

.shichen-item {
    text-align: center;
    padding: 6px 2px;
    background: rgba(255,255,255,0.03);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.shichen-item:active {
    background: rgba(255,255,255,0.08);
}

.shichen-name {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 3px;
}

.shichen-ji {
    font-size: 12px;
    font-weight: 500;
}

.ji-good {
    color: #51cf66;
}

.ji-bad {
    color: #ff6b6b;
}

.shichen-detail-area {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.shichen-detail-header {
    font-size: 14px;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 8px;
}

.shichen-detail-ji {
    font-size: 13px;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
}

.shichen-detail-info {
    margin-top: 8px;
}

.shichen-current-info {
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.shichen-current-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.shichen-current-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffd700;
}

.shichen-current-time {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.shichen-current-ji {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.shichen-current-chong {
    font-size: 14px;
    color: #ff6b6b;
    margin-bottom: 6px;
}

.shichen-current-shen {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}


.shichen-selector-item:active {
    transform: scale(0.95);
}

.shichen-selector {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.shichen-selector-item {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s;
}

.shichen-selector-item.current {
    border-color: #ffd700 !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6) !important;
    border-width: 2px !important;
}

.shichen-selector-item.active {
    background: #ffd700 !important;
    color: #000 !important;
    border-color: #ffd700 !important;
    font-weight: bold !important;
}

/* 手机端特定增强 - 确保active状态在手机端也显眼 */
.shichen-selector-mobile .shichen-selector-item.active {
    background: #ffd700 !important;
    color: #000 !important;
    border-color: #ffd700 !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8) !important;
    transform: scale(1.05) !important;
}

/* 宜忌详情弹窗内的手机端时辰选择器 - 最高优先级 */
.yiji-detail-modal .shichen-selector-mobile .shichen-selector-item.active {
    background: #ffd700 !important;
    color: #000 !important;
    border-color: #ffd700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.9) !important;
    transform: scale(1.08) !important;
    font-weight: 700 !important;
}

.shichen-selector-item:active {
    transform: scale(0.95);
}

.shichen-current-yiji {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.shichen-yiji-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
    font-size: 12px;
}

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

.shichen-yiji-row .yiji-icon {
    width: 22px;
    height: 22px;
    font-size: 11px;
    margin-right: 6px;
}

.shichen-yiji-row .yiji-text {
    flex: 1;
    line-height: 1.5;
}

.shichen-compact-layout {
    display: none;
}

.shichen-mobile-layout {
    display: block;
    margin-bottom: 15px;
}

.shichen-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.05));
    border-radius: 8px;
    margin-bottom: 10px;
}

.shichen-mobile-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffd700;
}

.shichen-mobile-time {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.shichen-mobile-ji {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.shichen-mobile-ji.ji-good {
    background: #51cf66;
    color: #fff;
}

.shichen-mobile-ji.ji-bad {
    background: #ff6b6b;
    color: #fff;
}

.shichen-mobile-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.shichen-mobile-item {
    flex: 1;
    background: rgba(255,255,255,0.05);
    padding: 8px 10px;
    border-radius: 6px;
    border-left: 3px solid #ffd700;
}

.shichen-mobile-label {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 3px;
}

.shichen-mobile-value {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
}

.shichen-mobile-yiji {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.shichen-mobile-yi,
.shichen-mobile-ji-content {
    flex: 1;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}

.shichen-mobile-yi {
    border-top: 2px solid #51cf66;
}

.shichen-mobile-ji-content {
    border-top: 2px solid #ff6b6b;
}

.shichen-mobile-yi-label,
.shichen-mobile-ji-label {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 5px;
}

.shichen-mobile-yi-label {
    background: #51cf66;
    color: #fff;
}

.shichen-mobile-ji-label {
    background: #ff6b6b;
    color: #fff;
}

.shichen-mobile-yi-text,
.shichen-mobile-ji-text {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
}

/* 手机端时辰宜忌文本内容样式 */
.yi-text-content,
.ji-text-content {
    flex: 1;
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    line-height: 1.5;
    margin-left: 6px;
}

.shichen-compact-yi,
.shichen-compact-ji-content {
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
}

.shichen-compact-yi {
    border-top: 2px solid #51cf66;
}

.shichen-compact-ji-content {
    border-top: 2px solid #ff6b6b;
}

.yi-label,
.ji-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.yi-label {
    background: #51cf66;
    color: #fff;
}

.ji-label {
    background: #ff6b6b;
    color: #fff;
}

.shichen-selector-mobile {
    display: grid !important;
}

.shichen-current-info {
    display: block;
}

/* 移动端隐藏电脑端容器 */
.shichen-desktop-container {
    display: none;
}

.shichen-selector-desktop {
    display: none !important;
}
