/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* 登录容器 */
#loginContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.login-box p {
    color: #666;
    margin-bottom: 24px;
}

/* 表单元素 */
.password-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 16px;
}

.password-input:focus {
    outline: none;
    border-color: #3498db;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.login-btn:hover {
    background: #2980b9;
}

.error-msg {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

.forgot-password {
    margin-top: 16px;
    color: #666;
    font-size: 14px;
}

/* 主内容区域 */
#mainContent {
    display: none;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

h1 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    font-size: 16px;
}

/* 版本信息 */
.version {
    background: #f8f9fa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.version h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    margin: 5px;
}

.btn:hover {
    background: #2980b9;
}

.btn.mac {
    background: #e74c3c;
}

.btn.mac:hover {
    background: #c0392b;
}

/* 下载信息 */
.download-info {
    background: #f0f7ff;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
    color: #2c6faf;
    border-left: 3px solid #3498db;
}

/* 列表样式 */
ul {
    padding-left: 20px;
    margin: 15px 0;
}

li {
    margin: 6px 0;
    color: #555;
}

/* 页脚 */
footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

/* 提示信息 */
.info {
    background: #f0f8ff;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    color: #2c3e50;
    border-left: 3px solid #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
}

.file-controller {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
}

.file-controller h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.controller-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

/* === 版本文件控制器 === */
.file-controller {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
}

.file-controller h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.controller-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

/* 版本选择器 */
.version-select {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
}

.version-select label {
    font-weight: bold;
    color: #495057; 
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

#versionSelect {
    padding: 15px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    color: #495057;
    font-size: 16px;
    cursor: pointer;
    min-width: 150px;
    flex: 1;
}

/* 文件类型按钮 - 修改为两个一行 */
.file-type-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 两列 */
    gap: 10px;
    min-width: 300px;
}

.file-type-btn {
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    text-align: left;
    height: 100%;
    min-height: 50px;
}

.file-type-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.file-type-btn i {
    font-size: 18px;
    min-width: 20px;
}

/* 每个按钮的颜色 */
.file-type-btn:nth-child(1) i { color: #3498db; } /* 配置文件 */
.file-type-btn:nth-child(2) i { color: #e74c3c; } /* 数据库文件 */
.file-type-btn:nth-child(3) i { color: #2ecc71; } /* 存储文件 */
.file-type-btn:nth-child(4) i { color: #f39c12; } /* 系统文件 */

/* 响应式调整 */
@media (max-width: 768px) {
    .controller-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .version-select {
        min-width: auto;
        width: 100%;
    }
    
    .file-type-grid {
        grid-template-columns: 1fr; /* 小屏幕变为一列 */
        min-width: auto;
    }
    
    .file-type-btn {
        min-height: 45px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .controller-row {
        flex-wrap: wrap;
    }
    
    .version-select {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    .file-type-grid {
        min-width: 100%;
    }
}