/* 重置和基础样式 */
* {
    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: #f5f5f7;
    color: #1d1d1f;
    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);
    /* 始终保持超淡毛玻璃效果 */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

#navbar.scrolled {
    /* 滚动后保持一致的超淡毛玻璃效果 */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.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: #1d1d1f;
    text-decoration: none;
}

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

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

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

.lang-btn {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: #007aff;
    border: 1px solid #007aff;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.lang-btn:hover {
    background: #0051d5;
    border-color: #0051d5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.5);
}

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

/* 背景图容器 */
.hero-background-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 1;
    filter: brightness(0.9) contrast(1.1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: transparent;
    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(0, 122, 255, 0.1);
}

.blob-2 {
    bottom: 25%;
    right: 25%;
    background-color: rgba(255, 149, 0, 0.1);
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    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;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
}



.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.3);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.cta-button:hover {
    background: #0051d5;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

/* 按钮组样式 */
.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);
}



/* 通用区块样式 */
.section {
    padding: 8rem 1.5rem;
    background-color: #ffffff;
}

.section-alt {
    background: linear-gradient(to bottom, #ffffff, #f5f5f7);
}

/* 服务器主要玩法区域背景 */
#features {
    position: relative;
    overflow: hidden;
}

/* 使用伪元素实现背景图效果，避免白边 */
#features::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('img2.PNG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    transform: scale(1.02); /* 稍微放大背景图，消除边缘白边 */
    z-index: 0;
}

/* 确保内容显示在背景之上 */
#features .container {
    position: relative;
    z-index: 1;
}

/* 服务器主要玩法区域文字颜色 */
#features .section-title,
#features .section-subtitle {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 调整表格样式为毛玻璃效果（更淡） */
#features .features-table {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 表格内文字颜色 */
#features .features-table td,
#features .features-table .feature-name {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 表格悬停效果 */
#features .features-table tr:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* 其他模组区域背景 */
#mods {
    position: relative;
    overflow: hidden;
}

/* 使用伪元素实现背景图模糊效果 */
#mods::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('img3.PNG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px) brightness(0.9);
    -webkit-filter: blur(8px) brightness(0.9);
    z-index: 0;
    /* 确保背景图覆盖整个容器，无白边 */
    background-attachment: scroll;
    transform: scale(1.02); /* 稍微放大背景图，消除边缘白边 */
}

/* 确保内容显示在模糊背景之上 */
#mods .container {
    position: relative;
    z-index: 1;
}

/* 其他模组区域文字颜色 */
#mods .section-title,
#mods .section-subtitle {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 调整模组卡片样式以适应背景图 */
#mods .mod-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 模组卡片文字颜色 */
#mods .mod-content h3,
#mods .mod-content p,
#mods .mod-version {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.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;
    color: #1d1d1f;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6e6e73;
}

/* 网格布局 */
.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));
}

/* 玩法表格样式 */
.features-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.features-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    vertical-align: middle;
    white-space: nowrap;
}

/* 第二列（图片列）向右对齐 */
.features-table td:nth-child(2) {
    text-align: right;
}



.features-table tr:last-child td {
    border-bottom: none;
}

.features-table tr:hover {
    background-color: rgba(0, 122, 255, 0.05);
}

.features-table .feature-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1d1d1f;
    text-align: left;
    padding: 0 1rem;
}

.features-table .feature-image {
    width: 100px;
    height: 100px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f7, #e5e5ea);
    margin: 0 0 0 auto;
    transition: transform 0.3s ease;
}

.features-table tr:hover .feature-image {
    transform: scale(1.05);
}

.features-table .feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 模组卡片和插件卡片 - Apple 风格 */
.mod-card,
.plugin-card {
    border-radius: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    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 2px 8px rgba(0, 0, 0, 0.05);
}

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

.mod-card:hover {
    border-color: rgba(0, 122, 255, 0.2);
    transform: translateY(-4px) scale(1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 16:9 图片容器 */
.mod-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f7, #e5e5ea);
    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.05);
}

/* 如果没有图片，显示占位符 */
.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(0, 0, 0, 0.1);
}

.mod-content {
    padding: 1.5rem;
}

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

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

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


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

.screenshot-card {
    border-radius: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    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 2px 8px rgba(0, 0, 0, 0.05);
}

.screenshot-card:hover {
    background: #ffffff;
    border-color: rgba(0, 122, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.screenshot-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f7, #e5e5ea);
    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);
}


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

.spec-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 255, 0.2);
}

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

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

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

.spec-label {
    color: #6e6e73;
}

.spec-value {
    font-weight: 600;
    color: #1d1d1f;
}

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

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

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

.server-address {
    display: inline-block;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-address:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 255, 0.2);
}

/* 页脚按钮容器样式 */
.footer-buttons {
    margin-top: 2rem;
    text-align: center;
}

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

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

.footer-copyright {
    text-align: center;
    color: #6e6e73;
    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风格弹窗 - Apple 风格 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ios-modal {
    position: relative;
    background: #ffffff;
    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;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@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: #6e6e73;
    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: #6e6e73;
}

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

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

