/* 通用样式 - 童趣设计风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px; /* 为固定导航栏留空间 */
}

/* 固定导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 0 0 20px 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* 标题样式 */
.section-title {
    font-size: 24px;
    color: #4facfe;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

.btn-secondary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 动画效果 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rainbow {
    0% { color: #ff6b6b; }
    16% { color: #ffa726; }
    33% { color: #66bb6a; }
    50% { color: #42a5f5; }
    66% { color: #ab47bc; }
    83% { color: #ef5350; }
    100% { color: #ff6b6b; }
}

.bounce {
    animation: bounce 2s infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

.rainbow {
    animation: rainbow 3s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        padding-top: 70px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-menu a {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .nav-logo span {
        font-size: 14px;
    }
    
    .nav-logo img {
        width: 30px;
        height: 30px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .btn-primary {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .card {
        padding: 15px;
    }
}

/* 特殊效果 */
.gradient-text {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-text {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.glow {
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.interactive {
    cursor: pointer;
    user-select: none;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============ 页脚 ============ */
.footer {
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #FF7A59, #FFD93D, #4CD7B0, #56B4FE, #FFA1C5) 1;
}

.footer p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* ============ 顶部学生姓名徽章 ============ */
.nav-student {
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1a2e;
    font-family: "Microsoft YaHei", "微软雅黑", SimSun, sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: default;
    white-space: nowrap;
    display: inline-block;
}

.nav-student:hover {
    background: rgba(255, 255, 255, 0.92);
}

/* 页面内的「去下一步」链接按钮 */
.next-link {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin-top: 10px;
}

.next-activity .next-link {
    margin-top: 12px;
}

/* 作品墙入口链接（与 btn-secondary 外观一致） */
.hall-link {
    display: inline-block;
    text-decoration: none;
    text-align: center;
} 