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

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

body {
    font-family: 'Nunito', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 首页全屏背景区域 - 高级版本 */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    max-height: 1080px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('../images/bg.png') center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 针对高分辨率屏幕的适配 */
@media screen and (min-width: 1920px) {
    .hero-background {
        background-size: 100% auto;
        background-position: center top;
    }
}

/* 针对宽屏显示器的适配 */
@media screen and (min-aspect-ratio: 16/9) {
    .hero-background {
        background-size: 100% auto;
        background-position: center center;
    }
}

/* 针对竖屏或较窄屏幕的适配 */
@media screen and (max-aspect-ratio: 4/3) {
    .hero-background {
        background-size: auto 100%;
        background-position: center center;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* 主要内容区域 */
.main-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    z-index: 10;
}

.content-left {
    flex: 1;
    text-align: center;
}

.game-info {
    color: #fff;
}

.game-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    position: relative;
    text-align: center;
}

.game-logo {
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
}

/* 简化后的标题样式，移除复杂动画 */

.game-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    letter-spacing: 1px;
}

.game-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* 按钮容器 - 水平布局 */
.buttons-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.game-button {
    width: 225px;
    height: 56px;
    opacity: 0.9;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: buttonFloat 3s ease-in-out infinite;
}

.game-button:nth-child(1) { animation-delay: 0s; }
.game-button:nth-child(2) { animation-delay: 0.5s; }
.game-button:nth-child(3) { animation-delay: 1s; }

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

.game-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.game-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

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

.game-button:hover {
    opacity: 1;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

/* 二维码容器 */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qr-code:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

.qr-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 300;
    text-align: center;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


/* 装饰性粒子效果 - 保留可爱粒子 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    animation: particleFloat 8s infinite linear;
}

/* 心形粒子 */
.particle:nth-child(1),
.particle:nth-child(4),
.particle:nth-child(7) {
    width: 12px;
    height: 12px;
    background: #ff6b9d;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(-45deg);
    animation: heartFloat 8s infinite linear;
}

.particle:nth-child(1)::before,
.particle:nth-child(4)::before,
.particle:nth-child(7)::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 12px;
    background: #ff6b9d;
    left: 6px;
    top: -6px;
    border-radius: 50px 50px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.particle:nth-child(1)::after,
.particle:nth-child(4)::after,
.particle:nth-child(7)::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 12px;
    background: #ff6b9d;
    left: -6px;
    top: -6px;
    border-radius: 50px 50px 0 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

/* 星星粒子 */
.particle:nth-child(2),
.particle:nth-child(5),
.particle:nth-child(8) {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #feca57;
    position: relative;
    transform: rotate(35deg);
    animation: starFloat 6s infinite linear;
}

.particle:nth-child(2)::before,
.particle:nth-child(5)::before,
.particle:nth-child(8)::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 3px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #feca57;
    transform: rotate(-70deg);
}

.particle:nth-child(2)::after,
.particle:nth-child(5)::after,
.particle:nth-child(8)::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 3px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #feca57;
    transform: rotate(70deg);
}

/* 圆形粒子 */
.particle:nth-child(3),
.particle:nth-child(6) {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #667eea, #764ba2);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
    animation: bubbleFloat 7s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 6s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 8s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 6s;
    animation-duration: 7s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 7s;
    animation-duration: 9s;
}

@keyframes heartFloat {
    0% {
        transform: translateY(100vh) rotate(-45deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(-45deg) scale(1.2);
        opacity: 0;
    }
}

@keyframes starFloat {
    0% {
        transform: translateY(100vh) rotate(35deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(395deg) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(755deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(100vh) scale(0.3);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) scale(1.2);
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 第二页 GIF展示区域 - 高级版本 */
.gallery-section {
    min-height: 100vh;
    padding: 100px 0;
    background: linear-gradient(
        180deg,
        #667eea 0%,
        #764ba2 50%,
        #4facfe 100%
    );
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpolygon points='50 0 60 40 100 50 60 60 50 100 40 60 0 50 40 40'/%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

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

.section-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    position: relative;
}

/* 简化Gallery标题，移除装饰 */

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.decoration-line {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.decoration-star {
    font-size: 18px;
    color: #fff;
    opacity: 0.6;
}

.gif-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.gif-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gif-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.gif-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 25px;
    z-index: 1;
    pointer-events: none;
}

.gif-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 25px;
}

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

.gif-item:hover .gif-image {
    transform: scale(1.15);
}

.gif-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(52, 152, 219, 0.6) 50%,
        transparent 100%
    );
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.gif-item:hover .gif-overlay {
    transform: translateY(0);
}

.gif-info h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.gif-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 响应式设计 - 针对1920*1080背景图优化 */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 600px;
        max-height: 800px;
    }
    
    .hero-background {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .main-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        max-width: 600px;
        padding: 0 30px;
    }
    
    .content-left {
        padding-right: 0;
    }
    
    .game-title {
        font-size: 3rem;
    }
    
    .buttons-container {
        gap: 20px;
    }
    
    .game-button {
        width: 200px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        max-height: 600px;
    }
    
    .hero-background {
        background-size: auto 100%;
        background-position: center center;
    }
    
    .main-content {
        max-width: 500px;
        padding: 0 20px;
    }
    
    .game-title {
        font-size: 2.5rem;
    }
    
    .buttons-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-button {
        width: 250px;
        height: 50px;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .gif-gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .gif-container {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 400px;
        max-height: 500px;
    }
    
    .hero-background {
        background-size: auto 100%;
        background-position: center center;
        background-attachment: scroll;
    }
    
    .main-content {
        max-width: 400px;
        padding: 0 15px;
    }
    
    .game-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .buttons-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .game-button {
        width: 220px;
        height: 45px;
    }
    
    .qr-code {
        width: 90px;
        height: 90px;
    }
    
    .qr-label {
        font-size: 12px;
    }
    
    .game-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gif-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 针对超宽屏的特殊处理 */
@media screen and (min-width: 2560px) {
    .hero-section {
        max-height: 1440px;
    }
    
    .hero-background {
        background-size: cover;
        background-position: center center;
    }
    
    .main-content {
        max-width: 1400px;
    }
    
    .game-title {
        font-size: 5rem;
    }
}