/* ==========================================================
   深圳市虹音科技有限公司 官网样式
   Hongyin Technology Corporate Website
   ========================================================== */
:root {
  --primary: #0b3d91;        /* 主色：深蓝 */
  --primary-dark: #082b66;
  --accent: #1e90ff;         /* 点缀：科技蓝 */
  --accent-cyan: #00c2d1;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f5f8fc;
  --white: #ffffff;
  --border: #e5eaf2;
  --shadow: 0 8px 30px rgba(11, 61, 145, 0.10);
  --radius: 14px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

/* 页内快速导航 */
.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.quick-nav a {
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary-dark);
  transition: all .25s;
}
.quick-nav a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color .25s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 顶部导航 ---------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.logo .logo-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; letter-spacing: 1px;
}
.logo small { display: block; font-size: 11px; font-weight: 400; color: var(--text-light); letter-spacing: 2px; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 8px 18px;
  font-size: 15px;
  color: var(--text);
  border-radius: 8px;
  font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--bg-light); }
.nav .nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--primary-dark); }

/* 语言切换按钮 */
.nav .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: all .2s;
}
.nav .lang-switch::before { content: '🌐'; font-size: 13px; }
.nav .lang-switch:hover { background: var(--primary); color: #fff; }

.menu-toggle { display: none; font-size: 26px; background: none; border: none; color: var(--primary); cursor: pointer; }

/* ---------------- 首屏 Banner ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(30, 144, 255, .35), transparent),
    radial-gradient(800px 500px at -10% 110%, rgba(0, 194, 209, .25), transparent),
    linear-gradient(135deg, #071f4d 0%, #0b3d91 55%, #1053b8 100%);
  color: #fff;
  padding: 110px 0 130px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 22px;
  background: rgba(255,255,255,.08);
}
.hero h1 {
  font-size: 42px;
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 800;
}
.hero h1 span { color: #7dd3fc; }
.hero p.lead { font-size: 17px; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-cyan)); color: #fff; box-shadow: 0 8px 22px rgba(30,144,255,.4); }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Hero 右侧芯片卡片 */
.chip-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 30px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.chip-card h3 { font-size: 18px; margin-bottom: 18px; color: #7dd3fc; letter-spacing: 1px; }
.chip-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chip-spec .item {
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 12px 14px;
}
.chip-spec .item b { display: block; font-size: 16px; color: #fff; }
.chip-spec .item i { font-style: normal; font-size: 12px; color: rgba(255,255,255,.65); }

/* ---------------- 通用 Section ---------------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .en { font-size: 13px; letter-spacing: 4px; color: var(--accent); text-transform: uppercase; font-weight: 600; }
.section-head h2 { font-size: 32px; color: var(--primary-dark); margin: 10px 0 14px; font-weight: 800; }
.section-head p { color: var(--text-light); max-width: 720px; margin: 0 auto; }

/* ---------------- 数据条 ---------------- */
.stats {
  background: var(--primary-dark);
  color: #fff;
  padding: 44px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-grid b { display: block; font-size: 34px; font-weight: 800; color: #7dd3fc; }
.stats-grid span { font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------------- 卡片网格 ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(30,144,255,.15), rgba(0,194,209,.15));
  color: var(--primary);
}
.card h3 { font-size: 19px; margin-bottom: 12px; color: var(--primary-dark); }
.card p { font-size: 14.5px; color: var(--text-light); }
.card ul.feature-list { margin-top: 16px; }
.card ul.feature-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 14px;
  color: var(--text);
}
.card ul.feature-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* 产品卡片标签 */
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(30,144,255,.1);
  color: var(--primary);
  margin: 0 6px 10px 0;
}

/* ---------------- 应用领域 ---------------- */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.app-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.app-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.app-item .emoji { font-size: 34px; margin-bottom: 12px; }
.app-item h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 8px; }
.app-item p { font-size: 13px; color: var(--text-light); }

/* ---------------- 定制流程 ---------------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.flow .step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  position: relative;
}
.flow .step .num {
  width: 42px; height: 42px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.flow .step h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 8px; }
.flow .step p { font-size: 13px; color: var(--text-light); }

/* ---------------- 关于我们 ---------------- */
.about-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.about-wrap h2 { font-size: 30px; color: var(--primary-dark); margin-bottom: 20px; }
.about-wrap p { color: var(--text-light); margin-bottom: 16px; font-size: 15px; }
.about-info {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  color: #fff;
  padding: 36px;
  box-shadow: var(--shadow);
}
.about-info h3 { font-size: 18px; margin-bottom: 20px; letter-spacing: 1px; }
.about-info li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 14.5px;
  border-bottom: 1px dashed rgba(255,255,255,.25);
}
.about-info li:last-child { border-bottom: none; }
.about-info li b { min-width: 82px; color: #a5d8ff; font-weight: 600; }

/* ---------------- CTA 条 ---------------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(0,194,209,.4), transparent),
    linear-gradient(120deg, #071f4d, #0b3d91);
  color: #fff;
  text-align: center;
  padding: 70px 24px;
}
.cta-band h2 { font-size: 28px; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 30px; }

/* ---------------- 页脚 ---------------- */
.footer { background: #0a1526; color: rgba(255,255,255,.65); padding: 60px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer a:hover { color: #7dd3fc; }
.footer li { padding: 5px 0; }
.footer .footer-logo { color: #fff; font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.copyright a { color: rgba(255,255,255,.55); }

/* ---------------- 联系页表单 ---------------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-item .c-icon {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30,144,255,.14), rgba(0,194,209,.14));
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.contact-item b { display: block; color: var(--primary-dark); margin-bottom: 3px; }
.contact-item span { font-size: 14.5px; color: var(--text-light); }
.qr-img { display: block; width: 128px; height: 128px; object-fit: contain; border: 1px solid #e5eaf2; border-radius: 10px; padding: 6px; background: #fff; margin: 8px 0 6px; cursor: zoom-in; transition: box-shadow .2s; }
.qr-img:hover { box-shadow: 0 4px 14px rgba(11,61,145,.18); }
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7dfea;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,144,255,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--text-light); margin-top: 14px; }

/* ---------------- 视频展示 ---------------- */
.video-section {
  background:
    radial-gradient(900px 400px at 15% -20%, rgba(30, 144, 255, .18), transparent),
    radial-gradient(700px 400px at 110% 120%, rgba(0, 194, 209, .14), transparent),
    var(--bg-light);
}
.video-frame {
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #0a1526;
  display: block;
  object-fit: cover;
}
.video-caption { text-align: center; padding: 18px 10px 6px; }
.video-caption h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 6px; }
.video-caption p { font-size: 13.5px; color: var(--text-light); }

/* ---------------- 页面内页 Banner ---------------- */
.page-banner {
  background:
    radial-gradient(700px 300px at 85% 20%, rgba(30,144,255,.35), transparent),
    linear-gradient(120deg, #071f4d, #0b3d91);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.page-banner h1 { font-size: 34px; margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,.75); }
.breadcrumb { font-size: 13px; margin-top: 14px; color: rgba(255,255,255,.55); }
.breadcrumb a { color: rgba(255,255,255,.75); }

/* ---------------- 动画 ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; }
  .menu-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .grid-4, .app-grid, .flow, .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 76px 0 90px; }
  .hero h1 { font-size: 27px; }
  .section-head h2 { font-size: 25px; }
}

/* ==========================================================
   导航增强：下拉菜单 / 右侧悬浮分区导航 / 滚动提示
   ========================================================== */

/* 顶部导航下拉分区 */
.nav .has-dropdown { position: relative; }
.nav .has-dropdown > a.dd-toggle::after {
  content: "▾";
  font-size: 11px;
  margin-left: 5px;
  opacity: .7;
}
.nav .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(11, 61, 145, .16);
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 1000;
}
.nav .has-dropdown:hover .dropdown-menu,
.nav .has-dropdown.open .dropdown-menu { display: flex; }
.nav .dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 500;
}
.nav .dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary);
}
.nav .dropdown-menu .dd-head {
  font-size: 12px;
  color: var(--text-light);
  padding: 6px 14px 2px;
  letter-spacing: 1px;
}
@media (max-width: 960px) {
  .nav .dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    background: var(--bg-light);
    border-radius: 8px;
    margin: 4px 0 8px;
    padding: 6px;
  }
}

/* 首屏向下滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  letter-spacing: 3px;
  text-align: center;
  z-index: 2;
  cursor: pointer;
  user-select: none;
}
.scroll-hint .arrow {
  display: block;
  font-size: 20px;
  line-height: 1;
  margin-top: 4px;
  animation: hint-bounce 1.6s ease-in-out infinite;
}
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50% { transform: translateY(9px); opacity: 1; }
}

/* 右侧悬浮分区圆点导航 */
.side-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-nav a {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c2cfe4;
  transition: background .25s, transform .25s;
}
.side-nav a:hover { background: var(--accent); }
.side-nav a.active {
  background: var(--primary);
  transform: scale(1.45);
  box-shadow: 0 0 0 4px rgba(30, 144, 255, .18);
}
.side-nav a::after {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--primary-dark);
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.side-nav a:hover::after,
.side-nav a.active::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 1200px) {
  .side-nav { display: none; }
}
