/* 全局样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏 */
.navbar {
    background-color: #1a73e8;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.navbar-nav {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 25px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s;
}

.nav-link:hover:after {
    width: 100%;
}

/* 表单样式 */
.form-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 35px;
    margin-bottom: 40px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.form-title {
    margin-bottom: 25px;
    color: #1a73e8;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fafafa;
}

.form-control:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
    background-color: #fff;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: #0d62d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn-danger {
    background-color: #ea4335;
}

.btn-danger:hover {
    background-color: #d33426;
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

.btn-success {
    background-color: #34a853;
}

.btn-success:hover {
    background-color: #2d9249;
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

/* 表格样式 */
.table-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    overflow-x: auto;
    margin-bottom: 40px;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th,
.table td {
    padding: 15px 20px;
    text-align: left;
}

.table th {
    background-color: #f5f8ff;
    font-weight: 600;
    color: #1a73e8;
    position: sticky;
    top: 0;
    border-bottom: 2px solid #e0e0e0;
}

.table tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.table tr:last-child {
    border-bottom: none;
}

.table tr:hover {
    background-color: #f9fbff;
}

.table td {
    border-bottom: 1px solid #f0f0f0;
}

/* 状态标签 */
.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
}

.status-pending {
    background-color: #fbbc04;
    color: #fff;
}

.status-approved {
    background-color: #34a853;
    color: #fff;
}

.status-rejected {
    background-color: #ea4335;
    color: #fff;
}

/* 警告和成功消息 */
.alert {
    padding: 16px 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.alert:before {
    margin-right: 15px;
    font-size: 20px;
}

.alert-success {
    background-color: #e6f4ea;
    color: #34a853;
    border-left: 4px solid #34a853;
}

.alert-success:before {
    content: '✓';
}

.alert-danger {
    background-color: #fce8e6;
    color: #ea4335;
    border-left: 4px solid #ea4335;
}

.alert-danger:before {
    content: '!';
}

/* 日程表 */
.schedule {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 40px;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.schedule-title {
    font-size: 1.8rem;
    color: #1a73e8;
    font-weight: 600;
}

.schedule-date {
    font-size: 1.2rem;
    color: #5f6368;
    font-weight: 500;
}

.time-slot {
    display: flex;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.time-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.time-slot-free {
    background-color: #e6f4ea;
    border-left: 4px solid #34a853;
}

.time-slot-occupied {
    background-color: #fef7e0;
    border-left: 4px solid #fbbc04;
}

.time-slot-time {
    width: 150px;
    font-weight: 600;
    color: #202124;
}

.time-slot-info {
    flex-grow: 1;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .navbar-brand {
        margin-bottom: 10px;
    }
    
    .navbar-nav {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .nav-item {
        margin: 0 10px;
    }
    
    .form-container, .table-container, .schedule {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .table th, .table td {
        padding: 12px 10px;
    }
    
    .time-slot {
        flex-direction: column;
    }
    
    .time-slot-time {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-container, .table-container, .schedule {
    animation: fadeIn 0.5s ease-out;
}
