/* Minerva的游戏乐园样式 - 现代儿童风格 */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

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

body {
    font-family: 'Nunito', 'Comic Sans MS', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #2d3436;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border-radius: 0 0 30px 30px;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: none;
    box-shadow: none;
}

h1 {
    color: #e84393;
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 2px 2px 0px #feca57, 4px 4px 0px #ff9ff3, 6px 6px 0px #54a0ff;
    margin-bottom: 15px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.subtitle {
    color: #6c5ce7;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

nav ul li a:hover::before {
    opacity: 1;
}

nav ul li a:hover, nav ul li a.active {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

nav ul li a.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

main {
    flex: 1;
    padding: 30px 20px;
}

.container {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #f093fb 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.4;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.container::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, #4facfe 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.4;
    z-index: -1;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* 首页特殊样式 */
.hero {
    text-align: center;
    padding: 50px 0;
}

.hero h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #e84393;
    margin-bottom: 25px;
    text-shadow: 1px 1px 0px #feca57;
    position: relative;
    display: inline-block;
}

.hero h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 6px;
    background: linear-gradient(90deg, #f093fb, #f5576c, #4facfe);
    border-radius: 3px;
}

.hero p {
    font-size: 1.4rem;
    color: #6c5ce7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
}

.btn-secondary {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.features, .levels {
    padding: 50px 0;
}

.features h2, .levels h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #e84393;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.features h2::after, .levels h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 6px;
    background: linear-gradient(90deg, #f093fb, #f5576c, #4facfe);
    border-radius: 3px;
}

.feature-grid, .level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

.feature-card h3 {
    color: #2d3436;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.3rem;
}

.feature-card p {
    color: #636e72;
    font-weight: 600;
    line-height: 1.5;
}

.level-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    display: block;
    position: relative;
    overflow: hidden;
}

.level-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.level-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.level-card h3 {
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.4rem;
}

.level-card p {
    margin-bottom: 15px;
    opacity: 0.9;
    font-weight: 600;
}

.difficulty {
    font-size: 1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
}

.testimonials {
    padding: 40px 0;
}

.testimonials h2 {
    text-align: center;
    font-size: 2rem;
    color: #e84393;
    margin-bottom: 30px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: #2d3436;
}

.testimonial-author {
    text-align: right;
    font-weight: bold;
    color: #6c5ce7;
}

/* 关于页面样式 */
.about-hero {
    text-align: center;
    padding: 40px 0;
}

.about-hero h2 {
    font-size: 2.2rem;
    color: #e84393;
    margin-bottom: 20px;
}

.lead {
    font-size: 1.2rem;
    color: #6c5ce7;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    padding: 40px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-card h3 {
    color: #e84393;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.about-card p {
    color: #2d3436;
    line-height: 1.6;
}

.about-card ul {
    padding-left: 20px;
}

.about-card li {
    margin-bottom: 8px;
    color: #2d3436;
}

.team-section, .stats-section, .contact-section, .faq-section {
    padding: 40px 0;
}

.team-section h2, .stats-section h2, .contact-section h2, .faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #e84393;
    margin-bottom: 30px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.team-member {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    font-size: 3rem;
    margin-bottom: 15px;
}

.team-member h3 {
    color: #e84393;
    margin-bottom: 10px;
}

.team-member p {
    color: #636e72;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.contact-info {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin-bottom: 10px;
    color: #2d3436;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: #e84393;
    margin-bottom: 10px;
}

.faq-item p {
    color: #2d3436;
    line-height: 1.6;
}

/* 级别页面特殊样式 */
.level-header {
    text-align: center;
    padding: 30px 0;
}

.level-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e84393;
    margin-bottom: 15px;
    text-shadow: 1px 1px 0px #feca57;
    position: relative;
    display: inline-block;
}

.level-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 6px;
    background: linear-gradient(90deg, #f093fb, #f5576c, #4facfe);
    border-radius: 3px;
}

.level-header p {
    color: #6c5ce7;
    font-size: 1.2rem;
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 登录界面样式 */
.login-form {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.login-form::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #f093fb 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
}

.login-form h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #e84393;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.login-form p {
    color: #6c5ce7;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #6c5ce7;
    font-weight: 700;
}

input[type="text"] {
    width: 100%;
    padding: 18px 25px;
    border: 3px solid #dfe6e9;
    border-radius: 50px;
    font-size: 1.3rem;
    font-family: inherit;
    transition: all 0.3s ease;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus {
    border-color: #f093fb;
    outline: none;
    box-shadow: 0 0 0 5px rgba(240, 147, 251, 0.3);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.95);
}

button {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

button:hover::before {
    opacity: 1;
}

button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(-2px) scale(1.02);
}

/* 游戏界面样式 */
.game-container {
    display: none;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.2), rgba(79, 172, 254, 0.2));
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
}

.level-selector {
    margin-bottom: 40px;
}

.level-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.level-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.level-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.level-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.level-card.selected {
    border-color: #f093fb;
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(240, 147, 251, 0.3);
}

.level-card h3 {
    color: #2d3436;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.3rem;
}

.level-card p {
    color: #636e72;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.typing-area {
    margin-bottom: 40px;
    text-align: center;
}

.text-display {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 25px;
    font-size: 3rem;
    line-height: 1.8;
    letter-spacing: 2px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    font-weight: 800;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.text-display::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #f093fb 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.2;
}

.text-display .correct {
    color: #00b894;
    background-color: rgba(0, 184, 148, 0.2);
    animation: pulse 0.5s ease;
}

.text-display .incorrect {
    color: #d63031;
    background-color: rgba(214, 48, 49, 0.2);
    animation: shake 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.typing-input {
    width: 100%;
    padding: 20px 25px;
    border: 3px solid #dfe6e9;
    border-radius: 50px;
    font-size: 2rem;
    font-family: inherit;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.typing-input:focus {
    border-color: #f093fb;
    outline: none;
    box-shadow: 0 0 0 5px rgba(240, 147, 251, 0.3);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.95);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 600;
}

.stat-box .value {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.results-container {
    display: none;
    text-align: center;
    padding: 30px;
    background-color: rgba(116, 185, 255, 0.2);
    border-radius: 15px;
}

.results-container h2 {
    color: #e84393;
    margin-bottom: 20px;
    font-size: 2rem;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-box {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-box h3 {
    color: #6c5ce7;
    margin-bottom: 10px;
}

.result-box .value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e84393;
}

.leaderboard {
    margin-top: 30px;
}

.leaderboard h3 {
    color: #6c5ce7;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.leaderboard-table th, .leaderboard-table td {
    padding: 15px;
    text-align: left;
}

.leaderboard-table th {
    background-color: #6c5ce7;
    color: white;
}

.leaderboard-table tr:nth-child(even) {
    background-color: rgba(116, 185, 255, 0.1);
}

.leaderboard-table tr:hover {
    background-color: rgba(116, 185, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 25px;
    }
    
    .level-cards {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-stats {
        grid-template-columns: 1fr;
    }
    
    .text-display {
        font-size: 2.2rem;
        padding: 30px 20px;
    }
    
    .typing-input {
        font-size: 1.5rem;
    }
    
    nav ul li a {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

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

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

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* 特殊效果 */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #e84393;
    position: absolute;
    animation: confetti-fall 3s linear;
}

@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}