    :root {
        /* 莫蘭迪色系 */
        --primary: #88a0a8;    /* 灰藍色 */
        --secondary: #a8b8a0;  /* 灰綠色 */
        --accent: #d8caaf;     /* 米棕色 */
        --light: #f5f3f0;      /* 淺米色 */
        --light-gray: #e8e6e1; /* 淺灰色 */
        --dark: #6b6b6b;       /* 中灰色 */
        --text: #5a5a5a;       /* 文字灰色 */
        --white: #ffffff;
        --success: #a8c3a0;    /* 柔和的綠色 */
        --warning: #d8b88f;    /* 柔和的橙色 */
        --danger: #c8a8a8;     /* 柔和的紅色 */
        --spacing-sm: 8px;
        --spacing-md: 16px;
        --spacing-lg: 24px;
    }
    .current-user {
        text-align: right;
        margin-bottom: 15px;
        font-size: 16px;
        color: var(--dark);
        padding: 8px 12px;
        background: rgba(136, 160, 168, 0.1);
        border-radius: 6px;
        line-height: 1.1; /* 縮小行距 */
    }
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Microsoft JhengHei', 'Helvetica Neue', Arial, sans-serif;
    }

    body {
        background-color: var(--light);
        color: var(--text);
        line-height: 1.3; 
        min-height: 100vh;
        font-size: 15px; 
    }

    .container {
        width: 90%;
        max-width: 1600px;
        margin: 0 auto;
    padding: 10px;
    }

    header {
        background: var(--white);
        border-bottom: 1px solid var(--light-gray);
        padding: 15px 0; 
        margin-bottom: 20px; 
    }


    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 38px;
        font-weight: 600;
        color: var(--primary);
        letter-spacing: -0.5px;
        line-height: 1.1;
    }

    nav ul {
        display: flex;
        list-style: none;
        gap: 30px;
    }

    nav ul li a {
        color: var(--text);
        text-decoration: none;
        padding: 8px 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-weight: 500;
        font-size: 15px;
        line-height: 1.1;
    }

    nav ul li a:hover, 
    nav ul li a.active {
        background: var(--primary);
        color: var(--white);
    }

    .main-content {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 15px; 
        margin: 15px 0;
        align-items: start;
    }

    .sidebar {
        background: var(--white);
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }

    .sidebar h2 {
        color: var(--primary);
        margin-bottom: 15px;
        font-size: 30px; 
        font-weight: 600;
        line-height: 1.1;
    }

    .sidebar p {
        margin-bottom:10px;
        font-size: 20px; 
        line-height: 1.5;
    }

    .sidebar ul {
        list-style: none;
        margin-bottom: 35px;
    }

    .sidebar li {
        padding: 16px 0;
        border-bottom: 1px solid var(--light-gray);
        font-size: 19px; 
        position: relative;
        padding-left: 30px;
        line-height: 1.5;
    }

    .sidebar li:before {
        content: "•";
        color: var(--primary);
        position: absolute;
        left: 0;
        font-size: 24px;
    }

    .content {
        background: var(--white);
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }

    .content h2 {
        color: var(--primary);
        margin-bottom: 20px;
        font-size: 34px; 
        font-weight: 600;
        line-height: 1.1;
    }

    .form-group {
        margin-bottom: 35px;
    }

    label {
        display: block;
        margin-bottom: 15px;
        font-weight: 600;
        color: var(--text);
        font-size: 20px; 
        line-height: 1.1;
    }

    input[type="text"], 
    input[type="password"], 
    input[type="file"], 
    select {
        width: 100%;
        padding: 20px 25px; 
        border: 2px solid var(--light-gray);
        border-radius: 8px;
        font-size: 20px; 
        transition: all 0.3s ease;
        background: var(--white);
        color: var(--text);
        line-height: 1.1;
    }

    input[type="text"]:focus, 
    input[type="password"]:focus, 
    select:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(136, 160, 168, 0.1);
    }

    button {
        background: var(--primary);
        color: var(--white);
        border: none;
        padding: 20px 40px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 20px; 
        font-weight: 600;
        transition: all 0.3s ease;
        width: 100%;
        line-height: 1.1;
    }

    button:hover {
        background: var(--secondary);
        transform: translateY(-1px);
    }


    .result-section {
        margin-top: 40px;
    }

    .info-card {
        background: var(--white);
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 35px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        border-left: 4px solid var(--primary);
    }

    .info-card h3 {
        color: var(--primary);
        margin-bottom: 30px;
        font-size: 28px; 
        font-weight: 600;
        line-height: 1.1;
    }

    .info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 增大網格 */
        gap: 30px;
        margin-bottom: 30px;
    }

    .info-item {
        padding: 20px;
        background: var(--light);
        border-radius: 8px;
    }

    .info-item strong {
        display: block;
        font-size: 18px; 
        color: var(--dark);
        margin-bottom: 12px;
        line-height: 1.1;
    }

    .info-item span {
        font-size: 15px; 
        font-weight: 500;
        color: var(--text);
        line-height: 1.1;
    }

    .status-badge {
        display: inline-block;
        padding: 8px 16px !important;
        font-size: 16px !important;
        border-radius: 20px;
        font-weight: 600;
        background: var(--light-gray);
        color: var(--text);
        line-height: 1.1;
    }

    .status-badge.success {
        background: var(--success);
        color: var(--white);
    }

    .status-badge.warning {
        background: var(--warning);
        color: var(--white);
    }

    .status-badge.danger {
        background: var(--danger);
        color: var(--white);
    }

    .notes-list {
        list-style: none;
    }

    .notes-list li {
        padding: 16px 0;
        border-bottom: 1px solid var(--light-gray);
        font-size: 19px; 
        position: relative;
        padding-left: 40px;
        line-height: 1.1;
    }

    .notes-list li:before {
        content: "✓";
        position: absolute;
        left: 0;
        color: var(--success);
        font-weight: bold;
        font-size: 22px;
    }

    .registration-guide {
        background: var(--light);
        padding: 35px;
        border-radius: 8px;
        margin-top: 30px;
    }

    .registration-guide h4 {
        color: var(--primary);
        margin-bottom: 20px;
        font-size: 24px; 
        font-weight: 600;
        line-height: 1.1;
    }

    .registration-guide ol {
        padding-left: 30px;
        margin-bottom: 20px;
    }

    .registration-guide li {
        margin-bottom: 16px;
        font-size: 19px; 
        line-height: 1.1; 
    }

    .registration-guide ul {
        list-style: none;
        padding-left: 30px;
        margin: 15px 0;
    }

    .registration-guide ul li {
        padding: 8px 0;
        padding-left: 30px;
        position: relative;
        line-height: 1.1;
    }

    .registration-guide ul li:before {
        content: "•";
        position: absolute;
        left: 0;
        color: var(--primary);
        font-weight: bold;
        font-size: 24px;
    }

    .download-section {
        margin-top: 35px;
        text-align: center;
        padding: 35px;
        background: var(--light);
        border-radius: 8px;
    }

    .download-section p {
        font-weight: 600;
        margin-bottom: 20px;
        font-size: 20px; 
        color: var(--text);
        line-height: 1.1;
    }

    .download-btn {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        background: var(--primary);
        color: var(--white);
        padding: 18px 36px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        font-size: 19px; 
        line-height: 1.1;
    }

    .download-btn:hover {
        background: var(--secondary);
        transform: translateY(-1px);
    }

    footer {
        text-align: center;
        padding: 50px 0;
        margin-top: 70px;
        border-top: 1px solid var(--light-gray);
        color: var(--dark);
    }

    footer p {
        margin: 12px 0;
        font-size: 18px; 
        line-height: 1.1;
    }

    .error-message,
    .message {
        padding: 30px;
        border-radius: 8px;
        margin: 30px 0;
        text-align: center;
        font-size: 20px; 
        line-height: 1.1;
    }

    .error-message {
        background: var(--danger);
        color: var(--white);
    }

    .message {
        background: var(--success);
        color: var(--white);
    }

    .admin-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .stat-card {
        background: var(--white);
        padding: 25px;
        border-radius: 12px;
        text-align: center;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        border-left: 4px solid var(--primary);
    }

    .stat-number {
        font-size: 32px;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 8px;
        line-height: 1.1;
    }

    .stat-label {
        font-size: 16px;
        color: var(--dark);
        font-weight: 600;
        line-height: 1.1;
    }

    .admin-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        flex-wrap: wrap;
        gap: 20px;
    }

    .admin-title {
        color: var(--primary);
        font-size: 32px;
        font-weight: 700;
        line-height: 1.1;
    }

    .add-student-form {
        background: var(--white);
        padding: 30px;
        border-radius: 12px;
        margin-bottom: 30px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        border: 1px solid var(--light-gray);
    }

    .form-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 20px;
    }

    .form-section-title {
        color: var(--primary);
        font-size: 25px;
        font-weight: 600;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--light-gray);
        line-height: 1.1;
    }

    .btn-danger {
        background: var(--danger);
        color: var(--white);
        padding: 10px 18px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        text-decoration: none;
        font-size: 16px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s ease;
        line-height: 1.1;
    }

    .btn-danger:hover {
        background: #b89898;
        transform: translateY(-1px);
    }

    .room-form {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .room-input {
        padding: 25px;
        border: 1px solid var(--light-gray);
        border-radius: 6px;
        font-size: 16px;
        width: 150px;
        transition: all 0.3s ease;
        line-height: 1.1;
    }

    .room-input:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(136, 160, 168, 0.1);
    }

    .table-container {
        background: var(--white);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }

    .data-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 20px;
        line-height: 1.1;
    }

    .data-table th {
        background: var(--light);
        color: var(--text);
        padding: 20px;
        text-align: left;
        font-weight: 600;
        font-size: 20px;
        border-bottom: 2px solid var(--light-gray);
        line-height: 1.1;
    }

    .data-table td {
        padding: 18px 20px;
        border-bottom: 1px solid var(--light-gray);
        background: var(--white);
        line-height: 1.1;
    }

    .data-table tr:hover td {
        background: var(--light);
    }

    .data-table tr:last-child td {
        border-bottom: none;
    }

    .upload-section {
        background: var(--white);
        padding: 30px;
        border-radius: 12px;
        text-align: center;
        border: 2px dashed var(--light-gray);
        transition: all 0.3s ease;
        margin-bottom: 30px;
    }

    .upload-section:hover {
        border-color: var(--primary);
        background: var(--light);
    }

    .format-guide {
        background: var(--light);
        padding: 25px;
        border-radius: 12px;
        margin-top: 20px;
        line-height: 1.1;
    }

    .tab-content {
        animation: fadeIn 0.5s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* 響應式設計 */
    @media (max-width: 768px) {
        body {
            font-size: 18px;
            line-height: 1.1; /* 確保響應式下行距也縮小 */
        }
        
        .container {
            width: 95%;
            padding: 25px;
        }
        
        .header-content {
            flex-direction: column;
            text-align: center;
            gap: 10px;
        }
        
        nav ul {
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .main-content {
            grid-template-columns: 1fr;
            gap: 30px;
        }
        
        .content,
        .sidebar {
            padding: 35px;
        }
        
        .content h2 {
            font-size: 28px;
            line-height: 1.1;
        }
        
        .info-grid {
            grid-template-columns: 1fr;
        }
        
        input[type="text"],
        input[type="password"],
        select {
            font-size: 18px;
            line-height: 1.1;
        }
        
        button {
            padding: 22px 40px;
            line-height: 1.1;
        }
        
        .admin-header {
            flex-direction: column;
            text-align: center;
        }
        
        .form-row {
            grid-template-columns: 1fr;
        }
        
        .data-table {
            font-size: 15px;
            line-height: 1.1;
        }
        
        .data-table th,
        .data-table td {
            padding: 12px 15px;
            line-height: 1.1;
        }
        
        .room-form {
            flex-direction: column;
            gap: 8px;
        }
        
        .room-input {
            width: 100%;
        }
        .logo span {
        font-size: 24px !important; 
        white-space: normal !important;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        align-items: center;
    }
    
    .logo img {
        height: 60px !important; /* 调整手机上logo大小 */
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    }

    @media (max-width: 480px) {
        body {
            font-size: 16px;
            line-height: 1.1; /* 確保響應式下行距也縮小 */
        }
        
        .logo {
            font-size: 32px;
            line-height: 1.1;
        }
          .logo span {
        font-size: 20px !important; /* 更小屏幕上进一步调整 */
        line-height: 1.3 !important;
    }
        nav ul li a {
            padding: 14px 28px;
            font-size: 18px;
            line-height: 1.1;
        }
            
        .info-card {
            padding: 25px;
        }
        
        .info-card h3 {
            font-size: 24px;
            line-height: 1.1;
        }
    }

    /* 管理後台特定樣式 */
    .tab-container {
        margin-top: 30px;
    }

    .tabs {
        display: flex;
        border-bottom: 1px solid var(--light-gray);
        margin-bottom: 30px;
        flex-wrap: wrap;
    }

    .tab {
        padding: 20px 35px;
        cursor: pointer;
        border-bottom: 3px solid transparent;
        font-weight: 500;
        transition: all 0.3s ease;
        font-size: 25px; 
        line-height: 1.1;
    }

    .tab.active {
        border-bottom-color: var(--primary);
        color: var(--primary);
        font-weight: 600;
    }

    .tab-content {
        display: none;
        line-height: 1.1;
    }

    .tab-content.active {
        display: block;
    }
    .import-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        line-height: 1.1;
    }

    .upload-card {
        background: var(--white);
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        overflow: hidden;
    }

    .upload-header {
        background: #f5f3f0;
        color: var(--white);
        padding: 25px 30px;
        line-height: 1.1;
    }

    .upload-header h4 {
        margin: 0 0 8px 0;
        font-size: 22px;
        font-weight: 600;
        line-height: 1.1;
    }

    .upload-header p {
        margin: 0;
        opacity: 0.9;
        font-size: 16px;
        line-height: 1.1;
    }

    .upload-body {
        padding: 30px;
        line-height: 1.1;
    }

    .upload-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
        line-height: 1.1;
    }

    .file-input-container {
        position: relative;
    }

    .file-input-label {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 25px;
        border: 2px dashed var(--light-gray);
        border-radius: 8px;
        background: var(--light);
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: left;
        line-height: 1.1;
    }

    .file-input-label:hover {
        border-color: var(--primary);
        background: rgba(136, 160, 168, 0.05);
    }

    .file-input-icon {
        font-size: 32px;
        flex-shrink: 0;
    }

    .file-input-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
        line-height: 1.1;
    }

    .file-input-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--primary);
        line-height: 1.1;
    }

    .file-input-subtitle {
        font-size: 14px;
        color: var(--dark);
        opacity: 0.7;
        line-height: 1.1;
    }

    .file-input {
        position: absolute;
        width: 0;
        height: 0;
        opacity: 0;
    }

    .selected-file {
        background: var(--light);
        padding: 15px 20px;
        border-radius: 8px;
        border-left: 4px solid var(--success);
        line-height: 1.1;
    }

    .selected-file-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .file-icon {
        font-size: 20px;
    }

    .file-name {
        font-weight: 600;
        color: var(--text);
        flex: 1;
        line-height: 1.1;
    }

    .file-size {
        font-size: 14px;
        color: var(--dark);
        opacity: 0.7;
        line-height: 1.1;
    }

    .import-button {
        background: var(--white);
        color: var(--white);
        border: none;
        padding: 18px 30px;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
        line-height: 1.1;
    }

    .import-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(136, 160, 168, 0.3);
    }

    .button-icon {
        font-size: 20px;
    }

    .format-guide-card {
        background: var(--white);
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        overflow: hidden;
        line-height: 1.1;
    }

    .guide-header {
        background: var(--light);
        padding: 25px 30px;
        border-bottom: 1px solid var(--light-gray);
        line-height: 1.1;
    }

    .guide-header h4 {
        margin: 0 0 8px 0;
        font-size: 22px;
        font-weight: 600;
        color: var(--primary);
        line-height: 1.1;
    }

    .guide-header p {
        margin: 0;
        color: var(--dark);
        font-size: 16px;
        line-height: 1.1;
    }

    .guide-content {
        padding: 30px;
        line-height: 1.1;
    }

    .format-table-container {
        margin-bottom: 30px;
        line-height: 1.1;
    }

    .format-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 15px;
        line-height: 1.1;
    }

    .format-table th {
        background: var(--light);
        color: var(--text);
        padding: 15px 12px;
        text-align: left;
        font-weight: 600;
        border-bottom: 2px solid var(--light-gray);
        line-height: 1.1;
    }

    .format-table td {
        padding: 8px;
        border-bottom: 1px solid var(--light-gray);
        vertical-align: top;
        line-height: 1.1;
    }

    .format-table tr:hover td {
        background: var(--light);
    }

    .column-label {
        background: var(--primary);
        color: var(--white);
        font-weight: 600;
        text-align: center;
        border-radius: 4px;
        line-height: 1.1;
    }

    .column-name {
        font-weight: 600;
        color: var(--primary);
        line-height: 1.1;
    }

    .column-desc {
        color: var(--text);
        line-height: 1.1; /* 從 1.5 縮小到 1.1 */
    }

    .column-example {
        font-family: 'Courier New', monospace;
        background: var(--light);
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 14px;
        line-height: 1.1;
    }

    .template-section {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 25px;
        background: var(--light);
        border-radius: 8px;
        margin-bottom: 25px;
        line-height: 1.1;
    }

    .template-info h5 {
        margin: 0 0 8px 0;
        font-size: 18px;
        color: var(--primary);
        line-height: 1.1;
    }

    .template-info p {
        margin: 0;
        color: var(--dark);
        font-size: 14px;
        line-height: 1.1;
    }

    .template-download-btn {
        background: var(--success);
        color: var(--white);
        padding: 12px 24px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        white-space: nowrap;
        line-height: 1.1;
    }

    .template-download-btn:hover {
        background: #97c0dc;
        transform: translateY(-1px);
    }

    .instructions-section {
        background: var(--light);
        padding: 25px;
        border-radius: 8px;
        line-height: 1.1;
    }

    .instructions-header h5 {
        margin: 0 0 20px 0;
        font-size: 18px;
        color: var(--primary);
        line-height: 1.1;
    }

    .instructions-steps {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        line-height: 1.1;
    }

    .step {
        display: flex;
        gap: 15px;
        align-items: flex-start;
        line-height: 1.1;
    }

    .step-number {
        background: var(--primary);
        color: var(--white);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        flex-shrink: 0;
        font-size: 14px;
        line-height: 1.1;
    }

    .step-content strong {
        display: block;
        margin-bottom: 4px;
        color: var(--text);
        font-size: 16px;
        line-height: 1.1;
    }

    .step-content p {
        margin: 0;
        color: var(--dark);
        font-size: 14px;
        line-height: 1.1; /* 從 1.1 保持一致 */
    }

    /* 響應式設計 */
    @media (max-width: 768px) {
        .upload-header,
        .guide-header {
            padding: 20px;
            line-height: 1.1;
        }
        
        .upload-body,
        .guide-content {
            padding: 20px;
            line-height: 1.1;
        }
        
        .file-input-label {
            flex-direction: column;
            text-align: center;
            padding: 20px;
            line-height: 1.1;
        }
        
        .template-section {
            flex-direction: column;
            gap: 15px;
            text-align: center;
            line-height: 1.1;
        }
        
        .instructions-steps {
            grid-template-columns: 1fr;
            line-height: 1.1;
        }
        
        .format-table {
            font-size: 14px;
            line-height: 1.1;
        }
        
        .format-table th,
        .format-table td {
            padding: 10px 8px;
            line-height: 1.1;
        }
    }

    @media (max-width: 480px) {
        .format-table {
            font-size: 13px;
            line-height: 1.1;
        }
        
        .step {
            flex-direction: column;
            text-align: center;
            gap: 10px;
            line-height: 1.1;
        }
        
        .step-number {
            align-self: center;
        }

        .status-badge.success {
        background: var(--success);
        color: var(--white);
        line-height: 1.1;
    }

    .status-badge.warning {
        background: var(--warning);
        color: var(--white);
        line-height: 1.1;
    }

    .status-badge.danger {
        background: var(--danger);
        color: var(--white);
        line-height: 1.1;
    }

    .status-badge.info {
        background: #6c757d; /* 灰色用於待公布狀態 */
        color: var(--white);
        line-height: 1.1;
    }

            .admin-stats {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 20px;
                margin-bottom: 30px;
                line-height: 1.1;
            }
            
            .stat-card {
                background: var(--white);
                padding: 25px;
                border-radius: 12px;
                text-align: center;
                box-shadow: 0 2px 12px rgba(0,0,0,0.06);
                border-left: 4px solid var(--primary);
                line-height: 1.1;
            }
            
            .stat-number {
                font-size: 32px;
                font-weight: 700;
                color: var(--primary);
                margin-bottom: 8px;
                line-height: 1.1;
            }
            
            .stat-label {
                font-size: 16px;
                color: var(--dark);
                font-weight: 600;
                line-height: 1.1;
            }
            
            .admin-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 30px;
                flex-wrap: wrap;
                gap: 20px;
                line-height: 1.1;
            }
            
            .admin-title {
                color: var(--primary);
                font-size: 32px;
                font-weight: 700;
                line-height: 1.1;
            }
            
            .add-student-form {
                background: var(--white);
                padding: 30px;
                border-radius: 12px;
                margin-bottom: 30px;
                box-shadow: 0 2px 12px rgba(0,0,0,0.06);
                border: 1px solid var(--light-gray);
                line-height: 1.1;
            }
            
            .form-row {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 20px;
                margin-bottom: 20px;
                line-height: 1.1;
            }
            
            .form-section-title {
                color: var(--primary);
                font-size: 20px;
                font-weight: 600;
                margin-bottom: 20px;
                padding-bottom: 10px;
                border-bottom: 2px solid var(--light-gray);
                line-height: 1.1;
            }
            
            .btn-danger {
                background: var(--danger);
                color: var(--white);
                padding: 10px 18px;
                border: none;
                border-radius: 6px;
                cursor: pointer;
                text-decoration: none;
                font-size: 16px;
                display: inline-flex;
                align-items: center;
                gap: 6px;
                transition: all 0.3s ease;
                line-height: 1.1;
            }
            
            .btn-danger:hover {
                background: #b89898;
                transform: translateY(-1px);
            }
            
            .room-form {
                display: flex;
                gap: 10px;
                align-items: center;
                line-height: 1.1;
            }
            
            .room-input {
                padding: 10px 12px;
                border: 1px solid var(--light-gray);
                border-radius: 6px;
                font-size: 16px;
                width: 120px;
                transition: all 0.3s ease;
                line-height: 1.1;
            }
            
            .room-input:focus {
                border-color: var(--primary);
                outline: none;
                box-shadow: 0 0 0 3px rgba(136, 160, 168, 0.1);
            }
            
            .table-container {
                background: var(--white);
                border-radius: 12px;
                overflow: hidden;
                box-shadow: 0 2px 12px rgba(0,0,0,0.06);
                line-height: 1.1;
            }
            
            .data-table {
                width: 100%;
                border-collapse: collapse;
                font-size: 17px;
                line-height: 1.1;
            }
            
            .data-table th {
                background: var(--light);
                color: var(--text);
                padding: 20px;
                text-align: left;
                font-weight: 600;
                font-size: 18px;
                border-bottom: 2px solid var(--light-gray);
                line-height: 1.1;
            }
            
            
            .data-table tr:hover td {
                background: var(--light);
            }
            
            .data-table tr:last-child td {
                border-bottom: none;
            }
            
            .status-badge {
                display: inline-block;
                padding: 8px 16px;
                border-radius: 20px;
                font-weight: 600;
                font-size: 14px;
                text-align: center;
                min-width: 80px;
                line-height: 1.1;
            }
            
            .upload-section {
                background: var(--white);
                padding: 30px;
                border-radius: 12px;
                text-align: center;
                border: 2px dashed var(--light-gray);
                transition: all 0.3s ease;
                margin-bottom: 30px;
                line-height: 1.1;
            }
            
            .upload-section:hover {
                border-color: var(--primary);
                background: var(--light);
            }
            .form-group {
                margin-bottom: 15px; /* 如果原來更大的話 */
            }
            
            .format-guide {
                background: var(--light);
                padding: 25px;
                border-radius: 12px;
                margin-top: 20px;
                line-height: 1.1;
            }
            
            .tab-content {
                animation: fadeIn 0.5s ease;
                line-height: 1.1;
            }
            
            @keyframes fadeIn {
                from { opacity: 0; transform: translateY(10px); }
                to { opacity: 1; transform: translateY(0); }
            }


            .import-container {
                display: flex;
                flex-direction: column;
                gap: 30px;
                line-height: 1.1;
            }

            .upload-card {
                background: var(--white);
                border-radius: 12px;
                box-shadow: 0 2px 12px rgba(0,0,0,0.06);
                overflow: hidden;
                line-height: 1.1;
            }

            .upload-header {
                background: linear-gradient(135deg, var(--primary), var(--secondary));
                color: var(--white);
                padding: 25px 30px;
                line-height: 1.1;
            }

            .upload-header h4 {
                margin: 0 0 8px 0;
                font-size: 22px;
                font-weight: 600;
                line-height: 1.1;
            }

            .upload-header p {
                margin: 0;
                opacity: 0.9;
                font-size: 16px;
                line-height: 1.1;
            }

            .upload-body {
                padding: 30px;
                line-height: 1.1;
            }

            .upload-form {
                display: flex;
                flex-direction: column;
                gap: 20px;
                line-height: 1.1;
            }

            .file-input-container {
                position: relative;
                line-height: 1.1;
            }

            .file-input-label {
                display: flex;
                align-items: center;
                gap: 15px;
                padding: 25px;
                border: 2px dashed var(--light-gray);
                border-radius: 8px;
                background: var(--light);
                cursor: pointer;
                transition: all 0.3s ease;
                text-align: left;
                line-height: 1.1;
            }

            .file-input-label:hover {
                border-color: var(--primary);
                background: rgba(136, 160, 168, 0.05);
            }

            .file-input-icon {
                font-size: 32px;
                flex-shrink: 0;
            }

            .file-input-text {
                display: flex;
                flex-direction: column;
                gap: 4px;
                line-height: 1.1;
            }

            .file-input-title {
                font-size: 18px;
                font-weight: 600;
                color: var(--primary);
                line-height: 1.1;
            }

            .file-input-subtitle {
                font-size: 14px;
                color: var(--dark);
                opacity: 0.7;
                line-height: 1.1;
            }

            .file-input {
                position: absolute;
                width: 0;
                height: 0;
                opacity: 0;
            }

            .selected-file {
                background: var(--light);
                padding: 15px 20px;
                border-radius: 8px;
                border-left: 4px solid var(--success);
                line-height: 1.1;
            }

            .selected-file-info {
                display: flex;
                align-items: center;
                gap: 12px;
                line-height: 1.1;
            }

            .file-icon {
                font-size: 20px;
            }

            .file-name {
                font-weight: 600;
                color: var(--text);
                flex: 1;
                line-height: 1.1;
            }

            .file-size {
                font-size: 14px;
                color: var(--dark);
                opacity: 0.7;
                line-height: 1.1;
            }

            .import-button {
                background: linear-gradient(135deg, var(--primary), var(--secondary));
                color: var(--white);
                border: none;
                padding: 18px 30px;
                border-radius: 8px;
                font-size: 18px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s ease;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 10px;
                margin-top: 10px;
                line-height: 1.1;
            }

            .import-button:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 15px rgba(136, 160, 168, 0.3);
            }

            .button-icon {
                font-size: 20px;
            }

            .format-guide-card {
                background: var(--white);
                border-radius: 12px;
                box-shadow: 0 2px 12px rgba(0,0,0,0.06);
                overflow: hidden;
                line-height: 1.1;
            }

            .guide-header {
                background: var(--light);
                padding: 25px 30px;
                border-bottom: 1px solid var(--light-gray);
                line-height: 1.1;
            }

            .guide-header h4 {
                margin: 0 0 8px 0;
                font-size: 22px;
                font-weight: 600;
                color: var(--primary);
                line-height: 1.1;
            }

            .guide-header p {
                margin: 0;
                color: var(--dark);
                font-size: 24px;
                line-height: 1.1;
            }

            .guide-content {
                padding: 30px;
                font-size: 26px;
                line-height: 1.1;
            }

            .format-table-container {
                margin-bottom: 30px;
                line-height: 1.1;
            }

            .format-table {
                width: 100%;
                border-collapse: collapse;
                font-size: 18px;
                line-height: 1.1;
            }

            .format-table th {
                background: var(--light);
                color: var(--text);
                padding: 15px 12px;
                text-align: left;
                font-weight: 600;
                border-bottom: 2px solid var(--light-gray);
                line-height: 1.1;
            }

            .format-table td {
                padding: 12px;
                border-bottom: 1px solid var(--light-gray);
                vertical-align: top;
                font-size: 18px;
                line-height: 1.1;
            }

            .format-table tr:hover td {
                background: var(--light);
            }

            .column-label {
                background: var(--primary);
                color: var(--white);
                font-weight: 600;
                text-align: center;
                border-radius: 4px;
                line-height: 1.1;
            }

            .column-name {
                font-weight: 600;
                color: var(--primary);
                line-height: 1.1;
            }

            .column-desc {
                color: var(--text);
                line-height: 1.1; /* 從 1.5 縮小到 1.1 */
            }

            .column-example {
                font-family: 'Courier New', monospace;
                background: var(--light);
                padding: 6px 10px;
                border-radius: 4px;
                font-size: 18px;
                line-height: 1.1;
            }

            .template-section {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 25px;
                background: var(--light);
                border-radius: 8px;
                margin-bottom: 25px;
                line-height: 1.1;
            }

            .template-info h5 {
                margin: 0 0 8px 0;
                font-size: 18px;
                color: var(--primary);
                line-height: 1.1;
            }

            .template-info p {
                margin: 0;
                color: var(--dark);
            font-size: 18px;
            line-height: 1.1;
            }

            .template-download-btn {
                background: var(--success);
                color: var(--white);
                padding: 12px 24px;
                border-radius: 6px;
                text-decoration: none;
                font-weight: 600;
                display: flex;
                align-items: center;
                gap: 8px;
                transition: all 0.3s ease;
                white-space: nowrap;
                line-height: 1.1;
            }

            .template-download-btn:hover {
                background: #27ae60;
                transform: translateY(-1px);
            }

            .instructions-section {
                background: var(--light);
                padding: 25px;
                border-radius: 8px;
                line-height: 1.1;
            }

            .instructions-header h5 {
                margin: 0 0 20px 0;
                font-size: 18px;
                color: var(--primary);
                line-height: 1.1;
            }

            .instructions-steps {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 20px;
                line-height: 1.1;
            }

            .step {
                display: flex;
                gap: 15px;
                align-items: flex-start;
                font-size: 18px;
                line-height: 1.1;
            }

            .step-number {
                background: var(--primary);
                color: var(--white);
                width: 32px;
                height: 32px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 600;
                flex-shrink: 0;
            font-size: 18px;
            line-height: 1.1;
            }

            .step-content strong {
                display: block;
                margin-bottom: 4px;
                color: var(--text);
                font-size: 26px;
                line-height: 1.1;
            }

            .step-content p {
                margin: 0;
                color: var(--dark);
                font-size: 16px;
                line-height: 1.1;
            }
            
            /* 響應式設計 */
/* 添加響應式布局調整 */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr !important; /* 手機上改為單列布局 */
    }
    
    .sidebar {
        margin-top: 20px; /* 增加頂部間距，區分上下區域 */
    }
    
    .content, .sidebar {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    input[type="text"] {
        padding: 15px 20px;
        font-size: 18px;
    }
    
    button {
        padding: 15px 0;
    }
}            

@media (max-width: 480px) {
                .format-table {
                    font-size: 13px;
                    line-height: 1.1;
                }
                
                .step {
                    flex-direction: column;
                    text-align: center;
                    gap: 10px;
                    line-height: 1.1;
                }
                
                .step-number {
                    align-self: center;
                }
            }

    }