        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

        html {
            scrollbar-gutter: stable;
        }

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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #fff;
            color: #000;
            min-height: 100vh;
            font-size: 15px;
            line-height: 1.6;
            overflow-x: hidden;
            font-weight: 100;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            min-height: 100vh;
        }

        .top-nav-container {
            background: #fff;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .header {
            padding: 0 60px;
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 40px;
        }

        .header-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
        }

        .header-left {
            align-items: flex-start;
            max-width: 300px;
        }

        .header-center {
            align-items: center;
        }

        .header-right {
            align-items: flex-end;
        }

        .header-title {
            font-size: 16px;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: #2b2b89;
            line-height: 1.2;
        }

        .header-subtitle {
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #2b2b89;
            margin-top: 4px;
        }

        .header-label {
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            color: rgba(0, 0, 0, 0.4);
            margin-bottom: 4px;
        }

        .header-info {
            font-size: 14px;
            font-weight: 600;
            color: rgba(0, 0, 0, 0.8);
        }

        .header-user-logout {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
        }

        .logout-btn {
            background: transparent;
            border: 1px solid rgba(0, 0, 0, 0.2);
            color: #000;
            padding: 6px 16px;
            cursor: pointer;
            font-size: 11px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Inter', sans-serif;
        }

        .logout-btn:hover {
            background: #000;
            color: #fff;
            border-color: #000;
        }

        .login-container {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 40px;
        }

        .login-box {
            max-width: 440px;
            width: 100%;
        }

        .login-title {
            font-size: 30px;
            font-weight: bold;
            letter-spacing: 20px;
            color: #2b2b89;
            margin-bottom: 60px;
            text-align: center;
        }

        .form-group {
            margin-bottom: 30px;
        }

        .form-group label {
            display: block;
            margin-bottom: 12px;
            font-size: 12px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(0, 0, 0, 0.5);
            font-weight: 500;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 8px 0;
            border: none;
            border-bottom: 1px solid rgba(0, 0, 0, 0.2);
            background: transparent;
            color: #000;
            font-size: 16px;
            border-radius: 0px;
            font-family: 'Inter', sans-serif;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-bottom-color: #000;
        }

        .form-group textarea {
            resize: vertical;
        }

        .btn-primary {
            width: 100%;
            background: #000;
            color: #fff;
            border: none;
            padding: 18px;
            cursor: pointer;
            font-size: 12px;
            letter-spacing: 2px;
            text-transform: uppercase;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Inter', sans-serif;
            margin-top: 40px;
        }

        .btn-primary:hover {
            background: rgba(0, 0, 0, 0.85);
            transform: translateY(-2px);
        }

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .btn-secondary {
            background: transparent;
            border: 1px solid rgba(0, 0, 0, 0.2);
            color: #000;
            padding: 12px 30px;
            cursor: pointer;
            font-size: 12px;
            letter-spacing: 1px;
            text-transform: uppercase;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Inter', sans-serif;
        }

        .btn-secondary:hover {
            background: #000;
            color: #fff;
        }

        .nav-tabs {
            display: flex;
            padding: 0 60px 20px;
            gap: 20px;
            justify-content: center;
        }

        .nav-tab {
            padding: 10px 30px;
            background: #000;
            border-radius: 20px;
            border: none;
            color: rgba(255, 255, 255, 1);
            cursor: pointer;
            font-size: 13px;
            letter-spacing: 1px;
            text-transform: uppercase;
            font-family: 'Inter', sans-serif;
            position: relative;
            transition: color 0.3s;
            white-space: nowrap;
        }

        .nav-tab.active {
            background-color: #2b2b89;
        }

        .content {
            padding: 180px 60px 0;
            padding-bottom: 0;
        }

        .tab-content {
            display: none;
            justify-content: center;
        }

        .tab-content.active {
            display: flex;

        }

        #recordTab.tab-content.active {
            width: 100%;
            display: block;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }

        #adminTab.tab-content.active {
            display: block;
            padding: 20px;
        }

        .clock-in-box {
            text-align: center;
            padding: 40px;
            margin-bottom: 40px;
            width: 600px;
            display: flex;
            justify-content: center;
            flex-direction: column;
            align-items: center;
        }

        .clock-time {
            font-size: 120px;
            font-weight: 200;
            margin-bottom: 60px;
            letter-spacing: -3px;
            width: 100%;
        }

        .clock-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            margin-bottom: 40px;
            flex-wrap: wrap;
            width: 100%;
        }

        .clock-btn {
            background: #000;
            color: #fff;
            padding: 20px 60px;
            border: none;
            font-size: 20px;
            letter-spacing: 2px;
            border-radius: 200px;
            text-transform: uppercase;
            cursor: pointer;
            font-weight: 100;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Inter', sans-serif;
        }

        #clockOutBtn {
            background: none;
            color: #000;
            border: 1px solid #000;
        }

        .clock-btn:hover:not(:disabled) {
            background: #000;
            color: #fff;
            border-color: #000;
        }

        .clock-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .location-status {
            font-size: 18px;
            letter-spacing: 1px;
            font-weight: bold;
        }

        .datetime-input-wrapper {
            cursor: pointer;
            position: relative;
        }

        .datetime-input-wrapper input {
            cursor: pointer;
        }

        .location-ok {
            color: #2b2b89;
        }

        .location-error {
            color: #dc2626;
        }

        .section-title {
            font-size: 28px;
            font-weight: 300;
            letter-spacing: -0.5px;
        }

        .table-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin-bottom: 40px;
        }

        .records-table {
            width: 100%;
            min-width: 600px;
            border-collapse: collapse;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .records-table th {
            background: rgba(0, 0, 0, 0.05);
            padding: 10px 20px;
            text-align: left;
            font-size: 11px;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            font-weight: 600;
            color: rgba(0, 0, 0, 0.6);
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        .records-table td {
            padding: 5px 20px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            font-size: 14px;
        }

        .records-table tr:hover {
            background: rgba(0, 0, 0, 0.02);
        }

        .status-badge {
            padding: 6px 16px;
            font-size: 11px;
            letter-spacing: 1px;
            text-transform: uppercase;
            font-weight: 600;
            display: inline-block;
        }

        .status-pending {
            background: rgba(251, 191, 36, 0.2);
            color: #d97706;
            border: 1px solid rgba(251, 191, 36, 0.3);
        }

        .status-approved {
            background: rgba(34, 197, 94, 0.2);
            color: #16a34a;
            border: 1px solid rgba(34, 197, 94, 0.3);
        }

        .status-rejected {
            background: rgba(239, 68, 68, 0.2);
            color: #dc2626;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        .stats-grid {
            display: flex;
            gap: 1px;
            background: rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.1);
            margin-bottom: 80px;
        }

        .stat-card {
            background: #fff;
            padding: 20px 0px;
            position: relative;
            flex: 1;
            text-align: center;
        }

        .stat-card h3 {
            font-size: 11px;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            font-weight: 600;
            margin-bottom: 20px;
            color: rgba(0, 0, 0, 0.5);
        }

        .stat-card .stat-value {
            font-size: 64px;
            font-weight: 200;
            letter-spacing: -2px;
        }

        .action-btn {
            padding: 10px 24px;
            border: 1px solid;
            cursor: pointer;
            font-size: 11px;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-right: 8px;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Inter', sans-serif;
            background: transparent;
        }

        .btn-approve {
            border-color: rgba(34, 197, 94, 0.3);
            color: #16a34a;
        }

        .btn-approve:hover {
            background: #16a34a;
            color: #fff;
        }

        .btn-reject {
            border-color: rgba(239, 68, 68, 0.3);
            color: #dc2626;
        }

        .btn-reject:hover {
            background: #dc2626;
            color: #fff;
        }

        .btn-view {
            border-color: rgba(0, 0, 0, 0.2);
            color: #000;
            text-decoration: none;
            display: inline-block;
            padding: 6px 16px;
            font-size: 11px;
        }

        .btn-view:hover {
            background: #000;
            color: #fff;
        }

        .form-section {
            width: 100%;
            max-width: 800px;
            margin-bottom: 80px;
            padding: 20px;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        #settingsSection {
            max-width: none;
            display: flex;
            gap: 5%;
            align-items: center;
            justify-content: space-between;
        }

        #settingsSection .form-group {
            flex: 1;
            margin: 0;
        }

        #settingsSection .btn-primary {
            width: 100px;
            margin: 0;
            padding: 10px 5px;
        }

        .file-upload {
            border: 2px dashed rgba(0, 0, 0, 0.2);
            padding: 40px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 10px;
        }

        .file-upload:hover {
            border-color: rgba(0, 0, 0, 0.4);
            background: rgba(0, 0, 0, 0.02);
        }

        .file-upload input {
            display: none;
        }

        .file-upload p {
            color: rgba(0, 0, 0, 0.6);
        }

        .file-preview {
            max-width: 200px;
            margin-top: 20px;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .helper-text {
            font-size: 12px;
            color: rgba(0, 0, 0, 0.4);
            margin-top: 20px;
            text-align: center;
        }

        .loading {
            text-align: center;
            padding: 100px;
            font-size: 14px;
            color: rgba(0, 0, 0, 0.4);
        }

        .filter-section {
            display: flex;
            gap: 20px;
            margin-bottom: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .filter-section select {
            padding: 10px 15px;
            border: 1px solid rgba(0, 0, 0, 0.2);
            background: #fff;
            font-family: 'Inter', sans-serif;
            font-size: 13px;
        }

        .hidden {
            display: none !important;
        }

        /* 值日生樣式 */
        .duty-badge {
            background: #ffecb3;
            color: #f57c00;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: bold;
            margin-right: 15px;
            border: 1px solid #ffe082;
        }

        .duty-tag-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
            padding: 10px;
            background: #f9f9f9;
            border-radius: 8px;
            min-height: 50px;
        }

        .user-tag {
            background: #fff;
            border: 1px solid #ddd;
            padding: 5px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
            position: relative;
            /* 新增：讓數字標籤可以對齊 */
        }

        .user-tag.active {
            background: #000;
            color: #fff;
            border-color: #000;
        }

        /* 新增：右上角排序數字樣式 */
        .user-tag.active::after {
            content: attr(data-rank);
            position: absolute;
            top: -8px;
            right: -8px;
            background: #2b2b89;
            color: #fff;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: bold;
            border: 2px solid #fff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .sub-tabs {
            display: flex;
            gap: 10px;
        }

        .sub-tab {
            padding: 8px 16px;
            background: #f0f0f0;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
        }

        .sub-tab.active {
            background: #2b2b89;
            color: #fff;
            border-color: #2b2b89;
        }

        /* 管理者總結區塊 */
        .admin-summary-box {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
            background: #f8f9fa;
            padding: 25px;
            border-radius: 12px;
            border: 1px solid #eee;
        }

        .summary-item {
            text-align: center;
        }

        .summary-label {
            font-size: 12px;
            color: #666;
            margin-bottom: 8px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .summary-value {
            font-size: 24px;
            font-weight: 300;
            color: #000;
        }

        .summary-value.warning {
            color: #dc2626;
            font-weight: 500;
        }

        /* Modal 彈窗樣式 */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modal.hidden {
            display: none;
        }

        .modal-content {
            background: #fff;
            width: 90%;
            max-width: 800px;
            max-height: 85vh;
            border-radius: 12px;
            padding: 30px;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .close-btn {
            position: absolute;
            right: 20px;
            top: 20px;
            font-size: 24px;
            cursor: pointer;
            color: #666;
        }

        .close-btn:hover {
            color: #000;
        }

        .clickable-name {
            color: #007aff;
            cursor: pointer;
            text-decoration: underline;
        }

        .clickable-name:hover {
            color: #0056b3;
        }

        /* 假別按鈕 */
        .leave-type-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .leave-type-btn {
            padding: 12px 24px;
            border: 1px solid rgba(0, 0, 0, 0.2);
            background: transparent;
            color: #000;
            cursor: pointer;
            font-size: 14px;
            border-radius: 20px;
            font-weight: 500;
            font-family: 'Inter', sans-serif;
            transition: all 0.3s;
        }

        .leave-type-btn:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        .leave-type-btn.active {
            background: #000;
            color: #fff;
            border-color: #000;
        }

        /* 自定義日期時間選擇器 */
        .custom-datetime-picker {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .datetime-date {
            flex: 2;
            padding: 12px;
            border: 1px solid rgba(0, 0, 0, 0.2);
            font-size: 14px;
            font-family: 'Inter', sans-serif;
        }

        .datetime-time {
            flex: 1;
            padding: 12px;
            border: 1px solid rgba(0, 0, 0, 0.2);
            font-size: 14px;
            font-family: 'Inter', sans-serif;
            background: #fff;
        }

        /* 記錄列表 */
        .record-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .record-item {
            border: 1px solid rgba(0, 0, 0, 0.1);
            margin-bottom: 10px;
        }

        .record-summary {
            padding: 20px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.2s;
        }

        .record-summary:hover {
            background: rgba(0, 0, 0, 0.02);
        }

        .record-info {
            display: flex;
            gap: 15px;
            align-items: center;
            flex-wrap: wrap;
        }

        .record-date {
            font-weight: 600;
            font-size: 15px;
        }

        .record-type {
            font-size: 14px;
            font-weight: 500;
        }

        .record-brief {
            font-size: 13px;
            color: rgba(0, 0, 0, 0.6);
        }

        .toggle-icon {
            font-size: 12px;
            color: rgba(0, 0, 0, 0.4);
            transition: transform 0.3s;
        }

        .record-details {
            padding: 0 20px 20px;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            background: rgba(0, 0, 0, 0.01);
        }

        .record-details.hidden {
            display: none;
        }

        .record-details p {
            margin: 10px 0;
            font-size: 14px;
            line-height: 1.6;
        }

        .record-details strong {
            font-weight: 600;
            margin-right: 8px;
        }

        .no-data {
            padding: 40px;
            text-align: center;
            color: rgba(0, 0, 0, 0.4);
            font-size: 14px;
        }

        .status-normal {
            color: #16a34a;
            font-size: 13px;
        }

        .status-late {
            color: #dc2626;
            font-size: 13px;
        }

        /* 假別按鈕樣式 */
        .leave-type-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .leave-type-btn {
            padding: 10px 20px;
            border: 1px solid #e0e0e0;
            background: white;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }

        .leave-type-btn:hover {
            border-color: #000;
        }

        .leave-type-btn.active {
            background: #000;
            color: white;
            border-color: #000;
        }

        /* 記錄列表樣式 */
        .record-list {
            list-style: none;
            padding: 0;
            margin: 0 0 40px 0;
        }

        .record-item {
            border: 1px solid #e0e0e0;
            margin-bottom: 10px;
            overflow: hidden;
        }

        .record-header {
            padding: 5px 20px;
            background: #f5f5f5;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.3s;
        }

        .record-header:hover {
            background: #eeeeee;
        }

        .record-header-left {
            display: flex;
            gap: 15px;
            align-items: center;
            flex: 1;
        }

        .record-type {
            font-weight: 600;
            color: #333;
        }

        .record-date {
            color: #666;
            font-size: 14px;
        }

        .record-toggle {
            font-size: 18px;
            transition: transform 0.3s;
        }

        .record-item.expanded .record-toggle {
            transform: rotate(45deg);
        }

        .record-details {
            display: none;
            padding: 5px 20px;
            background: white;
            border-top: 1px solid #e0e0e0;
            gap: 40px;
        }

        .record-item.expanded .record-details {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
        }

        .record-detail-row {
            display: flex;
            padding: 8px 0px;
            gap: 20px;
        }

        .record-detail-row:last-child {
            border-bottom: none;
        }

        .record-detail-value {
            flex: 1;
            color: #333;
        }

        #leaveRecordsList .record-detail-row:first-child {
            flex: 100%;
        }

        img.icon-openclose {
            width: 24px;
        }

        /* 自定義日期時間選擇器樣式 */
        .custom-datetime-picker {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .datetime-date,
        .datetime-time {
            padding: 12px;
            border: none;
            border-bottom: 1px solid rgba(0, 0, 0, 0.2);
            background: transparent;
            font-size: 14px;
            font-family: 'Inter', sans-serif;
            transition: border-color 0.3s;
        }

        .datetime-date {
            flex: 2;
        }

        .datetime-time {
            flex: 1;
        }

        .datetime-date:focus,
        .datetime-time:focus {
            outline: none;
            border-bottom-color: #000;
        }

        /* 年月篩選器樣式 */
        input[type="month"] {
            padding: 10px 15px;
            border: 1px solid rgba(0, 0, 0, 0.2);
            background: #fff;
            font-family: 'Inter', sans-serif;
            font-size: 13px;
        }

        input[type="month"]:focus {
            outline: none;
            border-color: #000;
        }

        /* 手機版調整 */
        @media (max-width: 768px) {
            .container {
                min-height: none;
            }

            .clock-in-box {
                width: 100%;
                padding: 0;
            }

            .custom-datetime-picker {
                flex-direction: column;
                align-items: stretch;
            }

            .datetime-date,
            .datetime-time {
                width: 100%;
            }

            .record-info {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .header {
                padding: 15px 20px;
                height: auto;
                gap: 20px;
            }

            .header-section {
                flex: 1;
            }

            .header-title {
                font-size: 14px;
            }

            .header-subtitle {
                font-size: 12px;
                margin-top: 2px;
            }

            .header-label {
                font-size: 10px;
            }

            .header-info {
                font-size: 13px;
            }

            .logout-btn {
                padding: 5px 12px;
                font-size: 10px;
            }

            .nav-tabs {
                padding: 15px 20px 0;
                gap: 8px;
                flex-wrap: wrap;
            }

            .content {
                padding: 30px;
                padding-bottom: 0;
            }

            .clock-time {
                font-size: 72px;
                margin-bottom: 30px;
            }

            .clock-buttons {
                flex-direction: column;
                width: 100%;
            }

            .clock-btn {
                width: 100%;
            }

            .stats-grid {
                margin-bottom: 40px;
            }

            .stat-card .stat-value {
                font-size: 30px;
            }

            #settingsSection {
                flex-direction: column;
            }

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

            .records-table {
                min-width: 800px;
            }

            .action-btn {
                display: block;
                width: 100%;
                margin-bottom: 8px;
                margin-right: 0;
            }

            .record-details {
                gap: 0px
            }

            .record-detail-row {
                padding: 0;
            }

            .nav-tab {
                padding: 8px 20px;
            }
        }

        /* 自定義日期時間選擇器樣式 */
        .custom-datetime-picker {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .datetime-date,
        .datetime-time {
            padding: 12px;
            border: none;
            border-bottom: 1px solid rgba(0, 0, 0, 0.2);
            background: transparent;
            font-size: 14px;
            font-family: 'Inter', sans-serif;
            transition: border-color 0.3s;
        }

        .datetime-date {
            flex: 2;
        }

        .datetime-time {
            flex: 1;
        }

        .datetime-date:focus,
        .datetime-time:focus {
            outline: none;
            border-bottom-color: #000;
        }

        /* 年月篩選器樣式 */
        input[type="month"] {
            padding: 10px 15px;
            border: 1px solid rgba(0, 0, 0, 0.2);
            background: #fff;
            font-family: 'Inter', sans-serif;
            font-size: 13px;
            cursor: pointer;
            min-width: 150px;
        }

        input[type="month"]:focus {
            outline: none;
            border-color: #000;
        }

        /* 超小屏幕 (360px-480px) 調整 */
        @media (max-width: 480px) {
            .top-nav-container {
                position: relative;
            }

            .header {
                padding: 12px 16px;
                height: auto;
                gap: 12px;
            }

            .header-section {
                flex: 1;
            }

            .header-left {
                align-items: flex-start;
            }

            .header-center {
                align-items: center;
                text-align: right;
                line-height: 1;
            }

            .header-right {
                align-items: flex-end;
                text-align: right;
            }

            .header-title {
                font-size: 13px;
                letter-spacing: 1px;
            }

            .header-subtitle {
                font-size: 11px;
                margin-top: 2px;
            }

            .header-label {
                font-size: 9px;
                margin-bottom: 3px;
            }

            .header-info {
                font-size: 12px;
            }

            #dutyInfo {
                padding: 3px 10px;
                color: #2b2b89;
                border-radius: 20px;
                text-align: right;
            }

            .logout-btn {
                padding: 4px 10px;
                font-size: 9px;
                white-space: nowrap;
            }

            .header-user-logout {
                gap: 4px;
            }

            .nav-tabs {
                padding: 10px 16px;
                gap: 6px;
                overflow-x: auto;
                white-space: nowrap;
                justify-content: space-between;
            }

            .nav-tab {
                padding: 6px 12px;
                font-size: 14px;
                flex-shrink: 0;
                flex: 1;
            }

            .content {
                padding: 20px 16px;
                padding-bottom: 0;
            }
        }