/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 - 移动优先 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    font-size: 14px; /* 移动端基础字体 */
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏 - 移动优先 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: none; /* 移动端默认隐藏 */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    display: flex;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.nav-link:last-child {
    border-bottom: none;
}

.nav-link:hover {
    color: #667eea;
}

.play-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin-top: 0.5rem;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 主页横幅 - 移动优先 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
    order: 2;
}

.hero-title {
    margin-bottom: 1rem;
}

.title-main {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.title-sub {
    display: block;
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    max-width: 250px;
    justify-content: center;
}

.btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
}

.pet-showcase {
    position: relative;
}

.pet-card {
    position: relative;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pet-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

.pet-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: particle-float 20s ease-in-out infinite;
}

@keyframes particle-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 游戏特色 - 移动优先 */
.features {
    padding: 3rem 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #666;
    max-width: 100%;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
}

.feature-description {
    color: #666;
    line-height: 1.5;
    font-size: 0.85rem;
}

/* 关于游戏 - 移动优先 */
.about {
    padding: 3rem 0;
    background: white;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.about-text {
    order: 2;
}

.about-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.about-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: #666;
    font-size: 0.8rem;
}

.about-image {
    order: 1;
    width: 100%;
}

.gameplay-preview {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.preview-img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gameplay-preview:hover .preview-overlay {
    opacity: 1;
}

.preview-btn {
    background: white;
    color: #667eea;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.preview-btn:hover {
    transform: scale(1.1);
}

/* 页脚 - 移动优先 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section {
    text-align: center;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.5;
    font-size: 0.85rem;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
}

.footer-copyright {
    color: #bdc3c7;
    font-size: 0.8rem;
}

/* PC端样式 - 768px以上 */
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    /* 导航栏 - PC端 */
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    .nav-logo {
        gap: 10px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: none;
        backdrop-filter: none;
        padding: 0;
        box-shadow: none;
        gap: 2rem;
        align-items: center;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        border-bottom: none;
        position: relative;
        font-size: 1rem;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transition: width 0.3s ease;
    }
    
    .nav-link:hover::after {
        width: 100%;
    }
    
    .play-btn {
        margin-top: 0;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-toggle {
        display: none;
    }
    
    /* 主页横幅 - PC端 */
    .hero {
        padding-top: 0;
    }
    
    .hero-container {
        max-width: 1200px;
        padding: 0 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
        text-align: left;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .title-main {
        font-size: 3.2rem;
    }
    
    .title-sub {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.8;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: auto;
        max-width: none;
    }
    
    .btn-icon {
        font-size: 1.2rem;
    }
    
    .pet-card {
        width: 350px;
        height: 350px;
    }
    
    .pet-img {
        width: 220px;
        height: 220px;
    }
    
    /* 游戏特色 - PC端 */
    .features {
        padding: 6rem 0;
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        max-width: 600px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .feature-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .feature-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* 关于游戏 - PC端 */
    .about {
        padding: 6rem 0;
    }
    
    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        text-align: left;
    }
    
    .about-description {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .about-stats {
        gap: 2rem;
        margin-top: 2rem;
        justify-content: flex-start;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* 页脚 - PC端 */
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .footer-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .footer-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer-links a {
        font-size: 1rem;
    }
    
    .footer-copyright {
        font-size: 0.9rem;
    }
}

/* 大屏幕优化 - 1200px以上 */
@media (min-width: 1200px) {
    .title-main {
        font-size: 3.5rem;
    }
    
    .title-sub {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .about-title {
        font-size: 2.8rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
} 