/* 站点级共享样式：深圳市永佳润工业有限公司官网
   设计语言：奶白底 + 深蓝灰模块与导航 + 亮蓝点缀、大留白、工业制造质感（细边框 + 小圆角） */

:root {
  --brand: #2b7fff;
  --brand-dark: #1a5ed6;
  --brand-deep: #26333f;
  --accent: #8ec2ff;
  --ink: #1f2733;
  --ink-2: #4e5a6b;
  --ink-3: #8b95a3;
  --line: #e8e4dc;
  --line-2: #d6d1c7;
  --bg: #faf7f1;
  --bg-soft: #f4f0e7;
  --bg-tint: #eaf2ff;
  --radius: 4px;
  --radius-lg: 8px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 600; line-height: 1.35; color: #1b2430; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0 0 .4em; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand-deep); color: #fff; padding: .6em 1em; z-index: 99; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 页头与导航 ---------- */
.site-header { background: var(--brand-deep); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.header-brand { background: var(--bg); }
.header-brand-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .55rem; padding-bottom: .55rem; }
.brand { display: flex; align-items: center; gap: .9rem; color: #111; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 56px; height: 56px; flex: 0 0 56px; color: var(--brand); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.875rem; letter-spacing: .02em; }
.brand-text em { font-style: normal; font-size: 1.5rem; color: #555; letter-spacing: .06em; }
.header-hotline { margin: 0 auto 0 .25rem; padding-left: 1.5rem; border-left: 1px solid rgba(0, 0, 0, .15); font-size: 1.5625rem; color: #333; white-space: nowrap; }
.header-hotline a { color: #000; font-weight: 600; letter-spacing: .02em; }
.header-hotline a:hover { color: #0a4a6e; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem; }
.site-nav > a, .site-nav > .nav-item > a { display: block; padding: .5rem .85rem; color: #ffffff; font-size: .9375rem; border-radius: var(--radius); }
.site-nav > a:hover, .site-nav > .nav-item > a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.site-nav > a[aria-current="page"], .site-nav > .nav-item > a[aria-current="page"] { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); }

/* ---------- 导航下拉（官方店铺） ---------- */
.nav-item { position: relative; }
.nav-item > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-menu { position: absolute; left: 0; top: 100%; z-index: 40; display: none; min-width: 184px; margin: .1rem 0 0; padding: .5rem; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 32px rgba(31, 39, 51, .16); }
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu,
.nav-item.is-open .nav-menu { display: block; }
.nav-menu li { margin: 0; }
.nav-menu a { display: block; padding: .45rem .7rem; font-size: .875rem; color: var(--ink-2); border-radius: var(--radius); transition: background-color .2s ease, color .2s ease; }
.nav-menu a:hover { background: var(--bg-tint); color: var(--brand-dark); text-decoration: none; }

/* ---------- 区块 ---------- */
.section { padding: 3.75rem 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--deep { background: var(--brand-deep); color: #d8e0e8; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep a { color: var(--accent); }
.section--tight { padding: 2.5rem 0; }
.section-head { max-width: 760px; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-2); margin: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: block; font-size: .75rem; letter-spacing: .22em; color: var(--brand); margin-bottom: .6rem; }
.section--deep .eyebrow { color: var(--accent); }
.lead { font-size: 1.0625rem; color: var(--ink-2); }

/* ---------- 栅格 ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: .7rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--brand); background: var(--brand); color: #fff; font-size: .9375rem; line-height: 1.4; cursor: pointer; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--brand-dark); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-tint); color: var(--brand-dark); border-color: var(--brand); }
.hero .btn--ghost, .cta-band .btn--ghost, .section--deep .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn--ghost:hover, .cta-band .btn--ghost:hover, .section--deep .btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.hero .eyebrow { color: var(--accent); }
.btn--light { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--light:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- 卡片 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card--plain { border: 0; padding: 0; }
.card--tint { background: var(--bg-tint); border-color: var(--line-2); }
.tag { display: inline-block; padding: .15rem .6rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .75rem; color: var(--brand-dark); background: #fff; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.35rem; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; background: var(--accent); border: 1px solid var(--brand); border-radius: 1px; }
.meta-list { list-style: none; padding: 0; margin: 0; font-size: .9375rem; color: var(--ink-2); }
.meta-list li { display: flex; gap: .6rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.meta-list li:last-child { border-bottom: 0; }
.meta-list b { flex: 0 0 5.5em; font-weight: 500; color: var(--ink-3); }

/* ---------- 首页 hero ---------- */
.hero { background: linear-gradient(135deg, #26333f 0%, #33465c 100%); color: #d8e0e8; padding: 4rem 0; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; }
.hero h1 { color: #fff; font-size: 2.125rem; margin-bottom: .8rem; }
.hero-sub { color: #c3cfdc; font-size: 1.0625rem; }
.hero-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.hero-list li { position: relative; padding-left: 1.4rem; color: #d3dce6; }
.hero-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: 2px; background: var(--accent); }
.hero-media { border: 1px solid #41526a; border-radius: var(--radius-lg); overflow: hidden; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid #41526a; margin-top: 1.5rem; padding-top: 1.25rem; }
.stat-num { display: block; font-size: 1.375rem; color: var(--accent); font-weight: 600; }
.stat-label { display: block; font-size: .8125rem; color: #9fb0c2; }

/* ---------- 面包屑 / 页头 ---------- */
.breadcrumb { font-size: .8125rem; color: var(--ink-3); padding: 1rem 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: .4rem; color: var(--line-2); }
.breadcrumb li:last-child::after { content: ""; margin: 0; }
.page-head { padding: 1.5rem 0 2.5rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-head h1 { margin-bottom: .5rem; }
.page-head p { color: var(--ink-2); max-width: 820px; margin: 0; }

/* ---------- 产品 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.prod-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.prod-card:hover { border-color: var(--brand); }
.prod-card-media { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.prod-card-media img { width: 100%; height: 100%; object-fit: cover; }
.prod-card-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.prod-card-body h3 { margin: 0; font-size: 1.0625rem; }
.prod-card-body p { margin: 0; font-size: .875rem; color: var(--ink-2); }
.prod-card-body .link-more { margin-top: auto; font-size: .875rem; }
.link-more::after { content: " →"; }
.model-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.model-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; font-size: .9375rem; color: var(--ink-2); background: #fff; }
.model-list strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.spec-table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 560px; }
.spec-table caption { text-align: left; padding: .9rem 1rem; color: var(--ink-3); font-size: .8125rem; }
.spec-table th, .spec-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { background: var(--bg-soft); font-weight: 600; color: #1b2430; white-space: nowrap; }
.spec-table tr:last-child td { border-bottom: 0; }

/* ---------- 图文 ---------- */
.figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; margin: 0; }
.figure figcaption { padding: .75rem 1rem; font-size: .875rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

/* ---------- 步骤 / 数字 ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .1rem; font-size: .875rem; color: var(--brand); border: 1px solid var(--line-2); border-radius: 50%; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.stat { border-left: 2px solid var(--accent); padding-left: 1rem; }
.stat b { display: block; font-size: 1.5rem; color: #1b2430; }
.stat span { font-size: .875rem; color: var(--ink-2); }
.section--deep .stat b { color: #fff; }
.section--deep .stat span { color: #9fb0c2; }

/* ---------- 新闻 / 问答 ---------- */
.news-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.news-item { display: flex; gap: 1.25rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.news-item time { flex: 0 0 6.5rem; color: var(--ink-3); font-size: .875rem; }
.news-item h3 { margin: 0; font-size: 1rem; font-weight: 500; }
.news-item p { margin: .3rem 0 0; font-size: .875rem; color: var(--ink-2); }
.news-body { max-width: 780px; }
.news-body h2 { font-size: 1.25rem; margin-top: 2rem; }
.news-body h3 { font-size: 1.0625rem; margin-top: 1.5rem; }
.news-body img { margin: 1.25rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.news-body ul { padding-left: 1.3em; }
.news-meta { color: var(--ink-3); font-size: .875rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.article-foot { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 1.1rem .25rem; font-weight: 600; font-size: 1.0625rem; list-style: none; display: flex; gap: .75rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; color: var(--brand); font-weight: 600; }
.faq-item[open] summary { color: var(--brand-dark); }
.faq-answer { padding: 0 0 1.25rem 1.9rem; color: var(--ink-2); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .875rem; color: var(--ink-2); }
.field .req { color: var(--brand); }
.field input, .field select, .field textarea { font: inherit; font-size: .9375rem; padding: .6rem .75rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(43, 127, 255, .25); border-color: var(--brand); }
.form-actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { margin: 0; font-size: .9375rem; color: var(--brand-dark); }
.form-status[data-state="error"] { color: var(--brand); }
.form-note { font-size: .8125rem; color: var(--ink-3); margin: .9rem 0 0; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- 联系信息 ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: .85rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; }
.contact-list span { flex: 0 0 6rem; color: var(--ink-3); font-size: .875rem; }

/* ---------- CTA ---------- */
.cta-band { background: var(--brand-deep); color: #d8e0e8; padding: 3rem 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; color: #9fb0c2; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--brand-deep); color: #c3cfdc; font-size: .875rem; padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr 1fr 1.5fr; gap: 2.25rem; padding-bottom: 2.25rem; }
.site-footer h2, .site-footer h3 { color: #f0f3f7; font-size: .9375rem; margin-bottom: .9rem; }
.site-footer a { color: #c3cfdc; }
.site-footer a:hover { color: #8ec2ff; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: .5rem; }
.footer-contact strong { color: #fff; font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-search-row { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding: 1.75rem 0 1.5rem; display: flex; justify-content: center; }
.footer-search { display: flex; align-items: center; gap: .85rem; width: 100%; max-width: 640px; }
.footer-search label { font-size: .875rem; color: #c3cfdc; white-space: nowrap; }
.footer-search input { flex: 1; min-width: 0; padding: .55rem .75rem; border: 1px solid var(--line-2); border-radius: var(--radius); font: inherit; font-size: .875rem; background: #fff; color: var(--ink); }
.footer-search input:focus { outline: 2px solid rgba(43, 127, 255, .25); border-color: var(--brand); }
.footer-search .btn { padding: .55rem 1.75rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: #9fb0c2; font-size: .8125rem; }
.footer-bottom p { margin: 0; }

/* ---------- 提示条 ---------- */
.note { background: var(--bg-tint); border-left: 3px solid var(--brand); padding: 1rem 1.25rem; font-size: .9375rem; color: var(--ink-2); }
.note p:last-child { margin-bottom: 0; }

@media (max-width: 1024px) {
  .prod-grid, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-mark { width: 46px; height: 46px; flex-basis: 46px; }
  .brand-text strong { font-size: 1.5rem; }
  .brand-text em { font-size: 1.125rem; }
  .header-hotline { font-size: 1.3125rem; padding-left: 1rem; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  h1, .hero h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .section { padding: 2.5rem 0; }
  .prod-grid, .grid--2, .grid--3, .grid--4, .gallery, .model-list, .form-grid, .stats { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { grid-template-columns: minmax(0, 1fr); }
  .news-item { flex-direction: column; gap: .3rem; }
  .header-inner, .header-brand-inner { padding-top: .7rem; padding-bottom: .7rem; }
  .site-nav > a, .site-nav > .nav-item > a { padding: .45rem .6rem; font-size: .875rem; }
  .nav-menu { position: static; min-width: 0; margin: .2rem 0 .4rem; box-shadow: none; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-text strong { font-size: 1.1875rem; }
  .brand-text em { font-size: .9375rem; }
  .header-hotline { font-size: 1.125rem; margin-left: 0; padding-left: 0; border-left: 0; white-space: normal; }
}
