:root {
            --primary-color: #3498db;
            --secondary-color: #e74c3c;
            --today-color: #f1c40f;
            --holiday-cn: rgba(231, 76, 60, 0.3);
            --holiday-mo: rgba(46, 204, 113, 0.3);
            --border-color: #ddd;
            --header-bg: #2c3e50;
            --text-light: #fff;
            --text-dark: #333;
            --shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            background-color: #f5f7fa;
            padding: 20px;
        }
        

	a:link, a:visited {
        color: white;
	}

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }
        
        header {
            background: var(--header-bg);
            color: var(--text-light);
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 30px;
            box-shadow: var(--shadow);
            text-align: center;
        }
        
        h1 {
            margin-bottom: 15px;
            font-size: 2.2rem;
        }
        
        .controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .year-selector {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .year-selector label {
            font-weight: bold;
        }
        
        select {
            padding: 10px 15px;
            border: 2px solid var(--primary-color);
            border-radius: 5px;
            background-color: white;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        select:hover {
            background-color: #f8f9fa;
        }
        
        .legend {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 15px;
            flex-wrap: wrap;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.9rem;
        }
        
        .legend-color {
            width: 20px;
            height: 20px;
            border-radius: 3px;
        }
        
        .legend-cn {
            background-color: var(--holiday-cn);
        }
        
        .legend-mo {
            background-color: var(--holiday-mo);
        }
        
        .legend-today {
            background-color: var(--today-color);
        }
        
        .calendar-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }
        
        .month-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
        }
        
        .month-card:hover {
            transform: translateY(-5px);
        }
        
        .month-header {
            background: var(--primary-color);
            color: white;
            padding: 12px;
            text-align: center;
            font-size: 1.3rem;
            font-weight: bold;
        }
        
        .calendar {
            width: 100%;
            border-collapse: collapse;
        }
        
        .calendar th {
            background-color: #f8f9fa;
            padding: 10px 0;
            text-align: center;
            font-weight: 600;
            color: #555;
            border-bottom: 2px solid var(--border-color);
        }
        
        .calendar td {
            width: 14.28%;
            height: 40px;
            text-align: center;
            vertical-align: middle;
            position: relative;
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .calendar td:hover {
            background-color: #f0f7ff;
        }
        
        .today {
            background-color: var(--today-color);
            font-weight: bold;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
        }
        
        .holiday-cn {
            background-color: var(--holiday-cn);
        }
        
        .holiday-mo {
            background-color: var(--holiday-mo);
        }
        
        .holiday-both {
            background: linear-gradient(135deg, var(--holiday-cn) 50%, var(--holiday-mo) 50%);
        }
        
        .day-note {
            position: absolute;
            bottom: 2px;
            left: 0;
            right: 0;
            /* font-size: 0.65rem; */
            font-size: 1rem;
            color: #d35400;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 0 2px;
        }
        
        .note-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background: white;
            padding: 25px;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .close-modal {
            font-size: 1.8rem;
            cursor: pointer;
            color: #777;
        }
        
        .close-modal:hover {
            color: var(--text-dark);
        }
        
        .note-form label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }
        
        .note-form textarea {
            width: 100%;
            height: 120px;
            padding: 12px;
            border: 2px solid var(--border-color);
            border-radius: 5px;
            resize: vertical;
            font-family: inherit;
            margin-bottom: 20px;
        }
        
        .note-form button {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1rem;
            transition: background 0.3s;
        }
        
        .note-form button:hover {
            background: #2980b9;
        }
        
        @media (max-width: 768px) {
            .calendar-container {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 15px;
            }
            
            h1 {
                font-size: 1.8rem;
            }
            
            .controls {
                flex-direction: column;
            }
        }