* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Noto Sans TC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #1a2a6c, #2c3e50, #3498db);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            color: #333;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            background: rgba(255, 255, 255, 0.97);
            border-radius: 20px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            animation: fadeIn 0.8s ease-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        header {
            background: linear-gradient(to right, #2c3e50, #1a2a6c);
            color: white;
            text-align: center;
            padding: 30px;
            position: relative;
        }
        
        h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }
        
        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        .calculator-container {
            display: flex;
            flex-wrap: wrap;
            padding: 30px;
            gap: 30px;
        }
        
        .input-section {
            flex: 1;
            min-width: 320px;
            padding: 25px;
            background: #f8f9fa;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }
        
        .result-section {
            flex: 1.5;
            min-width: 320px;
            display: flex;
            flex-direction: column;
        }
        
        .form-group {
            margin-bottom: 28px;
        }
        
        label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: #2c3e50;
            font-size: 1.1rem;
        }
        
        .input-container {
            position: relative;
        }
        
        input[type="date"] {
            width: 100%;
            padding: 16px 16px 16px 50px;
            border: 2px solid #ddd;
            border-radius: 12px;
            font-size: 1.1rem;
            transition: all 0.3s;
            background: white;
        }
        
        input[type="date"]:focus {
            border-color: #3498db;
            outline: none;
            box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
        }
        
        .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #3498db;
            font-size: 1.3rem;
        }
        
        .btn-calculate {
            background: linear-gradient(to right, #3498db, #1a5276);
            color: white;
            border: none;
            padding: 18px;
            font-size: 1.2rem;
            border-radius: 12px;
            cursor: pointer;
            width: 100%;
            transition: all 0.3s;
            font-weight: 600;
            letter-spacing: 1px;
            box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
            margin-top: 10px;
        }
        
        .btn-calculate:hover {
            background: linear-gradient(to right, #2980b9, #154360);
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
        }
        
        .btn-calculate:active {
            transform: translateY(0);
        }
        
        .info-box {
            background: #e3f2fd;
            border-radius: 12px;
            padding: 20px;
            margin-top: 25px;
            border-left: 4px solid #3498db;
        }
        
        .info-box h3 {
            color: #2c3e50;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .info-box ul {
            padding-left: 25px;
        }
        
        .info-box li {
            margin-bottom: 8px;
            line-height: 1.5;
        }
        
        .result-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            margin-bottom: 30px;
            border: 1px solid #eee;
        }
        
        .result-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f1f1f1;
        }
        
        .result-title {
            font-size: 1.8rem;
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .total-days {
            background: #2c3e50;
            color: white;
            padding: 8px 20px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 1.2rem;
        }
        
        .year-results {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .year-card {
            background: #f9f9f9;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s;
            border: 1px solid #eee;
        }
        
        .year-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .year-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .year-days {
            font-size: 2.8rem;
            font-weight: 800;
            text-align: center;
            margin: 15px 0;
            color: #2c3e50;
        }
        
        .year-status {
            text-align: center;
            padding: 12px;
            border-radius: 8px;
            font-size: 1.3rem;
            font-weight: 700;
            margin-top: 10px;
        }
        
        .meets {
            background: rgba(46, 204, 113, 0.15);
            color: #27ae60;
            border: 2px solid #27ae60;
        }
        
        .not-meet {
            background: rgba(231, 76, 60, 0.15);
            color: #c0392b;
            border: 2px solid #c0392b;
        }
        
        .year-details {
            margin-top: 15px;
            font-size: 0.95rem;
            color: #555;
            line-height: 1.6;
        }
        
        .history-section {
            padding: 30px;
            background: #f8f9fa;
            border-top: 1px solid #eee;
        }
        
        .section-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            color: #2c3e50;
        }
        
        .btn-clear {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
        }
        
        .btn-clear:hover {
            background: #c0392b;
            transform: translateY(-2px);
            box-shadow: 0 5px 12px rgba(231, 76, 60, 0.4);
        }
        
        .history-list {
            max-height: 400px;
            overflow-y: auto;
            padding-right: 10px;
        }
        
        .history-item {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            animation: fadeIn 0.5s;
            border: 1px solid #eee;
        }
        
        .history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #f1f1f1;
        }
        
        .history-dates {
            font-size: 1.1rem;
            font-weight: 500;
            color: #2c3e50;
        }
        
        .history-total {
            font-weight: 700;
            font-size: 1.3rem;
            background: #3498db;
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
        }
        
        .history-years {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 15px;
        }
        
        .history-year {
            background: #f1f1f1;
            padding: 10px 15px;
            border-radius: 8px;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 150px;
        }
        
        .history-year .year {
            font-weight: 700;
            color: #2c3e50;
        }
        
        .history-year .days {
            font-weight: 700;
            margin-left: auto;
        }
        
        .history-year .status {
            padding: 3px 10px;
            border-radius: 15px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        
        .empty-history {
            text-align: center;
            padding: 40px;
            color: #95a5a6;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }
        
        .empty-history i {
            font-size: 4rem;
            margin-bottom: 20px;
            opacity: 0.2;
        }
        
        .empty-history p {
            font-size: 1.2rem;
        }
        
        .timezone-info {
            background: #fff8e1;
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
            font-size: 0.9rem;
            color: #5d4037;
            border-left: 4px solid #ffa000;
        }
        
        .fix-note {
            background: #e8f5e9;
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
            font-size: 0.9rem;
            color: #2e7d32;
            border-left: 4px solid #4caf50;
        }
        
        .test-success {
            background: #e8f5e9;
            border-radius: 8px;
            padding: 15px;
            margin-top: 10px;
            display: flex;
            align-items: center;
            color: #2e7d32;
        }
        
        .test-success i {
            margin-right: 10px;
            font-size: 1.5rem;
        }
        
        .debug-info {
            background: #f5f5f5;
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
            font-size: 0.9rem;
            color: #555;
            border-left: 4px solid #9e9e9e;
        }
        
        /* 新增的查詢紀錄合計樣式 */
        .history-summary {
            background: #2c3e50;
            color: white;
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            font-weight: 600;
        }
        
        .history-summary i {
            font-size: 1.5rem;
            margin-right: 10px;
        }
        
        .history-summary .total {
            font-size: 1.8rem;
            font-weight: 700;
        }
        
        @media (max-width: 900px) {
            .calculator-container {
                flex-direction: column;
            }
            
            .input-section {
                width: 100%;
            }
            
            .year-results {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
        }
        
        @media (max-width: 600px) {
            header {
                padding: 20px 15px;
            }
            
            h1 {
                font-size: 2.2rem;
            }
            
            .subtitle {
                font-size: 1rem;
            }
            
            .calculator-container {
                padding: 20px;
            }
            
            .year-results {
                grid-template-columns: 1fr;
            }
            
            .history-year {
                min-width: 100%;
            }
            
            .history-summary {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }
        }