/* 基本重置與全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: linear-gradient(135deg, #fdf6e3 0%, #f5e6d3 50%, #ede0d4 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 響應式顯示控制 */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* 花卉裝飾背景 */
.flower-decoration {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
}

.flower-1 {
    left: -30px;
    bottom: -20px;
    width: 280px;
    height: 350px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 280"><defs><style>.leaf{fill:%238b956d}.petal{fill:%23f5ebe0;stroke:%23e8dcc8;stroke-width:0.5}.center{fill:%23d4a574}.stem{fill:%237a8a5c}</style></defs><path class="stem" d="M100 280 Q95 220 85 180 Q80 150 90 120"/><ellipse class="leaf" cx="55" cy="240" rx="35" ry="55" transform="rotate(-35 55 240)"/><ellipse class="leaf" cx="85" cy="200" rx="28" ry="48" transform="rotate(20 85 200)"/><ellipse class="leaf" cx="45" cy="180" rx="22" ry="40" transform="rotate(-15 45 180)"/><ellipse class="leaf" cx="70" cy="260" rx="25" ry="45" transform="rotate(-50 70 260)"/><circle class="petal" cx="70" cy="100" r="38"/><circle class="petal" cx="100" cy="85" r="35"/><circle class="petal" cx="115" cy="110" r="32"/><circle class="petal" cx="95" cy="130" r="30"/><circle class="petal" cx="60" cy="120" r="28"/><circle class="center" cx="85" cy="108" r="18"/><circle fill="%23c4956a" cx="85" cy="108" r="10"/></svg>') no-repeat;
    background-size: contain;
}

.flower-2 {
    right: -20px;
    top: 30px;
    width: 240px;
    height: 300px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 280"><defs><style>.leaf{fill:%238b956d}.petal{fill:%23fff5eb;stroke:%23e8dcc8;stroke-width:0.5}.center{fill:%23dda15e}.stem{fill:%237a8a5c}</style></defs><path class="stem" d="M100 0 Q105 60 115 100 Q120 130 110 160"/><ellipse class="leaf" cx="145" cy="40" rx="30" ry="50" transform="rotate(35 145 40)"/><ellipse class="leaf" cx="115" cy="80" rx="25" ry="45" transform="rotate(-20 115 80)"/><ellipse class="leaf" cx="155" cy="100" rx="20" ry="38" transform="rotate(15 155 100)"/><circle class="petal" cx="130" cy="180" r="35"/><circle class="petal" cx="100" cy="165" r="32"/><circle class="petal" cx="85" cy="190" r="30"/><circle class="petal" cx="105" cy="210" r="28"/><circle class="petal" cx="140" cy="200" r="26"/><circle class="center" cx="115" cy="188" r="16"/><circle fill="%23cd914e" cx="115" cy="188" r="9"/></svg>') no-repeat;
    background-size: contain;
}

.flower-3 {
    left: 50px;
    top: 80px;
    width: 150px;
    height: 180px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 150"><defs><style>.leaf{fill:%239aa574}.petal{fill:%23faf5ef;stroke:%23e8dcc8;stroke-width:0.3}.center{fill:%23e8b87a}</style></defs><ellipse class="leaf" cx="35" cy="120" rx="20" ry="35" transform="rotate(-25 35 120)"/><ellipse class="leaf" cx="85" cy="115" rx="18" ry="32" transform="rotate(25 85 115)"/><circle class="petal" cx="50" cy="55" r="25"/><circle class="petal" cx="70" cy="45" r="22"/><circle class="petal" cx="80" cy="65" r="20"/><circle class="petal" cx="65" cy="80" r="18"/><circle class="petal" cx="45" cy="70" r="20"/><circle class="center" cx="60" cy="62" r="12"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.6;
}

.flower-4 {
    right: 30px;
    bottom: 50px;
    width: 200px;
    height: 250px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 220"><defs><style>.leaf{fill:%238b956d}.petal{fill:%23f8f0e5;stroke:%23ddd5c8;stroke-width:0.4}.center{fill:%23c9a86c}.bud{fill:%23f0e6d8}</style></defs><ellipse class="leaf" cx="120" cy="180" rx="28" ry="50" transform="rotate(40 120 180)"/><ellipse class="leaf" cx="40" cy="190" rx="25" ry="45" transform="rotate(-35 40 190)"/><ellipse class="leaf" cx="80" cy="200" rx="22" ry="40" transform="rotate(10 80 200)"/><circle class="petal" cx="60" cy="80" r="30"/><circle class="petal" cx="90" cy="65" r="28"/><circle class="petal" cx="105" cy="90" r="25"/><circle class="petal" cx="85" cy="110" r="24"/><circle class="petal" cx="55" cy="100" r="26"/><circle class="center" cx="78" cy="88" r="15"/><circle class="bud" cx="130" cy="120" r="12"/><circle class="bud" cx="25" cy="130" r="10"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.65;
}

.flower-5 {
    left: -60px;
    top: 40%;
    width: 180px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 180"><defs><style>.leaf{fill:%239aa574}.petal{fill:%23fdf8f3;stroke:%23e0d8cd;stroke-width:0.3}.center{fill:%23dba560}</style></defs><ellipse class="leaf" cx="100" cy="140" rx="30" ry="50" transform="rotate(30 100 140)"/><ellipse class="leaf" cx="40" cy="150" rx="25" ry="45" transform="rotate(-20 40 150)"/><circle class="petal" cx="70" cy="60" r="28"/><circle class="petal" cx="95" cy="50" r="25"/><circle class="petal" cx="105" cy="72" r="22"/><circle class="petal" cx="85" cy="88" r="20"/><circle class="petal" cx="58" cy="78" r="23"/><circle class="center" cx="78" cy="68" r="13"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.5;
}

.flower-6 {
    right: -50px;
    top: 55%;
    width: 160px;
    height: 180px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 130 160"><defs><style>.leaf{fill:%238a9468}.petal{fill:%23faf3ea;stroke:%23ddd5c8;stroke-width:0.3}.center{fill:%23d49a55}</style></defs><ellipse class="leaf" cx="30" cy="130" rx="25" ry="42" transform="rotate(-30 30 130)"/><ellipse class="leaf" cx="100" cy="125" rx="22" ry="38" transform="rotate(25 100 125)"/><circle class="petal" cx="55" cy="55" r="26"/><circle class="petal" cx="78" cy="45" r="23"/><circle class="petal" cx="88" cy="65" r="20"/><circle class="petal" cx="72" cy="80" r="19"/><circle class="petal" cx="48" cy="72" r="21"/><circle class="center" cx="67" cy="62" r="12"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.55;
}

/* 新增的花朵 */
.flower-7 {
    left: 15%;
    bottom: 10%;
    width: 120px;
    height: 140px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 120"><defs><style>.petal{fill:%23fce4d6;stroke:%23e8d4c4;stroke-width:0.3}.center{fill:%23e6a87c}.leaf{fill:%238fa46a}</style></defs><ellipse class="leaf" cx="25" cy="100" rx="15" ry="28" transform="rotate(-20 25 100)"/><ellipse class="leaf" cx="75" cy="95" rx="14" ry="25" transform="rotate(20 75 95)"/><circle class="petal" cx="40" cy="45" r="20"/><circle class="petal" cx="60" cy="40" r="18"/><circle class="petal" cx="68" cy="55" r="16"/><circle class="petal" cx="55" cy="68" r="15"/><circle class="petal" cx="38" cy="62" r="17"/><circle class="center" cx="50" cy="52" r="10"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.5;
}

.flower-8 {
    right: 12%;
    top: 15%;
    width: 100px;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 100"><defs><style>.petal{fill:%23f8e8dc;stroke:%23e0d0c0;stroke-width:0.2}.center{fill:%23d4946a}.leaf{fill:%2395a870}</style></defs><ellipse class="leaf" cx="20" cy="80" rx="12" ry="22" transform="rotate(-25 20 80)"/><ellipse class="leaf" cx="60" cy="78" rx="11" ry="20" transform="rotate(25 60 78)"/><circle class="petal" cx="32" cy="38" r="16"/><circle class="petal" cx="48" cy="34" r="14"/><circle class="petal" cx="54" cy="46" r="13"/><circle class="petal" cx="45" cy="56" r="12"/><circle class="petal" cx="30" cy="50" r="14"/><circle class="center" cx="40" cy="44" r="8"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.45;
}

/* 獨立的葉子裝飾 */
.leaf-1 {
    left: 8%;
    top: 25%;
    width: 80px;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 100"><defs><style>.leaf{fill:%238b9a65;stroke:%237a8a55;stroke-width:0.5}</style></defs><ellipse class="leaf" cx="30" cy="50" rx="18" ry="40" transform="rotate(-15 30 50)"/><path stroke="%236a7a45" stroke-width="1" fill="none" d="M30 15 Q28 50 32 85"/><path stroke="%236a7a45" stroke-width="0.5" fill="none" d="M30 30 Q20 35 15 40"/><path stroke="%236a7a45" stroke-width="0.5" fill="none" d="M30 45 Q40 48 48 52"/><path stroke="%236a7a45" stroke-width="0.5" fill="none" d="M30 60 Q22 65 18 70"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.4;
}

.leaf-2 {
    right: 5%;
    top: 38%;
    width: 70px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 80"><defs><style>.leaf{fill:%2395a570;stroke:%2385955f;stroke-width:0.4}</style></defs><ellipse class="leaf" cx="25" cy="40" rx="15" ry="32" transform="rotate(20 25 40)"/><path stroke="%2375854f" stroke-width="0.8" fill="none" d="M25 12 Q27 40 23 68"/><path stroke="%2375854f" stroke-width="0.4" fill="none" d="M25 25 Q35 30 40 35"/><path stroke="%2375854f" stroke-width="0.4" fill="none" d="M25 40 Q18 45 12 50"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.35;
}

.leaf-3 {
    left: 3%;
    bottom: 30%;
    width: 60px;
    height: 90px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 70"><defs><style>.leaf{fill:%238a9962;stroke:%237a8952;stroke-width:0.3}</style></defs><ellipse class="leaf" cx="22" cy="35" rx="12" ry="28" transform="rotate(-25 22 35)"/><path stroke="%236a7942" stroke-width="0.6" fill="none" d="M22 10 Q20 35 24 60"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.45;
}

.leaf-4 {
    right: 8%;
    bottom: 25%;
    width: 65px;
    height: 95px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 75"><defs><style>.leaf{fill:%2390a568;stroke:%2380955a;stroke-width:0.3}</style></defs><ellipse class="leaf" cx="24" cy="38" rx="14" ry="30" transform="rotate(18 24 38)"/><path stroke="%2370854a" stroke-width="0.6" fill="none" d="M24 10 Q26 38 22 65"/><path stroke="%2370854a" stroke-width="0.3" fill="none" d="M24 28 Q32 32 38 36"/><path stroke="%2370854a" stroke-width="0.3" fill="none" d="M24 45 Q18 50 12 55"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.4;
}

/* 主容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 統一標題樣式 */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #5c4033;
}

/* 頂部標題區 */
.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.title-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-icon {
    font-size: 28px;
}

.title-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: #5c4033;
    background: linear-gradient(135deg, #8b956d, #6b7a4f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.date-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #666;
}

.date-display {
    font-weight: 500;
    color: #5c4033;
    padding: 5px 12px;
    background: #f5ebe0;
    border-radius: 8px;
}

.goal-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 280px;
}

.fire-icon {
    font-size: 20px;
}

.goal-input {
    flex: 1;
    max-width: 180px;
    padding: 10px 15px;
    border: 2px solid #ddd5c8;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.goal-input:focus {
    outline: none;
    border-color: #8b956d;
    box-shadow: 0 0 10px rgba(139, 149, 109, 0.2);
}

.unit-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* 月份選擇按鈕 - 桌面版 */
.month-buttons {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

.month-btn {
    padding: 10px 18px;
    border: 2px solid #d4c4a8;
    border-radius: 20px;
    background: linear-gradient(145deg, #fff, #f8f0e5);
    color: #6b5a45;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.month-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #b8956d;
}

.month-btn.active {
    background: linear-gradient(145deg, #b8956d, #9a7a55);
    color: white;
    border-color: #8a6a45;
    box-shadow: 0 4px 15px rgba(154, 122, 85, 0.3);
}

/* 月份選擇 - 手機版下拉選單 */
.month-dropdown,
.week-dropdown {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

.dropdown-label {
    font-size: 16px;
    font-weight: 600;
    color: #5c4033;
    margin-right: 10px;
}

.month-select,
.week-select {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #b8956d;
    border-radius: 12px;
    background: linear-gradient(145deg, #fff, #f8f0e5);
    color: #5c4033;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%235c4033" d="M6 8L1 3h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    min-width: 150px;
}

.week-select {
    border-color: #8b956d;
    min-width: 200px;
}

.month-select:focus,
.week-select:focus {
    outline: none;
    border-color: #8b956d;
    box-shadow: 0 0 10px rgba(139, 149, 109, 0.3);
}

/* 週選擇按鈕 */
.week-buttons {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.week-btn {
    padding: 12px 24px;
    border: 2px solid #c9b99a;
    border-radius: 25px;
    background: linear-gradient(145deg, #fff, #f5ebe0);
    color: #5c4033;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.week-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    border-color: #8b956d;
}

.week-btn.active {
    background: linear-gradient(145deg, #8b956d, #6b7a4f);
    color: white;
    border-color: #6b7a4f;
    box-shadow: 0 4px 15px rgba(107, 122, 79, 0.3);
}

/* 週計劃格子區 */
.week-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .week-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .week-grid {
        grid-template-columns: 1fr;
    }
}

/* 日期方塊 */
.day-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #e8e0d5;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.day-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #c9b99a;
}

.day-card.memo-card {
    background: linear-gradient(145deg, rgba(255, 253, 245, 0.9), rgba(245, 235, 224, 0.9));
    border-color: #dda15e;
}

.day-header {
    font-size: 14px;
    font-weight: 600;
    color: #5c4033;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px dashed #e8e0d5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.day-header .date {
    color: #8b956d;
    font-size: 13px;
}

/* 任務輸入區 */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e8e0d5;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.task-input:focus {
    outline: none;
    border-color: #8b956d;
    background: white;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #8b956d;
    cursor: pointer;
}

/* 備忘錄區域 */
.memo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.memo-input {
    padding: 10px 12px;
    border: 1px solid #dda15e;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.memo-input:focus {
    outline: none;
    border-color: #bc6c25;
    background: white;
}

/* 底部區域布局 */
.bottom-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

@media (max-width: 1200px) {
    .bottom-section {
        flex-direction: column;
    }
}

/* 月度打卡表格 */
.monthly-tracker {
    flex: 1;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.tracker-header {
    margin-bottom: 20px;
}

.tracker-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tracker-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.tracker-icon {
    font-size: 24px;
}

.month-display {
    font-size: 14px;
    color: #8b956d;
    background: #f5ebe0;
    padding: 5px 12px;
    border-radius: 8px;
    margin-left: 10px;
}

.month-goal-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-note-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.month-goal-input {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid #dda15e;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.month-goal-input:focus {
    outline: none;
    border-color: #bc6c25;
}

.month-note-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 2px solid #8b956d;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
}

.month-note-input:focus {
    outline: none;
    border-color: #6b7a4f;
}

/* 桌面版表格 */
.tracker-table {
    overflow-x: auto;
}

.tracker-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.tracker-table th,
.tracker-table td {
    border: 1px solid #e8e0d5;
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
}

.tracker-table th {
    background: linear-gradient(145deg, #8b956d, #a4b085);
    color: white;
    font-weight: 500;
}

.tracker-table th:first-child {
    width: 100px;
    background: linear-gradient(145deg, #6b7a4f, #8b956d);
}

.tracker-table td:first-child {
    background: #f5ebe0;
    font-weight: 500;
    color: #5c4033;
}

.tracker-table tr.diff-row td {
    background: #fff8f0;
    color: #888;
    font-weight: 600;
}

.tracker-table tr.diff-row td.positive {
    color: #d9534f;
}

.tracker-table tr.diff-row td.negative {
    color: #5cb85c;
}

.tracker-table input[type="text"] {
    width: 100%;
    padding: 5px 3px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 11px;
    font-family: inherit;
}

.tracker-table input[type="text"]:focus {
    outline: none;
    background: rgba(139, 149, 109, 0.1);
}

.day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    font-size: 11px;
    font-weight: 600;
}

.tracker-table th .day-number {
    color: white;
}

/* 手機版追蹤器 - 日期選擇器 */
.tracker-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-date-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(145deg, #8b956d, #a4b085);
    border-radius: 12px;
    color: white;
}

.mobile-date-selector label {
    font-weight: 600;
    font-size: 14px;
}

.mobile-date-select {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #5c4033;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

/* 手機版數據卡片 */
.mobile-data-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-data-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(145deg, #f8f5f0, #f0ebe5);
    border-radius: 12px;
    border-left: 4px solid #8b956d;
}

.mobile-data-card.diff-card {
    border-left-color: #dda15e;
    background: linear-gradient(145deg, #fff8f0, #f8f0e5);
}

.mobile-data-label {
    font-size: 14px;
    font-weight: 600;
    color: #5c4033;
    min-width: 80px;
}

.mobile-data-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e8e0d5;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: white;
    text-align: center;
}

.mobile-data-input:focus {
    outline: none;
    border-color: #8b956d;
}

.mobile-data-value {
    font-size: 16px;
    font-weight: 700;
    color: #5c4033;
    min-width: 60px;
    text-align: center;
}

.mobile-data-value.positive {
    color: #d9534f;
}

.mobile-data-value.negative {
    color: #5cb85c;
}

/* 統計面板 */
.stats-panel {
    width: 320px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stats-icon {
    font-size: 24px;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(145deg, #f8f5f0, #f0ebe5);
    border-radius: 10px;
    border-left: 4px solid #8b956d;
}

.stat-item.highlight {
    border-left-color: #dda15e;
    background: linear-gradient(145deg, #fff8f0, #f8f0e5);
}

.stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #5c4033;
}

.stat-value.positive {
    color: #d9534f;
}

.stat-value.negative {
    color: #5cb85c;
}

.stat-comparison {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #e8e0d5;
}

.stat-comparison-title {
    font-size: 14px;
    font-weight: 600;
    color: #5c4033;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.no-data {
    font-size: 13px;
    color: #999;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* 手機版響應式調整 */
/* 手機版響應式調整 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        flex-direction: column;
        align-items: stretch;
        /* 改為 stretch 讓子元素填滿寬度 */
        padding: 15px;
        gap: 15px;
    }

    .title-section,
    .date-section,
    .goal-section {
        width: 100%;
    }

    .title-section h1 {
        font-size: 24px;
    }

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

    .goal-section {
        flex-wrap: wrap;
        width: 100%;
        min-width: 0;
        /* 防止溢出 */
    }

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

    .goal-input {
        width: 100%;
        max-width: none;
        flex: 1;
        min-width: 0;
        /* 防止溢出 */
    }

    /* 下拉選單優化 */
    .month-select,
    .week-select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .flower-decoration {
        opacity: 0.2;
        /* 降低手機版裝飾透明度 */
    }

    .stats-panel {
        width: 100%;
    }

    /* 底部選項區域優化 */
    .tracker-options-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .month-goal-section,
    .month-note-section {
        width: 100%;
        flex-wrap: wrap;
    }

    .month-goal-input,
    .month-note-input {
        flex: 1;
        min-width: 0;
        /* 防止溢出 */
        width: 100%;
    }

    .monthly-tracker {
        padding: 15px;
        width: 100%;
        overflow: hidden;
        /* 防止容器溢出 */
    }

    .tracker-mobile {
        width: 100%;
    }

    .mobile-data-card {
        width: 100%;
    }

    .mobile-data-input {
        width: 100%;
        min-width: 0;
    }
}
