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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #000;
    color: #f5f5f7;
    overflow-x: hidden;
}

/* 导航栏 - Liquid Glass 风格 */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container .logo {
    flex: 0 0 auto;
}

.nav-container > div:last-child {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f5f5f7;
    text-decoration: none;
}

.nav-links {
    display: inline-flex;
    gap: 2rem;
    margin-right: 2rem;
}

.nav-links a {
    color: #f5f5f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #a0a0a0;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f5f5f7;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* 英雄区 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 背景图容器 */
.hero-background-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5), #000);
    z-index: 2;
}

.hero-gradient {
    position: absolute;
    inset: 0;
}

.hero-blob {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 4s ease-in-out infinite;
}

.blob-1 {
    top: 25%;
    left: 25%;
    background-color: rgba(59, 130, 246, 0.1);
}

.blob-2 {
    bottom: 25%;
    right: 25%;
    background-color: rgba(168, 85, 247, 0.1);
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: #9ca3af;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.9) 0%,
        rgba(168, 85, 247, 0.9) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

.cta-button:hover {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 1) 0%,
        rgba(168, 85, 247, 1) 100%
    );
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.6);
}

/* 按钮组样式 */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-secondary {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f5f7;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.cta-button-secondary:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 48px rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

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

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
}

.scroll-dot {
    width: 0.375rem;
    height: 0.375rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* 通用区块样式 */
.section {
    padding: 8rem 1.5rem;
}

.section-alt {
    background: linear-gradient(to bottom, #000, rgba(30, 58, 138, 0.2));
}

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

.container-small {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

/* 特色卡片 - Liquid Glass 风格 */
.feature-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.4);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #9ca3af;
    font-size: 1.125rem;
}

/* 模组卡片 - 支持16:9图片 + Liquid Glass */
.mod-card {
    border-radius: 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.5s ease forwards;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mod-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px) scale(1);
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.5);
}

/* 16:9 图片容器 */
.mod-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #581c87);
    border-radius: 1rem 1rem 0 0;
}

.mod-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mod-card:hover .mod-image img {
    transform: scale(1.1);
}

/* 如果没有图片，显示占位符 */
.mod-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
}

.mod-content {
    padding: 1.5rem;
}

.mod-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mod-content p {
    color: #9ca3af;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.mod-version {
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 500;
}


/* 截图展示 - Liquid Glass */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.screenshot-card {
    border-radius: 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.screenshot-card:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.4);
}

.screenshot-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #581c87);
    border-radius: 1rem;
}

.screenshot-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.screenshot-card:hover .screenshot-image img {
    transform: scale(1.05);
}


/* 配置卡片 - Liquid Glass */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.spec-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.spec-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: #9ca3af;
}

.spec-value {
    font-weight: 600;
}

/* 页脚 */
.footer {
    padding: 4rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.server-address {
    display: inline-block;
    padding: 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-address:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.address-label {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.address-code {
    font-size: 1.125rem;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #60a5fa;
}

.footer-copyright {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-button, .cta-button-secondary {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* 动画延迟 */
.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }

.mod-card:nth-child(1) { animation-delay: 0s; }
.mod-card:nth-child(2) { animation-delay: 0.1s; }
.mod-card:nth-child(3) { animation-delay: 0.2s; }
.mod-card:nth-child(4) { animation-delay: 0.3s; }
.mod-card:nth-child(5) { animation-delay: 0.4s; }
.mod-card:nth-child(6) { animation-delay: 0.5s; }

.screenshot-card:nth-child(1) { animation-delay: 0s; }
.screenshot-card:nth-child(2) { animation-delay: 0.1s; }
.screenshot-card:nth-child(3) { animation-delay: 0.2s; }
.screenshot-card:nth-child(4) { animation-delay: 0.3s; }
.screenshot-card:nth-child(5) { animation-delay: 0.4s; }

.spec-card:nth-child(1) { animation-delay: 0s; }
.spec-card:nth-child(2) { animation-delay: 0.2s; }

/* iOS风格弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ios-modal {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    margin: auto;
    width: 90%;
    max-width: 320px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', sans-serif;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: iosModalAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    top: 50%;
    transform: translateY(-50%);
    overflow: hidden;
}

@keyframes iosModalAppear {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.ios-header {
    padding: 20px 20px 0 20px;
    text-align: center;
}

.ios-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.3;
}

.ios-body {
    padding: 8px 20px 20px 20px;
    text-align: center;
}

.ios-message {
    margin: 0;
    font-size: 13px;
    color: #1d1d1f;
    line-height: 1.4;
}

.ios-separator {
    height: 0.5px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0;
}

.ios-actions {
    display: flex;
    height: 44px;
}

.ios-btn {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007aff;
    font-family: inherit;
}

.ios-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.ios-btn:active {
    background-color: rgba(0, 0, 0, 0.08);
}

.ios-btn-cancel {
    color: #007aff;
}

.ios-btn-confirm {
    color: #007aff;
    font-weight: 600;
}

.ios-separator-vertical {
    width: 0.5px;
    background-color: rgba(0, 0, 0, 0.1);
}

