/* VYMOR 品牌站：专业工业风。品牌色来自品牌中心；不加载外部字体与脚本 */
:root {
  --navy: #182858;
  --navy-2: #0f1b3f;
  --red: #c02830;
  --red-2: #881020;
  --blue: #1068a8;
  --ink: #1b2233;
  --muted: #5b6475;
  --line: #dfe3ea;
  --soft: #f3f5f8;
  --white: #fff;
  --radius: 6px;
  --wrap: 1180px;
  --font: "Helvetica Neue", Arial, "Segoe UI", Roboto, "Open Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.2vw, 46px); }
h2 { font-size: clamp(22px, 2.8vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* 顶栏 */
.topbar { background: var(--navy-2); color: #c9d2e6; font-size: 13px; }
.topbar .wrap { display: flex; gap: 18px; justify-content: flex-end; align-items: center; min-height: 34px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 900; font-size: 22px; letter-spacing: .04em; }
.logo img { height: 36px; width: auto; }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a.on, .nav a:hover { color: var(--red); text-decoration: none; }
.menu-toggle { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-line { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-white { background: #fff; color: var(--navy); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17803f; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* 首屏 */
.hero { background: linear-gradient(115deg, var(--navy-2) 0%, var(--navy) 55%, #22407a 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 19px; color: #d5ddef; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .facts { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero .facts b { display: block; font-size: 26px; color: #fff; }
.hero .facts span { font-size: 13px; color: #b9c4dd; }
.hero-img { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.hero-img img { margin: 0 auto; max-height: 380px; object-fit: contain; }

section.block { padding: 64px 0; }
section.alt { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 640px; }

/* 卡片网格 */
.grid { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 28px rgba(24,40,88,.12); transform: translateY(-2px); }
.card a.cover { display: block; background: #fff; aspect-ratio: 4 / 3; padding: 14px; border-bottom: 1px solid var(--line); }
.card a.cover img { width: 100%; height: 100%; object-fit: contain; }
.card .noimg { aspect-ratio: 4 / 3; background: var(--soft); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .body h3 { margin: 0; font-size: 17px; }
.card .body h3 a { color: var(--navy); }
.card .code { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .04em; }
.card .kv { font-size: 14px; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 14px; }
.cat-card { position: relative; padding: 22px; border-left: 4px solid var(--red); }
.cat-card h3 a { color: var(--navy); }
.cat-card .count { font-size: 13px; color: var(--muted); }

/* 卖点 / 流程 */
.feature { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature b { display: block; color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.steps { counter-reset: s; }
.step { position: relative; padding: 20px 20px 20px 66px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; left: 18px; top: 18px; font-weight: 900; font-size: 22px; color: var(--red); }
.band { background: var(--navy); color: #fff; padding: 46px 0; }
.band h2 { color: #fff; margin: 0 0 6px; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band p { color: #cbd4e8; margin: 0; }

/* 面包屑 / 产品页 */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 16px; }
.crumbs a { color: var(--muted); }
.page-head { padding-top: 26px; padding-bottom: 8px; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 18px; padding-bottom: 40px; align-items: start; }
.gallery .main { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.gallery .main img { max-height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.thumbs a { border: 1px solid var(--line); border-radius: 4px; padding: 4px; background: #fff; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.thumbs img { max-height: 100%; object-fit: contain; }
.keyfacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.keyfacts div { background: var(--soft); border-radius: var(--radius); padding: 12px 14px; }
.keyfacts span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.keyfacts b { color: var(--navy); font-size: 18px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 8px; }
table.specs { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
table.specs th, table.specs td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs th { width: 36%; color: var(--navy); background: var(--soft); font-weight: 700; }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
table.compare th, table.compare td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.compare thead th { background: var(--navy); color: #fff; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.notes li { margin-bottom: 6px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--navy); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--red); font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 16px 14px; color: var(--ink); }
.note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; }

/* 文章（/insights） */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--soft); }
.article-list .card .body p { color: var(--muted); font-size: 15px; }
.meta { font-size: 13px; color: var(--muted); }

/* 表单 */
.form { display: grid; gap: 14px; max-width: 640px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
.form input, .form textarea, .form select { font: inherit; padding: 11px 12px; border: 1px solid #c8cfdb; border-radius: var(--radius); width: 100%; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form .hp { position: absolute; left: -5000px; }
.error { background: #fdecee; color: var(--red-2); padding: 10px 14px; border-radius: var(--radius); }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; padding-top: 10px; padding-bottom: 50px; }
.contact-card { background: var(--soft); border-radius: var(--radius); padding: 22px; }
.contact-card p { margin: 0 0 12px; }

/* 页脚 */
.site-foot { background: var(--navy-2); color: #b8c2d9; font-size: 14px; padding: 46px 0 24px; margin-top: 0; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.site-foot h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-foot a { color: #dfe6f5; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 16px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 悬浮按钮与在线客服 */
.float-wa { position: fixed; right: 18px; bottom: 90px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #1f9d55; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.float-wa svg { width: 28px; height: 28px; fill: #fff; }
.chat-btn { position: fixed; right: 18px; bottom: 22px; z-index: 41; display: flex; align-items: center; gap: 8px; background: var(--red); color: #fff; border: 0; border-radius: 30px; padding: 13px 20px; font: 700 15px var(--font); cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.chat-btn:hover { background: var(--red-2); }
.chat-panel { position: fixed; right: 18px; bottom: 22px; z-index: 50; width: 370px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 40px); background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.3); display: none; flex-direction: column; overflow: hidden; }
.chat-panel.open { display: flex; }
.chat-head { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.chat-head b { display: block; font-size: 15px; }
.chat-head span { font-size: 12px; color: #c4cee4; }
.chat-head button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg.me { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.msg.sys { align-self: center; background: none; color: var(--muted); font-size: 12px; padding: 0; text-align: center; }
.chat-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 8px; background: var(--soft); }
.chat-actions .btn { padding: 7px 12px; font-size: 13px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; font: 14px var(--font); padding: 9px 10px; border: 1px solid #c8cfdb; border-radius: 8px; height: 42px; }
.chat-form button { background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 0 14px; font-weight: 700; cursor: pointer; }
.chat-lead { padding: 12px 14px; background: #fff; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; }
.chat-lead input { font: 14px var(--font); padding: 8px 10px; border: 1px solid #c8cfdb; border-radius: 6px; }
.chat-foot { font-size: 11px; color: var(--muted); text-align: center; padding: 0 10px 8px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

@media (max-width: 960px) {
  .hero .wrap, .product, .contact-grid { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: 700 14px var(--font); color: var(--navy); }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--soft); }
  .site-head .head-cta { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .g4, .g3, .g2, .keyfacts, .form .row2 { grid-template-columns: 1fr; }
  .site-foot .cols { grid-template-columns: 1fr; }
  section.block { padding: 44px 0; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; }
  .chat-btn span { display: none; }
  .topbar span:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
