/* =========================================================================
   新锐派信息科技(深圳)有限公司 · 设计系统
   风格：石墨蓝灰 / 极简块面科技 —— 细线分隔、小圆角、弱阴影、留白克制
   （本设计系统为本站独有，与其它站点不共用视觉语言）
   ========================================================================= */
:root {
  --ink: #0F172A;
  --slate: #475569;
  --slate-dark: #334155;
  --slate-mute: #64748B;
  --slate-soft: #94A3B8;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --bg: #F1F5F9;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --primary: #334155;
  --primary-strong: #0F172A;
  --price: #0F172A;
  --danger: #B91C1C;
  --danger-bg: #FEF2F2;
  --warning: #B45309;
  --warning-bg: #FFFBEB;
  --ok: #15803D;
  --ok-bg: #F0FDF4;
  --info: #1D4ED8;
  --info-bg: #EFF6FF;
  --r: 8px;
  --r-sm: 6px;
  --r-xs: 4px;
  --sh: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --sh-hover: 0 6px 18px rgba(15, 23, 42, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--slate-dark); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- 顶部工具条 ---------- */
.topbar {
  background: var(--ink);
  color: #CBD5E1;
  font-size: 12px;
  letter-spacing: .2px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #CBD5E1; margin-left: 16px; }
.topbar a:hover { color: #fff; }

/* ---------- 导航：细线 + 下划线悬停（非胶囊） ---------- */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.navbar-inner { display: flex; align-items: center; gap: 28px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; letter-spacing: .2px; }
.logo .logo-icon {
  width: 30px; height: 30px; border-radius: var(--r-xs);
  background: var(--ink); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-size: 15px; font-weight: 800;
}
.nav-links { display: flex; gap: 22px; flex: 1; overflow-x: auto; }
.nav-links a {
  color: var(--slate); font-size: 14px; white-space: nowrap;
  padding: 21px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; white-space: nowrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  padding: 8px 18px; border-radius: var(--r-sm); font-size: 14px; transition: all .15s; line-height: 1.4;
}
.btn:hover { background: #1E293B; color: #fff; opacity: 1; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--slate-soft); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: var(--r-xs); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #991B1B; }
.btn-gray { background: var(--surface-2); border-color: var(--line); color: var(--slate); }
.btn-gray:hover { background: #EEF2F7; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 主区 / 小标题 ---------- */
main { min-height: calc(100vh - 320px); padding: 26px 0 56px; }
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 18px; letter-spacing: .2px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 14px; }
.eyebrow { font-size: 12px; color: var(--slate-mute); text-transform: uppercase; letter-spacing: 1.5px; }
.section-title { font-size: 17px; font-weight: 700; letter-spacing: .2px; margin: 0; }
.section-line { flex: 1; height: 1px; background: var(--line); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; margin-bottom: 16px;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- 首页 Hero（块面分割） ---------- */
.hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; margin-bottom: 16px;
}
.hero-copy { padding: 40px 38px; }
.hero-eyebrow { font-size: 12px; letter-spacing: 2px; color: var(--slate-mute); text-transform: uppercase; }
.hero-title { font-size: 30px; font-weight: 800; line-height: 1.25; margin: 12px 0 12px; letter-spacing: .3px; }
.hero-sub { color: var(--slate); font-size: 14px; max-width: 30em; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-side { border-left: 1px solid var(--line); background: var(--surface-2); display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.hero-stat { background: var(--surface); padding: 22px 20px; display: flex; flex-direction: column; justify-content: center; }
.hero-stat .n { font-size: 26px; font-weight: 800; letter-spacing: .5px; }
.hero-stat .l { font-size: 12px; color: var(--slate-mute); margin-top: 4px; }

/* ---------- 特性条 ---------- */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feature-item { background: var(--surface); padding: 16px 18px; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--slate-dark); }
.feature-item b { font-weight: 600; color: var(--ink); }

/* ---------- 分类瓷砖 ---------- */
.cat-tile {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px; cursor: pointer; transition: all .15s; color: var(--ink);
}
.cat-tile:hover { border-color: var(--slate-soft); box-shadow: var(--sh); }
.cat-tile .ci { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.cat-tile .cn { font-weight: 600; }
.cat-tile .cd { font-size: 12px; color: var(--slate-mute); }

/* ---------- 商品卡片（封面方图 + 细线信息区） ---------- */
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: block; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.product-card:hover { border-color: var(--slate-soft); box-shadow: var(--sh-hover); transform: translateY(-2px); color: var(--ink); }
.product-cover { height: 168px; display: flex; align-items: center; justify-content: center; font-size: 54px; position: relative; border-bottom: 1px solid var(--line); }
.product-cover .tag { position: absolute; top: 10px; left: 10px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: var(--r-xs); font-size: 11px; background: var(--ink); color: #fff; letter-spacing: .3px; }
.tag.soft { background: var(--surface); color: var(--slate-dark); border: 1px solid var(--line-2); }
.product-info { padding: 13px 14px 14px; }
.product-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; }
.product-summary { font-size: 12px; color: var(--slate-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; min-height: 34px; }
.product-price { color: var(--price); font-weight: 800; font-size: 17px; letter-spacing: .2px; }
.product-price small { font-size: 12px; font-weight: 400; color: var(--slate-mute); }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--slate-mute); }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 13px; color: var(--slate); }
.form-control { width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 14px; background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
.form-control:focus { border-color: var(--slate); box-shadow: 0 0 0 3px rgba(71,85,105,.10); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { appearance: auto; }

/* ---------- 徽章 ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: var(--r-xs); font-size: 12px; letter-spacing: .2px; }
.badge-green { background: var(--ok-bg); color: var(--ok); }
.badge-orange { background: var(--warning-bg); color: var(--warning); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-gray { background: #EEF2F7; color: var(--slate-mute); }
.badge-blue { background: var(--info-bg); color: var(--info); }
.stars { color: #D97706; letter-spacing: 1px; }
.money { color: var(--price); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- 页脚（深石墨 + 分栏细线） ---------- */
.footer { background: var(--ink); color: #94A3B8; margin-top: 28px; }
.footer-inner { padding: 40px 0 22px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .3px; }
.footer a { color: #94A3B8; display: block; margin: 7px 0; font-size: 13px; }
.footer a:hover { color: #fff; }
.footer .copyright { border-top: 1px solid rgba(148,163,184,.22); padding: 16px 0; font-size: 12px; color: #64748B; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer .copyright a { display: inline; color: #64748B; margin: 0; }
.copyright .phone { font-weight: 700; font-size: 15px; color: #fff; }

/* ---------- 模态 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; align-items: flex-start; justify-content: center; z-index: 1000; padding: 40px 16px; overflow-y: auto; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 100%; max-width: 420px; padding: 26px; box-shadow: 0 20px 50px rgba(15,23,42,.25); }
.modal-lg { max-width: 680px; }
.modal h3 { margin-bottom: 18px; text-align: center; letter-spacing: .3px; }
.modal-close { float: right; background: none; border: none; font-size: 20px; color: var(--slate-mute); }
.form-error { color: var(--danger); font-size: 13px; margin-top: 8px; text-align: center; min-height: 18px; }

/* ---------- Toast ---------- */
#toast-wrap { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 10px 20px; border-radius: var(--r-sm); font-size: 14px; box-shadow: 0 10px 30px rgba(15,23,42,.25); animation: toastIn .2s; max-width: 80vw; }
.toast.success { background: var(--ok); }
.toast.error { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; vertical-align: middle; }
.table th { background: var(--surface-2); color: var(--slate-dark); font-weight: 600; white-space: nowrap; letter-spacing: .2px; }
.table tr:hover td { background: var(--surface-2); }
.table .money { color: var(--price); font-weight: 700; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 64px 20px; color: var(--slate-mute); }
.empty .icon { font-size: 48px; margin-bottom: 12px; opacity: .8; }

/* ---------- 文章卡片 ---------- */
.article-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.article-card:hover { border-color: var(--slate-soft); box-shadow: var(--sh-hover); transform: translateY(-2px); color: var(--ink); }
.article-cover { height: 138px; display: flex; align-items: center; justify-content: center; font-size: 46px; position: relative; border-bottom: 1px solid var(--line); }
.article-body { padding: 13px 15px 15px; }
.article-title { font-size: 15px; font-weight: 600; line-height: 1.45; margin-bottom: 6px; }
.article-summary { font-size: 12px; color: var(--slate-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.article-meta { font-size: 12px; color: var(--slate-mute); display: flex; justify-content: space-between; }

/* ---------- 详情页 ---------- */
.detail-layout { display: grid; grid-template-columns: 370px 1fr; gap: 26px; }
.detail-gallery { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.detail-gallery .big { height: 350px; display: flex; align-items: center; justify-content: center; font-size: 104px; }
.thumbs { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.thumbs .thumb { flex: 1; height: 54px; border-radius: var(--r-xs); border: 1px solid var(--line); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.thumbs .thumb.active { border-color: var(--ink); }
.detail-title { font-size: 22px; font-weight: 700; letter-spacing: .2px; }
.detail-price-row { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; margin: 16px 0; }
.spec-group { margin: 14px 0; }
.spec-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.spec-opt { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: var(--r-xs); cursor: pointer; background: #fff; font-size: 13px; transition: all .15s; }
.spec-opt.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-xs); overflow: hidden; }
.qty-control button { width: 32px; height: 32px; border: none; background: var(--surface-2); font-size: 16px; color: var(--slate-dark); }
.qty-control button:hover { background: #EEF2F7; }
.qty-control input { width: 46px; height: 32px; border: none; text-align: center; outline: none; font-size: 14px; }

/* ---------- 商家卡片 ---------- */
.shop-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 14px 0; display: flex; gap: 14px; align-items: center; }
.shop-avatar { width: 50px; height: 50px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.shop-card .shop-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.shop-card .shop-meta { font-size: 13px; color: var(--slate-mute); margin-top: 2px; }

/* ---------- 步骤条 ---------- */
.steps { display: flex; }
.step { flex: 1; text-align: center; position: relative; font-size: 13px; color: var(--slate-mute); padding-top: 2px; }
.step:not(:first-child) { border-left: 1px solid var(--line); }
.step .num { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--slate-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 8px; }
.step.active .num { background: var(--ink); border-color: var(--ink); color: #fff; }
.step.active { color: var(--ink); font-weight: 600; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs .tab { padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; color: var(--slate-mute); font-size: 14px; }
.tabs .tab.active { color: var(--ink); font-weight: 600; border-color: var(--ink); }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.search-box { display: flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.search-box input { border: none; outline: none; padding: 8px 14px; width: 220px; font-size: 14px; }
.search-box button { border: none; background: var(--ink); color: #fff; padding: 0 18px; }

/* ---------- 评论 ---------- */
.review-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-avatar { width: 36px; height: 36px; border-radius: var(--r-xs); background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-left: none; border-top: 1px solid var(--line); }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .navbar-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 12px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 24px; }
}

/* ---------- 关于我们 ---------- */
.nav-links { min-width: 0; }
.nav-about-mobile { display: none; }
.about-summary { display: flex; align-items: center; gap: 32px; padding: 28px; }
.about-summary > div { flex: 1; min-width: 0; }
.about-summary > .btn { flex-shrink: 0; }
.about-company-name { font-size: 19px; line-height: 1.6; overflow-wrap: anywhere; }
.about-copy { color: var(--slate); line-height: 1.95; margin-top: 14px; max-width: 48em; }
.about-breadcrumb { color: var(--slate-mute); font-size: 13px; margin-bottom: 18px; }
.about-breadcrumb span { margin-left: 8px; }
.about-intro { display: grid; grid-template-columns: 1.2fr 1fr; padding: 0; overflow: hidden; }
.about-intro-copy { padding: 38px; min-width: 0; }
.about-intro h1 { font-size: 32px; line-height: 1.3; margin: 12px 0 22px; }
.about-contact { background: var(--surface-2); border-left: 1px solid var(--line); padding: 38px 30px; min-width: 0; }
.about-contact h2 { font-size: 20px; margin: 12px 0 22px; }
.about-details > div + div { margin-top: 18px; }
.about-details dt { font-size: 12px; color: var(--slate-mute); margin-bottom: 4px; }
.about-details dd { color: var(--ink); overflow-wrap: anywhere; }
.about-phone { font-size: 21px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.about-service { margin-bottom: 0; padding: 24px; }
.about-service-number { font-size: 12px; letter-spacing: 1px; color: var(--slate-mute); }
.about-service h3 { font-size: 16px; margin: 14px 0 10px; }
.about-service p { color: var(--slate); line-height: 1.9; }
.about-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--slate-mute); }
.about-bottom a + a { margin-left: 24px; }
a:focus-visible { outline: 2px solid var(--slate); outline-offset: 4px; }
@media (max-width: 900px) {
  .nav-about-mobile { display: inline-flex; align-items: center; font-size: 13px; padding: 5px 0; }
  .navbar-inner { padding-left: 20px; padding-right: 20px; }
  .nav-actions { margin-left: auto; }
  .about-intro { grid-template-columns: 1fr; }
  .about-contact { border-left: none; border-top: 1px solid var(--line); }
  .about-page .grid-3 { grid-template-columns: 1fr; }
  .about-summary { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 560px) {
  .about-intro-copy, .about-contact, .about-summary { padding: 24px 20px; }
  .about-intro h1 { font-size: 27px; }
  .about-company-name { font-size: 18px; }
}
