/* =========================================================
   泰委传感 · 企业官网 样式表
   科技工业风 · 响应式
   ========================================================= */

:root {
  --primary: #0e4da4;      /* 主蓝 */
  --primary-dark: #0a3a7d;
  --accent: #00b4d8;       /* 科技青 */
  --accent-soft: #e6f6fb;
  --dark: #0a1a2f;         /* 深海军蓝 */
  --text: #2b3440;
  --text-light: #6b7684;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --border: #e5eaf0;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(10, 26, 47, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 26, 47, 0.14);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  flex: none;
}
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(150deg, #08182e 0%, #0a2c52 45%, #0e4da4 100%);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(0, 180, 216, 0.35), transparent 60%),
    radial-gradient(500px 420px at 10% 90%, rgba(14, 77, 164, 0.5), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .5px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.2;
  font-weight: 800;
  margin: 26px 0 20px;
  letter-spacing: 1px;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lead {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--accent); color: #04243a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 180, 216, .4); }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  max-width: 720px;
}
.hero-stat .num { font-size: 34px; font-weight: 800; color: #fff; }
.hero-stat .num span { color: var(--accent); }
.hero-stat .lbl { font-size: 14px; color: rgba(255, 255, 255, .7); }

/* ---------- 通用 section ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 36px; font-weight: 800; color: var(--dark); line-height: 1.3; margin-bottom: 16px; }
.section-head p { color: var(--text-light); font-size: 17px; }

/* ---------- 产品卡片 ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 20px; color: var(--dark); margin-bottom: 12px; font-weight: 700; }
.card p { color: var(--text-light); font-size: 15px; }

/* ---------- 特性/优势 ---------- */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h4 { font-size: 18px; color: var(--dark); margin-bottom: 6px; }
.feature p { color: var(--text-light); font-size: 15px; }

/* ---------- 关于 ---------- */
.about-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about-visual {
  border-radius: 20px;
  background: linear-gradient(150deg, var(--dark), var(--primary));
  color: #fff;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.about-visual h3 { font-size: 26px; margin-bottom: 16px; }
.about-visual p { color: rgba(255, 255, 255, .8); }
.about-list { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.about-list li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.9); }
.about-list li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--primary);
  display: grid; place-items: center;
}
.contact-item h4 { font-size: 16px; color: var(--dark); margin-bottom: 4px; }
.contact-item p { color: var(--text-light); font-size: 15px; }
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-card label { display: block; font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-card input, .form-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 18px;
  transition: border-color .2s, box-shadow .2s;
}
.form-card input:focus, .form-card textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 77, 164, .12);
}
.form-card textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer a { display: block; margin-bottom: 10px; font-size: 14px; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
}
.footer-bottom a {
  color: rgba(255, 255, 255, .8);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, .35);
}
.footer-bottom a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------- 页面标题（子页） ---------- */
.page-hero {
  background: linear-gradient(150deg, #08182e 0%, #0a2c52 50%, #0e4da4 100%);
  color: #fff;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: 42px; font-weight: 800; margin: 14px 0 12px; }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: 17px; max-width: 620px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-wrap, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 16px; }
  .hero-stats { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; width: 100%; }
  .hamburger { display: flex; }
  .section-head h2 { font-size: 28px; }
}

/* =========================================================
   改版新增样式：Logo / 产品 / 应用场景
   ========================================================= */

/* ---------- Logo 图形 ---------- */
.logo-svg { width: 34px; height: 34px; flex: none; }

/* ---------- 产品系列 ---------- */
.series-head { margin-bottom: 48px; }
.series-head .series-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.series-head h2 { font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.series-head p { color: var(--text-light); font-size: 16px; max-width: 760px; }

.product-list { display: flex; flex-direction: column; gap: 36px; }
.product-item {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 36px;
  align-items: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: box-shadow .25s, border-color .25s;
}
.product-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.product-img {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.product-img img { width: 100%; height: auto; }
.product-info h3 { font-size: 22px; color: var(--dark); margin-bottom: 6px; font-weight: 800; }
.product-info .model { font-size: 14px; color: var(--primary); font-weight: 600; letter-spacing: .5px; margin-bottom: 14px; }
.product-info .desc { color: var(--text-light); font-size: 15px; margin-bottom: 16px; }
.variant-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.variant-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
}
.variant-tag.split { color: #b45309; background: #fef3e2; }
.product-points { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.product-points li { display: flex; gap: 10px; font-size: 14px; color: var(--text); align-items: flex-start; }
.product-points li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }

/* ---------- 参数表 ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.spec-table th, .spec-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th {
  width: 120px;
  background: var(--bg-soft);
  color: var(--dark);
  font-weight: 600;
  white-space: nowrap;
}
.spec-table td { color: var(--text-light); }

/* ---------- 应用场景 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.app-card .app-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.app-card h3 { font-size: 17px; color: var(--dark); line-height: 1.5; margin-bottom: 10px; font-weight: 700; }
.app-card p { color: var(--text-light); font-size: 14px; flex: 1; }
.app-card .app-link { margin-top: 16px; font-size: 14px; color: var(--primary); font-weight: 600; }

/* ---------- 行业覆盖（首页） ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.industry-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  transition: border-color .2s, color .2s, background .2s;
}
.industry-item:hover { border-color: var(--primary); color: var(--primary); background: var(--accent-soft); }

/* ---------- 技术优势条（首页） ---------- */
.tech-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-cell { text-align: center; padding: 22px 14px; }
.tech-cell .num { font-size: 26px; font-weight: 800; color: var(--primary); }
.tech-cell .lbl { font-size: 13px; color: var(--text-light); margin-top: 4px; }

@media (max-width: 900px) {
  .product-item { grid-template-columns: 1fr; }
  .product-img { max-width: 420px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .app-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   首屏交互增强：波形动画 / 滚动入场 / 产品亮点
   ========================================================= */

/* 滚动入场动画 */
/* 渐进增强：仅在 JS 可用时才隐藏待入场元素，避免脚本失效导致整页空白 */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Hero 动态波形背景 */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 210px;
  pointer-events: none;
  z-index: 0;
  transition: transform .35s ease-out;
}
.hero-wave svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.wv1 { fill: rgba(0, 180, 216, 0.14); animation: waveMove 16s linear infinite; }
.wv2 { fill: rgba(14, 77, 164, 0.22); animation: waveMove 22s linear infinite reverse; }
@keyframes waveMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero 亮点标签 */
.hero-highlights { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hp {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #eaf6ff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, border-color .2s, transform .2s;
}
.hp:hover { background: rgba(0, 180, 216, .22); border-color: var(--accent); transform: translateY(-2px); }
.hp b { color: #57d3ef; font-weight: 700; }

/* Hero 标题强调渐变 */
.hero h1 .hl {
  background: linear-gradient(90deg, #4dd6f0, #a9ecff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* 产品卡（首页） */
.grid-2home { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pcard {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard-img { height: 250px; overflow: hidden; background: #fff; border-bottom: 1px solid var(--border); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.pcard:hover .pcard-img img { transform: scale(1.08); }
.pcard-body { padding: 26px 28px; }
.pcard-body h3 { font-size: 20px; color: var(--dark); margin-bottom: 10px; font-weight: 700; }
.pcard-body p { color: var(--text-light); font-size: 15px; margin-bottom: 16px; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pcard-tags span {
  font-size: 12px; font-weight: 600; color: var(--primary);
  background: var(--accent-soft); padding: 4px 12px; border-radius: 999px;
}

/* 移动端 & 无障碍适配 */
@media (max-width: 640px) {
  .grid-2home { grid-template-columns: 1fr; }
  .hero-wave { height: 120px; }
  .hero-highlights { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wv1, .wv2 { animation: none; }
}

/* ---------- 应用案例详情页 ---------- */
.case-hero { padding: 60px 0 52px; }
.case-hero h1 { font-size: 34px; margin: 16px 0 12px; }
.case-hero .lead { max-width: 800px; }
.case-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  transition: color .2s;
}
.case-back:hover { color: #fff; }
.case-body { max-width: 860px; }
.case-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.4;
  margin: 46px 0 18px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}
.case-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
  margin: 28px 0 12px;
}
.case-body p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 16px;
}
.case-body strong {
  color: var(--primary);
  font-weight: 700;
}
.case-figure {
  margin: 30px 0;
  text-align: center;
}
.case-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(10, 26, 47, 0.08);
}
.case-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}
.case-cta {
  margin-top: 52px;
  padding: 40px 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: #fff;
  text-align: center;
}
.case-cta h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; color: #fff; }
.case-cta p { color: rgba(255, 255, 255, .75); margin-bottom: 24px; font-size: 15px; }
.case-cta .btn-primary { background: var(--accent); color: #04243a; }

@media (max-width: 640px) {
  .case-hero h1 { font-size: 26px; }
  .case-body h2 { font-size: 22px; }
  .case-body p { font-size: 15px; }
  .case-cta { padding: 28px 22px; }
}
