* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-color: #333;
    --bg-color: #f7f9fc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    color: white;
    padding: 40px 20px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.module-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.module-card.placeholder {
    opacity: 0.6;
    cursor: not-allowed;
}

.module-card.placeholder:hover {
    transform: none;
}

.module-emoji {
    font-size: 60px;
    margin-bottom: 15px;
}

.module-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.module-desc {
    color: #666;
    font-size: 0.95em;
}

footer {
    text-align: center;
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .module-card {
        padding: 20px;
    }
}

/* 备案号样式 */
.beian {
    margin-top: 10px;
}

.beian a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.beian a:hover {
    color: white;
    text-decoration: underline;
}

/* 模块页面 footer 样式 */
.module-footer {
    text-align: center;
    padding: 20px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: 40px;
}

.module-footer .beian a {
    color: rgba(255, 255, 255, 0.9);
}
