* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7B1FA2;
    --primary-dark: #4A148C;
    --primary-light: #CE93D8;
    --secondary-color: #E1BEE7;
    --accent-color: #FF9800;
    --accent-dark: #F57C00;
    --bg-light-purple: #F3E5F5;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-light-purple);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.play-button {
    display: inline-block;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.05);
}

.play-badge {
    height: 80px;
    width: auto;
    cursor: pointer;
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 游戏介绍 */
.intro {
    background: var(--bg-white);
}

.intro-text {
    background: linear-gradient(135deg, var(--bg-light-purple) 0%, rgba(243, 229, 245, 0.5) 100%);
    padding: 30px;
    border-radius: 12px;
}

.intro-text {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 游戏规则 */
.rules {
    background: var(--bg-light-purple);
}

.rules-content {
    max-width: 900px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    align-items: flex-start;
}

.rule-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.rule-item:nth-child(even) {
    flex-direction: row-reverse;
}

.rule-item:nth-child(even):hover {
    transform: translateX(-10px);
}

.rule-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.2;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rule-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.rule-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* 游戏特色 */
.highlights {
    background: var(--bg-white);
}

.highlights-list {
    max-width: 900px;
    margin: 0 auto;
}

.highlight-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.highlight-item:nth-child(even) {
    flex-direction: row-reverse;
}

.highlight-item:nth-child(even):hover {
    transform: translateX(-10px);
}

.highlight-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.2;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.highlight-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* 游戏类型 */
.game-types {
    background: var(--bg-light-purple);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.type-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.type-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.type-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.type-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* 底部 */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img-small {
    height: 40px;
    width: auto;
}

.footer-logo p {
    font-size: 18px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid,
    .types-grid {
        grid-template-columns: 1fr;
    }

    .rule-item,
    .highlight-item {
        flex-direction: column !important;
    }

    .rule-item:hover,
    .highlight-item:hover {
        transform: translateY(5px);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 18px;
    }

    .logo-img {
        height: 40px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .play-badge {
        height: 60px;
    }

    section {
        padding: 50px 0;
    }
}
