/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.loader-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 2px;
}

/* 滚动动画类 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 500;
}

.logo-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 80px;
    list-style: none;
    margin-left: auto;
    margin-right: 100px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f4b844;
}

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.cta-button {
    padding: 0;
    background: #121212;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    position: relative;
    width: 160px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.cta-button:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
}

/* 返回首页按钮 */
.back-to-home {
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 999;
    padding: 10px 20px;
    background: rgba(244, 184, 68, 0.1);
    border: 1px solid rgba(244, 184, 68, 0.3);
    border-radius: 8px;
    color: #f4b844;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-to-home:hover {
    background: rgba(244, 184, 68, 0.2);
    transform: translateX(-3px);
}

.back-to-home::before {
    content: '←';
    font-size: 16px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f4b844 0%, #d89a2e 100%);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(244, 184, 68, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(244, 184, 68, 0.4);
}

.back-to-top::before {
    content: '↑';
}

/* 通用模块样式 */
.section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(244, 184, 68, 0.1);
    border: 1px solid rgba(244, 184, 68, 0.3);
    border-radius: 20px;
    color: #f4b844;
    font-size: 14px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.4;
}

.section-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 900px;
}

/* 新版简化页脚 */
footer {
    padding: 80px 80px 40px;
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* 左侧 - Logo和标语 */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 500;
}

.footer-slogan {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

.footer-download-btn {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid rgba(244, 184, 68, 0.5);
    border-radius: 50px;
    color: #f4b844;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    text-align: center;
    max-width: 150px;
}

.footer-download-btn:hover {
    background: rgba(244, 184, 68, 0.1);
    transform: translateY(-2px);
}

/* 中间 - 联系方式 */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-contact h3 {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 右侧 - 加入我们 */
.footer-join {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-join h3 {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter 0.3s;
}

.social-icon:hover {
    background: rgba(244, 184, 68, 0.1);
    transform: translateY(-3px);
}

.social-icon:hover img {
    filter: brightness(1.2);
}

/* 页脚底部版权 */
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    nav {
        padding: 20px 40px;
    }

    .section-title {
        font-size: 36px;
    }

    footer {
        padding: 60px 40px 30px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .footer-join {
        grid-column: 1 / -1;
    }

    .back-to-top {
        bottom: 30px;
        right: 30px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }

    /* 隐藏桌面导航 */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        padding: 30px 20px;
        gap: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        max-width: 100vw;
        overflow-x: hidden;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .nav-links a {
        font-size: 18px;
        display: block;
    }

    .cta-button {
        font-size: 12px;
        padding: 0;
        width: 120px;
        height: 40px;
    }

    .cta-button img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .section-title {
        font-size: 32px;
    }

    footer {
        padding: 60px 20px 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand,
    .footer-contact,
    .footer-join {
        text-align: center;
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .back-to-home {
        top: 75px;
        left: 10px;
        padding: 8px 15px;
        font-size: 12px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* 防止元素溢出 */
    * {
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}