/* 利康官网改版预览稿：保留现有骨架（顶栏、Logo+搜索、导航、轮播、产品网格、简介+联系、页脚），只做前端优化 */
:root {
  --blue: #0072c6;
  --blue-dark: #005a9e;
  --blue-soft: #e8f2fb;
  --ink: #1f2328;
  --text: #444b54;
  --muted: #6b7480;
  --line: #e3e6ea;
  --bg: #f4f5f7;
  --radius: 6px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.topbar { background: #eceef1; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar .links { display: flex; gap: 20px; white-space: nowrap; }
.topbar strong { color: var(--ink); font-weight: 500; }

/* Logo + 搜索 */
.header { background: #fff; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.logo img { height: 52px; width: auto; }
.search { display: flex; border: 1px solid #cfd4da; border-radius: var(--radius); overflow: hidden; background: #fff; }
.search input { border: 0; padding: 9px 12px; width: 250px; font-size: 14px; outline: none; font-family: inherit; }
.search button { border: 0; background: var(--blue); color: #fff; padding: 0 18px; font-size: 14px; cursor: pointer; font-family: inherit; }

/* 导航 */
.nav { background: #e9ecef; border-top: 1px solid var(--line); border-bottom: 1px solid #d5d9de; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav li { flex: 1; }
.nav a { display: block; text-align: center; padding: 12px 8px; font-size: 15px; color: var(--ink); white-space: nowrap; }
.nav a.on, .nav a:hover { background: var(--blue); color: #fff; }
.nav li { position: relative; }
.nav .nav-submenu { display: none; position: absolute; top: 100%; left: 0; z-index: 10; min-width: 100%; background: #e9ecef; border: 1px solid var(--line); }
.nav li:hover > .nav-submenu, .nav li:focus-within > .nav-submenu { display: block; }
.nav .nav-submenu a { text-align: left; }
.nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

/* 轮播 */
.banner { margin-top: 16px; position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; }
.banner img { width: 100%; }
.banner .dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.banner .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .7); border: 1px solid rgba(0, 0, 0, .25); }
.banner .dots i.on { background: var(--blue); border-color: var(--blue); }

/* 首页文字介绍（新增） */
.intro { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.intro h1 { font-size: 26px; line-height: 1.3; color: var(--ink); font-weight: 600; }
.intro p { margin-top: 10px; color: var(--text); }
.intro .actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts div { background: var(--blue-soft); border-radius: var(--radius); padding: 14px 10px; text-align: center; }
.facts b { display: block; font-size: 22px; color: var(--blue-dark); font-weight: 600; line-height: 1.2; }
.facts span { font-size: 13px; color: var(--text); }

.btn { display: inline-block; padding: 10px 22px; border-radius: var(--radius); font-size: 15px; border: 1px solid transparent; line-height: 1.4; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); color: #fff; }
.btn.ghost { border-color: #cfd4da; background: #fff; color: var(--ink); }
.btn.wa { background: #1fa855; color: #fff; }

/* 栏目标题 */
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 14px; padding-bottom: 10px; border-bottom: 1px solid #cbd1d3; }
.sec-h h2 { font-size: 19px; color: var(--ink); font-weight: 600; padding-left: 12px; border-left: 4px solid var(--blue); line-height: 1.2; }
.sec-h .cats { display: flex; gap: 18px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.sec-h .cats a.on { color: var(--blue); }

/* 产品网格 */
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; }
.card:hover { border-color: var(--blue); color: inherit; }
.card .pic { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; }
.card .model { font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.4; }
.card .name { font-size: 13px; line-height: 1.5; min-height: 39px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; }
.card .price { color: #c00; }
.card .ask { color: var(--blue); }

/* 公司简介 + 联系我们 */
.two { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; margin-top: 30px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.panel h2 { font-size: 17px; color: var(--ink); font-weight: 600; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.about { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.about img { width: 100%; border-radius: 4px; }
.about h3 { font-size: 16px; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.about .more { display: inline-block; margin-top: 10px; color: var(--blue); font-size: 14px; }
.contact { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.contact li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.contact li:last-child { border-bottom: 0; }
.contact span { color: var(--muted); }
.contact a { color: var(--blue); }
.links-row { margin-top: 20px; font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.links-row strong { color: var(--text); font-weight: 500; }

/* 页脚 */
.footer { margin-top: 30px; background: #e9ebee; border-top: 1px solid #d5d9de; padding: 26px 0 30px; text-align: center; font-size: 13px; color: var(--muted); line-height: 2; }
.footer .fnav { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; color: var(--text); font-size: 14px; }

/* 悬浮询盘入口 */
.fab { position: fixed; right: 22px; bottom: 26px; background: var(--blue); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.fab:hover { color: #fff; background: var(--blue-dark); }
.fab.wa { background: #1fa855; }
.mbar { display: none; }

/* 产品页 */
.crumb { margin: 16px 0; font-size: 13px; color: var(--muted); }
.crumb a { color: var(--text); }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side h2 { font-size: 16px; color: #fff; background: var(--blue); padding: 11px 16px; font-weight: 600; }
.side ul { list-style: none; margin: 0; padding: 8px 0; }
.side li a { display: block; padding: 8px 16px; font-size: 14px; color: var(--ink); }
.side li.sub a { padding-left: 30px; color: var(--text); font-size: 13.5px; }
.side li a.on { color: var(--blue); background: var(--blue-soft); }
.main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.p-top { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; }
.p-top .shot { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.p-top h1 { font-size: 24px; line-height: 1.35; color: var(--ink); font-weight: 600; }
.p-top h1 span { display: inline-block; }
.p-top .lead { margin-top: 10px; }
.p-top .tags { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.p-top .tags span { background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; padding: 3px 10px; border-radius: 4px; }
.p-top .price-row { margin-top: 16px; font-size: 14px; color: var(--muted); }
.p-top .price-row b { color: #c00; font-size: 18px; font-weight: 600; margin-left: 6px; }
.p-top .actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.p-top .note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 4px; margin-top: 30px; border-bottom: 2px solid var(--blue); }
.tabs a { padding: 9px 20px; background: #eef1f4; font-size: 15px; color: var(--ink); border-radius: 4px 4px 0 0; }
.tabs a.on { background: var(--blue); color: #fff; }
.block { margin-top: 26px; }
.block h2 { font-size: 18px; color: var(--ink); font-weight: 600; padding-left: 12px; border-left: 4px solid var(--blue); line-height: 1.2; margin-bottom: 14px; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.spec th { width: 170px; background: #f6f8fa; font-weight: 500; color: var(--ink); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 14px; background: #fafbfc; }
.dl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dl a { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; }
.dl a b { color: var(--blue); font-weight: 500; }
.detail img { margin: 0 auto 0; }
.grid.rel { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 手机 */
@media (max-width: 860px) {
  body { font-size: 14.5px; padding-bottom: 58px; }
  .wrap { padding: 0 14px; }
  .topbar .wrap { justify-content: center; }
  .topbar .brandline, .topbar .hide-m { display: none; }
  .facts span { font-size: 12px; }
  .header .wrap { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .logo img { height: 40px; }
  .search input { width: 100%; flex: 1; }
  .nav .wrap { padding: 0; }
  .nav ul { overflow-x: auto; }
  .nav li { flex: none; }
  .nav a { padding: 11px 16px; }
  .banner { margin-top: 12px; }
  .intro { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; gap: 18px; }
  .intro h1 { font-size: 21px; }
  .facts b { font-size: 18px; }
  .sec-h { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; }
  .grid, .grid.rel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 16px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about img { max-width: 220px; }
  .fab { display: none; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); }
  .mbar a { text-align: center; padding: 14px 8px; font-size: 15px; color: var(--ink); }
  .mbar a.go { background: var(--blue); color: #fff; }
  .mbar a.go.wa { background: #1fa855; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .main { padding: 16px; }
  .p-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .p-top h1 { font-size: 20px; }
  .tabs { overflow-x: auto; }
  .tabs a { padding: 9px 14px; white-space: nowrap; }
  .spec th { width: 104px; }
  .spec th, .spec td { padding: 8px 10px; }
  .dl { grid-template-columns: minmax(0, 1fr); }
}

/* S02: the approved mock's dimensions and colors are retained above. */
img { height: auto; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; z-index: 20; top: 4px; left: 12px; padding: 8px 14px; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.header .wrap { position: relative; }
.nav-toggle { display: none; }
.nav ul { scrollbar-width: thin; }
.nav li { min-width: 0; }
.nav a { touch-action: pan-x; }
.search input { min-width: 0; }
.banner .slide img { height: auto; width: 100%; }
.banner .dots button { width: 10px; height: 10px; border-radius: 50%; padding: 0; background: rgba(255,255,255,.8); border: 1px solid rgba(0,0,0,.25); }
.banner .dots button.on { background: var(--blue); border-color: var(--blue); }
.carousel-pause { position: absolute; right: 10px; bottom: 8px; border: 1px solid rgba(0,0,0,.2); border-radius: 4px; background: rgba(255,255,255,.85); color: var(--blue-dark); width: 28px; height: 28px; line-height: 1; }
.card { min-width: 0; }
.card .meta { margin-top: auto; padding-top: 8px; min-height: 36px; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card .name { margin-bottom: 8px; overflow-wrap: anywhere; }
.card .model { overflow-wrap: anywhere; }
.main { min-width: 0; }
.main > h1 { font-size: 26px; line-height: 1.4; color: var(--ink); font-weight: 600; margin-bottom: 22px; overflow-wrap: anywhere; }
.p-top { grid-template-columns: minmax(0,380px) minmax(0,1fr); }
.p-top > div { min-width: 0; }
.p-top h1 { overflow-wrap: anywhere; }
.p-top .shot { align-self: start; }
.p-top .shot img { width: 100%; height: auto; }
.tabs { flex-wrap: wrap; }
.tabs a:first-child { background: var(--blue); color: #fff; }
.tabs:empty { display: none; }
.detail img { max-width: 100%; height: auto; }
.detail.prose p { margin: 0; }
.grid.catalog { grid-template-columns: repeat(4, minmax(0,1fr)); }
.listing-intro { margin-bottom: 22px; }
.mobile-categories { display: none; }
.category-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.category-links a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 4px; }
.category-links a.on { color: var(--blue-dark); background: var(--blue-soft); border-color: var(--blue-soft); }
.crumb { overflow-wrap: anywhere; }
.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; }
.contact-layout h2 { color: var(--ink); font-size: 19px; margin: 0 0 16px; }
.contact-layout .contact { margin-bottom: 24px; }
.custom-intro { max-width: 75ch; }
.custom-group > p { margin-bottom: 16px; max-width: 75ch; }
.grid.custom-products { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; }
.custom-inquiry { max-width: 620px; }
.spec td { overflow-wrap: anywhere; }
.btn.wa, .fab.wa, .mbar a.go.wa { background: #14833f; color: #fff; }
.btn.wa:hover, .fab.wa:hover, .mbar a.go.wa:hover { background: #106b33; color: #fff; }
html[lang="en"] .topbar .brandline { max-width: 47%; }
html[lang="en"] .topbar .links { gap: 14px; }
.contact li > div { overflow-wrap: anywhere; }
.inquiry-form { display: grid; gap: 16px; }
.inquiry-form label { display: block; color: var(--ink); font-size: 14px; }
.inquiry-form input, .inquiry-form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #cfd4da; border-radius: var(--radius); }
.inquiry-form textarea { resize: vertical; min-height: 150px; }
.inquiry-form .btn { justify-self: start; }
.form-status { font-size: 14px; }
.form-status:empty { display: none; }
.form-status.is-error { color: #a02121; }
.download-list, .article-list { list-style: none; margin: 18px 0 0; padding: 0; }
.download-list li, .article-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; padding: 15px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.download-list li > div { min-width: 0; }
.download-list time, .article-list time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.download-list time { margin-left: 16px; }
.download-action { color: var(--blue); flex-shrink: 0; }
.download-files { margin-top: 24px; }
.dl a { gap: 12px; height: 100%; }
.dl a span { overflow-wrap: anywhere; }
.dl a b { flex-shrink: 0; }
.prose { overflow-wrap: anywhere; }
.prose p { margin: 0 0 16px; }
.prose img { max-width: 100% !important; height: auto !important; margin-left: auto; margin-right: auto; }
.prose iframe, .prose video { max-width: 100%; }
.prose table { max-width: 100%; table-layout: fixed; }
.prose a { color: var(--blue); }
.confirmed-intro { margin-bottom: 24px; }
.article-date { display: block; color: var(--muted); font-size: 14px; margin: -10px 0 22px; }
.page-search { max-width: 560px; }
.page-search input { flex: 1; }
.search-status { margin: 18px 0; }
.not-found { text-align: center; padding: 50px 24px; }
.error-code { color: var(--blue); font-size: 72px; font-weight: 600; line-height: 1; margin-bottom: 20px; }
.not-found .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.footer { overflow-wrap: anywhere; }
.secondary-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 4px 0; }
.mbar { z-index: 10; }
@media (min-width: 861px) and (max-width: 1080px) {
  .topbar .brandline { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .p-top { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
  .grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .grid.catalog, .grid.rel { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .facts { gap: 6px; }
  .facts div { padding: 12px 4px; }
  .facts span { display: block; margin-top: 4px; line-height: 1.4; }
  .grid.custom-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-toggle { display: block; position: absolute; right: 14px; top: 20px; border: 1px solid #cfd4da; border-radius: 4px; padding: 4px 9px; background: #fff; font-size: 13px; color: var(--ink); }
  .mobile-categories { display: block; margin-bottom: 20px; }
  .mobile-categories select { display: block; width: 100%; min-width: 0; padding: 9px 12px; margin-top: 6px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); border: 1px solid #cfd4da; border-radius: var(--radius); }
  .logo { padding-right: 56px; }
  .logo img { max-width: 100%; height: auto; max-height: 40px; }
  .nav ul.is-expanded { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
  .nav ul.is-expanded li { min-width: 0; }
  .nav ul.is-expanded a { border-bottom: 1px solid var(--line); }
  .nav li:hover > .nav-submenu, .nav li:focus-within > .nav-submenu { display: none; }
  .nav .is-expanded .nav-submenu { display: block; position: static; border: 0; min-width: 0; }
  .nav .is-expanded .nav-submenu a { white-space: normal; overflow-wrap: anywhere; padding-left: 24px; }
  .p-top { grid-template-columns: minmax(0,1fr); }
  .grid.catalog { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .main > h1 { font-size: 22px; }
  .contact-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .inquiry-form input, .inquiry-form textarea { font-size: 16px; }
  .article-list li { align-items: flex-start; flex-direction: column; gap: 6px; }
  .tabs { flex-wrap: nowrap; }
  .dl a { padding: 12px; }
  .mbar { padding-bottom: env(safe-area-inset-bottom, 0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* S06: preserve the image layout when a picture wraps its source choices. */
picture { display: block; max-width: 100%; }
.card .pic picture { width: 100%; height: 100%; }
