/* 基础样式 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: #4285f4;
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

.user-info {
    float: right;
    margin-top: 5px;
}

.user-info a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
}

.btn1 {
    display: inline-block;
    padding: 10px 15px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
}
.btn-primary {
    background-color: #4285f4;
}

.btn-secondary {
    background-color: #34a853;
}

.btn:hover {
    opacity: 0.9;
}
.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
/* 预约卡片内的按钮居中 */
.appointment-card .btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
}
/* 按钮容器 - 使按钮居中 */
.btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

/* 登录/注册容器 */
.login-container,
.register-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container h1,
.register-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* 预约卡片 */
.appointment-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.my-appointments {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
}

.appointment-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.appointment-item:last-child {
    border-bottom: none;
}

.appointment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.appointment-meta .date {
    font-weight: bold;
}

.appointment-meta .status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.appointment-meta .status.pending {
    background-color: #fff3e0;
    color: #e65100;
}

.appointment-meta .status.confirmed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.appointment-meta .status.cancelled {
    background-color: #ffebee;
    color: #c62828;
}

.appointment-meta .status.completed {
    background-color: #e3f2fd;
    color: #1565c0;
}

/* 选项卡样式 */
.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.login-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
}

.login-tabs .tab.active {
    border-bottom: 2px solid #4285f4;
    color: #4285f4;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 微信登录样式 */
.wechat-login {
    text-align: center;
    padding: 20px 0;
}

.wechat-login .qrcode {
    margin: 20px 0;
}
/* 全局提示消息样式 */
.global-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInDown 0.3s ease;
    max-width: 80%;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* 成功提示 */
.alert-success {
    background-color: rgba(76, 175, 80, 0.95);
    border: 1px solid #4caf50;
}

/* 错误提示 */
.alert-error {
    background-color: rgba(244, 67, 54, 0.95);
    border: 1px solid #f44336;
}

/* 信息提示 */
.alert-info {
    background-color: rgba(33, 150, 243, 0.95);
    border: 1px solid #2196f3;
}

/* 警告提示 */
.alert-warning {
    background-color: rgba(255, 152, 0, 0.95);
    border: 1px solid #ff9800;
    color: #333;
}

/* 淡出动画 */
.global-alert.fade-out {
    animation: fadeOutUp 0.3s ease forwards;
}

/* 滑动进入动画 */
@keyframes slideInDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* 淡出向上动画 */
@keyframes fadeOutUp {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
}


/* 移动端安全区域适配 */
@supports (padding: max(0px)) {
    .global-alert {
        top: max(20px, env(safe-area-inset-top));
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header .container {
        text-align: center;
    }
    
    .user-info {
        float: none;
        margin-top: 15px;
    }
    
    .login-container,
    .register-container {
        margin: 20px auto;
        padding: 20px;
    }
    .global-alert {
        top: 280px;
        max-width: 90%;
        padding: 10px 15px;
        font-size: 13px;
    }
}