/* 荆州市鼎逸通信服务有限公司 — corporate site stylesheet */

:root {
  --navy: #042a41;
  --navy-2: #0a3652;
  --navy-3: #134766;
  --blue: #018fd6;
  --blue-dark: #0b76b3;
  --blue-soft: #e8f4fc;
  --text: #1c2a36;
  --text-2: #4a5866;
  --text-3: #7a8794;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --radius: 12px;
  --shadow: 0 12px 32px -16px rgba(4, 42, 65, 0.25);
  --max: 1240px;
  --pad: clamp(16px, 4vw, 32px);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.page { overflow-x: hidden; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-2); }

.section-title { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 48px); }
.section-title .kicker { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--blue); }
.section-title h2 { margin: 8px 0 0; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.3; font-weight: 700; color: var(--navy); }
.section-title p { margin: 12px 0 0; color: var(--text-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 8px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border: 1px solid rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn i { font-size: 16px; }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); transition: box-shadow 200ms var(--ease); }
.header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(4, 42, 65, 0.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { padding: 8px 16px; border-radius: 6px; font-size: 15px; color: var(--text-2); transition: color 200ms var(--ease), background-color 200ms var(--ease); }
.menu a:hover { color: var(--blue); background: var(--blue-soft); }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; align-items: center; justify-content: center; font-size: 22px; color: var(--navy); }
.menu-toggle:hover { background: var(--bg-2); }

/* Banner */
.banner { padding-top: 24px; }
.banner-box { position: relative; border-radius: 16px; overflow: hidden; color: #fff; background: var(--navy); }
.banner-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 42, 65, 0.92) 0%, rgba(4, 42, 65, 0.72) 45%, rgba(4, 42, 65, 0.25) 100%); }
.banner-content { position: relative; z-index: 1; padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 64px); max-width: 720px; }
.nw { white-space: nowrap; }
.banner h1 { margin: 0; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.25; font-weight: 700; }
.banner p { margin: 18px 0 0; font-size: clamp(15px, 1.4vw, 17px); color: rgba(255, 255, 255, 0.85); }
.banner-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.fact { padding: 22px 24px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { display: block; font-size: clamp(24px, 3vw, 30px); font-weight: 700; color: var(--navy); line-height: 1.2; }
.fact span { display: block; margin-top: 4px; font-size: 14px; color: var(--text-3); }

/* Business grid */
.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.biz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 250ms var(--ease); }
.biz-card:hover { box-shadow: var(--shadow); }
.biz-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.biz-body { padding: 20px 22px 24px; }
.biz-body h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.biz-body h3 i { color: var(--blue); font-size: 20px; }
.biz-body p { margin: 8px 0 0; font-size: 14.5px; color: var(--text-2); }

/* Product grid */
.product-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: -12px 0 32px; }
.product-tabs button { height: 36px; padding: 0 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--text-2); transition: all 200ms var(--ease); }
.product-tabs button:hover { color: var(--blue); border-color: var(--blue); }
.product-tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 250ms var(--ease), border-color 250ms var(--ease); }
.product:hover { box-shadow: var(--shadow); border-color: #cfdbe6; }
.product[hidden] { display: none; }
.product-shot { aspect-ratio: 16 / 10; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.product-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.product-tag { align-self: flex-start; font-size: 12px; line-height: 1; padding: 6px 8px; border-radius: 4px; background: var(--blue-soft); color: var(--blue-dark); }
.product-body h3 { margin: 12px 0 0; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.product-body p { margin: 8px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.product-actions { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 16px; }
.product-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--blue); }
.product-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product:hover .product-link { color: var(--blue-dark); }
.product-sub { position: relative; z-index: 2; font-size: 14px; color: var(--text-3); }
.product-sub:hover { color: var(--blue); }
.product-note { margin: 32px 0 0; text-align: center; font-size: 14px; color: var(--text-3); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-text h2 { margin: 8px 0 0; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.3; color: var(--navy); }
.about-text .kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--blue); }
.about-text > p { margin: 16px 0 0; color: var(--text-2); }
.info { margin: 24px 0 0; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.info dt { color: var(--text-3); }
.info dd { margin: 0; color: var(--text); }
.info a { color: var(--blue-dark); }
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Footer */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: 56px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin: 16px 0 0; max-width: 360px; }
.footer .footer-title { margin: 0 0 14px; font-size: 15px; font-weight: 600; line-height: 1.75; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* Product detail pages */
.crumbs { padding: 20px 0 0; font-size: 14px; color: var(--text-3); }
.crumbs a:hover { color: var(--blue); }
.detail-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); align-items: center; padding: 24px 0 clamp(48px, 7vw, 72px); }
.detail-top h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.3; color: var(--navy); }
.detail-top p { margin: 16px 0 0; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips span { font-size: 13px; padding: 4px 10px; border-radius: 4px; background: var(--blue-soft); color: var(--blue-dark); }
.detail-top .btn { margin-top: 28px; }
.detail-shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.detail-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature i { font-size: 26px; color: var(--blue); }
.feature h3 { margin: 12px 0 0; font-size: 17px; color: var(--navy); }
.feature p { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.ends { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.end { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.end h3 { margin: 0; font-size: 18px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.end h3 i { color: var(--blue); font-size: 22px; }
.end ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-2); font-size: 14.5px; }
.end li + li { margin-top: 4px; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.steps b { display: block; margin-top: 12px; color: var(--navy); }
.steps span { display: block; margin-top: 4px; font-size: 14px; color: var(--text-2); }
.tech { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tech span { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text-2); }
.detail-top .detail-lead { margin-top: 14px; font-size: clamp(17px, 1.7vw, 19px); line-height: 1.6; font-weight: 600; color: var(--navy); }
.detail-shot { position: relative; background: var(--bg-2); }
.detail-shot video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.shot-note { position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 4px; font-size: 12px; line-height: 1.4; color: #fff; background: rgba(4, 42, 65, 0.72); pointer-events: none; }
.shot-toggle { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; color: #fff; background: rgba(4, 42, 65, 0.72); transition: background-color 200ms var(--ease); }
.shot-toggle:hover { background: var(--navy); }
.shot-toggle[hidden] { display: none; }
.value-card { border-top: 3px solid var(--blue); }
.ends-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compare-wrap { max-width: 960px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--bg-2); font-size: 14px; font-weight: 600; color: var(--text-2); }
.compare thead th.is-ours { background: var(--navy); color: #fff; }
.compare tbody th { width: 20%; font-weight: 600; color: var(--navy); }
.compare td { color: var(--text-3); }
.compare td.is-ours { background: var(--blue-soft); font-weight: 600; color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(4, 42, 65, 0.3); }
  .menu a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .header.menu-open .menu { display: flex; }
  .biz-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .detail-top, .ends { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .biz-grid, .product-grid, .feature-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare tbody th { width: auto; white-space: nowrap; }
  .fact { padding: 16px 8px; }
  .fact b { font-size: 20px; }
  .fact span { font-size: 12px; }
  .banner-box::after { background: rgba(4, 42, 65, 0.8); }
  .logo img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}

/* Product hover previews (mouse and keyboard focus only; touch and reduced-motion keep the static screenshot)
   - [data-preview]: a short muted clip, loaded on first hover by corp.js (client systems: their real
     pages with every data value masked)
   - .fx-voice: speech visualizer in the voice product's own colours (acid #d7ff64 / violet #9b87ff)
   - .fx-push: a WeChat notification slides in
   The sample texts of these effects live in data-fx-text and are drawn by CSS, so they are not page text. */
.product-shot { position: relative; }
.voice-fx [data-fx-text]::before, .push-fx [data-fx-text]::before { content: attr(data-fx-text); }
.product-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms var(--ease); pointer-events: none; }
.product-preview.is-playing { opacity: 1; }

.voice-fx { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle at 50% 42%, rgba(27, 31, 22, 0.97), rgba(9, 10, 13, 0.99) 70%); opacity: 0; transition: opacity 300ms var(--ease); pointer-events: none; }
.voice-fx-orb { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; width: 56px; height: 56px; border-radius: 50%; background: rgba(215, 255, 100, 0.08); box-shadow: inset 0 0 0 1px rgba(215, 255, 100, 0.35), 0 0 32px rgba(215, 255, 100, 0.18); }
.voice-fx-orb::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(155, 135, 255, 0.5); opacity: 0; }
.voice-fx-orb b { width: 3px; height: 16px; border-radius: 3px; background: #d7ff64; }
.voice-fx-bars { display: flex; align-items: center; gap: 3px; height: 34px; }
.voice-fx-bars i { width: 3px; height: var(--h); border-radius: 3px; background: #d7ff64; transform: scaleY(0.25); }
.voice-fx-label { position: relative; height: 18px; width: 100%; font-size: 12px; letter-spacing: 0.08em; text-align: center; }
.voice-fx-label em { position: absolute; inset: 0; font-style: normal; color: #d7ff64; }
.voice-fx-label em + em { color: #9b87ff; opacity: 0; }

.push-fx { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding: 12px; background: rgba(4, 42, 65, 0); transition: background-color 300ms var(--ease); pointer-events: none; }
.push-fx-card { display: flex; gap: 10px; align-items: center; width: min(100%, 300px); padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.97); box-shadow: 0 14px 30px -12px rgba(4, 42, 65, 0.45); transform: translateY(-140%); transition: transform 500ms cubic-bezier(0.2, 0.9, 0.25, 1.15); text-align: left; }
.push-fx-card img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.push-fx-card div { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.push-fx-from { font-size: 11px; color: var(--text-3); }
.push-fx-card strong { font-size: 13px; color: var(--navy); }
.push-fx-line { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product:hover .voice-fx, .product:focus-within .voice-fx { opacity: 1; }
  .product:hover .voice-fx-bars i, .product:focus-within .voice-fx-bars i { animation: voice-fx-bar var(--d) var(--o) ease-in-out infinite alternate, voice-fx-tint 6s steps(1) infinite; }
  .product:hover .voice-fx-orb b, .product:focus-within .voice-fx-orb b { animation: voice-fx-orb 0.9s ease-in-out infinite alternate, voice-fx-tint 6s steps(1) infinite; }
  .product:hover .voice-fx-orb b:nth-child(2), .product:focus-within .voice-fx-orb b:nth-child(2) { animation-delay: -0.3s, 0s; }
  .product:hover .voice-fx-orb b:nth-child(3), .product:focus-within .voice-fx-orb b:nth-child(3) { animation-delay: -0.6s, 0s; }
  .product:hover .voice-fx-orb::before, .product:focus-within .voice-fx-orb::before { animation: voice-fx-ring 6s linear infinite; }
  .product:hover .voice-fx-label em, .product:focus-within .voice-fx-label em { animation: voice-fx-first 6s steps(1) infinite; }
  .product:hover .voice-fx-label em + em, .product:focus-within .voice-fx-label em + em { animation: voice-fx-second 6s steps(1) infinite; }
  .product:hover .push-fx, .product:focus-within .push-fx { background: rgba(4, 42, 65, 0.18); }
  .product:hover .push-fx-card, .product:focus-within .push-fx-card { transform: translateY(0); transition-delay: 120ms; }
}
@keyframes voice-fx-bar { from { transform: scaleY(0.18); } to { transform: scaleY(1); } }
@keyframes voice-fx-orb { from { transform: scaleY(0.45); } to { transform: scaleY(1.35); } }
/* first 3s listening (acid green), next 3s answering (violet, pulse ring) */
@keyframes voice-fx-tint { 0% { background: #d7ff64; } 50% { background: #9b87ff; } }
@keyframes voice-fx-first { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes voice-fx-second { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes voice-fx-ring { 0%, 49% { opacity: 0; transform: scale(0.9); } 50% { opacity: 0.9; transform: scale(0.9); } 75% { opacity: 0; transform: scale(1.35); } 76% { opacity: 0.9; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.35); } }
