/* 24节气圆盘样式 - 参考设计风格 - 深色/白色双模式支持 */

/* ========== 节气容器 ========== */
.calendar-solar-terms {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
    border: none;
}

/* ========== 倒计时信息 ========== */
.solar-terms-countdown {
    text-align: center;
    padding: 16px 25px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.08), rgba(212, 175, 55, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    margin-bottom: 25px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.light-skin .solar-terms-countdown {
    background: linear-gradient(135deg, rgba(238, 223, 204, 0.25), rgba(230, 215, 195, 0.2));
    border-color: rgba(154, 124, 84, 0.35);
    color: #5a4a35;
}

.countdown-highlight {
    color: var(--gold);
    font-weight: 800;
    font-size: 17px;
    margin: 0 4px;
    text-shadow: 0 0 12px rgba(238, 187, 85, 0.4);
}

.light-skin .countdown-highlight {
    color: #9a7c54;
    text-shadow: none;
}

/* ========== 24节气圆盘 ========== */
.solar-terms-wheel-container {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    aspect-ratio: 1;
}

.solar-terms-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(138, 43, 226, 0.15) 0%,
        rgba(138, 43, 226, 0.08) 25%,
        rgba(138, 43, 226, 0.05) 50%,
        transparent 70%);
    filter: drop-shadow(0 0 40px rgba(138, 43, 226, 0.2));
}

.light-skin .solar-terms-wheel {
    background: radial-gradient(circle at center,
        rgba(238, 223, 204, 0.4) 0%,
        rgba(230, 215, 195, 0.25) 25%,
        rgba(230, 215, 195, 0.15) 50%,
        transparent 70%);
    filter: drop-shadow(0 0 30px rgba(154, 124, 84, 0.15));
}

/* 圆盘多层圆环 */
.solar-terms-wheel::before,
.solar-terms-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid;
}

/* 外圈 */
.solar-terms-wheel::before {
    width: 92%;
    height: 92%;
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}

.light-skin .solar-terms-wheel::before {
    border-color: rgba(154, 124, 84, 0.3);
    box-shadow: 0 0 20px rgba(154, 124, 84, 0.12);
}

/* 中圈 */
.solar-terms-wheel::after {
    width: 62%;
    height: 62%;
    border-color: rgba(212, 175, 55, 0.2);
}

.light-skin .solar-terms-wheel::after {
    border-color: rgba(154, 124, 84, 0.25);
}

/* 中心圆 */
.solar-terms-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.3), rgba(138, 43, 226, 0.15));
    border: 2px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), inset 0 0 25px rgba(138, 43, 226, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.light-skin .solar-terms-center {
    background: linear-gradient(145deg, rgba(255, 200, 100, 0.4), rgba(255, 215, 120, 0.25));
    border-color: rgba(154, 124, 84, 0.7);
    box-shadow: 0 0 25px rgba(154, 124, 84, 0.35), inset 0 0 20px rgba(255, 200, 100, 0.15);
}

.center-current-term {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(238, 187, 85, 0.8), 0 0 40px rgba(238, 187, 85, 0.4);
    margin-bottom: 4px;
    letter-spacing: 3px;
}

.light-skin .center-current-term {
    color: #c9a96e;
    text-shadow: 0 2px 8px rgba(201, 169, 110, 0.4);
}

.center-date {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.light-skin .center-date {
    color: rgba(154, 124, 84, 0.8);
}

/* 节气项目 - 围绕圆形排列 */
.solar-term-item {
    position: absolute;
    transform-origin: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 节气项目圆圈特效 */
.solar-term-item::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.3);
    background: rgba(138, 43, 226, 0.1);
    z-index: -1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-skin .solar-term-item::before {
    border-color: rgba(154, 124, 84, 0.35);
    background: rgba(238, 223, 204, 0.2);
}

/* 节气图标 */
.solar-term-icon {
    font-size: 20px;
    margin-bottom: 2px;
    transition: all 0.3s;
    filter: grayscale(0.4) opacity(0.75);
}

/* 节气名称 */
.solar-term-name {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.1;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.light-skin .solar-term-name {
    color: #5a4a35;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

/* 当前节气高亮 - 放大镜效果 */
.solar-term-item.current {
    transform: translate(-50%, -50%) scale(2.5);
    z-index: 10;
}

.solar-term-item.current .solar-term-name {
    color: var(--gold);
    font-weight: 900;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(238, 187, 85, 0.8), 0 0 20px rgba(238, 187, 85, 0.4);
}

.light-skin .solar-term-item.current .solar-term-name {
    color: #c9a96e;
    text-shadow: 0 2px 4px rgba(201, 169, 110, 0.5), 0 0 8px rgba(201, 169, 110, 0.3);
}

.solar-term-item.current .solar-term-icon {
    filter: grayscale(0) opacity(1);
    font-size: 32px;
    text-shadow: 0 0 12px rgba(238, 187, 85, 0.5);
}

/* hover效果 - 放大镜效果 */
.solar-term-item:hover {
    transform: translate(-50%, -50%) scale(2.2);
    z-index: 9;
}

.solar-term-item:hover::before {
    width: 70px;
    height: 70px;
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.light-skin .solar-term-item:hover::before {
    border-color: rgba(154, 124, 84, 0.6);
    background: rgba(238, 223, 204, 0.4);
    box-shadow: 0 0 20px rgba(154, 124, 84, 0.3);
}

.solar-term-item:hover .solar-term-icon {
    filter: grayscale(0) opacity(1);
    font-size: 28px;
}

.solar-term-item:hover .solar-term-name {
    color: var(--gold);
    font-size: 14px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(238, 187, 85, 0.8), 0 0 20px rgba(238, 187, 85, 0.4);
}

.light-skin .solar-term-item:hover .solar-term-name {
    color: #c9a96e;
    text-shadow: 0 2px 4px rgba(201, 169, 110, 0.5), 0 0 8px rgba(201, 169, 110, 0.3);
}

/* 指针 - 三角箭头样式 */
.solar-terms-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-origin: center;
    z-index: 5;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.pointer-line {
    position: absolute;
    width: 2px;
    height: 30%;
    background: linear-gradient(to bottom, rgba(138, 43, 226, 0.8), rgba(138, 43, 226, 0.4), transparent);
    top: -30%;
    left: -1px;
    border-radius: 2px;
}

.light-skin .pointer-line {
    background: linear-gradient(to bottom, rgba(154, 124, 84, 0.7), rgba(154, 124, 84, 0.4), transparent);
}

/* 三角箭头 */
.pointer-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid rgba(138, 43, 226, 0.9);
}

.light-skin .pointer-line::before {
    border-bottom-color: rgba(154, 124, 84, 0.8);
}

.pointer-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(138, 43, 226, 1) 0%, rgba(138, 43, 226, 0.6) 100%);
    border-radius: 50%;
    top: -5px;
    left: -5px;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.9), 0 0 30px rgba(138, 43, 226, 0.5);
}

.light-skin .pointer-dot {
    background: radial-gradient(circle, rgba(154, 124, 84, 1) 0%, rgba(154, 124, 84, 0.6) 100%);
    box-shadow: 0 0 12px rgba(154, 124, 84, 0.8), 0 0 24px rgba(154, 124, 84, 0.4);
}

/* ========== 节气详情弹窗 ========== */
.solar-term-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
}

.solar-term-modal.show {
    display: flex;
}

.solar-term-modal-content {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.98));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 90%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    padding: 35px 30px;
    position: relative;
}

/* 电脑端 - 加长弹窗，取消滚动条 */
@media (min-width: 769px) {
    .solar-term-modal-content {
        max-width: 800px;
        max-height: 95vh;
        padding: 40px 35px;
    }
}

.light-skin .solar-term-modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 235, 0.98));
    border-color: rgba(154, 124, 84, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.solar-term-modal-content::-webkit-scrollbar {
    width: 6px;
}

.solar-term-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.solar-term-modal-content::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 3px;
}

.light-skin .solar-term-modal-content::-webkit-scrollbar-thumb {
    background: rgba(154, 124, 84, 0.3);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    color: var(--gold);
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.light-skin .modal-close-btn {
    border-color: rgba(154, 124, 84, 0.5);
    color: #9a7c54;
}

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

.light-skin .modal-close-btn:hover {
    background: #9a7c54;
    color: #fff;
}

.term-modal-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.light-skin .term-modal-header {
    border-bottom-color: rgba(154, 124, 84, 0.25);
}

.term-modal-icon {
    font-size: 48px;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.term-modal-title-group {
    flex: 1;
}

.term-modal-title {
    font-size: 30px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.light-skin .term-modal-title {
    color: #9a7c54;
}

.term-modal-season {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.light-skin .term-modal-season {
    color: rgba(90, 74, 53, 0.75);
}

.term-modal-section {
    margin-bottom: 28px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.light-skin .section-title {
    color: #9a7c54;
}

.section-content {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.3px;
}

.light-skin .section-content {
    color: #3d2817;
}

.sanhou-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sanhou-item {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid rgba(212, 175, 55, 0.6);
    transition: all 0.3s;
}

.light-skin .sanhou-item {
    background: rgba(238, 223, 204, 0.3);
    border-left-color: rgba(154, 124, 84, 0.7);
}

.sanhou-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--gold);
}

.light-skin .sanhou-item:hover {
    background: rgba(230, 215, 195, 0.5);
}

.sanhou-hou {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.light-skin .sanhou-hou {
    color: #9a7c54;
}

.sanhou-desc {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
}

.light-skin .sanhou-desc {
    color: #5a4a35;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .solar-terms-wheel-container {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 0 5px;
    }

    .solar-term-icon {
        font-size: 16px;
    }

    .solar-term-name {
        font-size: 9px;
        letter-spacing: 0.3px;
    }

    .solar-term-item.current .solar-term-name {
        font-size: 14px;
    }

    .solar-term-item.current .solar-term-icon {
        font-size: 28px;
    }

    .solar-terms-center {
        width: 32%;
        height: 32%;
    }

    .center-current-term {
        font-size: 22px;
        letter-spacing: 2px;
    }

    /* 手机端弹窗 - 卡片式占满屏幕 */
    .solar-term-modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 20px;
        overflow-y: auto;
    }

    .solar-term-modal {
        padding: 0;
        align-items: stretch;
    }

    /* 手机端圆圈特效调整 */
    .solar-term-item::before {
        width: 38px;
        height: 38px;
    }

    .solar-term-item:hover::before {
        width: 50px;
        height: 50px;
    }

    .center-date {
        font-size: 8px;
    }

    .solar-terms-countdown {
        font-size: 13px;
        padding: 14px 20px;
    }

    .countdown-highlight {
        font-size: 15px;
    }

    .solar-term-modal-content {
        padding: 28px 22px;
    }

    .term-modal-icon {
        font-size: 40px;
    }

    .term-modal-title {
        font-size: 26px;
    }

    .term-modal-season {
        font-size: 12px;
    }

    .section-title {
        font-size: 14px;
    }

    .section-content {
        font-size: 13px;
    }

    .sanhou-hou {
        font-size: 13px;
    }

    .sanhou-desc {
        font-size: 12px;
    }
}

/* 电脑端优化 */
@media (min-width: 769px) {
    .solar-terms-wheel-container {
        max-width: 480px;
    }

    .solar-term-icon {
        font-size: 22px;
    }

    .solar-term-name {
        font-size: 11px;
    }

    .solar-term-item.current .solar-term-name {
        font-size: 16px;
    }

    .solar-term-item.current .solar-term-icon {
        font-size: 32px;
    }

    .center-current-term {
        font-size: 30px;
    }

    .center-date {
        font-size: 10px;
    }
}

/* 超大屏幕优化 */
@media (min-width: 1440px) {
    .solar-terms-wheel-container {
        max-width: 520px;
    }

    .solar-term-icon {
        font-size: 24px;
    }

    .solar-term-name {
        font-size: 12px;
    }

    .solar-term-item.current .solar-term-icon {
        font-size: 36px;
    }

    .solar-term-item.current .solar-term-name {
        font-size: 18px;
    }
}

/* ========== 万年历白色模式适配 (body.calendar-light-mode) ========== */
/* 与 .light-skin 保持一致的样式,但使用 calendar-light-mode 选择器 */

body.calendar-light-mode .solar-terms-countdown {
    background: linear-gradient(135deg, rgba(238, 223, 204, 0.25), rgba(230, 215, 195, 0.2));
    border-color: rgba(154, 124, 84, 0.35);
    color: #5a4a35;
}

body.calendar-light-mode .countdown-highlight {
    color: #9a7c54;
    text-shadow: none;
}

body.calendar-light-mode .solar-terms-wheel {
    background: radial-gradient(circle at center,
        rgba(238, 223, 204, 0.4) 0%,
        rgba(230, 215, 195, 0.25) 25%,
        rgba(230, 215, 195, 0.15) 50%,
        transparent 70%);
    filter: drop-shadow(0 0 30px rgba(154, 124, 84, 0.15));
}

body.calendar-light-mode .solar-terms-wheel::before {
    border-color: rgba(154, 124, 84, 0.3);
    box-shadow: 0 0 20px rgba(154, 124, 84, 0.12);
}

body.calendar-light-mode .solar-terms-wheel::after {
    border-color: rgba(154, 124, 84, 0.25);
}

body.calendar-light-mode .solar-terms-center {
    background: linear-gradient(145deg, rgba(255, 200, 100, 0.4), rgba(255, 215, 120, 0.25));
    border-color: rgba(154, 124, 84, 0.7);
    box-shadow: 0 0 25px rgba(154, 124, 84, 0.35), inset 0 0 20px rgba(255, 200, 100, 0.15);
}

body.calendar-light-mode .center-current-term {
    color: #c9a96e;
    text-shadow: 0 2px 8px rgba(201, 169, 110, 0.4);
}

body.calendar-light-mode .center-date {
    color: rgba(154, 124, 84, 0.8);
}

body.calendar-light-mode .solar-term-item::before {
    border-color: rgba(154, 124, 84, 0.35);
    background: rgba(238, 223, 204, 0.2);
}

body.calendar-light-mode .solar-term-name {
    color: #5a4a35;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

body.calendar-light-mode .solar-term-item.current .solar-term-name {
    color: #c9a96e;
    text-shadow: 0 2px 4px rgba(201, 169, 110, 0.5), 0 0 8px rgba(201, 169, 110, 0.3);
}

body.calendar-light-mode .solar-term-item:hover::before {
    border-color: rgba(154, 124, 84, 0.6);
    background: rgba(238, 223, 204, 0.4);
    box-shadow: 0 0 20px rgba(154, 124, 84, 0.3);
}

body.calendar-light-mode .solar-term-item:hover .solar-term-name {
    color: #c9a96e;
    text-shadow: 0 2px 4px rgba(201, 169, 110, 0.5), 0 0 8px rgba(201, 169, 110, 0.3);
}

body.calendar-light-mode .pointer-line {
    background: linear-gradient(to bottom, rgba(154, 124, 84, 0.7), rgba(154, 124, 84, 0.4), transparent);
}

body.calendar-light-mode .pointer-line::before {
    border-bottom-color: rgba(154, 124, 84, 0.8);
}

body.calendar-light-mode .pointer-dot {
    background: radial-gradient(circle, rgba(154, 124, 84, 1) 0%, rgba(154, 124, 84, 0.6) 100%);
    box-shadow: 0 0 12px rgba(154, 124, 84, 0.8), 0 0 24px rgba(154, 124, 84, 0.4);
}

/* 弹窗背景 - 白色模式 */
body.calendar-light-mode .solar-term-modal {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
}

body.calendar-light-mode .solar-term-modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 235, 0.98));
    border-color: rgba(154, 124, 84, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.calendar-light-mode .solar-term-modal-content::-webkit-scrollbar-thumb {
    background: rgba(154, 124, 84, 0.3);
}

body.calendar-light-mode .modal-close-btn {
    border-color: rgba(154, 124, 84, 0.5);
    color: #9a7c54;
}

body.calendar-light-mode .modal-close-btn:hover {
    background: #9a7c54;
    color: #fff;
}

body.calendar-light-mode .term-modal-header {
    border-bottom-color: rgba(154, 124, 84, 0.25);
}

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

body.calendar-light-mode .term-modal-season {
    color: rgba(90, 74, 53, 0.75);
}

body.calendar-light-mode .section-title {
    color: #9a7c54;
}

body.calendar-light-mode .section-content {
    color: #3d2817;
}

body.calendar-light-mode .sanhou-item {
    background: rgba(238, 223, 204, 0.3);
    border-left-color: rgba(154, 124, 84, 0.7);
}

body.calendar-light-mode .sanhou-item:hover {
    background: rgba(230, 215, 195, 0.5);
}

body.calendar-light-mode .sanhou-hou {
    color: #9a7c54;
}

body.calendar-light-mode .sanhou-desc {
    color: #5a4a35;
}
