/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f5f7fa;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* 左侧导航样式 */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    padding: 20px;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.logo {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu li.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu li:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
}

.nav-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 右侧内容区样式 */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 20px;
}

/* Banner区域样式 */
.banner {
    background-image: url('images/banner.jpg');
    border-radius: 10px;
    padding: 0;
    margin-bottom: 30px;
    height: 300px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner-text {
    display: none;
}

.banner-text h2 {
    display: none;
}

.banner-text h3 {
    display: none;
}

.banner-badge {
    display: none;
}

.banner-features {
    display: none;
}

.feature-item {
    display: none;
}

.feature-item i {
    display: none;
}

/* 卡片区域样式 */
.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background: linear-gradient(135deg, #1a237e, #283593);
    border-radius: 3px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 15px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card.locked {
    opacity: 1;
    cursor: pointer;
}

.card.locked::after {
    display: none;
}

.card.locked::before {
    content: '🔒';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 18px;
    z-index: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.card-icon.blue {
    background-color: #e3f2fd;
}

.card-icon.yellow {
    background-color: #fff8e1;
}

.card-icon.orange {
    background-color: #fff3e0;
}

.card-icon.green {
    background-color: #e8f5e9;
}

.card-icon.cyan {
    background-color: #e0f7fa;
}

.card-icon.red {
    background-color: #ffebee;
}

.card-icon.purple {
    background-color: #f3e5f5;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    margin-top: 5px;
}

/* 登录框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.modal-content input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.modal-content .btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content .btn-primary:hover {
    background-color: #357abd;
}

.modal-content .close-button {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-content .close-button:hover {
    color: #333;
}

.error-message {
    background-color: #fff2f2;
    color: #ff4444;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ffcccc;
    display: none;
}

/* 登录选项卡样式 */
.login-options {
    width: 100%;
}

.login-option-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 500;
    color: #666;
}

.login-tab.active {
    color: #1a237e;
    border-bottom: 2px solid #1a237e;
}

.login-tab-content {
    padding: 10px 0;
}

/* 微信登录样式 */
.wechat-login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.wechat-qrcode {
    width: 180px;
    height: 180px;
    background-color: #f5f5f5;
    border: 1px solid #eee;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-qrcode img {
    max-width: 100%;
    max-height: 100%;
}

.wechat-tip {
    color: #666;
    font-size: 14px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.login-button {
    background-color: #1a237e;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.login-button:hover {
    background-color: #283593;
}

/* 用户信息和登出按钮 */
.user-info {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: white;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 90;
}

.user-info span {
    margin-right: 10px;
    font-weight: bold;
}

.logout-button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.logout-button:hover {
    background-color: #d32f2f;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .content {
        margin-left: 0;
        width: 100%;
        margin-top: 60px;
    }

    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background-color: #1a237e;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .banner {
        height: 200px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .card {
        padding: 8px;
        min-height: 90px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        margin-bottom: 8px;
    }

    .card-icon img {
        width: 26px;
        height: 26px;
    }

    .card-title {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .modal-content {
        margin: 20% auto;
        width: 85%;
        padding: 25px;
    }
    
    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .modal-content input {
        padding: 10px;
    }
    
    .modal-content .btn-primary {
        padding: 10px;
    }
}

@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }
}