* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e9ecef 100%);
    margin: 0;
    min-height: 100vh;
}

body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.admin-page {
    display: block;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.header-left .logo {
    display: flex;
    align-items: center;
}

.header-left .logo-icon {
    font-size: 24px;
    margin-right: 10px;
}

.header-left .logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #1890ff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right .nav-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.header-right .nav-link:hover {
    color: #1890ff;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-buttons .btn-primary {
    background-color: white;
    color: #1890ff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.hero-buttons .btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.hero-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.illustration {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 300px;
}

.computer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.screen {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.screen-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.icon-box.blue {
    background-color: #e6f7ff;
}

.icon-box.green {
    background-color: #f6ffed;
}

.icon-box.red {
    background-color: #fff1f0;
}

.icon-box.yellow {
    background-color: #fffbe6;
}

.stand {
    width: 40px;
    height: 60px;
    background-color: #f0f0f0;
    margin: 10px auto 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.person {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    font-size: 48px;
}

.devices {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 20px;
}

.device {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

.device.phone {
    animation-delay: 0s;
}

.device.tablet {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 功能区域样式 */
.features {
    padding: 80px 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 60px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f5f7fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: white;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 部分标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.section-header p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 英雄区域统计 */
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 常见问题样式 */
.faq {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-question:hover {
    background-color: #f5f7fa;
}

.faq-question span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.faq-toggle {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #1890ff;
    cursor: pointer;
    transition: transform 0.3s;
}

.faq-toggle:hover {
    transform: scale(1.1);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    border-top: 1px solid #f0f0f0;
}

.faq-answer p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* CTA 区域样式 */
.cta {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary.large {
    padding: 16px 32px;
    font-size: 16px;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-info .logo-icon {
    font-size: 24px;
    margin-right: 10px;
}

.footer-info .logo-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.footer-info p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: #1890ff;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .faq-question span {
        font-size: 14px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
}

/* 用户登录页面样式 */
.user-login-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.user-login-form {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.login-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.user-login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.user-login-form label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.user-login-form input[type="text"],
.user-login-form input[type="password"],
.user-login-form input[type="email"],
.user-login-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.user-login-form input[type="text"]:focus,
.user-login-form input[type="password"]:focus,
.user-login-form input[type="email"]:focus,
.user-login-form select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.user-login-form button {
    width: 100%;
    padding: 12px 24px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.user-login-form button:hover {
    background-color: #40a9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.user-login-form #qrcode-container {
    margin-top: 30px;
    text-align: center;
}

.user-login-form #qrcode-image {
    margin: 20px 0;
}

.user-login-form #qrcode-image img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-login-form #login-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
}

.login-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    background-color: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

input[type="datetime-local"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="datetime-local"]:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

input[type="password"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="password"]:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

button {
    width: 100%;
    padding: 10px 15px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #40a9ff;
}

#qrcode-container {
    margin-top: 20px;
    text-align: center;
}

#qrcode-image {
    margin: 20px 0;
}

#qrcode-image img {
    max-width: 200px;
    height: auto;
}

#login-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
}

.hidden {
    display: none;
}

.success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.error {
    background-color: #fff1f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

.loading {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #1890ff;
}

.warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    color: #faad14;
}

/* 后台管理界面样式 */
.admin-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    background-color: #f0f2f5;
    overflow: hidden;
}

.sidebar {
    width: 200px;
    background-color: white;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    border-right: 1px solid #e8e8e8;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
    z-index: 1;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1890ff;
}

.sidebar-subtitle {
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    margin: 4px 0;
    border-radius: 0;
}

.nav-item:hover {
    background-color: #f0f7ff;
    color: #1890ff;
    border-left-color: #1890ff;
}

.nav-item.active {
    background-color: #e6f7ff;
    color: #1890ff;
    border-left-color: #1890ff;
    font-weight: 500;
}

.nav-icon {
    margin-right: 12px;
    font-size: 18px;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-footer {
    border-top: 1px solid #e8e8e8;
    padding: 20px 0;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.logout-btn {
    width: 100%;
    text-align: left;
    background: none;
    padding: 14px 20px;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-size: 14px;
}

.logout-btn:hover {
    background-color: #fff1f0;
    color: #ff4d4f;
    border-left-color: #ff4d4f;
}

.logout-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.logout-btn span {
    font-weight: 500;
}

.main-content {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
    background-color: #f0f2f5;
}

.content-header {
    margin-bottom: 30px;
    background: white;
    padding: 24px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.content-header h1 {
    margin: 0;
    color: #333;
    text-align: left;
    font-size: 24px;
    font-weight: 600;
}

.content-subtitle {
    margin-top: 8px;
    color: #999;
    font-size: 14px;
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease;
}

.message.success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.message.error {
    background-color: #fff1f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

.message.warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    color: #faad14;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 24px 30px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.card-header h2 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.card-header p {
    margin: 8px 0 0 0;
    color: #999;
    font-size: 14px;
}

.card-body {
    padding: 30px;
}

.config-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    margin-bottom: 20px;
}

.config-row .form-group {
    margin-bottom: 0;
}

.config-row button {
    align-self: end;
    padding: 10px 24px;
    white-space: nowrap;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #69c0ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff7875 0%, #ffa8a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 70px;
    text-align: center;
    width: 70px;
}

.btn-primary.btn-sm {
    padding: 8px 16px;
    width: 70px;
}

.btn-danger.btn-sm {
    padding: 8px 16px;
    width: 70px;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.data-table td {
    font-size: 14px;
    color: #666;
}

.data-table tr {
    transition: all 0.2s;
}

.data-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-success {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-danger {
    background-color: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 0;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-text {
    color: #999;
    font-size: 14px;
}

/* 滑动开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1890ff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 小尺寸滑动开关 */
.toggle-switch.small {
    width: 40px;
    height: 20px;
}

.toggle-switch.small .slider {
    border-radius: 20px;
}

.toggle-switch.small .slider:before {
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
}

.toggle-switch.small input:checked + .slider:before {
    transform: translateX(20px);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #868e96 0%, #adb5bd 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
    }

    .sidebar-header {
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
        padding: 20px;
    }

    .sidebar-nav {
        display: flex;
        padding: 0;
    }

    .nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 4px solid transparent;
    }

    .nav-item.active {
        border-left-color: transparent;
        border-bottom-color: #1890ff;
    }

    .sidebar-footer {
        display: none;
    }

    .config-row {
        grid-template-columns: 1fr;
    }

    .config-row button {
        align-self: stretch;
    }

    .toggle-section form {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}