/* ========== 创新创业协会 - 公共样式 ========== */

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

/* ========== 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); }
}

/* ========== 3. 头部导航 ========== */
.header { 
    position: fixed; 
    top: 0; left: 0; right: 0; 
    padding: 16px 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); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    z-index: 100; 
}

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

.logo-icon { 
    width: 40px; 
    height: 40px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 20px; 
    font-weight: bold; 
}

.brand { font-size: 18px; font-weight: 600; }

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

.nav-btn { 
    padding: 8px 16px; 
    background: transparent; 
    border: none; 
    border-radius: 8px; 
    color: #666; 
    font-size: 14px; 
    cursor: pointer; 
    text-decoration: none; 
    transition: all 0.2s; 
}

.nav-btn:hover { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
}

/* ========== 4. 主内容区 ========== */
.main { padding-top: 80px; }

/* ========== 5. 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); 
}

/* ========== 6. 卡片容器 ========== */
.content { max-width: 900px; margin: -50px auto 40px; padding: 0 20px; }

.card { 
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px; 
    padding: 32px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    margin-bottom: 24px; 
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.card-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 20px; 
    padding-bottom: 16px; 
    border-bottom: 1px solid #eee; 
}

.card-title { 
    font-size: 18px; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

/* ========== 7. 快捷入口 ========== */
.quick-access { 
    max-width: 900px; 
    margin: -50px auto 40px; 
    padding: 0 20px; 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 24px; 
}

.quick-card { 
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px; 
    padding: 32px; 
    text-align: center; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    transition: all 0.3s; 
    cursor: pointer; 
    text-decoration: none; 
    color: inherit; 
    display: block; 
}

.quick-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2); 
}

.quick-icon { 
    width: 70px; 
    height: 70px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    border-radius: 18px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 16px; 
    font-size: 32px; 
}

.quick-card:nth-child(2) .quick-icon { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
}

.quick-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: #333; }
.quick-desc { font-size: 14px; color: #888; }

/* ========== 8. 通知公告 ========== */
.notices-section { max-width: 900px; margin: 0 auto 40px; padding: 0 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

.section-title { 
    font-size: 24px; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.section-title::before { 
    content: ''; 
    width: 4px; 
    height: 24px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    border-radius: 2px; 
}

.notice-count { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 4px 12px; 
    border-radius: 12px; 
    font-size: 13px; 
}

.notices-list { display: flex; flex-direction: column; gap: 16px; }

.notice-item { 
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px; 
    padding: 24px; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.04); 
    transition: all 0.2s; 
    cursor: pointer; 
}

.notice-item:hover { 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    transform: translateY(-2px); 
}

.notice-header { 
    display: flex; 
    align-items: flex-start; 
    justify-content: space-between; 
    margin-bottom: 12px; 
}

.notice-title { font-size: 17px; font-weight: 600; color: #333; flex: 1; }
.notice-date { font-size: 13px; color: #999; white-space: nowrap; margin-left: 16px; }
.notice-content { font-size: 14px; color: #666; line-height: 1.7; }

/* ========== 9. 负责人介绍 ========== */
.leader-section { max-width: 900px; margin: 0 auto 40px; padding: 0 20px; }
.leader-card { 
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px; 
    padding: 24px; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.04); 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.leader-avatar { 
    width: 80px; 
    height: 80px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 32px; 
    color: white; 
    font-weight: 600; 
}

.leader-info { flex: 1; }
.leader-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.leader-title { font-size: 14px; color: #667eea; margin-bottom: 8px; }
.leader-desc { font-size: 14px; color: #666; }

/* ========== 10. 页脚 ========== */
.footer { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 40px 20px; 
    text-align: center; 
}

.footer-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.footer-contact { font-size: 14px; opacity: 0.9; line-height: 1.8; }
.footer-bottom { 
    margin-top: 24px; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.2); 
    font-size: 13px; 
    opacity: 0.7; 
}

/* ========== 11. 按钮样式 ========== */
.btn { 
    padding: 10px 20px; 
    border: none; 
    border-radius: 10px; 
    font-size: 14px; 
    font-weight: 500; 
    cursor: pointer; 
    transition: all 0.2s; 
}

.btn-primary { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
}

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

.btn-secondary { background: transparent; color: #666; }
.btn-secondary:hover { background: #eee; }
.btn-danger { background: #fff1f0; color: #cf1322; }
.btn-danger:hover { background: #ffebe8; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ========== 12. 表单样式 ========== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: #555; margin-bottom: 6px; }
.form-input, .form-textarea { 
    width: 100%; 
    padding: 12px 14px; 
    border: 2px solid #e8e8e8; 
    border-radius: 10px; 
    font-size: 14px; 
    transition: all 0.2s; 
    outline: none; 
    font-family: inherit; 
}

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

.form-textarea { min-height: 120px; resize: vertical; }

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

/* ========== 14. 模态框 ========== */
.modal-overlay { 
    position: fixed; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background: rgba(0,0,0,0.5); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s; 
}

.modal-overlay.show { opacity: 1; visibility: visible; }

.modal { 
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px; 
    padding: 32px; 
    width: 90%; 
    max-width: 500px; 
    transform: scale(0.9); 
    transition: transform 0.3s; 
}

.modal-overlay.show .modal { transform: scale(1); }

.modal-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 24px; 
}

.modal-title { font-size: 20px; font-weight: 600; }
.modal-close { 
    width: 32px; 
    height: 32px; 
    border: none; 
    background: transparent; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 18px; 
    color: #666; 
    transition: all 0.2s; 
}

.modal-close:hover { background: #eee; }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ========== 15. Toast提示 ========== */
.toast { 
    position: fixed; 
    top: 100px; 
    left: 50%; 
    transform: translateX(-50%) translateY(-20px); 
    padding: 14px 24px; 
    border-radius: 12px; 
    font-size: 14px; 
    font-weight: 500; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s; 
    z-index: 1001; 
}

.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast-success { background: #52c41a; color: white; }
.toast-error { background: #ff4d4f; color: white; }

/* ========== 16. 登录页面 ========== */
.login-body { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.login-container { width: 100%; max-width: 400px; padding: 20px; }

.login-card { 
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    border-radius: 24px; 
    padding: 48px 40px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.2); 
}

.login-header { text-align: center; margin-bottom: 40px; }

.login-icon { 
    width: 80px; 
    height: 80px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 20px; 
    font-size: 36px; 
    color: white; 
}

.login-title { font-size: 24px; font-weight: 600; color: #333; margin-bottom: 8px; }
.login-subtitle { font-size: 14px; color: #888; }

.error-msg { 
    background: #fff1f0; 
    color: #cf1322; 
    padding: 12px 16px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    font-size: 14px; 
    display: none; 
}

.error-msg.show { display: block; }

.login-btn { 
    width: 100%; 
    padding: 16px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    border: none; 
    border-radius: 12px; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s; 
}

.login-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); 
}

.login-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.back-link { 
    display: block; 
    text-align: center; 
    margin-top: 24px; 
    color: #888; 
    text-decoration: none; 
    font-size: 14px; 
    transition: color 0.2s; 
}

.back-link:hover { color: #667eea; }

.demo-hint { 
    margin-top: 24px; 
    padding: 16px; 
    background: #f8f9fc; 
    border-radius: 12px; 
    text-align: center; 
}

.demo-hint-title { font-size: 13px; color: #666; margin-bottom: 8px; }
.demo-hint-content { font-size: 14px; color: #333; font-weight: 500; }

/* ========== 17. 后台管理页面 ========== */
.page-header { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 40px 20px; 
    text-align: center; 
}

.page-title { font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.page-subtitle { font-size: 14px; opacity: 0.9; }

.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-list-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 16px; 
    padding: 16px; 
    background: #f8f9fc; 
    border-radius: 12px; 
    transition: all 0.2s; 
}

.notice-list-item:hover { background: #f0f2f8; }
.notice-list-content { flex: 1; min-width: 0; }
.notice-list-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 4px; }
.notice-list-text { 
    font-size: 13px; 
    color: #666; 
    line-height: 1.5; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

.notice-list-date { font-size: 12px; color: #999; margin-top: 8px; }
.notice-list-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ========== 18. 用户信息 ========== */
.user-info { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: #666; 
    font-size: 14px; 
}

.logout-btn { 
    padding: 8px 16px; 
    background: transparent; 
    border: none; 
    border-radius: 8px; 
    color: #666; 
    font-size: 14px; 
    cursor: pointer; 
    transition: all 0.2s; 
}

.logout-btn:hover { background: #fee; color: #cf1322; }

/* ========== 19. 响应式适配 ========== */
@media (max-width: 600px) {
    .header { padding: 12px 16px; }
    .header-right { display: none; }
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .quick-access { grid-template-columns: 1fr; margin-top: -40px; }
    .quick-card { padding: 24px; }
    .section-title { font-size: 20px; }
    .leader-card { flex-direction: column; text-align: center; }
    .card { padding: 16px; }
    .notice-list-item { flex-direction: column; }
    .notice-list-actions { width: 100%; justify-content: flex-end; margin-top: 12px; }
    .modal { padding: 20px; }
    .login-card { padding: 32px 24px; }
}
