* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #1a56db;
  --blue-dark: #1e3a8a;
  --blue-light: #3b82f6;
  --accent: #60a5fa;
  --bg: #0a0f1e;
  --bg2: #0f1729;
  --bg3: #f8faff;
  --text: #e2e8f0;
  --text-dark: #1e293b;
  --muted: #94a3b8;
  --border: #1e3a5f;
  --green: #22c55e;
  --white: #ffffff;
}
html { scroll-behavior: smooth; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,15,30,0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; object-fit: contain; filter: brightness(0) invert(1); }
.nav-logo span { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; padding-bottom: 4px; }
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom: 2px solid var(--blue-light); }
.nav-menu { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
.mob-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; background: rgba(10,15,30,0.99); z-index: 999; padding: 16px 6%; flex-direction: column; gap: 0; border-bottom: 1px solid var(--border); }
.mob-nav.open { display: flex; }
.mob-nav a { color: var(--text); text-decoration: none; font-size: 15px; padding: 14px 0; border-bottom: 1px solid var(--border); }

/* FOOTER */
footer { background: #060b18; padding: 40px 6% 20px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 28px; }
.footer-brand .logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-brand .logo img { width: 28px; filter: brightness(0) invert(1); }
.footer-brand .logo span { font-size: 18px; font-weight: 800; color: #fff; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 240px; }
.footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; font-size: 12px; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--border); }

/* SEO LINKS */
.seo-area { background: #060b18; padding: 20px 6%; border-top: 1px solid var(--border); }
.seo-area a { color: var(--muted); font-size: 12px; text-decoration: none; margin: 3px 8px; display: inline-block; }
.seo-area a:hover { color: var(--accent); }

/* ===== 手机端底部下载栏 + 客服按鈕 ===== */
/* 默认隐藏 */
#weex-fixed-bar { display: none; }
#dify-btn-float { display: none; }
#dify-panel { display: none !important; }

@media (max-width: 767px) {
  /* 底部下载栏 - 完全复刻参考站 */
  #weex-fixed-bar {
    position: fixed; bottom: 12px; left: 10px; right: 10px;
    background: linear-gradient(to right, #000, #333);
    height: 60px; border-radius: 12px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 999999;
    font-family: -apple-system, system-ui, sans-serif;
  }
  .bar-left { display: flex; align-items: center; gap: 8px; }
  .bar-logo {
    width: 36px; height: 36px; background: #000; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
  }
  .bar-logo svg { width: 20px; height: 20px; }
  .bar-info h4 { margin: 0; font-size: 13px; font-weight: bold; color: #fff; line-height: 1.2; }
  .bar-info p { margin: 0; font-size: 10px; color: #fff; }
  .bar-right { display: flex; align-items: center; gap: 6px; margin-right: 15px; }
  .btn-reg-black {
    background: linear-gradient(to right, #0071e3, #005bb8);
    padding: 5px 8px; border-radius: 20px;
    font-size: 12px; font-weight: bold;
    border: none; color: #fff !important; cursor: pointer;
  }
  .btn-down-white {
    background: linear-gradient(to right, #3ddc84, #12a45e);
    padding: 5px 8px; border-radius: 20px;
    font-size: 12px; font-weight: bold;
    border: none; color: #fff !important; cursor: pointer;
  }
  .btn-down-white:nth-child(3) {
    background: linear-gradient(to right, #c00, #c00);
  }
  .bar-close {
    position: absolute; right: 6px; top: 4px;
    color: #ddd; font-size: 16px; cursor: pointer;
  }
  /* 客服按鈕 - 在下载栏上方 */
  #dify-btn-float {
    display: flex;
    position: fixed; bottom: 82px; right: 16px; z-index: 999998;
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #1a56db, #60a5fa);
    box-shadow: 0 4px 16px rgba(26,86,219,0.5);
    align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff; font-size: 22px;
    text-decoration: none;
  }
}

@media (max-width: 768px) {
  nav { padding: 0 4%; }
  .nav-links { display: none; }
  .nav-menu { display: block; }
  footer { padding: 30px 4% 16px; }
  .seo-area { padding: 16px 4%; }
}
