/* ============================================================
 * 群晖代理商官网 - 公共样式
 * 配色取自群晖官网 synology.cn：主蓝 #0067e6 / 深墨 #2e3742
 * ============================================================ */
:root {
  /* 主色板完全对齐 synology.cn：主蓝 #0067e6 / 深墨 #2e3742 / 浅灰分区 #f5f5f5 / 细线 #e6e6e6 */
  --blue: #0067e6;
  --blue-dark: #0052c0;
  --blue-deeper: #003f96;
  --blue-light: #eef5ff;
  --amber: #edb758;
  --amber-dark: #d99f38;
  --orange: #edb758;
  --orange-dark: #c8892a;
  --ink: #2e3742;
  --ink-2: #4b5563;
  --gray: #6e7b8b;
  --line: #e6e6e6;
  --bg: #fff;
  --bg-soft: #f5f5f5;
  --navy: #04070d;
  --navy-2: #0b1a2b;
  --white: #fff;
  --shadow: 0 8px 28px rgba(20, 40, 70, .08);
  --shadow-sm: 0 2px 10px rgba(20, 40, 70, .06);
  --radius: 10px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }
.container { width: min(100% - 40px, var(--maxw)); margin: 0 auto; }
section { padding: 100px 0; }

/* ---------- 通用标题 ---------- */
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.section-tag::before, .section-tag::after { content: ""; width: 22px; height: 2px; background: var(--blue); opacity: .55; }
.section-title { font-size: clamp(27px, 3.2vw, 40px); line-height: 1.26; color: var(--ink); font-weight: 800; letter-spacing: -.6px; }
.section-title .hl { color: var(--blue); }
.section-desc { color: var(--gray); font-size: 15.5px; line-height: 1.85; margin-top: 16px; max-width: 660px; margin-inline: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; border: 1.5px solid transparent; cursor: pointer;
  font-size: 15px; font-weight: 600; transition: all .22s ease; white-space: nowrap;
  /* 统一行高：<a class=btn> 与 <button class=btn> 高度必须一致 */
  line-height: 1.2; text-decoration: none;
}
/* 官网式实心蓝按钮（无渐变、无重投影） */
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 103, 230, .26); }
.btn-orange { background: var(--amber); color: var(--ink); }
.btn-orange:hover { background: var(--amber-dark); color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(237, 183, 88, .34); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: inherit; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.32); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 30px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--blue);
  color: #fff; font-weight: 900; font-size: 22px; display: grid; place-items: center;
}
.brand-logo { height: 26px; width: auto; max-width: 180px; object-fit: contain; flex-shrink: 0; display: block; }
.brand-light .brand-logo { filter: brightness(0) invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 18px; color: var(--ink); }
.brand-text small { font-size: 10px; color: var(--gray); letter-spacing: 1px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { padding: 10px 15px; font-size: 15px; color: var(--ink-2); border-radius: 8px; font-weight: 500; transition: all .2s; }
.nav-link:hover { color: var(--blue); background: var(--blue-light); }
.nav-link.active { color: var(--blue); font-weight: 700; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--blue-dark); white-space: nowrap; }
.header-phone .ico { width: 16px; height: 16px; }
.nav-toggle { display: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--navy); color: #93a5bb;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 66px;
}
.footer-main {
  display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 64px;
  padding-bottom: 54px; align-items: start;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-desc { font-size: 13.5px; line-height: 1.95; color: #8b9db4; max-width: 350px; margin-bottom: 24px; }
.footer-contact { display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; }
.footer-contact a, .footer-contact .footer-addr {
  display: flex; align-items: flex-start; gap: 10px;
  color: #93a5bb; line-height: 1.65; transition: color .2s;
}
.footer-contact a:hover { color: #fff; }
.footer-contact .ico { width: 15px; height: 15px; opacity: .5; flex-shrink: 0; margin-top: 3px; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.footer-col h4 {
  position: relative; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .4px;
  margin-bottom: 16px; padding-bottom: 15px;
}
.footer-col h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 22px; height: 2px; border-radius: 2px; background: var(--blue);
}
.footer-col > a {
  display: block; font-size: 13.5px; padding: 6px 0; color: #93a5bb;
  transition: color .2s, transform .2s;
}
.footer-col > a:hover { color: #fff; transform: translateX(3px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer-bottom-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 7px;
}
.footer-copy { font-size: 12.5px; color: #7d8fa6; }
.footer-icp { margin-left: 10px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.14); }
.footer-note { font-size: 12px; color: #77899f; line-height: 1.7; }
@media (max-width: 700px) { .footer-bottom-inner { padding-right: 56px; } }

/* ---------- 悬浮获客按钮 ---------- */
.float-widgets { position: fixed; right: 22px; bottom: 56px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; box-shadow: 0 6px 20px rgba(16,58,110,.28); transition: transform .2s, box-shadow .2s;
  position: relative;
}
.float-btn span { font-size: 10px; font-weight: 600; }
.float-btn:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 28px rgba(16,58,110,.36); }
.float-chat { background: var(--blue); }
.float-wechat { background: #22b455; }
.float-form { background: var(--amber); color: var(--ink); }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10, 25, 45, .6);
  backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: #fff; border-radius: 18px; width: min(100%, 460px); max-height: 92vh; overflow-y: auto;
  padding: 36px; position: relative; box-shadow: 0 24px 70px rgba(0,0,0,.28);
  animation: popIn .25s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: none;
  background: #f0f3f7; border-radius: 50%; font-size: 22px; color: var(--gray); cursor: pointer; line-height: 1;
}
.modal-close:hover { background: #e2e8f0; color: var(--ink); }
.modal-card h3 { font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.lead-modal-head { text-align: center; margin-bottom: 24px; }
.lead-modal-head p { color: var(--gray); font-size: 14px; }
.lead-form .form-row { margin-bottom: 15px; }
.lead-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.lead-form label em { color: #e74c3c; font-style: normal; }
.lead-form input, .lead-form textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 9px;
  font-size: 14px; color: var(--ink); transition: border-color .2s; resize: vertical;
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--blue); }
.form-error { color: #e74c3c; font-size: 13px; min-height: 18px; margin-bottom: 6px; }
.form-tip { text-align: center; font-size: 12px; color: var(--gray); margin-top: 12px; }
.lead-modal .btn-block { margin-top: 4px; }

.success-modal, .wechat-modal { text-align: center; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: #e8f8ee; color: #1f9d6b; font-size: 36px; display: grid; place-items: center; margin: 4px auto 18px; }
.success-modal p { color: var(--gray); font-size: 15px; margin-bottom: 12px; }
.success-phone { color: var(--ink) !important; }
.success-phone b { color: var(--blue); }
.success-modal .btn { margin-top: 12px; }
.wechat-qr { width: 200px; height: 200px; object-fit: contain; margin: 20px auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.wechat-qr-placeholder { width: 200px; height: 200px; margin: 20px auto; border: 2px dashed var(--line); border-radius: 12px; display: grid; place-items: center; color: #34c759; background: #f9fbfd; }
.wechat-id { color: var(--blue); font-size: 17px; }
.modal-sub { color: var(--gray); font-size: 13px; margin: 8px 0 20px; }

.chat-modal { padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; background: var(--blue); color: #fff; }
.chat-avatar { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 20px; font-weight: 800; }
.chat-head h3 { margin: 0; color: #fff; font-size: 17px; }
.chat-status { font-size: 12px; color: #cfe6ff; }
.chat-body { padding: 24px; background: var(--bg); min-height: 150px; display: flex; flex-direction: column; gap: 12px; }
.chat-bubble { background: #fff; padding: 12px 16px; border-radius: 4px 14px 14px 14px; font-size: 14px; color: var(--ink-2); align-self: flex-start; box-shadow: var(--shadow-sm); max-width: 90%; }
.chat-actions { padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.chat-actions .btn { width: 100%; }

/* ---------- 内部页 Hero（官网式浅色版） ---------- */
.inner-hero {
  background: linear-gradient(180deg, #f5f5f5 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  color: var(--ink); padding: 54px 0 58px; position: relative; overflow: hidden;
}
.inner-hero::before {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,103,230,.09), transparent 68%);
  top: -280px; right: -120px;
}
.inner-hero::after {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,103,230,.06), transparent 68%);
  bottom: -220px; left: 6%;
}
.inner-hero .container { position: relative; z-index: 1; }
.inner-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.inner-hero p { font-size: 16.5px; color: var(--gray); max-width: 660px; }
.breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .footer-main { grid-template-columns: 1fr; gap: 44px; }
  .footer-links { gap: 34px; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; margin-left: auto; }
  .nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }
  .header-cta .header-phone { display: none; }
}
@media (max-width: 640px) {
  section { padding: 46px 0; }
  /* 手机端标题体系收紧，避免大标题压垮小屏 */
  .section-head { margin-bottom: 26px; }
  .section-tag { font-size: 11.5px; letter-spacing: 1.6px; margin-bottom: 10px; }
  .section-tag::before, .section-tag::after { width: 16px; }
  .section-title { font-size: 23px; letter-spacing: -.3px; line-height: 1.32; }
  .section-desc { font-size: 13.5px; line-height: 1.75; margin-top: 10px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); gap: 16px 8px; }
  /* 小屏收紧页脚，避免过长 */
  .site-footer { padding-top: 40px; }
  .footer-main { gap: 26px; padding-bottom: 30px; }
  .footer-desc { font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
  .footer-contact { gap: 9px; font-size: 13px; }
  .footer-links { gap: 20px 18px; }
  .footer-brand .brand { margin-bottom: 14px; }
  .footer-col h4 { margin-bottom: 12px; padding-bottom: 12px; }
  .footer-col > a { padding: 5px 0; font-size: 13px; }
  .footer-bottom { padding: 18px 0; }
  /* 移动端上移更多，并避开 iPhone 底部安全区 */
  .float-widgets { right: 14px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .float-btn { width: 52px; height: 52px; }
  .modal-card { padding: 28px 22px; }
  .header-cta .btn { padding: 8px 12px; font-size: 12.5px; }
  /* 小屏收紧品牌区，避免顶栏溢出 */
  .brand-logo { height: 21px; max-width: 128px; }
  .brand-text b { font-size: 15px; }
  .brand-text small { font-size: 10px; }
  .header-inner { gap: 12px; }
}

/* ---------- 线性图标尺寸 ---------- */
.ico { width: 24px; height: 24px; display: block; }
.advantage-icon .ico { width: 26px; height: 26px; }
.scenario-icon .ico { width: 26px; height: 26px; }
.contact-item-icon .ico { width: 20px; height: 20px; }
.sv-icon .ico { width: 64px; height: 64px; stroke-width: 1.1; opacity: .92; }

/* 勾选标记（替代 ✓ 字符） */
.tick { width: 12px; height: 12px; display: inline-block; position: relative; margin-right: 7px; }
.tick::before {
  content: ""; position: absolute; left: 1px; top: 2.5px; width: 7px; height: 4px;
  border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
}

/* 二维码占位图标 */
.qr-placeholder-inner .qr-ico { width: 44px; height: 44px; color: var(--blue); opacity: .55; margin-bottom: 10px; }
.form-tip { display: flex; align-items: center; justify-content: center; gap: 7px; }
.form-tip .ico { width: 13px; height: 13px; opacity: .6; flex-shrink: 0; }

/* ---------- 企业微信客服弹窗 ---------- */
.wecom-body { padding: 24px 26px 26px; text-align: center; }
.wecom-qr {
  width: 200px; height: 200px; margin: 0 auto 16px; display: block;
  border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: #fff;
}
.wecom-qr-empty {
  display: grid; place-items: center; font-size: 13px; color: var(--gray);
  background: var(--bg-soft); padding: 20px; line-height: 1.7;
}
.wecom-tip { font-size: 13.5px; color: var(--gray); line-height: 1.8; margin-bottom: 18px; }

/* 仅供屏幕阅读器/搜索引擎的标题 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 电话咨询弹窗 ---------- */
.phone-modal { text-align: center; padding: 32px 28px 26px; }
.phone-modal .modal-close { top: 12px; right: 14px; }
.phone-ico {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center;
}
.phone-ico .ico { width: 24px; height: 24px; }
.phone-modal h3 { font-size: 19px; margin-bottom: 6px; }
.phone-sub { font-size: 13px; color: var(--gray); margin-bottom: 18px; }
.phone-number {
  font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: .5px;
  font-variant-numeric: tabular-nums; margin-bottom: 22px; line-height: 1.2;
}
.phone-actions { display: flex; flex-direction: column; gap: 10px; }
.phone-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding: 0 20px; }
.phone-actions .ico { width: 15px; height: 15px; }
.phone-alt {
  display: block; width: 100%; margin-top: 16px; padding: 0;
  background: none; border: none; cursor: pointer;
  font-size: 12.5px; color: var(--blue); line-height: 1.6;
}
.phone-alt:hover { text-decoration: underline; }

/* ---------- 小屏：筛选标签/场景标签改为单行横向滑动 ---------- */
@media (max-width: 640px) {
  .filter-bar, .scenario-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    justify-content: flex-start !important;
    gap: 8px;
    padding-bottom: 4px;
    margin-inline: -20px;
    padding-inline: 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .filter-bar::-webkit-scrollbar, .scenario-tabs::-webkit-scrollbar { display: none; }
  .filter-btn, .scenario-tab { flex: 0 0 auto; scroll-snap-align: start; }
  .filter-bar { margin-bottom: 26px; }
}

/* ---------- 手机端页脚：三组链接重排，消除「第三组独占一行」的空洞 ---------- */

/* ---------- 手机端页脚：三组链接统一三列竖排 ---------- */
@media (max-width: 640px) {
  .footer-links { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
  .footer-col h4 { font-size: 12.5px; margin-bottom: 10px; padding-bottom: 10px; letter-spacing: .2px; }
  .footer-col h4::after { width: 16px; }
  .footer-col > a { font-size: 12px; padding: 5px 0; line-height: 1.45; }
}

/* ============================================================
 * SEO / 无障碍辅助
 * ============================================================ */

/* 视觉隐藏但保留给屏幕阅读器与爬虫 */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 页脚上方的公司实体信息（NAP）块 */
.footer-nap {
  background: var(--navy-2);
  color: #93a5bb;
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 34px 0 6px;
  font-size: 13.5px;
  line-height: 1.9;
}
.footer-nap h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .2px;
}
.footer-nap p { margin: 2px 0; }

@media (max-width: 640px) {
  .footer-nap { padding: 26px 0 4px; font-size: 12.5px; line-height: 1.8; }
  .footer-nap h2 { font-size: 14px; }
}

/* ---------- 常见问题（FAQ）区块 ---------- */
.faq-section {
  padding: 84px 0;
  background: #fff;
}
.faq-list {
  max-width: 880px;
  margin: 40px auto 0;
  display: grid;
  gap: 14px;
}
.faq-item {
  padding: 24px 28px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover {
  border-color: #c9d6e6;
  box-shadow: 0 6px 20px rgba(6, 24, 48, .05);
}
.faq-q {
  margin: 0 0 10px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}
.faq-a {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .faq-section { padding: 56px 0; }
  .faq-list { margin-top: 28px; gap: 12px; }
  .faq-item { padding: 18px 18px; border-radius: 12px; }
  .faq-q { font-size: 15px; margin-bottom: 8px; }
  .faq-a { font-size: 13.5px; line-height: 1.8; }
}
