/* 深圳市蓝尼思自动化设备有限公司 — 全站共用样式
   设计方向：蓝 / 黑 / 橙 + 苹果官网风格（大留白 · 强层级 · 克制动效） */

:root {
  --blue: #0b4ea2;
  --blue-deep: #07356f;
  --blue-soft: #eef4fb;
  --ink: #111318;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --orange: #f26a1b;
  --orange-deep: #d9530d;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --radius: 10px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { width: min(100% - 48px, var(--maxw)); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 24px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: auto; height: 40px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.nav-links a { font-size: 14px; color: var(--ink-2); padding: 6px 0; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a.active { font-weight: 600; }
.nav-tel {
  flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--blue);
  border: 1px solid var(--blue); border-radius: 999px; padding: 7px 16px;
  transition: background .2s ease, color .2s ease;
}
.nav-tel:hover { background: var(--blue); color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--blue); text-transform: uppercase; margin-bottom: 14px;
}
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 20px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); margin-top: 16px; }
.text-blue { color: var(--blue); }
.text-orange { color: var(--orange); }
.center { text-align: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 24px rgba(242, 106, 27, .22); }
.btn-orange:hover { background: var(--orange-deep); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-more { border: 1px solid var(--orange); color: var(--orange); background: #fff; border-radius: 4px; }
.btn-more:hover { background: var(--orange); color: #fff; }

/* ---------- 首页 1920×835 轮播 banner ---------- */
.banner {
  position: relative; width: 100%; aspect-ratio: 1920 / 835;
  min-height: 420px; overflow: hidden; background: var(--blue-deep);
}
.banner-track { position: absolute; inset: 0; }
.banner-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
  background: linear-gradient(115deg, #07356f 0%, #0b4ea2 52%, #1663bd 100%);
}
.banner-slide.is-active { opacity: 1; visibility: visible; }
.banner-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: clamp(32px, 6vw, 90px); padding: clamp(40px, 6vh, 88px) 0;
}
.banner-copy { flex: 1 1 52%; color: #fff; max-width: 720px; }
.banner-kicker {
  display: inline-block; font-size: 13px; letter-spacing: 2px; color: #9dc7f5;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  padding: 6px 16px; margin-bottom: clamp(18px, 3vh, 30px);
}
.banner-copy h1, .banner-copy h2 {
  color: #fff; font-size: clamp(36px, 4.6vw, 68px); letter-spacing: -.03em; line-height: 1.12;
}
.banner-desc {
  margin-top: clamp(16px, 2.6vh, 28px); max-width: 600px;
  font-size: clamp(15px, 1.3vw, 18px); line-height: 1.85; color: rgba(255, 255, 255, .82);
}
.hero-action { display: flex; justify-content: flex-start; gap: 14px; flex-wrap: wrap; margin-top: clamp(24px, 4vh, 40px); }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--blue-deep); }
.banner-visual {
  flex: 1 1 44%; display: grid; place-items: center; align-self: stretch;
  padding: clamp(20px, 4vh, 56px) 0;
}
.banner-visual img {
  width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px;
  background: #fff; padding: clamp(14px, 2vw, 28px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s ease;
}
.banner-arrow:hover { background: rgba(255, 255, 255, .24); }
.banner-prev { left: 18px; }
.banner-next { right: 18px; }
.banner-dots {
  position: absolute; bottom: clamp(18px, 3vh, 30px); left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.banner-dot {
  width: 26px; height: 4px; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .38); padding: 0; transition: background .2s ease, width .2s ease;
}
.banner-dot.is-active { background: var(--orange); width: 44px; }

.hero-advantages { padding-top: clamp(56px, 7vw, 96px); }
.advantages {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left;
}
.adv-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: border-color .2s ease, transform .2s ease;
}
.adv-card:hover { border-color: #cbd5e1; transform: translateY(-3px); }
.adv-num { font-size: 13px; font-weight: 700; color: var(--orange); letter-spacing: 1px; }
.adv-card h3 { margin: 10px 0 8px; font-size: 18px; }
.adv-card p { font-size: 14px; color: var(--ink-2); line-height: 1.8; }

/* ---------- 产品 / 图片卡片 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 28px); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: 0 16px 40px rgba(17, 19, 24, .08); transform: translateY(-3px); }
.card-img { background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.video-card video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #111318; display: block; }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { font-size: 18px; margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue);
  background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}

/* 图文左右分栏 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 104px); }
.split-reverse .split-media { order: 2; }
.split-media { background: var(--bg-soft); border-radius: 14px; padding: clamp(20px, 3vw, 36px); }
.split-media img { width: 100%; border-radius: 8px; }
.split-copy h2 { text-align: left; margin-bottom: 18px; }
.split-copy h3 { margin: 22px 0 10px; }
.split-copy p { color: var(--ink-2); margin-bottom: 12px; }
.split-copy ul li { position: relative; padding-left: 20px; margin-bottom: 9px; color: var(--ink-2); font-size: 15px; }
.split-copy ul li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--orange);
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { background: var(--blue-soft); color: var(--blue-deep); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
td { color: var(--ink-2); }

/* ---------- 步骤卡 / FAQ / 入口卡 ---------- */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: border-color .2s ease, transform .2s ease;
}
.step-card:hover { border-color: #cbd5e1; transform: translateY(-3px); }
.step-card > span {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--orange); margin-bottom: 12px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--ink-2); line-height: 1.8; }

.faq-list { display: grid; gap: 12px; }
.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 24px; transition: border-color .2s ease;
}
.faq:hover { border-color: #cbd5e1; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-size: 16px; font-weight: 600;
  position: relative; padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 18px; color: var(--blue);
  font-size: 22px; font-weight: 400; line-height: 1;
}
.faq[open] summary::after { content: "−"; }
.faq p {
  padding: 0 0 22px; color: var(--ink-2); font-size: 15px;
  border-top: 1px solid var(--line); padding-top: 18px;
}

.entry-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(28px, 4vw, 44px);
}
.entry-card h3 { font-size: 24px; margin: 12px 0 10px; }
.entry-card p { color: var(--ink-2); margin-bottom: 24px; }

/* ---------- 数据条 / 场景 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 30px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { display: block; font-size: 24px; color: var(--blue); }
.stat span { font-size: 13px; color: var(--ink-2); }

/* ---------- 内页 HEAD ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: clamp(56px, 8vw, 104px) 0; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 52px); }
.page-head p { max-width: 720px; margin-top: 16px; font-size: 17px; color: var(--ink-2); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }
.contact-info li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info li span { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.contact-info li strong { font-size: 17px; font-weight: 600; }
.contact-info a { color: var(--blue); }
.contact-panel { background: var(--bg-soft); border-radius: 14px; padding: clamp(28px, 4vw, 48px); }
.contact-panel h2 { font-size: 28px; margin-bottom: 14px; }
.contact-panel p { color: var(--ink-2); margin-bottom: 24px; }

/* 联系页 · 地图定位 */
.map-frame {
  height: 460px; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-soft);
}
.map-frame #contactMap { width: 100%; height: 100%; }
.map-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 22px; }
.map-info li { border-bottom: none; padding: 10px 0; }

/* 联系页 · 在线留言表单 */
.inquiry-form {
  max-width: 860px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: block; margin-bottom: 20px; }
.form-field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.form-field em { color: var(--orange); font-style: normal; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font: inherit; font-size: 15px;
  padding: 13px 14px; transition: border-color .2s ease;
}
.form-field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #9aa3b0; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue);
}
.form-field input:invalid.touched, .form-field input:focus:invalid { border-color: #d9573a; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.form-feedback { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-size: 14px; line-height: 1.8; }
.form-feedback.is-ok { display: block; background: #eff6ff; border: 1px solid #c7ddf7; color: var(--blue); }
.form-feedback.is-err { display: block; background: #fff5f1; border: 1px solid #f5c7b4; color: #b4471f; }

/* ---------- 文章列表 ---------- */
.article-list { display: grid; gap: 20px; max-width: 860px; margin: 0 auto; }
.article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px; transition: border-color .2s ease;
}
.article:hover { border-color: #cbd5e1; }
.article .meta { font-size: 12px; color: var(--ink-3); letter-spacing: .5px; margin-bottom: 10px; }
.article h2 { font-size: 22px; margin-bottom: 12px; }
.article p { color: var(--ink-2); font-size: 15px; }
.article details { margin-top: 16px; }
.article summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 14px; }
.article details p { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.read-more {
  display: inline-block; margin-top: 18px; color: var(--blue);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.read-more::after { content: " →"; }
.read-more:hover { color: var(--orange); }

/* ---------- 文章详情 ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 24px; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: #b8c0cb; }
.article-detail { max-width: 860px; margin: 0 auto; }
.article-detail h2 { font-size: 24px; margin: 38px 0 16px; }
.article-detail h2:first-child { margin-top: 0; }
.article-detail p { font-size: 17px; line-height: 2; color: var(--ink-2); }
.article-note {
  margin-top: 40px; padding: 22px 26px; background: var(--bg-soft);
  border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0;
  font-size: 15px; line-height: 1.9; color: var(--ink-2);
}
.article-note strong { color: var(--blue); }
.article-back { margin-top: 28px; font-size: 14px; }
.article-back a { color: var(--blue); text-decoration: none; }
.article-back a:hover { color: var(--orange); }

/* ---------- 产品详情页 ---------- */
.product-detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.product-detail-media { display: grid; gap: 16px; }
.product-detail-media img { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); object-fit: contain; }
.product-detail-info h2 { font-size: 22px; margin-bottom: 18px; }
.product-detail-info table th, .product-detail-info table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 15px; text-align: left; }
.product-detail-info table th { width: 30%; color: var(--ink-3); font-weight: 500; }
.product-detail-info ul { margin-top: 8px; }
.product-detail-info li { padding: 8px 0 8px 20px; position: relative; color: var(--ink-2); }
.product-detail-info li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.product-detail-action { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- CTA ---------- */
.cta { background: var(--blue-deep); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .78); max-width: 620px; margin: 16px auto 0; }
.cta .btn { margin-top: 30px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #cbd0d8; padding: 64px 0 26px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #2b2f37; }
.site-footer .brand-logo { height: 44px; filter: brightness(1.12); }
.footer-top h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-top li { margin-bottom: 9px; color: #9ca3af; }
.footer-top a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; font-size: 12px; color: #8b93a1; }
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: #fff; }
.beian { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-links { gap: 16px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .map-info { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, var(--maxw)); }
  .nav { flex-wrap: wrap; padding: 12px 0; gap: 10px; }
  .nav-links { order: 3; width: 100%; justify-content: flex-start; gap: 14px 18px; }
  .nav-tel { margin-left: auto; }
  .brand-logo { height: 32px; }
  .banner { aspect-ratio: auto; min-height: 620px; }
  .banner-inner { flex-direction: column; justify-content: center; gap: 24px; padding: 56px 0 76px; }
  .banner-copy { flex: 0 0 auto; text-align: center; }
  .banner-copy .hero-action { justify-content: center; }
  .banner-visual { flex: 0 0 auto; width: 100%; padding: 0; }
  .banner-visual img { max-height: 220px; }
  .banner-arrow { width: 38px; height: 38px; font-size: 24px; }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
  .advantages, .grid-2, .grid-3, .split, .contact-grid, .step-grid, .product-detail-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .article { padding: 22px 20px; }
  .map-frame { height: 360px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .inquiry-form { padding: 24px 18px; }
  .form-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
