<style>
/* ===== 基础重置 & 全局 ===== */
.calendar-table {
    background-color: #f7f2ea;  /* 浅暖米色底 */
    border-color: #c9b8a6;
}
.calendar-table td {
    vertical-align: top;
    text-align: center;
    width: 14.28%;
    padding: 6px 4px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
    box-sizing: border-box;
    background-color: #fcf9f5;
    border-color: #c9b8a6;
}
.calendar-table td:hover {
    background-color: #ede7dd;  /* 暖灰悬停 */
    box-shadow: inset 0 0 0 1px #b8a692;
}
.calendar-table thead th {
    background: #4a3f35;  /* 深褐色表头 */
    color: #f6ede5;
    border-color: #4a3f35;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 0;
    letter-spacing: 1px;
}
.date-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #5c4b3a;
    line-height: 1.2;
    transition: color 0.2s;
}
.date-lunar {
    font-size: 0.8rem;
    color: #9a8b7c;
    line-height: 1.2;
}
.date-ganzhi {
    font-size: 0.75rem;
    line-height: 1.3;
    color: #7b6b5a;
    font-weight: 600;
}
.date-festival {
    font-size: 0.7rem;
    line-height: 1.2;
    color: #c0392b;
    padding: 2px 0;
    display: block;
    margin-top: 1px;
    font-weight: 600;
}
.other-month {
    opacity: 0.45;
}
/* 周末特殊色 */
.calendar-table td.weekend-sat .date-number { color: #2c6b9e; }
.calendar-table td.weekend-sun .date-number { color: #b54b4b; }
.calendar-table td.weekend-sat { background-color: #f0f5fa; }
.calendar-table td.weekend-sun { background-color: #fdf0f0; }

/* 今日高亮：暖金色渐变 + 边框光晕 */
.calendar-table td.today {
    background: linear-gradient(145deg, #fbf0d9, #f7e4c6) !important;
    border-color: #d4a84b !important;
    box-shadow: 0 0 0 2px #d4a84b, 0 4px 12px rgba(212, 168, 75, 0.25);
}
.calendar-table td.today .date-number {
    color: #7a5d2c;
    font-weight: 700;
}
.calendar-table td.today .date-lunar,
.calendar-table td.today .date-ganzhi {
    color: #7a5d2c;
}

.custom-box {
    background: #ffffff;
    border: 1px solid #d6cec0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.text-gan {
    color: #1f543e;
}
.text-zhi {
    color: #a63c2c;
}
.badge-yi {
    display: inline-block;
    background: #dcedc8;
    color: #2a5c2a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid #4caf50;
}
.badge-ji {
    display: inline-block;
    background: #f8d7da;
    color: #721c24;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid #dc3545;
}
.pillar-label {
    font-size: 0.8rem;
    color: #887a6b;
    margin-top: 2px;
}
.divider-custom {
    border-top: 1px solid #e8e0d6;
}
@media (max-width: 576px) {
    .pillar-group {
        min-width: 40px;
    }
}

/* ===== 卡片通用 ===== */
.card-custom {
    max-width: 780px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid #d0d0d0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}
.grid-row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}
.grid-row > [class*="col-"],
.grid-row > .col,
.grid-row > .col-auto {
    border-right: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.grid-row > [class*="col-"]:last-child,
.grid-row > .col:last-child,
.grid-row > .col-auto:last-child {
    border-right: none;
}
.grid-row:last-child > [class*="col-"],
.grid-row:last-child > .col,
.grid-row:last-child > .col-auto {
    border-bottom: none;
}
.hour-label {
    flex: 0 0 55px;
    border-right: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hour-grid {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}
.hour-grid .hour-item {
    flex: 1 0 0;
    text-align: center;
    padding: 10px 0;
    border-right: 1px solid #d0d0d0;
    font-size: 14px;
    line-height: 1.6;
}
.hour-grid .hour-item:last-child {
    border-right: none;
}
.hour-highlight {
    font-weight: 700;
    background: #fef3d4 !important;
    border-color: #d4a84b;
    box-shadow: 0 0 0 1px #d4a84b;
    color: #7a5d2c;
}
.side-col {
    flex: 0 0 60px;
    border-right: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}
.side-col:last-child {
    border-right: none;
}
.primary-text {
    color: #d97a3e;
    font-weight: 600;
}
.default-text {
    color: #4a3f35;
}
.vertical-text {
    writing-mode: vertical-lr;
    letter-spacing: 2px;
    font-size: 14px;
    line-height: 1.8;
}
.fc-t {
    font-weight: 600;
    font-size: 14px;
    padding: 3px 0;
    color: #d97a3e;
}
.fc-d {
    font-size: 14px;
    padding: 2px 0;
    color: #4a3f35;
}

/* ===== PC 大屏专属放大 ===== */
@media (min-width: 992px) {
    .calendar-table td {
        padding: 12px 8px;
    }
    .date-number {
        font-size: 2.2rem;
    }
    .date-lunar {
        font-size: 1rem;
    }
    .date-ganzhi {
        font-size: 0.95rem;
    }
    .date-festival {
        font-size: 0.85rem;
        padding: 4px 0;
    }
    .calendar-header {
        font-size: 1.15rem;
    }
    .badge-yi,
    .badge-ji {
        font-size: 17px;
        padding: 8px 22px;
    }
    .pillar-label {
        font-size: 0.95rem;
    }
    .grid-row > [class*="col-"],
    .grid-row > .col,
    .grid-row > .col-auto {
        padding: 14px 8px;
    }
    .hour-grid .hour-item {
        font-size: 16px;
        padding: 14px 0;
    }
    .primary-text,
    .fc-t {
        font-size: 16px;
    }
    .default-text,
    .fc-d {
        font-size: 15px;
    }
    .vertical-text {
        font-size: 16px;
    }
    .side-col {
        padding: 14px 0;
    }
    .hour-label {
        padding: 14px 4px;
    }
    .custom-box {
        padding: 2rem !important;
    }
}
</style>