/* ============================================================
   基础样式：reset / 排版 / 布局 / 通用组件 / 站点外壳 / 工具类
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd {
  margin: 0;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--sec-pad) 0;
}

.section-soft {
  background: var(--c-bg-soft);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.grow {
  flex: 1;
  min-width: 0;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.muted { color: var(--c-muted); }
.sub { color: var(--c-text-sub); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 600;
  background: var(--c-bg-mute);
  color: var(--c-text);
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  user-select: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn:disabled,
.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--c-orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(240, 131, 33, 0.28);
}
.btn-primary:hover { background: var(--c-orange-dark); }

.btn-ink {
  background: var(--c-ink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(51, 56, 63, 0.22);
}
.btn-ink:hover { background: var(--c-ink-deep); }

.btn-ghost {
  background: #fff;
  border-color: var(--c-line);
  color: var(--c-text);
}
.btn-ghost:hover { border-color: var(--c-ink); }

.btn-quiet {
  background: transparent;
  color: var(--c-text-sub);
  height: 36px;
  padding: 0 12px;
}
.btn-quiet:hover { background: var(--c-bg-mute); transform: none; }

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: var(--r-sm);
}

.btn-lg {
  height: 52px;
  padding: 0 34px;
  font-size: 16px;
}

.btn-block { width: 100%; }

.btn-danger {
  background: var(--c-danger-soft);
  color: var(--c-danger);
  border-color: #f6d5d5;
}

/* ---------- 表单 ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-sub);
}

.label .req {
  color: var(--c-danger);
  margin-left: 3px;
}

.input, .textarea, .select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.textarea {
  height: auto;
  min-height: 90px;
  padding: 11px 14px;
  line-height: 1.6;
  resize: vertical;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--c-ink);
  box-shadow: 0 0 0 3px rgba(51, 56, 63, 0.07);
}

.input.is-error, .textarea.is-error {
  border-color: var(--c-danger);
  background: #fffafa;
}

.input::placeholder, .textarea::placeholder { color: #b3bac2; }

.field-error { font-size: 12px; color: var(--c-danger); }

.hint {
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}

.card-pad { padding: 22px; }

.card-hover {
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh);
  border-color: #dfe3e8;
}

/* ---------- 徽标 / 标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--c-bg-mute);
  color: var(--c-text-sub);
  white-space: nowrap;
}

.badge-orange { background: var(--c-orange-soft); color: var(--c-orange-dark); }
.badge-ink { background: rgba(51, 56, 63, 0.08); color: var(--c-ink); }
.badge-success { background: var(--c-success-soft); color: var(--c-success); }
.badge-info { background: var(--c-info-soft); color: var(--c-info); }
.badge-warn { background: var(--c-warn-soft); color: var(--c-warn); }
.badge-danger { background: var(--c-danger-soft); color: var(--c-danger); }

/* ---------- 提示条 ---------- */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid transparent;
}

.alert-warn { background: var(--c-warn-soft); border-color: #f2e0bc; color: #8a6113; }
.alert-info { background: var(--c-info-soft); border-color: #d3e2f8; color: #23538f; }
.alert-danger { background: var(--c-danger-soft); border-color: #f6d5d5; color: #a52f2f; }
.alert-success { background: var(--c-success-soft); border-color: #cfe9d9; color: #17683a; }

/* ---------- 价格 ---------- */
.price {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--c-orange-dark);
  letter-spacing: -0.02em;
}
.price-lg { font-size: 34px; line-height: 1.1; }
.price-cur { font-size: 0.62em; font-weight: 700; margin-right: 2px; }

/* ---------- 分隔 / 表格 ---------- */
.divider {
  height: 1px;
  background: var(--c-line-soft);
  border: 0;
  margin: 0;
}

.table { font-size: 14px; }

.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-muted);
  padding: 10px 12px;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}

.table td {
  padding: 12px;
  border-bottom: 1px solid var(--c-line-soft);
  vertical-align: middle;
}

.table tbody tr:hover { background: #fafbfc; }

/* ---------- 骨架 ---------- */
.skeleton {
  background: linear-gradient(90deg, #eef0f3 25%, #f6f7f9 37%, #eef0f3 63%);
  background-size: 400% 100%;
  animation: sk 1.4s ease infinite;
  border-radius: var(--r-sm);
}

@keyframes sk {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- 动画 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.45s ease both; }

@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }

::-webkit-scrollbar-thumb {
  background: #d5dae0;
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #bfc6ce;
  background-clip: content-box;
}

/* ---------- 图标：内联 SVG 统一尺寸与描边 ---------- */
.ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: none;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-14 { font-size: 14px; }
.ico-16 { font-size: 16px; }
.ico-18 { font-size: 18px; }
.ico-20 { font-size: 20px; }
.ico-24 { font-size: 24px; }
.ico-32 { font-size: 32px; }

/* ============================================================
   站点外壳：页头 / 抽屉 / 页脚 / 返回顶部 / Toast
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-ink);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand img {
  height: 48px;
  width: auto;
  /* logo 深色笔画在深色页头上会融掉，加白色圆角衬底 */
  background: #fff;
  border-radius: 10px;
  padding: 5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav a.is-active {
  color: var(--c-orange);
  font-weight: 600;
}

.header-tel {
  display: inline-block;
  height: 44px;
  line-height: 44px;
  text-align: center;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: var(--c-orange);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex: none;
  box-shadow: 0 4px 12px rgba(240, 131, 33, 0.32);
}

.header-tel .ico {
  display: block;
  vertical-align: middle;
}

.header-tel:hover { background: var(--c-orange-dark); }

/* 价格数据来源徽标 */
.data-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  flex: none;
  cursor: help;
}

.data-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-success);
  flex: none;
}

.data-badge.is-offline .dot { background: var(--c-warn); }

/* 移动端菜单按钮 */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-sm);
  background: transparent;
  color: #fff;
  flex: none;
}

/* 抽屉 */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 23, 27, 0.5);
  z-index: var(--z-drawer);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.drawer-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 268px;
  max-width: 82vw;
  background: var(--c-ink);
  color: #fff;
  z-index: calc(var(--z-drawer) + 1);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  padding: 18px;
  overflow-y: auto;
}

.drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.drawer nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer nav a {
  padding: 13px 14px;
  border-radius: var(--r-sm);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.drawer nav a:hover,
.drawer nav a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.drawer nav a.is-active { color: var(--c-orange); }

.drawer-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.9;
}

/* 页脚 */
.site-footer {
  background: var(--c-ink-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 54px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 44px;
  width: auto;
  /* 与页头一致：白色圆角衬底，避免深色笔画融进深色页脚 */
  background: #fff;
  border-radius: 10px;
  padding: 5px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.footer-brand-slogan {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a:hover { color: var(--c-orange); }

.footer-contact li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.6;
}

.footer-contact .ico {
  margin-top: 4px;
  color: var(--c-orange);
}

.footer-bottom {
  margin-top: 42px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--c-ink);
  color: #fff;
  font-size: 20px;
  box-shadow: var(--sh);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 90;
}

.to-top.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Toast */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: var(--z-toast);
  pointer-events: none;
}

.toast {
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: rgba(35, 39, 45, 0.94);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--sh);
  animation: fadeUp 0.25s ease both;
}

.toast.is-success { background: rgba(23, 104, 58, 0.95); }
.toast.is-error { background: rgba(165, 47, 47, 0.95); }

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(8px); }
}

.toast.is-out { animation: fadeOut 0.25s ease both; }

/* 遮罩弹层（Lightbox / 联系弹窗） */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 21, 0.82);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}

.modal-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-body {
  background: #fff;
  border-radius: var(--r-lg);
  max-width: 460px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--c-bg-mute);
  color: var(--c-text-sub);
  font-size: 18px;
  line-height: 1;
}

/* ============================================================
   工具类
   ============================================================ */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-2 { gap: 2px; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-14 { gap: 14px; }
.gap-20 { gap: 20px; }

.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.text-md { font-size: 15px; }
.text-lg { font-size: 17px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.c-ink { color: var(--c-ink); }
.c-orange { color: var(--c-orange-dark); }
.c-muted { color: var(--c-muted); }
.c-danger { color: var(--c-danger); }
.c-success { color: var(--c-success); }

.mono { font-family: var(--font-num); }

.rel { position: relative; }
.abs { position: absolute; }

.hide-sm { display: block; }
.only-sm { display: none; }

/* 区块标题 */
.section-head {
  margin-bottom: 30px;
}

.section-head.center { text-align: center; }

.section-head h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--c-text-sub);
  font-size: 15px;
}

.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-orange-dark);
  background: var(--c-orange-soft);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}

/* 页面英雄区（内页通用） */
.page-hero {
  background: var(--c-ink);
  color: #fff;
  padding: 46px 0;
}

.page-hero h1 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 8px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .hide-sm { display: none !important; }
  .only-sm { display: block !important; }
  .hide-xs { display: none !important; }

  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-tel { display: none; }
  .site-header .container { height: 60px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-head h2 { font-size: 22px; }
  .page-hero h1 { font-size: 23px; }
  .page-hero { padding: 34px 0; }

  .to-top { right: 14px; bottom: 18px; }

  .brand-slogan { display: none; }
}

/* ---------- 打印 ---------- */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .site-header, .site-footer, .to-top { display: none !important; }
}