/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 15px 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: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #718096;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.admin-login-modal {
    max-width: 450px;
    width: 90%;
}

.modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.hint {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #667eea;
    outline: none;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* 内页布局 */
.inner-page {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 30px 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .inner-page {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
}

/* 暗色模式 */
.dark-mode {
    background: #1a202c;
    color: #e2e8f0;
}

.dark-mode .navbar,
.dark-mode .modal-content,
.dark-mode .admin-login-modal {
    background: #2d3748;
}

.dark-mode .modal-header h3,
.dark-mode .modal-header {
    color: #e2e8f0;
    border-color: #4a5568;
}

.dark-mode .close-btn {
    color: #cbd5e0;
}

.dark-mode .close-btn:hover {
    color: #e2e8f0;
}

.dark-mode .form-group label {
    color: #e2e8f0;
}

.dark-mode .form-group input {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .hint {
    color: #cbd5e0;
}

.dark-mode footer {
    background: #2d3748;
    border-color: #4a5568;
    color: #cbd5e0;
}

.dark-mode .footer-links a {
    color: #90cdf4;
}

.dark-mode .footer-links a:hover {
    color: #63b3ed;
}