/* 基础重置与全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --primary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
    --secondary-color: #ffd93d;
    --accent-color: #ff9a8b;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #fff5f0;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 32px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* 主横幅 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8e8 50%, #fff9e6 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 217, 61, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: 20px;
}

.title-main {
    display: block;
    font-size: 56px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: slideInLeft 0.8s ease-out;
}

.title-sub {
    display: block;
    font-size: 24px;
    color: var(--text-light);
    font-weight: 400;
    animation: slideInLeft 1s ease-out;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
    animation: slideInLeft 1.2s ease-out;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    animation: slideInLeft 1.4s ease-out;
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

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

.hero-stats {
    display: flex;
    gap: 40px;
    animation: slideInLeft 1.6s ease-out;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.dice-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.dice {
    font-size: 80px;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.dice:nth-child(1) { animation-delay: 0s; }
.dice:nth-child(2) { animation-delay: 0.2s; }
.dice:nth-child(3) { animation-delay: 0.4s; }
.dice:nth-child(4) { animation-delay: 0.6s; }
.dice:nth-child(5) { animation-delay: 0.8s; }
.dice:nth-child(6) { animation-delay: 1s; }

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

.moon-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 120px;
    opacity: 0.3;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.3; filter: brightness(1); }
    50% { opacity: 0.5; filter: brightness(1.2); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    animation: fadeIn 2s ease-out;
}

.scroll-arrow {
    margin-top: 10px;
    font-size: 24px;
    animation: arrowBounce 2s ease-in-out infinite;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 通用 Section 样式 */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.title-decoration {
    font-size: 36px;
    margin: 0 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
}

/* 奖项预览 */
.gameplay-preview {
    background: var(--bg-light);
}

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

.prize-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.prize-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.prize-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.prize-card:hover::before {
    transform: scaleX(1);
}

.prize-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.prize-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.prize-rule {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.prize-level {
    font-size: 20px;
    color: var(--secondary-color);
}

/* 规则区域 */
.rules-section {
    background: white;
}

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

.rule-block {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.rule-block:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.rule-block h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.rule-block ul {
    list-style: none;
    padding-left: 0;
}

.rule-block li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.rule-block li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 20px;
}

.rule-block strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 活动指南 */
.guide-section {
    background: var(--bg-light);
}

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

.guide-card {
    background: white;
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.guide-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.guide-number {
    position: absolute;
    top: -15px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.guide-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.guide-card ul {
    list-style: none;
    padding-left: 0;
}

.guide-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.guide-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 小程序区域 */
.miniprogram-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.miniprogram-section .section-title,
.miniprogram-section .section-subtitle {
    color: white;
}

.miniprogram-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.miniprogram-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.qrcode-section {
    position: sticky;
    top: 100px;
}

.qrcode-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
}

.qrcode-header {
    text-align: center;
    margin-bottom: 25px;
}

.qrcode-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.qrcode-header p {
    font-size: 14px;
    color: var(--text-light);
}

.qrcode-placeholder {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.qrcode-box {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.qrcode-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    padding: 20px;
}

.qrcode-footer {
    text-align: center;
}

.btn-copy {
    width: 100%;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    color: white;
}

.copy-hint {
    font-size: 14px;
    color: var(--text-light);
}

.copy-hint strong {
    color: var(--primary-color);
}

.screenshots {
    margin-top: 30px;
}

.screenshots h4 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.screenshot-item {
    text-align: center;
}

.screenshot-placeholder {
    aspect-ratio: 9/16;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.screenshot-item p {
    font-size: 12px;
    color: var(--text-light);
}

/* FAQ 区域 */
.faq-section {
    background: white;
}

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

.faq-item {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.faq-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-question h3 {
    flex: 1;
    font-size: 18px;
    color: var(--text-dark);
}

.faq-toggle {
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 30px;
    display: flex;
    gap: 15px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    flex: 1;
    color: var(--text-light);
    line-height: 1.8;
}

/* 文化区域 */
.culture-section {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.culture-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.culture-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.culture-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 25px;
    text-align: justify;
}

.culture-visual {
    position: relative;
    height: 400px;
}

.lantern {
    position: absolute;
    font-size: 80px;
    animation: swing 3s ease-in-out infinite;
}

.lantern-1 {
    top: 0;
    left: 20%;
    animation-delay: 0s;
}

.lantern-2 {
    top: 100px;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.mooncake {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 100px;
    animation: float 4s ease-in-out infinite;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2d3436 0%, #000000 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-note {
    font-size: 12px !important;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content,
    .miniprogram-content,
    .culture-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .miniprogram-features {
        grid-template-columns: 1fr;
    }

    .qrcode-section {
        position: static;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
    }

    .title-main {
        font-size: 36px;
    }

    .title-sub {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .dice-container {
        height: 300px;
    }

    .dice {
        font-size: 50px;
    }

    .section-title {
        font-size: 32px;
    }

    .prizes-grid,
    .rules-content,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .title-main {
        font-size: 28px;
    }

    .hero-visual {
        display: none;
    }

    .culture-visual {
        display: none;
    }
}
