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

body {
    line-height: 1.6;
    background: linear-gradient(135deg, #6a11cb, #3c6ef1);
    background-attachment: fixed;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title {
    font-size: 2.5rem;       
    color: #ffd700;         
    font-weight: 700;        
    text-transform: uppercase; 
    letter-spacing: 2px;     
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); 
    margin-bottom: 40px;    
	animation: fadeInUp 1s ease;
}

.logo {
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    position: relative;
}

.nav-links a:hover {
    color: #ffd700;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.nav-links a.active {
    color: #ffd700;
}

.nav-links a.active::after {
    width: 100%;
    left: 0;
}

/* 主内容区 */
.main-content {
    margin-top: 80px;
    padding: 2rem 0;
    min-height: calc(100vh - 160px);
}

.hero, .about-banner {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin: 2rem 0;
}

.hero-title, .section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.subtitle, .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
}

.cta-button {
    padding: 15px 40px;
    background: #ffd700;
    color: #333;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* 广告位 */
.ad-banner {
    position: fixed;
    top: 200px;
    width: 200px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: float 2s ease-in-out infinite;
}

.ad-banner.right {
    right: calc(50% - 600px);
}

.ad-banner.left {
    left: calc(50% - 600px);
}

.ad-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 侧边栏广告 */
.sidebar {
    position: fixed;
    top: 80px;
    width: 200px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.left {
    left: 20px;
}

.right {
    right: 20px;
}

.ad-card {
    margin-bottom: 2rem;
    text-align: center;
}

.ad-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

/* 卡片式设计 */
.game-grid, .tool-grid, .community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px 0;
    justify-content: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card, .tool-card, .post-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.game-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.play-button {
    display: inline-block;
    padding: 10px 30px;
    background: #3c6ef1;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.play-button:hover {
    background: #2a52a8;
}

.tool-card {
    padding: 30px;
    text-align: center;
}

.tool-icon {
    font-size: 3rem;
    color: #3c6ef1;
    margin-bottom: 20px;
}

.post-card {
    padding: 20px;
}

.read-more {
    color: #3c6ef1;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* 表单样式 */
.submit-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
}

.form-textarea {
    height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #6a11cb;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #4c0a8f;
}

/* 关于我们内容 */
.about-content {
    margin: 2rem 0;
}

.about-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card h3 {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

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

.team-member {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.team-member img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* 赞助我们 */
.sponsor-section {
    margin: 2rem 0;
}

.sponsor-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.sponsor-tier {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.sponsor-tier:hover {
    border-color: #ffd700;
    transform: translateY(-5px);
}

.sponsor-tier h3 {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.sponsor-tier p {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.sponsor-tier ul {
    list-style: none;
    margin-bottom: 2rem;
}

.sponsor-tier li {
    margin-bottom: 0.5rem;
}

.sponsor-btn {
    padding: 0.8rem 2rem;
    background: #ffd700;
    color: #333;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sponsor-btn:hover {
    background: #e6c200;
    transform: translateY(-2px);
}

.sponsor-form {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.sponsor-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.amount-options {
    display: flex;
    gap: 1rem;
}

.amount-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover, .amount-btn.active {
    background: #ffd700;
    color: #333;
}

.sponsor-form select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* 广告横幅 */
.ad-banner-section {
    margin: 2rem 0;
}

.ad-banners {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ad-banner {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.ad-banner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    text-align: center;
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    color: #fff;
    margin: 0 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffd700;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .sidebar {
        position: static;
        width: 100%;
        max-width: 600px;
        margin: 2rem auto;
        display: flex;
        justify-content: space-around;
    }

    .left,
    .right {
        position: static;
        margin: 0 1rem;
    }

    .game-grid,
    .tool-grid,
    .post-grid,
    .team-grid,
    .sponsor-options {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero, .about-banner,
.game-card,
.tool-card,
.about-card,
.team-member,
.sponsor-tier {
    animation: float 3s ease-in-out infinite;
}

.hero, .about-banner {
    animation-delay: 0.1s;
}

.game-card:nth-child(2),
.about-card:nth-child(2),
.team-member:nth-child(2),
.sponsor-tier:nth-child(2) {
    animation-delay: 0.2s;
}

.game-card:nth-child(3),
.about-card:nth-child(3),
.team-member:nth-child(3),
.sponsor-tier:nth-child(3) {
    animation-delay: 0.3s;
}