/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --dark-color: #111827;
    --light-color: #f1faee;
    --accent-color: #a8dadc;
    --zombie-green: #38b000;
}

body {
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮样式 */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #c1121f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-secondary:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(17, 24, 39, 0.95); /* 增加背景不透明度提高可见性 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(8px); /* 增强模糊效果 */
    transition: transform 0.4s ease, height 0.4s ease, background-color 0.4s ease; /* 明确指定过渡属性 */
    height: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 添加默认阴影 */
}

.navbar.hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

/* 导航栏悬停显示效果 */
.navbar.hidden:hover {
    transform: translateY(0);
    transition-delay: 0s; /* 移除悬停延迟 */
}

/* 确保导航栏在移动设备上也能正常显示 */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--light-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 70px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 丧尸标题样式 */
.zombie-title {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 4.5rem;
    color: #ff3e4d;
    text-shadow:
        0 0 10px rgba(255, 62, 77, 0.8),
        0 0 20px rgba(255, 62, 77, 0.6),
        0 0 30px rgba(255, 62, 77, 0.4),
        4px 4px 0 rgba(0, 0, 0, 0.9);
    position: relative;
    letter-spacing: 3px;
    transform: rotate(-1deg);
    animation: bloodPulse 2s infinite alternate, textShake 5s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: inline-block;
}

.zombie-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="%23660000" stroke-width="0.5" stroke-dasharray="2,2" opacity="0.3"/></svg>');
    background-size: cover;
    pointer-events: none;
    z-index: 1;
    animation: crackle 8s infinite linear;
}

.zombie-title::after {
    content: '! 活下去 !';
    position: absolute;
    top: 2px;
    left: 2px;
    color: rgba(0, 0, 0, 0.7);
    z-index: -1;
    opacity: 0.8;
    filter: blur(1px);
}

.zombie-title:hover {
    transform: rotate(-1deg) scale(1.05);
    text-shadow:
        0 0 15px rgba(255, 62, 77, 0.9),
        0 0 30px rgba(255, 62, 77, 0.7),
        0 0 45px rgba(255, 62, 77, 0.5),
        4px 4px 0 rgba(0, 0, 0, 0.9);
    animation: bloodPulse 1.5s infinite alternate, textShake 4s infinite, glowPulse 2s infinite;
}

@keyframes bloodPulse {
    0% {
        color: #e63946;
        text-shadow:
            0 0 10px rgba(230, 57, 70, 0.8),
            0 0 20px rgba(230, 57, 70, 0.6),
            0 0 30px rgba(230, 57, 70, 0.4),
            4px 4px 0 rgba(0, 0, 0, 0.9);
    }
    100% {
        color: #ff5252;
        text-shadow:
            0 0 15px rgba(255, 82, 82, 0.9),
            0 0 30px rgba(255, 82, 82, 0.7),
            0 0 45px rgba(255, 82, 82, 0.5),
            4px 4px 0 rgba(0, 0, 0, 0.9);
    }
}

@keyframes textShake {
    0%, 100% {
        transform: rotate(-1deg) scale(1);
    }
    2% {
        transform: rotate(-0.5deg) scale(1.01);
    }
    4% {
        transform: rotate(-1.5deg) scale(0.99);
    }
    6% {
        transform: rotate(-0.8deg) scale(1.02);
    }
    8% {
        transform: rotate(-1.2deg) scale(0.98);
    }
    10% {
        transform: rotate(-1deg) scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 15px 5px rgba(230, 57, 70, 0.3);
    }
    50% {
        box-shadow: 0 0 25px 8px rgba(230, 57, 70, 0.5);
    }
}

@keyframes crackle {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* 粒子效果容器 */
.particle-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    min-width: 100px;
    min-height: 50px;
    pointer-events: none;
    z-index: 0;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 特色内容样式 */
.features {
    padding: 100px 0;
    background-color: #1a1a1a;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--light-color);
}

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

.feature-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.5rem;
    color: var(--light-color);
}

.feature-card p {
    padding: 0 20px 20px;
    color: #ccc;
}

/* 展示区域样式 */
.showcase {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--light-color);
}

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

.showcase-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.showcase-item:hover {
    transform: scale(1.03);
}

.showcase-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.showcase .btn-secondary {
    display: block;
    margin: 0 auto;
    text-align: center;
    max-width: 200px;
}

/* 下载区域样式 */
.download-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/download-bg.jpg') no-repeat center center/cover;
    padding: 100px 0;
    text-align: center;
}

.download-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.download-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 页脚样式 */
footer {
    background-color: #111;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    color: var(--light-color);
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.footer-links ul,
.footer-social ul {
    list-style: none;
}

.footer-links li,
.footer-social li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social ul {
    display: flex;
}

.footer-social li {
    margin-right: 15px;
}

.footer-social img {
    height: 48px;
    width: 48px;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.footer-social img:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
}

/* 页面标题区域样式 */
.page-header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    background-attachment: fixed;
}

.header-content {
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 正常标题样式 */
.normal-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Arial', sans-serif;
    letter-spacing: normal;
    transform: none;
    animation: none;
}

/* 丧尸标题样式 */
.zombie-title {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 4.5rem;
    color: #ff3e4d;
    text-shadow:
        0 0 10px rgba(255, 62, 77, 0.8),
        0 0 20px rgba(255, 62, 77, 0.6),
        0 0 30px rgba(255, 62, 77, 0.4),
        4px 4px 0 rgba(0, 0, 0, 0.9);
    position: relative;
    letter-spacing: 3px;
    transform: rotate(-1deg);
    animation: bloodPulse 2s infinite alternate, textShake 5s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: inline-block;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 15px #ff4d4d, 0 0 20px #ff4d4d;
    }
    to {
        text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ff1a1a, 0 0 40px #ff1a1a;
    }
}

.header-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-color);
}

/* 社区统计数据 */
.community-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.stat-text {
    display: block;
    font-size: 1rem;
    color: var(--light-color);
}

/* 社区欢迎区域样式 */
.community-welcome {
    padding: 100px 0;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.community-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.welcome-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.welcome-text {
    flex: 1;
}

.welcome-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
    position: relative;
    display: inline-block;
}

.welcome-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), #ff8e8e);
}

.welcome-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

.welcome-image {
    flex: 1;
    position: relative;
}

.welcome-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), #ff8e8e);
    border-radius: 8px;
    z-index: -1;
}

.welcome-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.welcome-image:hover img {
    transform: translateY(-5px);
}

/* 社区平台样式 */
.community-platforms {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--light-color);
}

.section-header p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}

/* 社区平台卡片 */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.platform-card {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 107, 0.2);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), #ff8e8e);
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.platform-card:hover .platform-icon {
    transform: scale(1.1);
}

.platform-icon img {
    max-width: 50px;
    max-height: 50px;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.platform-card:hover .platform-icon img {
    filter: brightness(1);
}

.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-color);
}

.platform-card p {
    font-size: 1rem;
    color: #bbb;
    margin-bottom: 20px;
    flex-grow: 1;
}

.join-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, var(--primary-color), #ff8e8e);
    color: white;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.join-btn:hover::before {
    left: 100%;
}

.join-btn:hover {
    box-shadow: 0 0 15px var(--primary-color);
}

/* 社区指南 */
.community-guidelines {
    padding: 100px 0;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.community-guidelines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.05) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--light-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), #ff8e8e);
}

.section-header p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.guideline-item {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.guideline-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.guideline-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.guideline-item:hover .guideline-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.guideline-icon svg {
    width: 40px;
    height: 40px;
}

.guideline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-color);
}

.guideline-item p {
    font-size: 1rem;
    color: #bbb;
    line-height: 1.6;
}

/* 常见问题样式 */
.faq-section {
    padding: 100px 0;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.05) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 107, 107, 0.1);
    background-color: #2a2a2a;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--light-color);
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.faq-question::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.faq-question:hover {
    background: linear-gradient(145deg, #333333, #222222);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    content: '+';
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #222;
}

.faq-answer p {
    padding: 20px 0;
    margin: 0;
    color: #bbb;
    line-height: 1.6;
}

/* 社区活动样式 */
.community-events {
    padding: 100px 0;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.community-events::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 70%, rgba(255, 107, 107, 0.05) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.event-card {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.event-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0.6;
}

.event-info {
    padding: 20px;
}

.event-date {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.event-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.event-card:hover .event-date::before {
    left: 100%;
}

.event-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-color);
}

.event-info p {
    font-size: 1rem;
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.6;
}

.event-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, var(--primary-color), #ff8e8e);
    color: white;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

.event-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.event-link:hover::before {
    left: 100%;
}

.event-link:hover {
    box-shadow: 0 0 15px var(--primary-color);
    color: white;
}

/* 联系表单样式 */
.contact-form-section {
    padding: 100px 0;
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 30%, rgba(255, 107, 107, 0.05) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 0;
}

.contact-form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 107, 107, 0.1);
    position: relative;
    z-index: 1;
}

.contact-form-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: linear-gradient(to bottom right, var(--secondary-color), #3a1b1b);
    position: relative;
}

.contact-form-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.contact-form-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--light-color);
    position: relative;
    z-index: 1;
}

.contact-form-info p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.contact-detail:hover {
    transform: translateX(10px);
}

.contact-detail svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.contact-detail:hover svg {
    transform: scale(1.2);
}

.contact-detail span {
    color: #ccc;
    font-size: 1rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--light-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

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

.contact-form button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(to right, var(--primary-color), #ff8e8e);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.contact-form button:hover::before {
    left: 100%;
}

.contact-form button:hover {
    box-shadow: 0 0 20px var(--primary-color);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(17, 24, 39, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .features h2,
    .showcase h2,
    .download-section h2,
    .section-header h2 {
        font-size: 2rem;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
    }
    
    .community-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .platforms-grid,
    .guidelines-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    .header-content h1 {
        font-size: 2.2rem;
    }
    
    .welcome-text h2,
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .contact-form-info,
    .contact-form {
        padding: 30px 20px;
    }
}