/* =========================================
   1. 核心主题变量
   ========================================= */
:root {
    --bg-base: #050505;
    --bg-surface: rgba(22, 23, 26, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: #a1aab3;
    --text-accent: #f78100;
    
    --accent-orange: #f78100;
    --accent-blue: #1d63ed;
    --glow-orange: rgba(247, 129, 0, 0.4);
    --glow-blue: rgba(29, 99, 237, 0.4);
    
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   2. 科技感动态背景
   ========================================= */
.bg-elements {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px; perspective: 1000px;
}
.glow-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; animation: float 10s infinite alternate; }
.orb-1 { width: 40vw; height: 40vw; background: var(--glow-blue); top: -10vw; left: -10vw; }
.orb-2 { width: 30vw; height: 30vw; background: var(--glow-orange); bottom: -5vw; right: -5vw; animation-delay: -5s; }

@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 30px) scale(1.1); } }

/* =========================================
   3. 顶部导航栏 (Navbar)
   ========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 100px;
    background: rgba(5, 5, 5, 0.7); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color); z-index: 100;
    display: flex; justify-content: center; transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar img {
    max-width: 250px; 
    width: 250px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.navbar.scrolled { background: rgba(5, 5, 5, 0.95); box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.nav-inner { width: 100%; max-width: 1700px; padding: 0 4%; display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; }

.nav-links { 
    display: flex; 
    gap: 32px; 
    margin-left: auto; /* 让所有链接和按钮自然靠右 */
    align-items: center; 
    height: 100%; 
}
.nav-links > a:not(.btn-console), .dropdown > a {
    color: var(--text-secondary); text-decoration: none; font-size: 15px; font-weight: 500;
    transition: var(--transition); display: flex; align-items: center; gap: 6px; height: 100%;
}
.nav-links > a:hover, .dropdown:hover > a { color: var(--text-primary); }

/* --- 下拉菜单样式 --- */
.dropdown { position: relative; height: 100%; display: flex; align-items: center; cursor: pointer; }
.dropdown > a i { transition: transform 0.3s; opacity: 0.7; }
.dropdown:hover > a i { transform: rotate(180deg); opacity: 1; }

.dropdown-menu {
    position: absolute; top: 72px; left: -20px;
    background: rgba(15, 16, 20, 0.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
    padding: 12px 0; min-width: 260px; /* 稍微加宽以容纳文字 */
    opacity: 0; visibility: hidden; transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-menu a {
    display: flex; align-items: flex-start; /* 顶部对齐，适合多行文本 */
    gap: 12px; padding: 12px 24px;
    color: var(--text-secondary); text-decoration: none;
    transition: all 0.2s; position: relative;
}

/* 核心：菜单项标题与描述布局 */
.menu-text-block { display: flex; flex-direction: column; gap: 4px; }
.menu-title { font-size: 15px; font-weight: 600; color: var(--text-primary); transition: color 0.2s;}
.menu-desc { font-size: 12px; font-weight: 400; color: var(--text-secondary); transition: color 0.2s;}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
    padding-left: 28px; /* 悬浮时向右微微滑动 */
}
.dropdown-menu a:hover .menu-title { color: var(--accent-orange); }
.dropdown-menu a:hover .menu-desc { color: var(--text-primary); }

.dropdown-menu a:hover::before {
    content: ''; position: absolute; left: 0; top: 10%; width: 3px; height: 80%;
    background: var(--accent-orange); border-radius: 0 4px 4px 0;
}

.btn-console {
    background: linear-gradient(135deg, var(--accent-blue), #0d4bc4); color: white;
    padding: 10px 24px; border-radius: 50px; text-decoration: none; font-size: 14px; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1); transition: var(--transition);
    box-shadow: 0 4px 15px rgba(29, 99, 237, 0.3); white-space: nowrap; border: none; cursor: pointer; backdrop-filter: blur(10px);
    height: fit-content; /* 新增：强制让按钮高度贴合文字，绝不拉伸 */
    display: inline-flex; /* 确保图标和文字垂直居中对齐 */
    align-items: center;
}
.btn-console-1 {
    background: linear-gradient(135deg, var(--accent-blue), #0d4bc4); color: white;
    padding: 10px 24px; border-radius: 50px; text-decoration: none; font-size: 14px; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1); transition: var(--transition);
    box-shadow: 0 4px 15px rgba(29, 99, 237, 0.3); white-space: nowrap; border: none; cursor: pointer; backdrop-filter: blur(10px);
    height: fit-content; /* 新增：强制让按钮高度贴合文字，绝不拉伸 */
    align-items: center;
    text-align: center;
}
.btn-console-2 {
    background: linear-gradient(135deg, var(--accent-blue), #0d4bc4); color: white;
    padding: 10px 24px; border-radius: 50px; text-decoration: none; font-size: 14px; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1); transition: var(--transition);
    box-shadow: 0 4px 15px rgba(29, 99, 237, 0.3); white-space: nowrap; border: none; cursor: pointer; backdrop-filter: blur(10px);
    height: fit-content; /* 新增：强制让按钮高度贴合文字，绝不拉伸 */
    align-items: center;
    text-align: center;
}
.btn-console:hover { background: linear-gradient(135deg, var(--accent-blue), #0d8ac4); border-color: rgba(255,255,255,0.4);  }

.btn-console-1.btn-lang { background: linear-gradient(135deg, var(--accent-blue), #0d8ac4); border-color: rgba(255,255,255,0.4);  }
.btn-console-2.btn-lang { background: linear-gradient(135deg, var(--accent-blue), #0d8ac4); border-color: rgba(255,255,255,0.4);  }

/* =========================================
   4. Hero 英雄区域
   ========================================= */
.hero {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    align-items: left; text-align: left; padding: 0 4%; max-width: 1700px; margin: 0 auto; width: 100%;
    position: relative; z-index: 10;
}
.hero-badge { color: var(--accent-blue);  border-radius: 100px; font-size: 17px; font-weight: 600; margin-bottom: 17px; margin-left: 0px;}
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.1; margin-bottom: 24px; background: linear-gradient(to right, #ffffff, #a1aab3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: clamp(16px, 2vw, 20px); color: var(--text-secondary); max-width: 650px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 20px; }
.hero-btn { padding: 14px 36px; font-size: 16px; }
.btn-outline { background: transparent; color: var(--text-primary); padding: 12px 32px; border-radius: 30px; text-decoration: none; font-size: 15px; font-weight: 600; border: 1px solid rgba(255,255,255,0.2); transition: var(--transition); backdrop-filter: blur(10px); }
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.4); }

/* =========================================
   5. 通用区块 & Bento Grid
   ========================================= */
.features { padding: 80px 4%; max-width: 1700px; margin: 0 auto; width: 100%; }
.section-header { text-align: left; margin-bottom: 50px; }
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; color: var(--text-primary); }
.section-header p { color: var(--text-secondary); font-size: 16px; }
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.glass-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 20px; padding: 35px; backdrop-filter: blur(20px); transition: var(--transition); position: relative; overflow: hidden; }
.glass-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); opacity: 0; transition: var(--transition); }
.glass-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.15); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.glass-card:hover::before { opacity: 1; }
.card-icon { width: 55px; height: 55px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; color: var(--accent-orange); }
.glass-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.glass-card p { color: var(--text-secondary); font-size: 16px; line-height: 1.8; }

.card-large { grid-column: span 8; }
.card-medium { grid-column: span 4; }
.card-half { grid-column: span 6; }
@media (max-width: 1200px) { .card-large, .card-medium, .card-half { grid-column: span 12; } }

/* =========================================
   6. 页脚 Footer 样式
   ========================================= */
footer { background: rgba(5, 5, 5, 0.9); border-top: 1px solid var(--border-color);  margin-top: 80px; }
.footer-inner { max-width: 1700px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; padding: 70px 4% 30px;}
.footer-col img { max-width: 200px; margin-bottom: 20px; width: 100%; }
.footer-col p { color: var(--text-secondary); font-size: 14px; margin-bottom: 10px; line-height: 1.6;}
.footer-col h3 { color: var(--text-primary); font-size: 18px; margin-bottom: 20px; font-weight: 600;}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-col ul a:hover { color: var(--accent-orange); padding-left: 5px; }
.footer-bottom { max-width: 1700px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; color: var(--text-secondary); font-size: 14px; padding: 20px 4% 20px;}
/* 修复：补回漏掉的底部条款链接样式 */
.footer-bottom a { 
    color: var(--text-secondary) !important; /* 强制覆盖默认蓝色 */
    text-decoration: none; 
    transition: 0.3s;
}
.footer-bottom a:hover { 
    color: var(--text-primary) !important; 
    text-decoration: underline;
}

@media (max-width: 900px) { 
    .footer-inner { grid-template-columns: 1fr; } 
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
}

/* 修复：补回漏掉的社交图标样式 */
.social-links a {
    display: inline-flex; 
    justify-content: center; 
    align-items: center;
    width: 36px; 
    height: 36px; 
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); 
    color: var(--text-primary) !important; /* 强制覆盖默认蓝色 */
    text-decoration: none; 
    transition: 0.3s var(--transition);
}
.social-links a:hover { 
    background: var(--accent-orange); 
    transform: translateY(-3px); 
    color: white !important;
}

/* =========================================
   7. 滚动动画 (Scroll Animations)
   ========================================= */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.active { text-decoration: underline; text-underline-offset: 4px; color: var(--accent-write) !important; }

/* 修改后的 modal-content */
.modal-content {
    margin: 10% auto; 
    width: 90%; 
    /* 将 max-width 调大，或者改为根据页面布局调整 */
    max-width: 600px; 
    padding: 40px; 
    position: relative;
    background: var(--bg-surface); /* 确保它有背景 */
    border: 1px solid var(--border-color); /* 增加边框 */
    border-radius: 20px; /* 匹配你网页卡片的圆角 */
    backdrop-filter: blur(20px); /* 统一毛玻璃效果 */
}

/* =========================================
   语言切换按钮 - 专属科技感暗黑样式
   ========================================= */

/* 悬停时的华丽科技感反馈 */
.btn-lang:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-orange); /* 悬停时边框变为 Cloudflare 橙 */
    color: var(--text-primary); /* 文字提亮 */
    box-shadow: 0 0 12px rgba(247, 129, 0, 0.2); /* 淡淡的橙色科技光晕 */
}

.btn-lang i {
    font-size: 14px;
    opacity: 0.8;
}

/* =========================================
   多语言显隐控制核心逻辑
   ========================================= */
/* 默认状态下：显示中文，隐藏英文 */
.lang-en {
    display: none !important;
}
.lang-zh {
    display: block;
}

/* 当 body 变成英文模式 (.en-mode) 时：反转显隐状态 */
.en-mode .lang-zh {
    display: none !important;
}
.en-mode .lang-en {
    display: block;
}

/* 顺便美化一下你的语言按钮，使其符合暗黑科技风 */
.btn-lang {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1aab3;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}
.btn-lang:hover {
    border-color: #f78100;
    color: #ffffff;
}


/* 团队成员容器：自动流式布局 */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 自动根据宽度决定一行放几个 */
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 统一成员图片样式 */
.member-img {
    width: 150px; 
    height: 150px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin: 0 auto 20px; 
    display: block; 
    border: 3px solid var(--accent-blue); 
    box-shadow: 0 0 20px rgba(29, 99, 237, 0.4);
}

/* 统一文字间距 */
.team-container .glass-card {
    text-align: center;
    padding: 40px;
}

.member-role {
    color: var(--accent-orange); 
    font-weight: 600; 
    margin-bottom: 15px;
}


/* 专门针对关于我们页面的头部优化 */
.sub-hero {
    padding-top: 150px !important;    /* 顶部留白由原来的大间距改为 60px */
    padding-bottom: 0px !important; /* 底部留白也改为 60px */
    margin-bottom: 0px !important;  /* 去掉底部外边距，避免多余空白 */
    min-height: auto !important;     /* 如果有设置强制高度，将其取消 */
}

/* 如果你觉得在手机上还是太高，可以加一个媒体查询微调 */
@media (max-width: 768px) {
    .sub-hero {
        padding-top: 150px !important;
        margin-bottom: 0px !important;
        padding-bottom: 0px !important;
    }
}









/* =========================================
   多语言全网完美显隐控制 (针对行内元素优化)
   ========================================= */
/* 默认状态：显示中文，彻底隐藏英文 */
.lang-en {
    display: none !important;
}
.lang-zh {
    display: inline !important; /* 确保是 inline，不会撑破导航栏布局 */
}

/* 当切换到英文模式 (.en-mode) 时的反转逻辑 */
.en-mode .lang-zh {
    display: none !important;
}
.en-mode .lang-en {
    display: inline !important; /* 英文显现，保持行内对齐 */
}

.status-indicator {
  width: 7px;
  height: 7px;
  background-color: #2da461;
  border-radius: 50%;
  display: inline-block;
  
  
  /* 应用呼吸发光动画 */
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(45, 164, 97, 0.7); /* 初始没有光晕 */
  }
  70% {
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(45, 164, 97, 0); /* 光晕扩散并变透明 */
  }
  100% {
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(45, 164, 97, 0); /* 回到初始状态 */
  }
}


@media (min-width: 993px) {
    /* 选择器含义：
       .btn-lang 和 .btn-console 只要相邻，
       就将左侧间距减少 15px，从而达到聚拢效果 
    */
    .nav-links > .btn-lang + .btn-lang,
    .nav-links > .btn-lang + .btn-console {
        margin-left: -15px !important; 
    }
}
/* =========================================
   8. 移动端全适配 (Mobile Responsiveness)
   ========================================= */
/* 默认在电脑端隐藏汉堡菜单 */
.mobile-toggle { 
    display: none; 
    color: var(--text-primary); 
    font-size: 26px; 
    cursor: pointer; 
    z-index: 1001; 
    margin-left: auto; 
}

@media (max-width: 992px) {
    /* 1. 显示汉堡菜单 */
    .mobile-toggle { display: block; }
    
    /* 2. 菜单改为绝对定位，挂在导航栏下方 */
    .nav-links {
        position: absolute; 
        top: 100px; 
        left: 0; 
        width: 100%; 
        height: calc(100vh - 100px); 
        background: rgba(5, 5, 5, 0.98); 
        backdrop-filter: blur(20px); 
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column; 
        justify-content: flex-start; /* 从上往下排 */
        align-items: center;
        padding: 20px 20px 80px; 
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid var(--border-color);
        text-decoration: none;
    }
    
    .nav-links.active { transform: translateX(0); text-align: left; }
    
    /* 🔥 3. 核心修复：取消电脑端 100% 高度的限制，让菜单正常显示 🔥 */
    .nav-links > a:not(.btn-console), 
    .dropdown > a,
    .dropdown {
        height: auto !important;
        max-width: none !important;
        width: 100%;
        justify-content: left;
        margin-left: 50px;

    }

    /* 4. 解决 Dropdown 在手机端展开时的排版问题 */
    .dropdown {
        flex-direction: column; 
        margin-left: 0;
        text-decoration: none;
    }
    /* 手机端点击展开时，箭头反转 */
    .dropdown.mobile-active > a i { transform: rotate(180deg); opacity: 1; }

    .dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        background: transparent; box-shadow: none; border: none; min-width: 100%;
        display: none; /* 默认折叠 */
        padding: 0; margin-top: 10px; text-align: center;
    }
    .dropdown.mobile-active .dropdown-menu { display: block; }
    
    /* 子菜单的高度也要解除限制 */
    .dropdown-menu a { justify-content: left; padding: 12px; height: auto !important; text-align: left; margin-left: 50px; }
    .menu-text-block { align-items: left; }

    /* 5. 优化手机端字体和按钮宽度 */
    .nav-links > a:not(.btn-console), .dropdown > a { font-size: 18px; text-decoration: none; }
    .btn-lang { margin-top: 5px; justify-content: center; width: 100%; max-width: 100px; text-decoration: none;}
    .btn-console { margin-top: 5px; width: 100%; max-width: 100px; justify-content: center;text-decoration: none; }
    
    /* 6. 缩小主体内容的手机端间距 */
    .hero h1 { font-size: 36px; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .hero-btn, .btn-outline { width: 100%; text-align: center; }
    
    .features { padding: 50px 4%; }
    .glass-card { padding: 25px; }
    .card-icon { width: 45px; height: 45px; font-size: 20px; }
    
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
}