        :root {
            --calendar-blue: #005bac;
            --calendar-red: #d32f2f;
            --calendar-border: #e0e0e0;
            --gold-text: #b07d3a;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            background-color: #f4f4f4;
            font-family: "Microsoft JhengHei", "Heiti TC", sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 80vh;
            padding: 10px;
        }

 #calendar-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border: 1px solid var(--calendar-border);
    position: relative;
    padding-bottom: 16px;
    border-radius: 2px;
    /* 主體：強烈暗棕色調投影 + 厚度感 */
    box-shadow: 
        0 4px 10px #3c2a20aa,          /* 主投影 - 暗棕 */
        0 12px 40px #4a2f1fee,          /* 中層投影 */
        0 6px 20px #5a3a2acc,           /* 近距離柔和投影 */
        inset 0 -4px 10px rgba(60, 42, 32, 0.18); /* 內部厚度陰影 */
    overflow: hidden;
}

/* 第二層（最明顯的紙張） */
#calendar-card::before {
    content: "";
    position: absolute;
    inset: 10px -14px -24px 10px;
    background: #fbfaf8;
    border: 1px solid var(--calendar-border);
    border-top-color: #e8e3dd;
    border-left-color: #f0e9e2;
    z-index: -1;
    border-radius: 5px;
    box-shadow: 
        0 20px 60px #3c2a20cc,         /* 強烈暗棕主影 */
        10px 0 30px #4a2f1f99,         /* 右側側影 */
        -4px 0 24px #3c2a2044;         /* 左側微弱反差 */
    transform: rotate(2.2deg) skewX(-2.8deg) translateY(5px);
}

/* 第三層（最底層 - 超厚重感） */
#calendar-card::after {
    content: "";
    position: absolute;
    inset: 20px -24px -36px 20px;
    background: #f4f1ed;
    border: 1px solid var(--calendar-border);
    border-top-color: #dad2c8;
    border-left-color: #e4dcd2;
    z-index: -2;
    border-radius: 5px;
    box-shadow: 
        0 28px 90px #35251acc,         /* 極強暗棕遠投 */
        14px 0 50px #442c1fee,         /* 右側超明顯側影 */
        -8px 0 40px #3c2a2088;         /* 左側對比 */
    transform: rotate(4.5deg) skewX(-4.2deg) translateY(10px);
}

       /* 頂部裝訂處 */
        .calendar-top {
            height: 45px;
            background: linear-gradient(to bottom, #d32f2f, #b71c1c);
            position: relative;
            z-index: 10;
            border-radius: 4px 4px 0 0;
            box-shadow: inset 0 -2px 5px rgba(0,0,0,0.2);
        }


.calendar-top::before, .calendar-top::after {
            content: '';
            position: absolute;
            top: 10px;
            width: 12px;
            height: 12px;
            background: #444;
            border-radius: 50%;
            box-shadow: inset 0 2px 2px rgba(0,0,0,0.5);
        }
        .calendar-top::before { left: 20%; }
        .calendar-top::after { right: 20%; }
        

        .calendar-main {
            padding: 20px;
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            text-align: center;
            align-items: start;
        }

        .side-left {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            color: var(--calendar-blue);
            font-weight: bold;
        }
        .roc-year { font-size: 1.1rem; margin-bottom: 10px; white-space: nowrap; }
        .lunar-vertical {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin-top: 5px;
            padding-left: 5px;
        }

        .date-center {
            font-size: 10rem;
            font-weight: 900;
            color: var(--calendar-blue);
            line-height: 0.9;
        }
        .date-center.holiday { color: var(--calendar-red); }

        .side-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }
        .west-year-box {
            border: 2px solid var(--calendar-blue);
            border-radius: 4px;
            padding: 3px 6px;
            text-align: center;
            margin-bottom: 15px;
        }
        .west-year { font-size: 0.9rem; color: var(--calendar-blue); border-bottom: 1px solid var(--calendar-blue); }
        .west-month { font-size: 1.6rem; font-weight: 900; color: var(--calendar-blue); }
        .west-month-en { font-size: 0.8rem; color: var(--calendar-blue); font-weight: bold; }

        .select-btn {
            background: #fff;
            border: 1px solid var(--gold-text);
            color: var(--gold-text);
            padding: 5px 10px;
            font-size: 0.9rem;
            cursor: pointer;
            border-radius: 4px;
            font-weight: bold;
        }

        .nav-section {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px;
            margin-bottom: 15px;
        }
        .nav-arrow {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            color: var(--calendar-blue);
            font-size: 0.85rem;
            font-weight: bold;
            background: none; border: none;
            flex: 1;
        }

        .weekday-banner {
            background: var(--calendar-blue);
            color: white;
            padding: 8px 30px;
            font-size: 2.2rem;
            font-weight: bold;
            border-radius: 5px;
            min-width: 160px;
            text-align: center;
            flex: 2.5;
            cursor: pointer;
        }
        .weekday-banner.holiday { background: var(--calendar-red); }

        .info-box {
            margin: 0 15px;
            border: 2px solid var(--calendar-red);
            border-radius: 10px;
            padding: 15px;
            background: #fffdf6;
            text-align: center;
        }
        .lunar-detail {
            color: #8b4513;
            font-size: 1.1rem;
            background: #ffebf0;
            display: inline-block;
            padding: 3px 15px;
            border-radius: 20px;
            margin-bottom: 10px;
            font-weight: bold;
        }
        .event-tag {
            display: block;
            background: #e3f2fd;
            color: #1976d2;
            padding: 6px;
            border-radius: 5px;
            font-size: 0.95rem;
            margin-bottom: 8px;
            font-weight: bold;
        }
        .vacation-tag { background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; }
        .greeting-tag { background: #f3e5f5; color: #7b1fa2; border: 1px solid #e1bee7; }
        .upcoming-tag { background: #e8f5e8; color: #2e7d32; border: 1px solid #c8e6c9; }

        .quote-area {
            font-size: 0.95rem;
            line-height: 1.6;
            color: #444;
            border-top: 1px dashed #ccc;
            padding-top: 10px;
            font-style: italic;
        }
        .speak-btn {
            margin-top: 8px;
            padding: 6px 16px;
            border-radius: 20px;
            border: 1px solid #ddd;
            background: white;
            cursor: pointer;
            font-weight: bold;
            color: #666;
            font-style: normal;
        }

        /* 圖片樣式 - 修改後 */
        .lunar-vertical img {
            width: 80px;
            height: auto;
            margin: 2px 0;
        }

        /* Modal 彈窗 */
        #date-picker-modal {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); z-index: 1000; justify-content: center; align-items: center;
        }
        .modal-content { 
            background: white; padding: 20px; border-radius: 15px; width: 90%; max-width: 340px; 
        }
        .modal-header-row {
            display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
            background: #f0f0f0; padding: 5px 10px; border-radius: 8px;
        }
        .modal-header-row button {
            background: var(--calendar-blue); color: white; border: none; 
            width: 35px; height: 35px; border-radius: 4px; cursor: pointer; font-size: 1.2rem;
        }
        .modal-header-row span { font-weight: bold; font-size: 1.1rem; min-width: 100px; text-align: center; }

        .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; margin-top: 10px; }
        .weekday-head { font-weight: bold; color: #999; font-size: 0.8rem; padding-bottom: 5px; }
        .calendar-day { padding: 8px 0; cursor: pointer; border-radius: 5px; font-size: 0.95rem; }
        .calendar-day.selected { background: var(--calendar-blue); color: white; font-weight: bold; }
        .calendar-day.today { border: 1px solid var(--calendar-blue); color: var(--calendar-blue); }
        
        .footer-link { text-align: center; font-size: 0.8rem; margin-top: 15px; }
        .footer-link a { color: #aaa; text-decoration: none; }
        
        /* ===============================
   響應式設計
   =============================== */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    #calendar-card {
        border-radius: 22px;
    }
    
    .nav-container {
        padding: 10px 6px;
        gap: 4px;
    }
    
    .nav-btn {
        min-height: 44px;
        font-size: 0.9rem;
        padding: 0 4px;
    }
    
    .nav-btn.today-btn {
        font-size: 0.95rem;
    }
    
    .nav-btn.calendar-btn {
        font-size: 1rem;
    }
    
    #content-area {
        padding: 15px 20px;
        gap: 12px;
    }
    
    .greeting-text {
        font-size: 1.6rem;
    }
    
    .solar-date {
        font-size: 1.6rem;
    }
    
    .holiday-badge {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 1.1rem;
    }
    
    .lunar-text {
        font-size: 1.3rem;
        padding: 6px 16px;
    }
    
    .event-tag {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .highlight-text {
        font-size: 1.1rem;
    }
    
    .quote-section {
        font-size: 1rem;
    }
    
    .speak-btn {
        padding: 8px 20px;
        font-size: 0.95rem;
    }
    
    .lunar-vertical img {
        width: 70px;
        height: auto;
    }
    
    .modal-content {
        max-width: 360px;
    }
    
    .calendar-grid {
        gap: 4px;
        padding: 12px;
    }
    
    .calendar-day {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .solar-date {
        font-size: 1.4rem;
    }
    
    .lunar-text {
        font-size: 1.2rem;
    }
    
    .greeting-text {
        font-size: 1.4rem;
    }
    
    .nav-btn {
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .lunar-vertical img {
        width: 60px;
    }
}
