/*
    website.css — 视觉增强版本
    目标：在不更改主题色（深色文本 + 蓝色高亮）的前提下提升层次感、光影和交互。
    仅修改样式文件，不改动 HTML 结构。
*/

/* --- 1. 全局与基础样式 (Global & Basic Styles) --- */
:root{
    --text: #111; /* 不可改变的主题文字色 */
    --muted: #444;
    --muted-2: #666;
    --accent: #0071e3; /* 主题高亮（保持不变） */
    --surface: rgba(255,255,255,0.86);
    --glass: rgba(255,255,255,0.7);
    --shadow: rgba(12,20,30,0.12);
}

body {
    margin: 0;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(250,250,250,0.02));
    color: var(--text);
    font-size: 16px; /* 1rem = 16px */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 2. 背景与主要内容布局 (Background & Main Content Layout) --- */
#frosted-glass-bg {
    position: fixed;
    z-index: 1;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    backdrop-filter: blur(12px) brightness(1.02) saturate(1.02);
    -webkit-backdrop-filter: blur(12px) brightness(1.02) saturate(1.02);
    background: radial-gradient(1200px 600px at 10% 10%, rgba(0,0,0,0.02), transparent 20%),
                radial-gradient(900px 420px at 90% 80%, rgba(0,0,0,0.015), transparent 18%);
}
/* 关键：设置相对定位，并允许内容滚动超出 */
#main-content {
    position: relative;
    z-index: 2;
    overflow: visible; /* 允许内容溢出 */
    background: transparent;
}
/* 关键：设置绝对定位，并位于main-content的顶部 */
#smoke-bg {
    position: fixed;
    z-index: 0; /* 在内容下方 */
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    filter: contrast(0.98) saturate(0.9) blur(0.2px);
}

/* --- 3. 导航栏 (Navbar) --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 3rem;
    height: 5rem;
    box-sizing: border-box;
    background: rgba(255,255,255,0.46);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(16,24,32,0.04);
    transition: background 0.24s ease, box-shadow 0.24s ease, transform 0.12s ease;
}
.navbar.scrolled { background: rgba(255,255,255,0.76); box-shadow: 0 6px 24px var(--shadow); }
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo img {
    height: 2.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.08);
}
.logo span {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #222;
}
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.nav-menu a {
    color: #222;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.2px;
    padding: 0.375rem 1.125rem;
    transition: color 0.18s, transform 0.18s;
}
.nav-menu a:hover { color: var(--accent); transform: translateY(-2px); }

/* --- 4. 移动端导航栏 (Mobile Navbar) --- */
.nav-toggle {
    display: none; /* 默认隐藏 */
    cursor: pointer;
    position: relative;
    z-index: 101; /* 在菜单上方 */
}
.nav-toggle span {
    display: block;
    width: 26px !important; /* 强制设置宽度 */
    height: 3px !important; /* 强制设置高度 */
    background: #222;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}
.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* --- 重要：移动端菜单样式 --- */
.nav-menu {
    /* 桌面：水平展示，居中布局；移动端使用 media queries 覆盖 */
    display: flex;
    position: relative;
    flex: 1;                 /* 占据中间空间，便于居中 */
    justify-content: center; /* 菜单项居中 */
    gap: 0.25rem 0.5rem;
    align-items: center;
}
.nav-download-btn {
    /* 与普通 nav 链接保持一致的默认样式 */
    background: transparent;
    color: #222;
    padding: 0.375rem 1.125rem; /* 与 .nav-menu a 保持一致 */
    text-decoration: none;
    border-radius: 6px; /* 轻微圆角，与其他链接区分但不突出 */
    transition: color 0.18s, transform 0.14s;
    font-weight: 600;
}
.nav-download-btn:hover { color: var(--accent); transform: translateY(-2px); }

/* 桌面端：将下载按钮在菜单内推到最右侧（保持居中菜单项） */
.nav-menu .nav-download-btn { margin-left: auto; }
.nav-menu.open {
    display: flex; /* 使用JS添加此class来显示菜单 */
}
.nav-menu.open a {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* --- 5. 英雄区域 (Hero) --- */
.hero {
    position: relative;
    height: 36rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 10;
    padding-top: 2rem;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 52rem;
    padding: 1.5rem;
    background: transparent; /* 取消卡片背景 */
    border-radius: 0; /* 取消圆角 */
    box-shadow: none; /* 取消阴影 */
}
.hero-content h1 {
    font-size: 3.1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text);
    letter-spacing: 0.2px;
}
.hero-content p {
    font-size: 1.18rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
}
.hero-btn {
    display: inline-block;
    padding: 0.75rem 2.25rem;
    font-size: 1.05rem;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(16,20,30,0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hero-btn:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(16,20,30,0.14); }

.hero .hero-bg {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(800px 400px at 10% 30%, rgba(0,113,227,0.06), transparent 14%),
                radial-gradient(700px 340px at 90% 70%, rgba(17,17,17,0.03), transparent 18%);
    pointer-events: none;
}

/* --- 6. 内容区域通用样式 (Content Area Common Styles) --- */
.features, .about, .vertical-features-container {
    padding: 5rem 1rem;
    position: relative;
    z-index: 10;
}
.section-title-container {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
}
.section-title-container h2 {
    font-size: 2.2rem;
    color: #111;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

/* --- 7. 核心功能卡片 (Features) --- */
.features-list {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 62.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 768px) {
  .features-list {
    gap: 1.2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100vw;
  }
  .feature-card {
    width: 100%;
    min-width: 0;
    max-width: 22rem;
  }
}

.feature-card {
    background: var(--surface);
    border-radius: 1.125rem;
    box-shadow: 0 10px 30px rgba(12,20,30,0.06);
    padding: 2rem 1.5rem;
    width: 20rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(.2,.9,.3,1), box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 26px 58px rgba(12,20,30,0.12); }
.feature-card img { width: 100%; max-width: 13.75rem; border-radius: 1rem; margin-bottom: 1.125rem; filter: saturate(1.02) contrast(0.98); }
.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #111;
}
.feature-card p {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

/* --- 8. 特色推荐 (Vertical Features) --- */
.vertical-features {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 0 auto;
    max-width: 62.5rem;
}
.vertical-feature-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--surface);
    border-radius: 1.5rem;
    box-shadow: 0 12px 36px rgba(12,20,30,0.06);
    padding: 2rem;
    transition: box-shadow 0.22s, transform 0.22s;
    overflow: hidden;
}
.vertical-feature-item:nth-child(even) { flex-direction: row-reverse; }
.vertical-feature-item img {
    width: 45%; height: 18rem; object-fit: cover; border-radius: 1.125rem;
    box-shadow: 0 8px 28px rgba(12,20,30,0.06); flex-shrink: 0; transition: transform 0.36s ease, filter 0.36s ease;
}
.vertical-feature-item:hover img { transform: scale(1.03) translateY(-6px); filter: saturate(1.03) brightness(1.01); }
.vertical-feature-text {
    flex: 1;
    text-align: left;
}
.vertical-feature-text h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #111;
}
.vertical-feature-text p {
    font-size: 1.08rem;
    color: #444;
    line-height: 1.7;
}

/* --- 9. 关于我们 (About) --- */
.about-content {
    display: flex; justify-content: center; align-items: center; gap: 3rem;
    max-width: 56.25rem; margin: 0 auto; background: var(--surface); padding: 3rem; border-radius: 1.5rem;
    box-shadow: 0 20px 56px rgba(12,20,30,0.06);
}
.about-content img {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    flex-shrink: 0;
}
.about-text {
    text-align: left;
    max-width: 31.25rem;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}

/* --- 10. 页脚 (Footer) --- */
.footer {
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.62));
    color: var(--text);
    padding: 2.5rem 1rem; text-align: center; position: relative; z-index: 10;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}
.copyright-text, .footer-links a {
    position: relative;
    z-index: 2;
}
.footer-links a { color: #222; margin: 0 0.75rem; text-decoration: none; font-size: 1rem; opacity: 0.88; transition: color 0.18s, transform 0.18s; }
.footer-links a:hover { color: var(--accent); transform: translateY(-2px); }

/* --- 11. 动画效果 (Animations) --- */
.fade-in, .img-fade-up { opacity: 0; transform: translateY(2.5rem); transition-property: opacity, transform; }
.fade-in {
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
}
.img-fade-up {
    transition-duration: 0.7s;
    transition-timing-function: cubic-bezier(.77,0,.175,1);
}
.fade-in.visible, .img-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.typewriter { display: inline-block; font-family: inherit; white-space: pre; border-right: 2.5px solid #222; animation: blink-cursor 0.8s steps(1) infinite; min-height: 1em; }
@keyframes blink-cursor {
    50% { border-color: transparent; }
}

/* 当前激活导航项（蓝色包裹效果） */
.nav-menu a.active {
    color: #fff;
    /* 激活时使用黑色包裹 */
    background: linear-gradient(180deg, #111, #000);
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    box-shadow: 0 12px 36px rgba(8,12,20,0.36);
    transform: none;
}

/* 当下载按钮被激活时，保持下载按钮视觉一致 */
.nav-download-btn.active {
    color: #fff !important;
    /* 下载按钮激活时同样为黑色包裹 */
    background: linear-gradient(180deg, #111, #000);
    box-shadow: 0 14px 44px rgba(8,12,20,0.36);
    transform: translateY(-2px);
}

/* --- 12. 联系我们弹窗 (Modal) --- */
.contact-modal-content {
    background: #fff;
    border-radius: 1.125rem;
    box-shadow: 0 1rem 4rem rgba(0,0,0,0.13);
    padding: 2.25rem 2rem 1.75rem 2rem;
    max-width: 92vw;
    width: 21.25rem;
    text-align: center;
    position: relative;
}

#contact-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.28); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.contact-modal-content {
    background: #fff;
    border-radius: 1.125rem;
    box-shadow: 0 1rem 4rem rgba(0,0,0,0.13);
    padding: 2.25rem 2rem 1.75rem 2rem;
    max-width: 92vw;
    width: 21.25rem;
    text-align: center;
    position: relative;
}
.contact-modal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.125rem;
    color: #222;
}
.contact-modal-content p {
    font-size: 1rem;
    color: #444;
    margin: 0 0 1.125rem;
}
.contact-modal-content .contact-email {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0071e3;
    user-select: all;
}
#close-contact-modal { margin-top: 1.75rem; padding: 0.55rem 2rem; font-size: 1rem; border-radius: 999px; background: var(--text); color: #fff; border: none; cursor: pointer; box-shadow: 0 10px 30px rgba(16,20,30,0.12); }

/* --- 13. 响应式布局 (Media Queries) --- */

/* 大屏端 (1400px及以上) */
@media (min-width: 1400px) {
    .hero-content { max-width: 56rem; }
    .hero-content h1 { font-size: 3.8rem; }
    .vertical-features, .about-content { max-width: 75rem; }
}

/* 手机/平板端 (900px及以下) */
@media (max-width: 900px) {
    /* 导航栏适配 */
    .navbar { padding: 1.125rem 1rem; height: auto; flex-direction: column; align-items: flex-start; }
    .logo {
        margin-bottom: 0.5rem; /* 为logo腾出空间 */
    }
    .nav-menu { display: none; position: static; flex-direction: column; align-items: center; width: 100%; box-shadow: none; padding: 0; background: none; }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    /* 移动端：让下载按钮与其它菜单项一致（去掉右对齐、宽度100%且居中） */
    .nav-menu .nav-download-btn {
        margin-left: 0 !important;
        width: 100%;
        display: block;
        text-align: center;
        padding: 0.75rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        background: transparent !important; /* 禁止默认蓝色包裹 */
        color: var(--text) !important;
    }
    .nav-toggle { display: block; position: absolute; top: 1rem; right: 1rem; z-index: 101; }

    /* 英雄区适配 */
    .hero-content h1 { font-size: 2.4rem; }
    .hero-content p { font-size: 1.05rem; }
    
    /* 内容区适配 */
    .features, .about, .vertical-features-container { padding: 3rem 1rem; }
    .features-list { flex-direction: column; align-items: center; gap: 1.5rem; }
    .feature-card { width: 90%; }
    
    /* 特色推荐适配 */
    .vertical-feature-item { flex-direction: column !important; gap: 1.5rem; padding: 1.25rem; }
    .vertical-feature-item img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    .vertical-feature-text {
        text-align: center;
    }

    /* 关于我们适配 */
    .about-content { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem 1.5rem; }
    .about-text { text-align: center; }

    /* 移动端：当通过右上角三条杠打开菜单时，不显示黑色包裹（取消 .active 的胶囊视觉） */
    .nav-menu.open a.active {
        background: transparent !important;
        box-shadow: none !important;
        color: var(--accent) !important;
        transform: none !important;
        padding: 0.75rem !important;
    }

    /* 下载按钮在移动菜单中始终使用深色文字（不要一直变蓝） */
    .nav-menu.open .nav-download-btn.active {
        background: transparent !important;
        box-shadow: none !important;
        color: var(--text) !important;
        transform: none !important;
        padding: 0.75rem !important;
    }

    /* 最终保险：在移动端，确保下载按钮文字色优先为深色（覆盖可能的其他规则） */
    .nav-menu .nav-download-btn {
        color: var(--text) !important;
    }
}