/* 宁波乾泽信息技术有限公司 - 官网样式
   蓝白科技风 / 单页响应式 / 纯 CSS 无依赖 */

:root {
  --blue-700: #1a56db;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue-700); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--blue-700); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 18px; color: var(--ink-900); letter-spacing: .5px; }
.brand-text small { font-size: 12px; color: var(--ink-500); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink-700); font-size: 15px; font-weight: 500;
}
.main-nav a:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.main-nav a.active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }

.header-phone {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-700); color: #fff; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; font-size: 14px;
  white-space: nowrap;
}
.header-phone:hover { background: var(--blue-600); text-decoration: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink-700); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #0b1a3a url("../assets/hero-bg.jpg") center/cover no-repeat;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(125deg, rgba(11,26,58,.86) 0%, rgba(30,64,175,.55) 60%, rgba(15,23,42,.78) 100%); }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .5;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .45; }
.orb-a { width: 280px; height: 280px; right: -60px; top: -80px; background: radial-gradient(circle, #60a5fa, transparent 70%); }
.orb-b { width: 220px; height: 220px; left: -40px; bottom: -90px; background: radial-gradient(circle, #93c5fd, transparent 70%); }

.hero-inner { position: relative; z-index: 1; padding: 88px 24px 96px; max-width: var(--maxw); margin: 0 auto; }
.eyebrow { color: #93c5fd; font-weight: 600; letter-spacing: 1px; font-size: 14px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.25; margin: 14px 0 18px; color: #fff; }
.hero h1 .accent { color: #60a5fa; }
.hero .lead { font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,.86); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: .2s;
}
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-600); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--blue-700); border-color: var(--blue-100); }
.btn-ghost:hover { border-color: var(--blue-500); text-decoration: none; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; list-style: none; margin-top: 52px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 28px; color: #fff; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.72); }

/* ---------- Page Banner (子页顶部标题区) ---------- */
.page-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, #0b1a3a 0%, #1e3a8a 60%, #0f172a 100%);
  border-bottom: 1px solid #1e293b;
  padding: 64px 0 56px;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .55;
  mask-image: radial-gradient(ellipse 70% 80% at 18% 10%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 18% 10%, #000 30%, transparent 78%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .kicker { color: #93c5fd; }
.page-banner h1 { font-size: clamp(26px, 4vw, 38px); margin: 8px 0 12px; color: #fff; }
.page-banner .section-desc { color: rgba(255,255,255,.78); max-width: 680px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head-left { text-align: left; margin-left: 0; }
.kicker { color: var(--blue-700); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(24px, 3.5vw, 32px); margin: 8px 0 12px; }
.section-desc { color: var(--ink-500); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; background: var(--blue-50);
  color: var(--blue-700); margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-500); font-size: 14.5px; }
.card-solution .tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 14px; }
.card-solution .tags li { font-size: 12.5px; color: var(--blue-700); background: var(--blue-50); padding: 4px 10px; border-radius: 999px; }
.card-placeholder { border-style: dashed; background: repeating-linear-gradient(45deg, #fff, #fff 12px, #f8fafc 12px, #f8fafc 24px); }
.card-placeholder .hint { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--ink-500); background: #eef2f7; padding: 2px 8px; border-radius: 6px; }

/* ---------- Products ---------- */
.category-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  list-style: none; margin: 0 auto 38px;
}
.cat-pill {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-700);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--blue-100);
}
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.solutions-grid { grid-template-columns: repeat(3, 1fr); }
.product-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none; color: inherit;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.product-media {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-body {
  display: flex; flex-direction: column; flex: 1 1 auto;
  padding: 20px 22px 24px;
}
.product-cat {
  display: inline-block; align-self: flex-start;
  font-size: 12.5px; font-weight: 600; color: var(--blue-700);
  background: var(--blue-50); padding: 3px 10px; border-radius: 999px;
  margin-bottom: 10px;
}
.product-body h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.4; }
.product-body p { color: var(--ink-500); font-size: 14px; margin-bottom: 16px; }
.product-body .btn { margin-top: auto; align-self: flex-start; }
.product-more { margin-top: auto; align-self: flex-start; color: var(--blue-700); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 13.5px; }
.product-link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 10px;
  background: var(--blue-700); color: #fff;
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: background .2s;
}
.product-link:hover { background: var(--blue-600); text-decoration: none; }
.products-note {
  margin-top: 34px; text-align: center;
  font-size: 13px; color: var(--ink-500); line-height: 1.8;
}

/* ---------- Product Detail (产品详情页) ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-gallery {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; display: flex; align-items: center; justify-content: center; position: sticky; top: 92px;
}
.product-gallery img { width: 100%; height: auto; object-fit: contain; }
.product-img-ph {
  width: 100%; aspect-ratio: 4 / 3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--ink-500); font-size: 14px; text-align: center; padding: 20px;
  background: repeating-linear-gradient(45deg, #fff, #fff 12px, #f1f5f9 12px, #f1f5f9 24px);
  border: 1px dashed var(--line); border-radius: 8px;
}
.product-img-ph span { font-size: 12px; color: var(--blue-700); background: var(--blue-50); padding: 3px 10px; border-radius: 999px; }
.product-img-ph-sm { width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--ink-500); font-size: 12.5px; text-align: center; background: repeating-linear-gradient(45deg, #fff, #fff 10px, #f1f5f9 10px, #f1f5f9 20px); }
.product-info .product-cat { margin-bottom: 8px; }
.product-info h1 { font-size: clamp(22px, 3vw, 28px); margin: 4px 0 16px; line-height: 1.35; }
.product-info .lead { color: var(--ink-500); font-size: 15px; margin-bottom: 22px; }
.feature-list { list-style: none; margin: 0 0 26px; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 26px; color: var(--ink-700); font-size: 14.5px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue-700); font-weight: 700; }
.scene-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.scene-tags .cat-pill { background: #fff; }
.product-detail-desc { color: var(--ink-500); font-size: 15px; }
.product-detail-desc p { margin-bottom: 14px; }
.product-detail-desc h3 { font-size: 18px; color: var(--ink-900); margin: 22px 0 12px; }
.product-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.product-nav a { color: var(--blue-700); font-weight: 500; }
.product-nav a.prev { margin-right: auto; }

/* ---------- News (新闻列表) ---------- */
.news-list { display: grid; gap: 4px; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: .2s; }
.news-item:hover h3 { color: var(--blue-700); }
.news-date { color: var(--ink-500); font-size: 13px; }
.news-date strong { display: block; font-size: 24px; color: var(--blue-700); line-height: 1.2; margin-bottom: 2px; }
.news-item h3 { font-size: 18px; margin-bottom: 8px; transition: color .2s; }
.news-item p { color: var(--ink-500); font-size: 14.5px; }
.news-meta { font-size: 12.5px; color: var(--ink-500); margin-bottom: 8px; }
.article-body { color: var(--ink-500); font-size: 15px; line-height: 1.9; }
.article-body p { margin-bottom: 16px; }
.article-body h3 { font-size: 18px; color: var(--ink-900); margin: 24px 0 12px; }

/* ---------- Message Form (留言表单) ---------- */
.message-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 14px; color: var(--ink-700); font-weight: 500; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink-900);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50); }
.message-form button { justify-self: start; }
.form-tip { font-size: 14px; min-height: 20px; margin-top: 4px; }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-gallery { position: static; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- About ---------- */
.about-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.about-text p { color: var(--ink-500); margin-bottom: 14px; }
.about-list { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: baseline; }
.about-list strong { color: var(--blue-700); min-width: 88px; }
.about-list span { color: var(--ink-500); font-size: 14.5px; }
.about-panel {
  background: linear-gradient(160deg, var(--blue-50), var(--blue-100)); color: var(--ink-900);
  border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.panel-row { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); }
.panel-row:last-child { border-bottom: none; }
.panel-row span { font-size: 12.5px; color: var(--ink-500); }
.panel-row strong { font-size: 16px; font-weight: 600; color: var(--ink-900); }
.panel-row a { color: var(--blue-700); text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-wrap { max-width: 720px; }
.contact-list { list-style: none; display: grid; gap: 2px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 20px; background: #fff; }
.contact-label { color: var(--ink-500); font-size: 14px; }
.contact-value { color: var(--ink-900); font-weight: 500; word-break: break-all; }
.contact-value.tel { color: var(--blue-700); font-size: 18px; font-weight: 700; }
.contact-value.pending { color: var(--ink-500); font-weight: 400; font-style: italic; }
.btn-call { margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #cbd5e1; padding: 48px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 32px; padding-bottom: 32px; }
.footer-brand strong { color: #fff; font-size: 17px; }
.footer-brand p { color: #94a3b8; font-size: 14px; margin-top: 6px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #cbd5e1; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-meta p { font-size: 13.5px; color: #94a3b8; line-height: 1.9; }
.footer-meta a { color: #cbd5e1; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 18px 24px; }
.footer-bottom p { font-size: 13px; color: #94a3b8; text-align: center; }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-700); color: #fff; text-align: center; line-height: 44px;
  font-size: 18px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--blue-600); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header-phone { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 360px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 16px; }
  .main-nav a { padding: 12px 10px; border-radius: 8px; }
  .hero-inner { padding: 56px 24px 64px; }
  .hero-stats { gap: 24px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .hero-stats strong { font-size: 24px; }
  .brand-text small { display: none; }
}

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

/* ===== 产品页：左侧分类栏 + 点击切换 ===== */
.products-section { padding: 56px 0 76px; }
.products-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.cat-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.cat-link { text-align: left; background: transparent; border: 0; padding: 11px 14px; border-radius: 9px; font-size: 14px; color: var(--ink-700); cursor: pointer; font-family: inherit; transition: background .15s, color .15s; }
.cat-link:hover { background: var(--blue-50); color: var(--blue-700); }
.cat-link.active { background: var(--blue-700); color: #fff; font-weight: 600; }
.products-main .container { max-width: none; padding: 0; }
.cat-panel { display: none; }
.cat-panel.active { display: block; }
.products-main.show-all .cat-panel { display: block; }
.cat-panel .section { padding: 0 0 28px; }
.cat-panel .section:last-child { padding-bottom: 0; }
.cat-panel .section-head { margin-bottom: 20px; }
@media (max-width: 980px) {
  .products-layout { grid-template-columns: 1fr; gap: 16px; }
  .cat-sidebar { position: static; flex-direction: row; overflow-x: auto; padding: 8px; gap: 6px; }
  .cat-link { white-space: nowrap; }
}

/* ===== footer 微信二维码 ===== */
.footer-wechat { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.footer-wechat img { width: 100px; height: 100px; border-radius: 8px; border: 1px solid var(--line); }
.footer-wechat span { font-size: 13px; color: var(--ink-500); }
.contact-value.wechat-qr { width: 180px; height: 180px; border-radius: 10px; border: 1px solid var(--line); padding: 0; object-fit: contain; }
