/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    overflow-y: auto;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 页面样式 */
.page {
    display: none;
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page.active {
    display: block;
}

/* 标题样式 */
h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2em;
}

h2 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.5em;
}

h3 {
    color: #2c3e50;
    margin: 20px 0 15px;
    font-size: 1.2em;
}

/* 楼层信息样式 */
.floor-info {
    margin: 30px 0;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 8px;
}

.floor-info p {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
}

/* 选项按钮样式 */
.options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.option-btn {
    padding: 15px 30px;
    font-size: 1.1em;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.option-btn:hover:not(:disabled) {
    background-color: #2980b9;
}

.option-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* 管理员登录按钮样式 */
.admin-login-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px 20px;
    font-size: 0.9em;
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.admin-login-btn:hover {
    background-color: #7f8c8d;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: #000;
}

/* 表单样式 */
.form-group {
    margin: 20px 0;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* 选填项样式 */
.optional {
    color: #95a5a6;
    font-size: 0.9em;
    font-weight: normal;
}

/* 按钮样式 */
.btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* 查询容器样式 */
.search-container {
    margin: 30px 0;
}

/* 结果容器样式 */
.result-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 8px;
}

/* 表格样式 */
.result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.result-table th,
.result-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.result-table th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

.result-table tr:hover {
    background-color: #f5f5f5;
}

/* 消息提示样式 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 1001;
    display: none;
    opacity: 0.9;
    transition: all 0.3s;
}

.message.success {
    background-color: #27ae60;
}

.message.error {
    background-color: #e74c3c;
}

.message.info {
    background-color: #3498db;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .page {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .options {
        flex-direction: column;
    }
    
    .option-btn {
        width: 100%;
    }
    
    .admin-login-btn {
        position: static;
        margin: 20px auto;
        display: block;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .result-table {
        font-size: 0.9em;
    }
    
    .result-table th,
    .result-table td {
        padding: 8px;
    }
}
