/* ============================================================
   翌航电子（中山）有限公司 — 黑色商务主题
   ============================================================ */
:root {
  --black: #0b0b0d;
  --dark: #141419;
  --dark-2: #1c1c23;
  --gold: #c9a25f;
  --gold-light: #e2c487;
  --text-light: #f2f2f2;
  --text-dim: #9a9aa3;
  --text-body: #3c3c44;
  --bg-soft: #f6f6f8;
  --line: #e6e6ea;
  --nav-h: 72px;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(0,0,0,.10);
}
* { 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(--text-body); background: #fff; font-size: 15px; line-height: 1.75; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 导航 ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: rgba(11,11,13,.94);
  border-bottom: 1px solid rgba(201,162,95,.18);
  transition: background .3s, box-shadow .3s;
}
body.page-home .site-nav { background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,0)); border-bottom: none; }
body.page-home .site-nav.scrolled { background: rgba(11,11,13,.94); border-bottom: 1px solid rgba(201,162,95,.18); box-shadow: 0 4px 24px rgba(0,0,0,.35); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo-icon { height: 56px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.logo-text strong { font-size: 19px; font-weight: 700; letter-spacing: 3px; white-space: nowrap; }
.logo-text small { font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,.5); margin-top: 4px; font-weight: 400; white-space: nowrap; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-item {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; color: rgba(255,255,255,.86); font-size: 15px; font-weight: 500;
  border-radius: 6px; transition: color .2s, background .2s;
}
.nav-item:hover, .nav-item.active { color: var(--gold-light); }
.nav-item.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.sub-arrow { font-size: 10px; margin-left: 2px; }
.has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 150px; padding: 8px 0;
  background: var(--dark); border: 1px solid rgba(201,162,95,.25); border-radius: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.sub-menu a { display: block; padding: 9px 18px; color: rgba(255,255,255,.82); font-size: 14px; white-space: nowrap; }
.sub-menu a:hover, .sub-menu a.sub-active { color: var(--gold-light); background: rgba(201,162,95,.08); }
.nav-cta {
  margin-left: 12px; padding: 8px 16px; border: 1px solid var(--gold); color: var(--gold-light);
  border-radius: 999px; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: all .25s;
}
.nav-cta:hover { background: var(--gold); color: #16120a; }
.nav-toggle { display: none; color: #fff; font-size: 22px; cursor: pointer; padding: 6px; }

/* ---------- 首页 Hero（黑色商务大图） ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(11,11,13,.32) 0%, rgba(11,11,13,.66) 78%, rgba(11,11,13,.85) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 0 24px; animation: fadeUp .9s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-title { font-size: clamp(40px, 7vw, 72px); font-weight: 800; letter-spacing: 10px; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero-title span { color: var(--gold-light); }
.hero-line { width: 64px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); margin: 26px auto; border-radius: 2px; }
.hero-sub { font-size: clamp(15px, 2.2vw, 19px); color: rgba(255,255,255,.85); letter-spacing: 3px; font-weight: 300; }
.hero-btns { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 30px; border-radius: 999px;
  font-size: 15px; transition: all .25s; cursor: pointer; border: none;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #16120a; font-weight: 600; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201,162,95,.4); }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.7); font-size: 20px; animation: bounce 1.8s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---------- 内页标题条 ---------- */
.page-banner {
  background: linear-gradient(135deg, #0d0d11 0%, #1b1b22 60%, #26262f 100%);
  padding: calc(var(--nav-h) + 46px) 0 46px; text-align: center; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url('../images/factory.jpg') center 30% / cover no-repeat;
  opacity: .22;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(11,11,13,.78) 0%, rgba(13,13,17,.86) 100%);
}
.page-banner h1 { color: #fff; font-size: clamp(26px, 4vw, 36px); letter-spacing: 6px; font-weight: 700; position: relative; z-index: 1; }
.page-banner .banner-line { width: 56px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; position: relative; z-index: 1; }
.breadcrumb { margin-top: 14px; color: rgba(255,255,255,.55); font-size: 13px; position: relative; z-index: 1; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb i { font-size: 10px; margin: 0 8px; }

/* ---------- 通用内容区 ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 28px; color: var(--black); letter-spacing: 3px; font-weight: 700; }
.section-head .sec-line { width: 48px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); margin: 14px auto; border-radius: 2px; }
.section-head p { color: var(--text-dim); font-size: 14px; }

/* 内容排版（后台富文本） */
.content-body { color: var(--text-body); font-size: 15px; }
.content-body h3, .content-body h4 { color: var(--black); margin: 26px 0 12px; }
.content-body h3 { font-size: 20px; border-left: 4px solid var(--gold); padding-left: 12px; }
.content-body h4 { font-size: 17px; }
.content-body p { margin: 10px 0; }
.content-body ul { margin: 10px 0 10px 6px; }
.content-body ul li { position: relative; padding-left: 22px; margin: 7px 0; }
.content-body ul li::before { content: "\f0da"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--gold); position: absolute; left: 0; top: 1px; font-size: 13px; }
.content-body strong { color: var(--black); }

/* 图文两栏布局（公司简介/招商加盟配图） */
.img-text-layout { display: grid; grid-template-columns: 420px 1fr; gap: 44px; align-items: start; }
.img-text-layout .it-img { position: sticky; top: calc(var(--nav-h) + 30px); }
.img-text-layout .it-img img { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.img-text-layout .it-img .it-caption { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--text-dim); }
.img-text-layout .content-body { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px 36px; box-shadow: 0 4px 20px rgba(0,0,0,.04); }
@media (max-width: 900px) {
  .img-text-layout { grid-template-columns: 1fr; }
  .img-text-layout .it-img { position: static; }
  .img-text-layout .content-body { padding: 24px 20px; }
}

/* ---------- 产品中心 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s; display: block;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card .pc-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #101014; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .pc-img img { transform: scale(1.06); }
.product-card .pc-name { padding: 15px 16px; text-align: center; font-size: 15px; color: var(--black); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.product-card:hover .pc-name { color: var(--gold); }
.pc-name i { color: var(--gold); font-size: 14px; opacity: 0; transition: opacity .3s, transform .3s; }
.product-card:hover .pc-name i { opacity: 1; transform: translateX(4px); }

/* 产品详情 */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-detail .pd-img { border-radius: var(--radius); overflow: hidden; background: #101014; border: 1px solid var(--line); }
.product-detail .pd-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pd-info h2 { font-size: 26px; color: var(--black); letter-spacing: 1px; }
.pd-info .pd-tag { display: inline-block; margin-top: 10px; padding: 3px 14px; background: rgba(201,162,95,.12); color: #9a7a3f; border: 1px solid rgba(201,162,95,.4); border-radius: 999px; font-size: 13px; }
.pd-info .pd-desc { margin-top: 18px; color: var(--text-body); border-top: 1px dashed var(--line); padding-top: 18px; }
.pd-cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.pd-nav { margin-top: 34px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-dim); }
.pd-nav a:hover { color: var(--gold); }

/* ---------- 招商加盟 ---------- */
.franchise-wrap { display: grid; grid-template-columns: 1fr; gap: 34px; }
.fr-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.fr-card .content-body h3 { margin-top: 0; }
.fr-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.fr-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; transition: transform .3s, box-shadow .3s; }
.fr-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fr-step .fr-num {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #16120a;
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700;
}
.fr-step h5 { color: var(--black); font-size: 15px; margin-bottom: 6px; }
.fr-step p { font-size: 13px; color: var(--text-dim); }

/* ---------- 技术支持 ---------- */
.support-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 38px; }
.support-tabs a {
  padding: 10px 26px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-body);
  font-size: 14px; background: #fff; transition: all .25s; display: inline-flex; align-items: center; gap: 8px;
}
.support-tabs a i { color: var(--gold); }
.support-tabs a:hover, .support-tabs a.active { background: var(--black); border-color: var(--black); color: var(--gold-light); }

/* 售后 */
.after-sale-box {
  display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #101014, #1c1c23); border-radius: 14px; padding: 40px;
  color: #fff;
}
.as-qr { text-align: center; }
.as-qr img { width: 210px; height: 210px; border-radius: 10px; background: #fff; padding: 8px; margin: 0 auto; }
.as-qr p { margin-top: 10px; color: rgba(255,255,255,.6); font-size: 13px; }
.as-info h3 { font-size: 22px; letter-spacing: 2px; }
.as-info .as-phone { font-size: 34px; font-weight: 800; color: var(--gold-light); margin: 12px 0; letter-spacing: 2px; }
.as-info .as-tel-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 26px; border-radius: 999px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #16120a; font-weight: 600; }
.as-info p.as-text { color: rgba(255,255,255,.72); margin-top: 16px; }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: #fff; transition: box-shadow .3s; }
.faq-item.open { box-shadow: var(--shadow); border-color: rgba(201,162,95,.5); }
.faq-q { display: flex; align-items: center; gap: 12px; padding: 17px 22px; cursor: pointer; font-weight: 600; color: var(--black); font-size: 15px; user-select: none; }
.faq-q i.fa-q { color: var(--gold); }
.faq-q .faq-arrow { margin-left: auto; color: var(--text-dim); font-size: 12px; transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--gold); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 999px; }
.faq-a-inner { padding: 0 22px 18px 50px; color: var(--text-body); font-size: 14px; }

/* 文件下载 */
.download-list { max-width: 860px; margin: 0 auto; }
.dl-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: all .25s;
}
.dl-item:hover { border-color: rgba(201,162,95,.55); box-shadow: var(--shadow); transform: translateX(4px); }
.dl-icon {
  width: 48px; height: 48px; border-radius: 10px; flex: none;
  background: rgba(201,162,95,.13); color: #9a7a3f; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.dl-info { flex: 1; min-width: 0; }
.dl-info h4 { font-size: 15px; color: var(--black); }
.dl-info .dl-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.dl-btn {
  flex: none; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--gold);
  color: #9a7a3f; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; transition: all .25s;
}
.dl-btn:hover { background: var(--gold); color: #16120a; }
.dl-empty { text-align: center; color: var(--text-dim); padding: 60px 0; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 420px 1fr; gap: 34px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px;
  display: flex; gap: 14px; align-items: flex-start; transition: all .25s;
}
.contact-card:hover { border-color: rgba(201,162,95,.5); background: #fff; box-shadow: var(--shadow); }
.cc-icon {
  width: 42px; height: 42px; flex: none; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #16120a;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.contact-card h5 { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.contact-card p { font-size: 15px; color: var(--black); font-weight: 600; margin-top: 3px; word-break: break-all; }
.contact-card a:hover { color: var(--gold); }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px;
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
}
.contact-form h3 { font-size: 19px; color: var(--black); margin-bottom: 4px; }
.contact-form .cf-tip { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-body); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--black); background: #fbfbfc; transition: border .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,95,.15); background: #fff; }
.form-group textarea { min-height: 110px; resize: vertical; }
.btn-submit { width: 100%; justify-content: center; }
.form-msg { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 14px; display: none; }
.form-msg.ok { display: block; background: #eefaf0; color: #2e7d3c; border: 1px solid #cdeed4; }
.form-msg.err { display: block; background: #fdf0ef; color: #c0392b; border: 1px solid #f5cfcd; }
.contact-map { margin-top: 34px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.contact-map iframe, .contact-map .map-box { width: 100%; height: 380px; display: block; border: 0; }

/* 高德地图公司标注 */
.yh-marker { text-align: center; cursor: pointer; }
.yh-marker-pin {
  width: 18px; height: 18px; margin: 0 auto;
  background: #c9a25f; border: 3px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
}
.yh-marker-label {
  display: inline-block; margin-bottom: 5px;
  background: #c9a25f; color: #fff; font-size: 12px; line-height: 1;
  padding: 5px 10px; border-radius: 12px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

/* ---------- 页脚 ---------- */
.site-footer { background: #08080a; color: rgba(255,255,255,.72); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 40px; }
.footer-logo { display: flex; align-items: center; margin-bottom: 14px; }
.footer-logo .logo-icon { height: 62px; }
.footer-col h4 { color: #fff; font-size: 15px; letter-spacing: 2px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--gold); }
.footer-col ul li { margin-bottom: 9px; font-size: 13.5px; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact li i { color: var(--gold); margin-top: 4px; width: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 12.5px; color: rgba(255,255,255,.4); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 30px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(11,11,13,.85); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; border: 1px solid rgba(201,162,95,.4);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--gold); color: #16120a; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .fr-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .after-sale-box { grid-template-columns: 1fr; text-align: center; }
  .as-qr img { margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(11,11,13,.98); padding: 10px 20px 20px; gap: 2px;
    display: none; border-bottom: 1px solid rgba(201,162,95,.2);
  }
  .nav-menu.open { display: flex; }
  .nav-item { padding: 13px 8px; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .nav-item.active::after { display: none; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: none; box-shadow: none; padding: 0 0 4px 18px; background: transparent; }
  .nav-cta { margin: 14px 0 0; justify-content: center; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .fr-steps { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 24px; }
  .section { padding: 46px 0; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .fr-steps { grid-template-columns: 1fr; }
}
