/* ============================================
   主页 - 华为式全屏滚动动画
   ============================================ */

.home-page {
    padding-top: 0;
}

/* 全屏滚动容器 */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 侧边导航点 */
.scroll-nav {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.scroll-nav-item {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    position: relative;
}

.scroll-nav-item.active {
    background: var(--mc-green);
    transform: scale(1.4);
    box-shadow: 0 0 12px var(--mc-green);
}

.scroll-nav-item:hover::after {
    content: attr(data-label);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

/* 向下滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    animation: scrollBounce 2s infinite;
    z-index: 10;
}

.scroll-hint-icon {
    display: block;
    margin: 8px auto 0;
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.scroll-hint-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollDot {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ============================================
   Section 1: Hero
   ============================================ */
.hero-section {
    background:
        radial-gradient(ellipse at top, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(77, 208, 225, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0e14 0%, #11161f 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(76, 175, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 175, 80, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--mc-green);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
    50% { transform: translateY(-30px) translateX(20px); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 24px;
    font-size: 13px;
    color: var(--mc-green-light);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #4caf50 0%, #4dd0e1 50%, #ffd54f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 64px;
    opacity: 0;
    animation: fadeUp 0.8s 1s forwards;
}

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

.hero-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, #fff 0%, var(--mc-green-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动触发动画 */
.scroll-section.in-view .anim {
    animation: fadeUp 0.8s forwards;
}

.scroll-section .anim {
    opacity: 0;
}

.scroll-section.in-view .anim-1 { animation-delay: 0.1s; }
.scroll-section.in-view .anim-2 { animation-delay: 0.3s; }
.scroll-section.in-view .anim-3 { animation-delay: 0.5s; }
.scroll-section.in-view .anim-4 { animation-delay: 0.7s; }

/* ============================================
   Section 2: 服务器特色
   ============================================ */
.features-section {
    background:
        radial-gradient(ellipse at left, rgba(124, 77, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #11161f 0%, #0a0e14 100%);
}

.section-inner {
    max-width: 1200px;
    width: 100%;
    padding: 0 32px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: left;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: var(--shadow-lg);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    background: rgba(76, 175, 80, 0.1);
}

.feature-card:nth-child(2) .feature-icon { background: rgba(77, 208, 225, 0.1); }
.feature-card:nth-child(3) .feature-icon { background: rgba(255, 213, 79, 0.1); }
.feature-card:nth-child(4) .feature-icon { background: rgba(124, 77, 255, 0.1); }
.feature-card:nth-child(5) .feature-icon { background: rgba(239, 83, 80, 0.1); }
.feature-card:nth-child(6) .feature-icon { background: rgba(124, 179, 66, 0.1); }

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   Section 3: 游戏世界展示
   ============================================ */
.world-section {
    background:
        linear-gradient(180deg, #0a0e14 0%, #0d1218 100%);
}

.world-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 32px;
}

.world-text {
    text-align: left;
}

.world-eyebrow {
    color: var(--mc-green-light);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.world-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.world-desc {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.world-list {
    list-style: none;
    margin-bottom: 36px;
}

.world-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.world-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.world-visual {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.world-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.world-visual:hover img {
    transform: scale(1.05);
}

.world-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 14, 20, 0.8) 100%);
    pointer-events: none;
}

.world-tag {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   Section 4: 数据统计
   ============================================ */
.stats-section {
    background:
        radial-gradient(ellipse at center, rgba(76, 175, 80, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, #0d1218 0%, #11161f 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 56px auto 0;
    padding: 0 32px;
}

.stat-block {
    text-align: center;
    padding: 32px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-block:hover {
    transform: translateY(-6px);
    border-color: rgba(76, 175, 80, 0.3);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #4caf50 0%, #4dd0e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   Section 5: 公告
   ============================================ */
.news-section {
    background: linear-gradient(180deg, #11161f 0%, #0a0e14 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 56px auto 0;
    padding: 0 32px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.news-banner {
    height: 140px;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.news-card:nth-child(2) .news-banner { background: var(--gradient-diamond); }
.news-card:nth-child(3) .news-banner { background: var(--gradient-gold); }

.news-type {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
}

.news-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Section 6: 加入我们 CTA
   ============================================ */
.cta-section {
    background:
        radial-gradient(ellipse at center, rgba(76, 175, 80, 0.2) 0%, transparent 60%),
        linear-gradient(180deg, #0a0e14 0%, #0d1218 100%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    padding: 0 32px;
}

.cta-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.cta-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-server-box {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 32px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.cta-server-label {
    color: var(--text-muted);
    font-size: 13px;
    text-align: left;
}

.cta-server-address {
    font-family: "SF Mono", monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--mc-green-light);
}

.copy-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    font-family: inherit;
}

.copy-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--mc-green);
    color: var(--mc-green-light);
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .world-showcase { grid-template-columns: 1fr; gap: 40px; }
    .scroll-nav { right: 16px; }
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .news-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stat-value { font-size: 24px; }
    .scroll-nav { display: none; }
    .cta-server-box { flex-direction: column; gap: 8px; padding: 20px; }
    .cta-server-address { font-size: 18px; }
}
