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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(#e7f1ff, #fefefe);
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 12px;
}

/* 页面切换 */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* 主页样式 */
.app-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 0;
}

.logo-image {
    width: 30%;
    height: auto;
    max-width: 150px;
    margin-bottom: 20px;
}

.app-slogan {
    color: #777;
    font-size: 14px;
    text-align: center;
    padding: 0 32px;
    line-height: 1.5;
}

.tool-body {
    flex: 1;
    width: 100%;
    margin-top: 30px;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    width: 100%;
    height: 80px;
    background-color: white;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card:active {
    background-color: #eee;
    transform: translateY(0);
}

.card-icon {
    width: 50px;
    height: 50px;
    margin-right: 16px;
}

.card-title {
    flex: 1;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.arrow {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

/* 页面头部 */
.page-header {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #4a90e2;
    cursor: pointer;
    margin-right: 16px;
    padding: 8px;
}

.back-btn:hover {
    background-color: #f0f8ff;
    border-radius: 4px;
}

.page-header h2 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

/* 表单样式 */
.form-section {
    width: 100%;
    max-width: none;
    padding: 0 20px;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 28px;
    width: 100%;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group select:hover {
    border-color: #4a90e2;
    background-color: #f8f9fa;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #4a90e2;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 12px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.checkbox-group label:hover {
    background-color: #e9ecef;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
    transform: scale(1.2);
}

.primary-btn {
    width: 100%;
    padding: 18px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
    box-sizing: border-box;
}

.primary-btn:hover {
    background-color: #357abd;
}

.primary-btn:active {
    background-color: #2968a3;
}

.primary-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 消息提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .form-section {
        padding: 0 16px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .card {
        height: 70px;
        padding: 0 16px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .arrow {
        width: 16px;
        height: 16px;
    }
    
    .logo-image {
        width: 40%;
        max-width: 120px;
    }
}/* 现代化
输入框样式 */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

.form-group select option {
    padding: 12px;
    background-color: white;
    color: #333;
}

/* 表单容器美化 */
.form-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 30px 20px;
}

/* 页面容器背景优化 */
.page .container {
    background: linear-gradient(135deg, #e7f1ff 0%, #fefefe 100%);
    min-height: 100vh;
}

/* 按钮阴影效果 */
.primary-btn {
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}/* 登录
页面样式 */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e7f1ff 0%, #fefefe 100%);
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.login-title span {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.loader-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loader-auth .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-auth p {
    color: #666;
    font-size: 16px;
}

#lark-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

/* 二维码容器样式优化 */
#lark-login iframe {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* 移动端登录页面适配 */
@media (max-width: 768px) {
    .login-container {
        padding: 16px;
    }
    
    .login-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
    }
    
    .login-title span {
        font-size: 20px;
    }
    
    #lark-login {
        min-height: 240px;
    }
}/* 用户头部样式
 */
.user-header {
    display: none; /* 默认隐藏，由 JavaScript 控制显示 */
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.logout-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #ff3742;
    transform: translateY(-1px);
}

.logout-btn:active {
    transform: translateY(0);
}