/* 万年历样式 - 电脑端专用 - 2025-12-24 完全重建版 */

.calendar-modal-box {
    max-width: 1100px;
    width: 90vw;
    height: 85vh;
    max-height: 800px;
    overflow: hidden;
    position: relative;
    padding: 25px;
    background: var(--bg-gradient, linear-gradient(145deg, #0a0a0a, #000000));
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color, rgba(255,255,255,0.1));
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    border-radius: 20px;
    box-sizing: border-box;
}

/* 双栏布局 */
.calendar-main-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    height: calc(100% - 60px);
    padding-top: 10px;
}

.calendar-left-panel {
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding-bottom: 10px;
}

.calendar-right-panel {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    min-height: 0;
}

.calendar-right-panel::-webkit-scrollbar {
    width: 6px;
}

.calendar-right-panel::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.calendar-right-panel::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 3px;
}

.calendar-right-panel::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.calendar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    min-height: 60px;
    background: var(--bg-gradient, linear-gradient(145deg, #0a0a0a, #000000));
    z-index: 100;
    backdrop-filter: blur(10px);
    margin-left: -25px;
    margin-right: -25px;
    margin-top: -25px;
    padding: 15px 60px 15px 25px;
}

/* 皮肤选择器 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
    pointer-events: none;
    user-select: none;
}

.calendar-modal-box .skin-btn-fake {
    width: auto;
    min-width: 80px;
    height: 38px;
    padding: 0 12px;
    background: rgba(255,255,255,0.08);
    border: 2px solid var(--gold);
    border-radius: 8px;
    color: var(--gold);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 0.3s;
    position: absolute;
    top: 15px;
    right: 63px;
    margin: 0;
    z-index: 101;
}

.skin-btn-fake:hover {
    background: rgba(212, 175, 55, 0.2);
}

.skin-list {
    display: none;
    position: absolute;
    top: 58px;
    right: 63px;
    background: rgba(20,20,20,0.95);
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 1002;
    backdrop-filter: blur(10px);
    scroll-margin: 0;
    scroll-snap-align: none;
}

.skin-list li {
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s;
}

.skin-list li:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

.calendar-close-btn {
    position: absolute;
    top: 15px;
    right: 10px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 101;
}

.calendar-close-btn:hover {
    background: var(--gold);
    color: #000;
    transform: rotate(90deg) scale(1.1);
}

.modal-title {
    font-size: 20px !important;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    white-space: nowrap;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(6, 1fr);
    gap: 4px;
    flex: 1;
    min-height: 0;
    overflow: visible;
}

.calendar-weekday {
    text-align: center;
    padding: 8px 3px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    letter-spacing: 1px;
}

.calendar-day {
    padding: 6px 4px;
    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: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 2px;
    min-height: 0;
    height: 100%;
}

.calendar-day:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    z-index: 10;
}

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

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

.calendar-day-lunar {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    line-height: 1;
}

.calendar-day-ganzhi {
    font-size: 9px;
    color: rgba(255,255,255,0.4);
    line-height: 1;
    margin-top: 2px;
}

.calendar-day-festival {
    font-size: 10px;
    color: #ff6b6b;
    font-weight: 600;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
    margin-top: 2px;
}

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

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

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

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

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

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

/* 筛选容器 */
.calendar-filter-container {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 15px;
    margin-top: 0;
    min-height: 72px;
    position: relative;
    z-index: 1;
}

.calendar-filter-mode-switch {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 60px;
}

.filter-mode-btn {
    padding: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 33px;
}

.filter-mode-btn:hover {
    background: rgba(255,255,255,0.1);
}

.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: 6px;
    position: relative;
    z-index: 1;
}

.calendar-filter-tag {
    padding: 0 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    color: var(--text-color);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    user-select: none;
}

.calendar-filter-tag:hover {
    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-filter-settings-btn {
    padding: 8px 14px;
    background: rgba(238,187,85,0.1);
    border: 1px solid rgba(238,187,85,0.4);
    border-radius: 16px;
    color: var(--gold);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.calendar-filter-settings-btn:hover {
    background: rgba(238,187,85,0.25);
}

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

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

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

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

.calendar-nav-btn:hover {
    background: rgba(212, 175, 55, 0.2);
}

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

.calendar-current-month:hover {
    background: rgba(212, 175, 55, 0.2);
}

.calendar-today-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--gold), #d4a574);
    border: none;
    border-radius: 8px;
    color: #000;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    flex-shrink: 0;
    z-index: 10;
}

.calendar-today-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.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-detail-new {
    margin-bottom: 15px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}

.calendar-lunar-title-vertical {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,107,107,0.3);
    text-shadow: 0 2px 10px rgba(255,107,107,0.4);
    letter-spacing: 2px;
}

/* 三列布局 - 电脑端优化为更紧凑的设计 */
.three-column-layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 15px;
    margin-bottom: 15px;
    align-items: stretch;
}

/* 日期信息保持单行显示 */
.three-column-layout > div {
    white-space: nowrap;
    overflow: visible;
    font-size: 10.5px;
    line-height: 1.3;
}

.bazi-wuxing-unified {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 15px;
    display: flex;
    gap: 15px;
    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: 8px;
    margin-bottom: 15px;
}

.bazi-header-item {
    flex: 1;
    font-size: 13px;
    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: 10px;
}

.gz-char {
    font-size: 26px;
    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: 8px;
    margin-bottom: 15px;
}

.wuxing-header-item {
    flex: 1;
    font-size: 13px;
    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 8px;
}

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

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

.wuxing-bar-container {
    width: 28px;
    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%;
}

/* 基本信息 - 电脑端优化为网格布局 */
.calendar-basic-info {
    display: block;
    font-size: 12px;
    color: #fff;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-basic-info > div {
    padding: 8px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    line-height: 1.6;
}

.calendar-basic-info strong {
    color: var(--gold);
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

/* 宜忌布局 - 恢复原始样式 */
.calendar-yi-ji-new {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
}

.yi-ji-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    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;
}

.yi-ji-row:hover {
    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: translateY(-2px);
}

.yi-ji-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 700;
    flex-shrink: 0;
}

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

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

.yi-ji-content {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
    padding-left: 5px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow: hidden;
    align-items: center;
}

.yiji-tag {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
}

.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);
}

/* 时辰列表 - 隐藏电脑端的重复显示 */
.shichen-list {
    display: none !important;
}

/* 如果需要显示时辰列表（通过JS控制），使用这个类 */
.shichen-list.show {
    display: block !important;
    margin-top: 15px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.shichen-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 2px;
}

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

.shichen-item {
    padding: 12px 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.shichen-item:hover {
    background: rgba(212,175,55,0.2);
    border-color: rgba(212,175,55,0.6);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.shichen-item.active {
    background: linear-gradient(135deg, rgba(212,175,55,0.3), rgba(212,175,55,0.15));
    border-color: var(--gold);
    border-width: 2px;
    color: var(--gold);
    box-shadow: 0 0 15px rgba(212,175,55,0.4);
}

.shichen-name {
    font-size: 15px;
    font-weight: 700;
    color: inherit;
}

.shichen-time {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    line-height: 1.3;
}

.shichen-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 2px;
}

.shichen-ji-good {
    color: #51cf66;
    background: rgba(81,207,102,0.15);
}

.shichen-ji-bad {
    color: #ff6b6b;
    background: rgba(255,107,107,0.15);
}

/* 节气物候 */
.calendar-solar-terms {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    display: block !important;
    visibility: visible !important;
}

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

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

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

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

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

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

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

/* 节假日列表 */
.calendar-holidays {
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    display: block !important;
    visibility: visible !important;
}

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

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

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

.holiday-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(3px);
}

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

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

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

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

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

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

/* === 白色模式修复 === */
.calendar-light-mode .detail-top-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.calendar-light-mode .wuxing-chart {
    border-top: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.calendar-light-mode .detail-top-row > span:not(.percents) {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 2px 8px;
    margin: 0 2px;
}

.calendar-light-mode .wuxing-row span {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 2px 8px;
}

/* 筛选设置模态框 - 电脑端 */
#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: 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: 25px 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.9);
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    color: var(--text-color, #eee);
    text-align: center;
    position: relative;
    margin: 5vh auto;
}

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

.filter-mode-switch {
    display: flex;
    gap: 0;
    justify-content: center;
    margin: 25px 0;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

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

.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:hover:not(.active) {
    background: rgba(255,255,255,0.12);
}

.filter-tags-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 25px 0;
    max-height: 45vh;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
}

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

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

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

.filter-tags-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(238,187,85,0.7);
}

.filter-tag-item {
    padding: 14px 10px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    font-weight: 600;
}

.filter-tag-item:hover {
    background: rgba(238,187,85,0.2);
    transform: translateY(-2px);
}

.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);
}

/* 白色模式下筛选标签项样式 */
body.calendar-light-mode .filter-settings-box {
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(245,245,245,0.98));
    border: 2px solid rgba(154,124,84,0.6);
    box-shadow: 0 25px 80px rgba(154,124,84,0.4);
}

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

body.calendar-light-mode .mode-btn {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(154,124,84,0.3);
    color: #333;
}

body.calendar-light-mode .mode-btn.active {
    background: linear-gradient(135deg, #c9a96e, #9a7c54);
    color: #fff;
}

body.calendar-light-mode .mode-btn:hover:not(.active) {
    background: rgba(154,124,84,0.15);
}

body.calendar-light-mode .filter-tags-grid {
    background: rgba(0,0,0,0.05);
}

body.calendar-light-mode .filter-tag-item {
    background: rgba(0,0,0,0.05);
    border: 1.5px solid rgba(154,124,84,0.3);
    color: #333;
}

body.calendar-light-mode .filter-tag-item:hover {
    background: rgba(154,124,84,0.2);
    border-color: #9a7c54;
}

body.calendar-light-mode .filter-tag-item.selected {
    background: linear-gradient(135deg, rgba(154,124,84,0.4), rgba(154,124,84,0.25));
    border: 2px solid #9a7c54;
    color: #9a7c54;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(154,124,84,0.6);
}

body.calendar-light-mode .filter-selection-info {
    background: rgba(154,124,84,0.15);
    border-color: rgba(154,124,84,0.4);
    color: #333;
}

body.calendar-light-mode .selection-count {
    color: #9a7c54;
}

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

body.calendar-light-mode .filter-actions .btn-gold {
    background: linear-gradient(135deg, #c9a96e, #9a7c54);
    color: #fff;
}

body.calendar-light-mode .filter-actions .btn-reset {
    background: rgba(0,0,0,0.05);
    border: 2px solid rgba(154,124,84,0.3);
    color: #333;
}

body.calendar-light-mode .filter-actions .btn-reset:hover {
    background: rgba(154,124,84,0.15);
    border-color: rgba(154,124,84,0.4);
}


.filter-selection-info {
    text-align: center;
    margin: 15px 0;
    padding: 12px;
    background: rgba(138,43,226,0.15);
    border-radius: 10px;
    border: 1px solid rgba(138,43,226,0.4);
}

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

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

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: nowrap;
}

.filter-actions .btn {
    padding: 14px 60px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.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:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238,187,85,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
    background: linear-gradient(135deg, #f5d84f 0%, #d4af7e 50%, #daa84a 100%);
}

.filter-actions .btn-gold:active {
    transform: translateY(0);
    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:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12));
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.filter-actions .btn-reset:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3), inset 0 2px 4px rgba(0,0,0,0.2);
}

/* 年月选择器 - 电脑端 */
.year-month-selector {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.year-month-selector.show {
    display: flex;
}

.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: 30px 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
    max-height: 85vh;
    overflow-y: auto;
    width: 100%;
    max-width: 600px;
}

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

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

.selector-section label {
    display: block;
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    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: 10px;
}

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

.selector-nav-btn:hover {
    background: rgba(238,187,85,0.2);
    transform: scale(1.05);
}

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

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

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

.year-item:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.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);
}

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

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

.month-item:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.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);
}

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

.btn-selector-confirm,
.btn-selector-cancel {
    padding: 14px 0;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

.btn-selector-confirm {
    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);
}

.btn-selector-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238,187,85,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn-selector-confirm:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(238,187,85,0.4), inset 0 2px 4px rgba(0,0,0,0.2);
}

.btn-selector-cancel {
    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);
}

.btn-selector-cancel:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12));
    transform: translateY(-2px);
}

.btn-selector-cancel:active {
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.1));
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3), inset 0 2px 4px rgba(0,0,0,0.2);
}

/* 白色模式整体样式 - 优化字体对比度 */
.calendar-modal-box.light-skin {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-color: rgba(0,0,0,0.2);
}

.calendar-modal-box.light-skin .calendar-day {
    background: rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.2);
    color: #1a1a1a;
}

.calendar-modal-box.light-skin .calendar-day-solar {
    color: #1a1a1a;
    font-weight: 700;
}

.calendar-modal-box.light-skin .calendar-day-lunar {
    color: rgba(0,0,0,0.65);
    font-weight: 600;
}

.calendar-modal-box.light-skin .calendar-day-ganzhi {
    color: rgba(0,0,0,0.5);
}

.calendar-modal-box.light-skin .calendar-detail-new,
.calendar-modal-box.light-skin .calendar-solar-terms,
.calendar-modal-box.light-skin .calendar-holidays {
    background: rgba(255,255,255,0.8);
    border-color: rgba(0,0,0,0.2);
}

.calendar-modal-box.light-skin .bazi-container,
.calendar-modal-box.light-skin .wuxing-container {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.15);
}

.calendar-modal-box.light-skin .calendar-modal-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* 皮肤选择器按钮 - 白色模式 */
.calendar-modal-box.light-skin .skin-btn-fake {
    background: linear-gradient(135deg, #c9a96e, #b89960) !important;
    border: 2px solid #9a7c54 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.calendar-modal-box.light-skin .skin-btn-fake:hover {
    background: linear-gradient(135deg, #b89960, #a88850) !important;
    box-shadow: 0 2px 8px rgba(154, 124, 84, 0.4) !important;
    transform: translateY(-1px) !important;
}

.calendar-modal-box.light-skin .skin-list {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 2px solid #9a7c54 !important;
    box-shadow: 0 4px 12px rgba(154, 124, 84, 0.3) !important;
}

.calendar-modal-box.light-skin .skin-list li {
    color: #5a4a35 !important;
}

.calendar-modal-box.light-skin .skin-list li:hover {
    background: rgba(201, 169, 110, 0.2) !important;
    color: #9a7c54 !important;
}

.calendar-modal-box.light-skin .filter-mode-btn {
    background: rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.25);
    color: rgba(0,0,0,0.75);
    font-weight: 600;
}

.calendar-modal-box.light-skin .filter-mode-btn:hover {
    background: rgba(0,0,0,0.15);
    border-color: rgba(0,0,0,0.35);
    color: rgba(0,0,0,0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.calendar-modal-box.light-skin .filter-mode-btn.active {
    background: linear-gradient(135deg, #c9a96e, #b89960);
    border-color: #9a7c54;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(154,124,84,0.5);
    transform: translateY(-1px);
}

.calendar-modal-box.light-skin .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:hover {
    background: linear-gradient(135deg, rgba(230,215,195,0.9), rgba(220,200,175,0.85));
    border-color: rgba(154,124,84,0.7);
    box-shadow: 0 2px 6px rgba(154,124,84,0.35), inset 0 1px 2px rgba(255,255,255,0.8);
}

.calendar-modal-box.light-skin .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-modal-box.light-skin .calendar-basic-info {
    color: #1a1a1a;
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.15);
}

.calendar-modal-box.light-skin .calendar-basic-info > div {
    background: rgba(255,255,255,0.6);
    border-color: rgba(0,0,0,0.15);
    color: #2c3e50;
}

.calendar-modal-box.light-skin .calendar-basic-info strong {
    color: #9a7c54;
}

/* 白色模式下的宜忌文字 */
.calendar-modal-box.light-skin .yi-ji-row {
    background: rgba(255,255,255,0.6);
    border-color: rgba(0,0,0,0.15);
}

.calendar-modal-box.light-skin .yi-ji-content {
    color: #2c3e50;
    font-weight: 500;
}

.calendar-modal-box.light-skin .yiji-tag {
    color: #2c3e50;
    background: rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.2);
    font-weight: 600;
}

/* 白色模式下标题和重要文字 */
.calendar-modal-box.light-skin .calendar-lunar-title-vertical,
.calendar-modal-box.light-skin .shichen-title,
.calendar-modal-box.light-skin .solar-terms-title,
.calendar-modal-box.light-skin .holidays-title {
    color: #9a7c54;
    text-shadow: 0 1px 3px rgba(154,124,84,0.2);
}

/* 白色模式下的八字和五行文字 */
.calendar-modal-box.light-skin .gz-char {
    filter: brightness(0.7);
}

.calendar-modal-box.light-skin .bazi-header-item,
.calendar-modal-box.light-skin .wuxing-header-item {
    color: rgba(0,0,0,0.7);
    font-weight: 700;
}

/* 白色模式下的农历标题 */
.calendar-modal-box.light-skin .calendar-lunar-title-vertical {
    color: #d32f2f;
    text-shadow: 0 1px 3px rgba(211,47,47,0.3);
    border-bottom-color: rgba(211,47,47,0.3);
}

/* 白色模式下三列布局文字 */
.calendar-modal-box.light-skin .three-column-layout {
    color: #2c3e50;
}

.calendar-modal-box.light-skin .three-column-layout * {
    color: #2c3e50 !important;
    font-weight: 600;
}

/* 白色模式下宜忌标签按钮 */
.calendar-modal-box.light-skin .yi-ji-content .yiji-tag {
    color: #1a1a1a !important;
    background: rgba(0,0,0,0.1) !important;
    border-color: rgba(0,0,0,0.25) !important;
    font-weight: 700 !important;
}

.calendar-modal-box.light-skin .yi-content .yiji-tag {
    color: #2d6e2d !important;
    background: rgba(81,207,102,0.25) !important;
    border-color: rgba(81,207,102,0.4) !important;
}

.calendar-modal-box.light-skin .ji-content .yiji-tag {
    color: #c62828 !important;
    background: rgba(255,107,107,0.25) !important;
    border-color: rgba(255,107,107,0.4) !important;
}

.calendar-modal-box.light-skin .yiji-more {
    color: rgba(0,0,0,0.5) !important;
    background: rgba(0,0,0,0.05) !important;
    border-color: rgba(0,0,0,0.15) !important;
}

/* 白色模式下宜忌图标按钮 */
.calendar-modal-box.light-skin .yi-icon {
    background: linear-gradient(135deg, #2d6e2d, #1b5e20) !important;
    box-shadow: 0 2px 8px rgba(45,110,45,0.4) !important;
}

.calendar-modal-box.light-skin .ji-icon {
    background: linear-gradient(135deg, #c62828, #b71c1c) !important;
    box-shadow: 0 2px 8px rgba(198,40,40,0.4) !important;
}

/* 白色模式下宜忌行的hover效果 - 增强对比度和护眼效果 */
.calendar-modal-box.light-skin .yi-ji-row {
    background: rgba(245,235,220,0.6);
    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.8);
}

.calendar-modal-box.light-skin .yi-ji-row:hover {
    background: rgba(201,169,110,0.4) !important;
    border: 2px solid rgba(154,124,84,0.7) !important;
    box-shadow: 0 3px 12px rgba(154,124,84,0.4), inset 0 1px 2px rgba(0,0,0,0.08);
}

/* 白色模式下宜忌详情弹窗的行效果 - 增强可见性 */
.calendar-modal-box.light-skin .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:hover {
    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: translateY(-2px);
}

/* 白色模式下年月选择器样式 - 电脑端 */
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:hover {
    background: rgba(154,124,84,0.3);
}

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

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:hover {
    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);
}

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:hover {
    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);
}

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

body.calendar-light-mode .btn-selector-confirm:hover {
    box-shadow: 0 6px 20px rgba(154,124,84,0.6);
}

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

body.calendar-light-mode .btn-selector-cancel:hover {
    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;
    padding: 40px;
}

.yiji-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

.yiji-detail-content {
    position: relative;
    background: linear-gradient(145deg, rgba(26,26,26,0.98), rgba(10,10,10,0.98));
    border-radius: 16px;
    border: 2px solid rgba(212,175,55,0.3);
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
    padding: 30px;
}

.yiji-detail-content::-webkit-scrollbar {
    width: 8px;
}

.yiji-detail-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.yiji-detail-content::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.5);
    border-radius: 4px;
}

.yiji-detail-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212,175,55,0.7);
}

.yiji-detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.08);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.yiji-detail-close:hover {
    background: var(--gold);
    color: #000;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(212,175,55,0.4);
}

.yiji-date-info {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    padding: 15px 0 20px;
    border-bottom: 2px solid rgba(212,175,55,0.3);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(212,175,55,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 宜忌详情弹窗 - 对称布局优化 */
.yiji-detail-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.yiji-row {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    min-height: 100px;
}

.yiji-row:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

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

.yi-icon {
    background: linear-gradient(135deg, #51cf66, #37b24d);
    color: #fff;
    box-shadow: 0 3px 10px rgba(81,207,102,0.4);
}

.ji-icon {
    background: linear-gradient(135deg, #ff6b6b, #fa5252);
    color: #fff;
    box-shadow: 0 3px 10px rgba(255,107,107,0.4);
}

.yiji-text {
    flex: 1;
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    line-height: 1.8;
    font-weight: 500;
}

/* 宜忌详情网格 - 电脑端优化 - 5列布局（不均等宽度） */
.yiji-detail-grid-row {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr 0.5fr 1.2fr 1.8fr;
    gap: 12px;
    margin-bottom: 25px;
}

.yiji-grid-item {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 14px 12px;
    text-align: center;
    transition: all 0.3s;
}

.yiji-grid-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(212,175,55,0.3);
    transform: translateY(-2px);
}

.yiji-grid-label {
    font-size: 12px;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.yiji-grid-value {
    font-size: 15px;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    line-height: 1.4;
}

/* 第5列紧凑样式 */
.yiji-grid-item-compact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 12px;
    text-align: left;
}

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

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

.yiji-compact-label {
    color: var(--gold);
    font-weight: 600;
    min-width: 70px;
    font-size: 11px;
    flex-shrink: 0;
}

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

/* 白色模式下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:hover,
body.calendar-light-mode .yiji-detail-grid-row .yiji-grid-item:hover {
    background: rgba(230,220,200,0.8);
    border: 2px solid rgba(154,124,84,0.7);
    box-shadow: 0 2px 6px rgba(154,124,84,0.35), inset 0 1px 2px rgba(255,255,255,0.95);
}

.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: 700;
    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: 700;
    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 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 15px 0;
    border-top: 2px solid rgba(212,175,55,0.2);
    margin-top: 15px;
}

.yiji-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}

.yiji-info-label {
    color: var(--gold);
    font-weight: 600;
}

.yiji-info-value {
    color: rgba(255,255,255,0.95);
    font-weight: 500;
}


.yiji-detail-pengzu {
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(138,43,226,0.1));
    border-radius: 12px;
    border: 2px solid rgba(212,175,55,0.3);
    padding: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.yiji-pengzu-label {
    color: var(--gold);
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.yiji-pengzu-value {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.8;
    font-weight: 500;
}

/* 宜忌弹窗时辰部分 - 电脑端优化 */
.yiji-detail-shichen {
    border-top: 2px solid rgba(212,175,55,0.2);
    padding-top: 20px;
    margin-top: 20px;
}

.yiji-shichen-title {
    color: var(--gold);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 2px;
}

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

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

.shichen-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

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

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

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

.ji-bad {
    color: #ff6b6b;
}

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

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

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

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

.shichen-current-info {
    padding: 20px;
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(138,43,226,0.08));
    border-radius: 12px;
    border: 2px solid rgba(212,175,55,0.25);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.shichen-current-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(212,175,55,0.2);
}

.shichen-current-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(212,175,55,0.4);
}

.shichen-current-time {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 6px;
}

.shichen-current-ji {
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.shichen-current-chong {
    font-size: 15px;
    color: #ff6b6b;
    margin-bottom: 10px;
    font-weight: 600;
}

.shichen-current-shen {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}


.yiji-detail-shichen-mobile {
    display: none;
}

.shichen-selector {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.shichen-selector-item {
    width: 45px;
    height: 45px;
    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: 15px;
    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;
    color: #000;
    border-color: #ffd700;
}

.shichen-selector-item:hover {
    background: rgba(255,255,255,0.1);
}

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

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

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

.shichen-yiji-row .yiji-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
    margin-right: 8px;
}

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

.shichen-compact-layout {
    display: flex;
    gap: 25px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.shichen-compact-left {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shichen-compact-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shichen-compact-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(212,175,55,0.3);
    margin-bottom: 8px;
}

.shichen-compact-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.shichen-compact-time {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 6px;
}

.shichen-compact-ji {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    margin-left: auto;
}

.shichen-compact-info {
    font-size: 14px;
    line-height: 2;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.shichen-compact-row {
    color: rgba(255,255,255,0.9);
    padding: 4px 0;
    display: flex;
    align-items: center;
}

.shichen-compact-row strong {
    color: var(--gold);
    margin-right: 8px;
    min-width: 70px;
}

.shichen-compact-yiji {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    margin-top: 12px;
}

.shichen-compact-yi,
.shichen-compact-ji-content {
    display: flex !important;
    align-items: flex-start;
    line-height: 1.8;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border-left: 3px solid;
    border: 1px solid rgba(255,255,255,0.1);
}

.shichen-compact-yi {
    border-left: 3px solid #51cf66;
    background: rgba(81,207,102,0.08);
}

.shichen-compact-ji-content {
    border-left: 3px solid #ff6b6b;
    background: rgba(255,107,107,0.08);
}

.yi-text-content,
.ji-text-content {
    flex: 1;
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    line-height: 1.8;
    margin-left: 8px;
    word-wrap: break-word;
}

/* 白色模式下时辰宜忌内容增强可见性 */
.calendar-modal-box.light-skin .shichen-compact-yi,
body.calendar-light-mode .shichen-compact-yi {
    background: rgba(81,207,102,0.15);
    border: 1px solid rgba(81,207,102,0.4);
    border-left: 3px solid #2d6e2d;
}

.calendar-modal-box.light-skin .shichen-compact-ji-content,
body.calendar-light-mode .shichen-compact-ji-content {
    background: rgba(255,107,107,0.15);
    border: 1px solid rgba(255,107,107,0.4);
    border-left: 3px solid #c62828;
}

.calendar-modal-box.light-skin .yi-text-content,
body.calendar-light-mode .yi-text-content {
    color: #2d6e2d;
    font-weight: 600;
}

.calendar-modal-box.light-skin .ji-text-content,
body.calendar-light-mode .ji-text-content {
    color: #c62828;
    font-weight: 600;
}

.yi-label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #51cf66;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(81,207,102,0.4);
}

.ji-label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff6b6b;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255,107,107,0.4);
}

/* 白色模式下宜忌标签增强对比度 */
.calendar-modal-box.light-skin .yi-label,
body.calendar-light-mode .yi-label {
    background: linear-gradient(135deg, #2d6e2d, #1b5e20);
    box-shadow: 0 2px 8px rgba(45,110,45,0.5);
}

.calendar-modal-box.light-skin .ji-label,
body.calendar-light-mode .ji-label {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    box-shadow: 0 2px 8px rgba(198,40,40,0.5);
}

.shichen-selector-mobile {
    display: none;
}

/* 电脑端时辰容器 */
.shichen-desktop-container {
    display: block;
}

/* 隐藏手机端时辰布局 */
.shichen-mobile-layout {
    display: none !important;
}

.shichen-selector-desktop {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.shichen-selector-desktop .shichen-selector-item {
    width: 52px;
    height: 52px;
    font-size: 16px;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shichen-selector-desktop .shichen-selector-item:hover {
    background: rgba(212,175,55,0.2);
    border-color: rgba(212,175,55,0.6);
    transform: scale(1.08);
}

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

.shichen-selector-desktop .shichen-selector-item.active {
    background: linear-gradient(135deg, var(--gold), #d4a574);
    color: #000;
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(212,175,55,0.5);
    transform: scale(1.1);
}

/* 电脑端额外优化 */
@media (min-width: 1024px) {
    .calendar-modal-box {
        max-width: 1200px;
    }

    .three-column-layout {
        grid-template-columns: 160px 1fr 160px;
    }

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

    .shichen-item {
        min-height: 80px;
        padding: 14px 10px;
    }

    .yiji-detail-content {
        max-width: 1100px;
    }

    .calendar-basic-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    /* 宜忌弹窗优化 */
    .yiji-detail-top {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .yiji-detail-grid-row {
        grid-template-columns: 0.5fr 0.5fr 0.5fr 1.2fr 1.8fr;
    }

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

/* 超大屏幕优化 */
@media (min-width: 1440px) {
    .calendar-modal-box {
        max-width: 1300px;
    }

    .three-column-layout {
        grid-template-columns: 180px 1fr 180px;
        gap: 15px;
    }

    .shichen-grid {
        gap: 15px;
    }

    .shichen-item {
        min-height: 85px;
    }

    .calendar-basic-info {
        gap: 15px;
    }

    /* 宜忌弹窗超大屏优化 */
    .yiji-detail-content {
        max-width: 1200px;
    }

    .yiji-detail-top {
        gap: 25px;
    }

    .yiji-detail-grid-row {
        grid-template-columns: 0.5fr 0.5fr 0.5fr 1.2fr 1.8fr;
        gap: 15px;
    }
}
