/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 链接样式 */
a {
    padding: 8px 16px;
    text-decoration: none;
    color: #667eea;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* 布局组件 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0;
}

/* 登录栏样式 */
.loginbar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.loginbar p {
    margin: 0;
    color: #2c3e50;
    font-weight: 500;
}

/* 登录弹窗样式 */
.login {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login .modal {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 500px;
}

.login iframe {
    width: 100%;
    border: none;
    margin-bottom: 20px;
}

.login button {
    width: 100%;
    padding: 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.login button:hover {
    background: #5568d3;
}

/* 主内容区样式 */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* 章节标题样式 */
.section-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

/* 菜单网格样式 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.menu-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #2c3e50;
    border: 2px solid transparent;
}

.menu-item:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* 资源列表样式 */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.resource-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.resource-item p {
    color: #6c757d;
    margin-bottom: 10px;
}

.resource-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.resource-item a:hover {
    text-decoration: underline;
}

/* 提示信息样式 */
.notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.notice p {
    margin: 0;
    color: #856404;
}

/* 页脚样式 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 30px;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    color: #6c757d;
    margin: 5px 0;
}

/* 备案信息样式 */
.beian-link {
    color: #666;
    text-decoration: none;
}

.beian-item {
    display: inline-block;
    margin: 10px 0;
}

.beian-icon {
    vertical-align: middle;
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .login .modal {
        width: 95%;
    }
}