/* ========== 粥粒智创 - 公共样式表 ========== */

/* ========== 1. 基础重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; 
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ========== 2. 弥散背景（核心视觉） ========== */
.bg-layer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 50%, #fce7f3 100%);
    z-index: -2;
}

.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: -1;
    animation: float 8s ease-in-out infinite;
}

.blob1 { width: 400px; height: 400px; background: #93c5fd; top: -100px; left: -100px; }
.blob2 { width: 350px; height: 350px; background: #c4b5fd; bottom: -50px; right: -50px; animation-delay: -2s; }
.blob3 { width: 300px; height: 300px; background: #fda4af; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

.blob3 { animation-name: float3; }
@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* ========== 3. 头部导航 ========== */
.header { 
    position: fixed; 
    top: 0; left: 0; right: 0; 
    padding: 14px 32px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    background: rgba(255,255,255,0.7); 
    backdrop-filter: blur(20px); 
    border-bottom: 1px solid rgba(255,255,255,0.5);
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header-left { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none; 
    color: #334155; 
}

.logo { 
    width: 44px; 
    height: 44px; 
    border-radius: 12px; 
    object-fit: cover; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.brand { 
    font-size: 22px; 
    font-weight: 700; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header-right { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
}

.nav { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.nav-link { 
    padding: 8px 16px; 
    border-radius: 20px; 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 500; 
    color: #475569; 
    transition: all 0.2s ease; 
}

.nav-link:hover { 
    background: rgba(255,255,255,0.8); 
    color: #667eea; 
}

.nav-link.active { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; 
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
}

/* ========== 4. 主内容区 ========== */
.main { 
    min-height: 100vh; 
    padding: 100px 24px 60px; 
    display: flex; 
    justify-content: center;
    align-items: flex-start;
}

.main-centered {
    align-items: center;
}

.container { 
    max-width: 1100px; 
    width: 100%; 
}

/* ========== 5. 页面标题 ========== */
.page-title { 
    text-align: center; 
    margin-bottom: 48px; 
}

.page-title h1 { 
    font-size: 42px; 
    font-weight: 800; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.page-title p { 
    font-size: 16px; 
    color: #64748b; 
}

/* ========== 6. 卡片样式 ========== */
.card { 
    background: rgba(255,255,255,0.6); 
    backdrop-filter: blur(20px); 
    border-radius: 24px; 
    padding: 32px; 
    border: 1px solid rgba(255,255,255,0.8); 
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    margin-bottom: 28px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
}

.card h2 { 
    font-size: 24px; 
    font-weight: 700; 
    color: #1e293b; 
    margin-bottom: 16px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.card p { 
    font-size: 15px; 
    color: #475569; 
    line-height: 1.8; 
}

/* ========== 7. 模块卡片 ========== */
.module { 
    background: rgba(255,255,255,0.6); 
    backdrop-filter: blur(20px); 
    border-radius: 24px; 
    padding: 36px 28px; 
    text-align: center;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.module:hover { 
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}

.badge-live {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.module-icon { 
    width: 72px; 
    height: 72px; 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 20px; 
    font-size: 36px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.module-blue .module-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.module-orange .module-icon { background: linear-gradient(135deg, #f97316, #ea580c); }
.module-purple .module-icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.module h3 { font-size: 24px; margin-bottom: 8px; font-weight: 700; color: #1e293b; }
.module p { font-size: 14px; color: #64748b; line-height: 1.6; margin-bottom: 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.tag { 
    font-size: 12px; 
    padding: 6px 14px; 
    border-radius: 16px; 
    border: 1px solid rgba(100, 116, 139, 0.3); 
    color: #475569; 
    background: rgba(255,255,255,0.5); 
}

.module-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 16px;
    border: 2px solid rgba(100, 116, 139, 0.3);
    color: #334155;
    background: rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}

.module:hover .module-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* ========== 8. 团队成员 ========== */
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    margin-top: 20px; 
}

.team-member { 
    background: rgba(255,255,255,0.5); 
    border-radius: 16px; 
    padding: 24px; 
    text-align: center; 
    border: 1px solid rgba(255,255,255,0.6); 
    transition: all 0.3s ease; 
}

.team-member:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 8px 24px rgba(0,0,0,0.1); 
}

.member-avatar { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    margin: 0 auto 16px; 
    object-fit: cover; 
    border: 3px solid rgba(255,255,255,0.8); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

.member-name { font-size: 18px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.member-role { font-size: 13px; color: #667eea; font-weight: 600; margin-bottom: 8px; }
.member-desc { font-size: 13px; color: #64748b; line-height: 1.6; }

/* ========== 9. 联系卡片 ========== */
.contact-card { 
    background: rgba(255,255,255,0.6); 
    backdrop-filter: blur(20px); 
    border-radius: 24px; 
    padding: 32px; 
    border: 1px solid rgba(255,255,255,0.8); 
    box-shadow: 0 8px 32px rgba(0,0,0,0.08); 
    margin-bottom: 28px; 
}

.contact-item { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    padding: 20px; 
    background: rgba(255,255,255,0.5); 
    border-radius: 16px; 
    margin-bottom: 12px; 
    transition: all 0.3s ease; 
}

.contact-item:hover { 
    transform: translateX(8px); 
    background: rgba(255,255,255,0.8); 
}

.contact-item:last-child { margin-bottom: 0; }

.contact-icon { 
    width: 48px; 
    height: 48px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 22px; 
}

.contact-icon.wechat { background: linear-gradient(135deg, #07c160, #10b981); }
.contact-icon.email { background: linear-gradient(135deg, #667eea, #764ba2); }

.contact-info { flex: 1; }
.contact-label { font-size: 13px; color: #64748b; margin-bottom: 4px; }
.contact-value { font-size: 16px; font-weight: 600; color: #1e293b; }

/* ========== 10. 二维码区域 ========== */
.qr-section { text-align: center; margin-top: 32px; }
.qr-section h3 { font-size: 18px; font-weight: 600; color: #1e293b; margin-bottom: 20px; }
.qr-codes { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.qr-item { text-align: center; }
.qr-img { 
    width: 140px; 
    height: 140px; 
    background: white; 
    border-radius: 16px; 
    margin-bottom: 12px; 
    object-fit: contain; 
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.qr-label { font-size: 14px; color: #475569; font-weight: 500; }

/* ========== 11. 统计数据 ========== */
.stats { 
    display: flex; 
    gap: 60px; 
    margin-top: 48px; 
    justify-content: center; 
}

.stat { text-align: center; }
.stat-value { 
    font-size: 40px; 
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 14px; color: #64748b; margin-top: 4px; }

/* ========== 12. Hero区域 ========== */
.hero { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    padding: 80px 20px; 
    text-align: center; 
    color: white; 
    position: relative; 
    overflow: hidden; 
}

.hero::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); 
}

.hero-content { position: relative; z-index: 1; }
.hero-icon { 
    width: 100px; 
    height: 100px; 
    background: rgba(255,255,255,0.2); 
    border-radius: 24px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 24px; 
    font-size: 48px; 
    backdrop-filter: blur(10px); 
}

.hero h1 { font-size: 42px; margin-bottom: 16px; font-weight: 700; }
.hero p { font-size: 18px; opacity: 0.95; max-width: 600px; margin: 0 auto 24px; line-height: 1.6; }
.school-name { 
    display: inline-block; 
    background: rgba(255,255,255,0.2); 
    padding: 8px 20px; 
    border-radius: 20px; 
    font-size: 15px; 
    backdrop-filter: blur(10px); 
}

/* ========== 13. 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.8);
    color: #475569;
    border: 2px solid rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover {
    background: white;
    border-color: #667eea;
    color: #667eea;
}

/* ========== 14. 表单样式 ========== */
.form-group { margin-bottom: 20px; }
.form-label { 
    display: block; 
    font-size: 14px; 
    font-weight: 500; 
    color: #475569; 
    margin-bottom: 8px; 
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(100, 116, 139, 0.2);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.8);
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* ========== 15. 页脚 ========== */
.footer { 
    text-align: center; 
    margin-top: 48px; 
    padding: 32px 20px;
    font-size: 13px; 
    color: #94a3b8; 
    border-top: 1px solid rgba(255,255,255,0.5);
}

.footer a { color: #667eea; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ========== 16. 徽章标签 ========== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.badge-green { background: linear-gradient(135deg, #10b981, #34d399); color: white; }
.badge-orange { background: linear-gradient(135deg, #f97316, #ea580c); color: white; }

/* ========== 17. 空状态 ========== */
.empty-state { 
    text-align: center; 
    padding: 60px 20px; 
    color: #999; 
}
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }

/* ========== 18. 提示框 ========== */
.tip-box { 
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%); 
    border-left: 4px solid #ff9800; 
    padding: 16px 20px; 
    border-radius: 0 12px 12px 0; 
    margin-top: 24px; 
}

.tip-box h4 { color: #e65100; margin-bottom: 8px; font-size: 15px; }
.tip-box p { font-size: 14px; color: #666; line-height: 1.6; }

/* ========== 19. 响应式适配 ========== */
@media (max-width: 900px) { 
    .modules { grid-template-columns: 1fr; gap: 20px; }
    .page-title h1 { font-size: 36px; }
    .card { padding: 24px; }
    .module { padding: 28px 24px; }
    .module-icon { width: 60px; height: 60px; font-size: 30px; }
}

@media (max-width: 600px) {
    .header { padding: 12px 16px; }
    .brand { font-size: 18px; }
    .logo { width: 38px; height: 38px; }
    .nav-link { padding: 6px 12px; font-size: 13px; }
    .main { padding: 80px 16px 40px; }
    .page-title h1 { font-size: 28px; }
    .stats { gap: 40px; }
    .stat-value { font-size: 32px; }
    .qr-codes { gap: 20px; }
    .contact-item { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
}

/* ========== 20. 动画效果 ========== */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 交互增强样式 ========== */

/* 导航链接点击效果 */
.nav-link:active {
    transform: scale(0.96);
}

/* 模块卡片点击效果 */
.module:active {
    transform: translateY(-2px) scale(0.98);
}

/* 按钮通用过渡 */
.btn, button {
    transition: all 0.3s ease;
}

/* 点击涟漪动画 */
.clicked {
    animation: clickPulse 0.15s ease;
}

@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

/* 焦点可见性 - 无障碍支持 */
.nav-link:focus-visible,
.module:focus-visible,
button:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 链接悬停效果增强 */
a:not(.nav-link):not(.module):hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* 页面过渡动画 */
body {
    transition: opacity 0.3s ease;
}
