/* 中新智信 · Professional business services design system */
:root {
  --primary: #0B1F33;
  --primary-hover: #163A5C;
  --primary-active: #082030;
  --primary-tint: #E8EEF4;
  --primary-border: #C5D2E0;
  --secondary: #1B3A5F;
  --secondary-alt: #152C48;
  --secondary-hover: #152C48;
  --secondary-tint: #EEF3F8;
  --secondary-border: #C9D6E5;
  --cyan: #B8956C;
  --ok: #0F8A5F;
  --warn: #C4922A;
  --danger: #C0392B;
  --bg: #F4F6F8;
  --card: #FFFFFF;
  --text: #121A24;
  --muted: #5B6775;
  --light: #8A97A8;
  --border: #DCE3EB;
  --border-soft: #EBF0F5;
  --input-border: #C5D0DC;
  --footer-bg: #0B1F33;
  --radius-sm: 0.2rem;
  --radius: 0.35rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-pill: 9999px;
  --shadow: 0 1px 2px rgba(11, 31, 51, 0.06), 0 1px 1px rgba(11, 31, 51, 0.04);
  --shadow-hover: 0 12px 28px -8px rgba(11, 31, 51, 0.16), 0 6px 12px -6px rgba(11, 31, 51, 0.08);
  --shadow-float: 0 -4px 16px rgba(11, 31, 51, 0.08);
  --shadow-modal: 0 22px 40px -12px rgba(11, 31, 51, 0.22);
  --max: 1200px;
  --header-h: 64px;
  --tab-h: 56px;
  --font-display: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --gutter: 1.25rem;
  --gutter-m: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, .page-title, .card-title, .price, .logo {
  font-family: var(--font-display);
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.page-narrow { max-width: 720px; padding-top: 16px; padding-bottom: 24px; }
.page-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.page-desc { margin: 0 0 18px; color: var(--muted); }
.card-title { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.req { color: var(--primary); }
.muted { color: var(--muted); }
.center { text-align: center; }
.page-pad { padding-bottom: 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--radius-pill); border: 0;
  font-weight: 700; font-family: var(--font-display);
  cursor: pointer; transition: background .15s, transform .12s, box-shadow .15s, border-color .15s;
  appearance: none; -webkit-appearance: none; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-blue { background: var(--secondary); color: #fff; }
.btn-blue:hover { background: var(--secondary-hover); color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: #F9FAFB; color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--radius); }
.btn-block { width: 100%; }

/* Tags */
.tag {
  display: inline-block; padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600; line-height: 14px;
}
.tag-red { background: var(--primary-tint); color: var(--primary); border: 1px solid var(--primary-border); }
.tag-blue { background: var(--secondary-tint); color: var(--secondary); border: 1px solid var(--secondary-border); }
.tag-ok { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.tag-warn { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }

/* Price */
.price { color: var(--primary); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.price small { font-size: 65%; font-weight: 700; vertical-align: baseline; margin-right: 1px; }
.price-old { color: var(--light); text-decoration: line-through; font-size: 13px; margin-left: 6px; font-weight: 400; }

/* Cards & grids */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.form-card { padding: 20px; margin-bottom: 14px; }
.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); }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label, .stack-form label {
  display: block; margin-bottom: 6px;
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.input,
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=email], input[type=tel], input[type=search], input:not([type]),
select, textarea {
  width: 100%; min-height: 42px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff; color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
textarea.input, textarea { min-height: 110px; padding: 12px; resize: vertical; line-height: 1.5; }
.input:focus, input:focus, select:focus, textarea:focus {
  border-color: #F9A8C0;
  box-shadow: 0 0 0 3px rgba(230, 0, 68, .12);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error {
  color: #9f1239; background: var(--primary-tint);
  border-radius: var(--radius); padding: 10px 12px; font-size: 13px; margin: 0 0 12px;
}
.stack-form .btn { margin-top: 4px; }

/* ========== Header / Nav ========== */
.topbar {
  background: #F3F4F6;
  border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.topbar .inner {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 36px; gap: 12px; flex-wrap: wrap;
}
.topbar a:hover { color: var(--primary); }
.topbar .hotline { color: var(--text); }
.topbar .hotline strong { color: var(--primary); font-weight: 700; }
.topbar .sep { color: #D1D5DB; margin: 0 6px; }
.topbar-city { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text); }
.topbar-city .pin { color: var(--primary); }

.header {
  background: #fff;
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}
.header-main {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0; min-height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px; color: var(--primary); white-space: nowrap;
}
.logo:hover { color: var(--primary-hover); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #B8956C);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 800; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(232, 93, 76, .28);
}
.search { flex: 1; display: flex; max-width: 520px; margin: 0 auto; min-width: 0; }
.search input {
  flex: 1; min-width: 0; height: 42px;
  border: 2px solid var(--primary); border-right: 0;
  border-radius: 10px 0 0 10px; padding: 0 14px;
  box-shadow: none;
}
.search input:focus { box-shadow: none; border-color: var(--primary); }
.search button {
  height: 42px; border: 0; background: var(--primary); color: #fff;
  padding: 0 18px; border-radius: 0 10px 10px 0;
  font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.search button:hover { background: var(--primary-hover); }
.header-actions { display: flex; gap: 12px; align-items: center; font-size: 13px; flex-shrink: 0; font-weight: 600; }
.header-actions a:not(.btn) { color: var(--muted); }
.header-actions a:not(.btn):hover { color: var(--primary); }

.nav { background: #fff; }
.nav ul {
  display: flex; gap: 4px; list-style: none;
  margin: 0; padding: 0 0 12px;
  overflow: auto; -webkit-overflow-scrolling: touch;
}
.nav a {
  display: block; padding: 8px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--text);
}
.nav a:hover, .nav a.active {
  background: var(--primary-tint); color: var(--primary);
}

/* ========== Home ========== */
.hero {
  margin: 16px 0; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(120deg, #0B1F33, #1B3A5F 45%, #1B3A5F);
  color: #fff; min-height: 220px;
  display: grid; grid-template-columns: 1.35fr .85fr; gap: 16px; padding: 28px;
}
.hero h1 { font-size: 28px; line-height: 1.3; margin: 0 0 10px; font-weight: 800; letter-spacing: -0.02em; }
.hero p { opacity: .92; margin: 0 0 16px; }
.hero-card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-lg); padding: 18px;
}
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.quick a {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 10px; text-align: center; font-weight: 700; box-shadow: var(--shadow); font-size: 13px;
}
.quick a span {
  display: block; width: 40px; height: 40px; margin: 0 auto 8px;
  border-radius: 12px; line-height: 40px; color: #fff;
}
.q1 span { background: var(--secondary); }
.q2 span { background: var(--cyan); }
.q3 span { background: var(--primary); }
.q4 span { background: #7c3aed; }

.home-page { padding-bottom: 8px; }
.home-banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 16px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #DBEAFE;
  /* 与下方四宫格同宽：勿用 max-height+aspect-ratio 导致宽度被压窄 */
  aspect-ratio: 21 / 8;
  height: auto;
  max-height: none;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .home-banner {
    width: 100%;
    max-width: 100%;
  }
  .home-banner .carousel-caption { display: none; } /* PC 广告图自带文案 */
}
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .45s ease; pointer-events: none;
}
.carousel-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption {
  position: absolute; left: 16px; bottom: 16px; color: #fff;
  font-weight: 700; font-size: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  background: rgba(15, 40, 80, .4); padding: 6px 14px; border-radius: var(--radius-pill);
}
.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2;
  display: flex; gap: 6px; justify-content: center;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .55); padding: 0; cursor: pointer; transition: .2s;
}
.carousel-dot.is-active { background: #fff; width: 20px; border-radius: var(--radius-pill); }
.home-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.h5-home-head, .h5-icon-grid, .h5-tabs-section { display: none; }

.pc-service-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 8px 0 20px;
}
.pc-service-bar a {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, #0B1F33, #1B3A5F);
  color: #fff; border-radius: var(--radius-md);
  padding: 18px 14px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(232, 93, 76, .22);
  transition: transform .15s, box-shadow .15s;
}
.pc-service-bar a:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(232, 93, 76, .3); }
.pc-service-bar i {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 800;
}

.pc-floors { display: block; }
.pc-experts {
  margin: 32px 0; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(120deg, #1B3A5F, #1B3A5F 55%, #0B1F33);
}
.pc-experts-inner {
  display: grid; grid-template-columns: .85fr 1.45fr; gap: 20px;
  padding: 28px; color: #fff;
}
.pc-experts-hd h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; }
.pc-experts-hd p { opacity: .9; margin: 0 0 16px; }
.pc-experts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pc-expert-card {
  display: flex; gap: 12px; align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-md); padding: 14px; color: #fff;
  transition: background .15s;
}
.pc-expert-card:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.pc-expert-card img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; background: #fff; border: 2px solid rgba(255, 255, 255, .5);
}
.pc-expert-card strong { display: block; font-size: 15px; }
.pc-expert-card em { display: block; font-style: normal; font-size: 12px; opacity: .85; margin: 4px 0; }
.pc-expert-card span {
  display: inline-block; font-size: 12px; background: var(--primary);
  padding: 4px 12px; border-radius: var(--radius-pill); font-weight: 700;
}

.pc-trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 20px 0 8px; padding: 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.pc-trust-item { display: flex; gap: 12px; align-items: center; }
.pc-trust-item i {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--secondary-tint); color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 800; flex-shrink: 0;
}
.pc-trust-item strong { display: block; font-size: 14px; font-family: var(--font-display); }
.pc-trust-item span { font-size: 12px; color: var(--muted); }
.pc-only { display: block; }

.section { margin: 28px 0; }
.section-hd {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px; margin-bottom: 16px;
}
.section-hd h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.section-hd p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.section-hd a { color: var(--secondary); font-weight: 600; font-size: 14px; }
.section-hd a:hover { color: var(--primary); }

/* Product cards */
.product-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #FCD5CE;
  color: inherit;
}
.product-card .cover {
  aspect-ratio: 1 / 1; height: auto; object-fit: cover;
  object-position: center top; width: 100%; background: #FFF5F0;
}
.product-card .body {
  padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.product-card h3 {
  margin: 0; font-size: 14px; line-height: 1.45; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .meta {
  color: var(--muted); font-size: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; gap: 8px;
}
.product-card .sales { font-size: 11px; color: var(--light); margin-top: 2px; }

/* Corp / Footer */
.corp-band {
  background: linear-gradient(120deg, #0B1F33, #1B3A5F);
  color: #fff; border-radius: var(--radius-lg); padding: 28px; margin: 28px 0;
}
.corp-band .grid { margin-top: 16px; }
.corp-band .card { color: var(--text); }

.footer {
  background: var(--footer-bg); color: #C4B5A8;
  margin-top: 36px; padding: 0 0 20px; font-size: 13px;
}
.footer a { color: #E8D9CC; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; font-family: var(--font-display); }
.footer-trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 24px;
}
.footer-trust-item {
  display: flex; align-items: center; gap: 10px;
  color: #F5EDE6; font-weight: 600; font-size: 13px;
}
.footer-trust-item i {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(232, 93, 76, .22); color: #B8956C;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 800; flex-shrink: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 24px; padding-top: 16px; color: #C4B5A8; font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center;
}
.footer-icp a { color: #E8D9CC; text-decoration: none; font-weight: 600; }
.footer-icp a:hover { color: #fff; text-decoration: underline; }

/* Float & mobile tab */
.float-side {
  position: fixed; right: 16px; bottom: 100px; z-index: 50;
  display: flex; flex-direction: column; gap: 8px;
}
.float-side a {
  width: 52px; min-height: 52px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-hover);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  font-size: 11px; font-weight: 700; padding: 6px; text-align: center; color: var(--text);
}
.float-side a:hover { color: var(--primary); border-color: #FCD5CE; }
.float-side a.float-tel { color: var(--secondary); }

.mobile-tab {
  display: none; position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff; border-top: 1px solid var(--border);
  z-index: 50; height: var(--tab-h);
  padding: 0 8px env(safe-area-inset-bottom);
  box-shadow: var(--shadow-float);
}
.mobile-tab nav { display: grid; grid-template-columns: repeat(3, 1fr); height: 100%; }
.mobile-tab a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-align: center; font-size: 11px; color: var(--muted);
  font-weight: 700; padding: 6px 2px;
}
.mobile-tab a .tab-ico { font-size: 18px; line-height: 1; }
.mobile-tab a.active { color: var(--primary); }

/* Alerts / tables / misc */
.alert { padding: 12px 14px; border-radius: var(--radius); margin: 12px 0; font-size: 14px; }
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: var(--primary-tint); color: #9F1239; border: 1px solid var(--primary-border); }

table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td {
  padding: 12px 10px; border-bottom: 1px solid var(--border-soft);
  text-align: left; font-size: 13px; vertical-align: middle;
}
table.data th {
  background: #F9FAFC; font-weight: 600; color: var(--muted); font-size: 12px;
}
table.data tbody tr:nth-child(even) { background: #F9FAFC; }
table.data tbody tr:hover { background: var(--secondary-tint); }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff; border-top: 1px solid var(--border);
  padding: 10px 14px; display: none; z-index: 45;
  box-shadow: var(--shadow-float);
}
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.steps .s {
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: #F3F4F6; font-size: 12px; font-weight: 600; color: var(--muted);
}
.steps .s.on { background: var(--primary); color: #fff; }

.pager { display: flex; gap: 8px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pager a {
  min-width: 36px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; text-align: center; font-weight: 600; font-size: 13px;
}
.pager a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager a:hover:not(.on) { border-color: var(--primary); color: var(--primary); }

.chat-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 12px 12px;
  box-sizing: border-box;
}
body.page-chat .page-pad {
  padding-top: 8px;
  padding-bottom: 0;
  max-width: none;
}
body.page-chat .flash-wrap {
  max-width: none;
  padding-left: 12px;
  padding-right: 12px;
}
body.page-chat .pc-header .nav,
body.page-chat .footer,
body.page-chat .corp-band,
body.page-chat .hide-on-mobile-tight,
body.page-chat .float-side { display: none !important; }
.chat-page .chat-box,
.chat-box {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 130px);
  height: calc(100vh - 130px);
}
.chat-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-shrink: 0; }
.chat-box h1 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.chat-box .chat-sub { margin: 0; color: var(--muted); font-size: 13px; }
.chat-log {
  background: linear-gradient(180deg, #F4F6F8 0%, #E8EEF4 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 16px 18px;
  overflow: auto;
}
.chat-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.chat-chips .chat-chip {
  border: 1px solid var(--primary-border);
  background: var(--primary-tint);
  color: var(--primary-active);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
}
.chat-chips .chat-chip:hover {
  background: #FFE4DE;
  border-color: var(--primary);
  color: var(--primary);
}
.chat-form { display: flex; gap: 10px; align-items: center; }
.chat-form input {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  background: #fff;
}
.chat-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 93, 76, .12);
}
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; margin: 8px 0; font-size: 14px; line-height: 1.55; }
.bubble.bot { background: #fff; border: 1px solid var(--border); color: var(--text); }
.bubble.me { background: var(--primary); color: #fff; margin-left: auto; }

.filter-bar {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.filter-bar .form-group { margin-bottom: 0; }
.buy-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qty-input { width: 88px !important; min-width: 88px; }

/* Detail page */
.detail-layout {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding-top: 20px;
}
.detail-gallery { overflow: hidden; }
.detail-gallery .main-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #FFF5F0;
}
.detail-thumbs {
  display: flex; gap: 8px; padding: 12px; overflow: auto; -webkit-overflow-scrolling: touch;
}
.detail-thumbs img {
  width: 80px; height: 60px; object-fit: cover;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; flex-shrink: 0;
}
.detail-thumbs img.is-active, .detail-thumbs img:hover { border-color: var(--primary); }
.detail-info { padding: 24px; }
.detail-info h1 {
  font-size: 24px; margin: 10px 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35;
}
.detail-price-box {
  background: linear-gradient(135deg, #E8EEF4, #F4F6F8);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md); padding: 16px; margin: 16px 0;
}
.detail-price-box .price { font-size: 28px; }
.detail-highlights { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-section { padding: 20px; margin-top: 16px; }
.detail-section h2 { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.detail-content img {
  display: block; width: 100%; max-width: 790px; height: auto;
  margin: 10px auto 18px; border-radius: var(--radius-md);
  border: 1px solid var(--border-soft); background: #F4F6F8;
}
.detail-content .detail-shot h4 {
  margin: 18px 0 8px; font-size: 16px; font-weight: 700; color: var(--secondary);
}
.detail-content .product-detail-gallery > h3 { margin-top: 8px; }
.review-item { border-bottom: 1px solid var(--border-soft); padding: 12px 0; }
.review-item:last-child { border-bottom: 0; }

/* Cart */
.cart-page { padding-top: 16px; }
.cart-item-mobile { display: none; }
.cart-summary {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; flex-wrap: wrap; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--border-soft);
}
.cart-summary .price { font-size: 24px; }

/* Checkout */
.checkout-page { padding-top: 12px; padding-bottom: 24px; }
.checkout-grid { display: grid; grid-template-columns: 1.35fr .75fr; gap: 16px; align-items: start; }
.examinee-list { display: flex; flex-direction: column; gap: 8px; }
.examinee-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #FAFBFC; cursor: pointer; transition: border-color .15s, background .15s;
}
.examinee-item:has(input:checked), .examinee-item.is-selected {
  border-color: var(--primary); background: var(--primary-tint);
}
.examinee-item input { margin-top: 4px; }
.examinee-item em { display: block; color: var(--muted); font-style: normal; font-size: 12px; margin-top: 2px; }
.order-lines { display: flex; flex-direction: column; gap: 10px; }
.order-line {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid var(--border-soft);
}
.order-line-main { display: flex; gap: 10px; align-items: center; min-width: 0; }
.order-line-main img {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #F3F4F6;
}
.order-name {
  font-size: 13px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.settle-row { display: flex; justify-content: space-between; margin: 8px 0; font-size: 14px; }
.settle-pay { align-items: baseline; }
.settle-pay .price { font-size: 24px; }
.agree-row { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0; font-size: 13px; line-height: 1.45; }
.agree-row input { margin-top: 3px; }
.checkout-side { position: sticky; top: 80px; }

/* Pay */
.pay-page { padding-top: 16px; max-width: 720px; }
.pay-method {
  padding: 16px; display: flex; gap: 12px; align-items: center;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.pay-method:hover, .pay-method.is-selected {
  border-color: var(--secondary); background: var(--secondary-tint);
}
.pay-amount { font-size: 28px; }

/* Auth */
.auth-page { padding: 32px 16px; }
.auth-layout {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch;
  max-width: var(--max); margin: 0 auto;
}
.auth-hero {
  margin: 0; min-height: 420px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1B3A5F 0%, #0B1F33 55%, #B8956C 160%);
  color: #fff; padding: 40px 32px; display: flex; flex-direction: column; justify-content: center;
}
.auth-hero h1 { font-size: 28px; font-weight: 800; line-height: 1.35; margin: 0 0 12px; }
.auth-hero p { opacity: .92; margin: 0; font-size: 15px; }
.auth-card { padding: 28px; }
.auth-card h2 { margin-top: 0; font-size: 22px; font-weight: 800; }
.auth-narrow { max-width: 480px; margin: 0 auto; padding: 32px 16px; }

/* User center */
.user-header {
  padding: 24px; margin-bottom: 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center;
  background: linear-gradient(135deg, #E8EEF4, #F6EFE8);
  border: 1px solid var(--border);
}
.user-header h1 { margin: 0; font-size: 22px; font-weight: 800; }
.user-stat {
  padding: 18px; text-align: center; transition: transform .15s, box-shadow .15s;
}
.user-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: inherit; }
.user-stat .num {
  font-size: 28px; font-weight: 800; font-family: var(--font-display);
  color: var(--primary); margin-top: 4px;
}
.user-link { padding: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.user-link:hover { color: var(--primary); border-color: #FCD5CE; }
.order-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; overflow: auto; }
.order-card {
  padding: 16px; margin-bottom: 12px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center;
}

/* Content pages */
.page-hero {
  margin: 16px 0; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(120deg, #0B1F33, #1B3A5F);
  color: #fff; padding: 36px 28px;
}
.page-hero h1 { margin: 0 0 10px; font-size: 28px; font-weight: 800; }
.page-hero p { margin: 0; opacity: .92; }
.content-card { padding: 22px; margin-top: 16px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.branch-card { padding: 18px; }
.branch-card h3 { margin: 8px 0; font-size: 17px; }
.expert-card { padding: 20px; text-align: center; transition: transform .15s, box-shadow .15s; }
.expert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: inherit; }
.expert-card img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 12px; border: 3px solid var(--secondary-tint);
}
.help-card { padding: 18px; }
.help-card h3 { margin: 8px 0; }
.corp-pain { padding: 20px; }
.corp-pain h3 { margin-top: 0; color: var(--secondary); }
.report-box { padding: 28px; max-width: 640px; margin: 24px auto; text-align: center; }
.article-grid .card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--secondary-tint); }
.article-show-cover {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius-md); margin-bottom: 14px; background: var(--secondary-tint);
}
.article-item { display: flex; gap: 14px; overflow: hidden; padding: 0; transition: box-shadow .15s; }
.article-item:hover { box-shadow: var(--shadow-hover); color: inherit; }
.article-item img {
  width: 160px; height: 112px; object-fit: cover; flex-shrink: 0; background: var(--secondary-tint);
}
.article-item-body { padding: 14px 14px 14px 0; min-width: 0; }
.article-item h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.4; font-weight: 700; }
.article-item p {
  margin: 0; font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-item .meta { margin-top: 8px; font-size: 12px; }

.status-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); margin-right: 6px; vertical-align: middle;
}

/* ========== Responsive ========== */
@media (max-width: 1023px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .home-product-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-trust { grid-template-columns: repeat(2, 1fr); }
  .pc-experts-inner { grid-template-columns: 1fr; }
  .pc-trust { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-hero { min-height: 200px; padding: 28px; }
}

@media (max-width: 767px) {
  .hide-on-mobile-tight,
  .pc-only,
  .pc-service-bar,
  .pc-floors,
  .pc-experts,
  .pc-trust { display: none !important; }

  body { font-size: 14px; background: var(--bg); }
  .container { padding: 0 12px; }
  .topbar { display: none; }

  body.page-home .pc-header { display: none; }
  .header-main { padding: 8px 0; gap: 8px; }
  .logo { font-size: 17px; }
  .logo span:last-child { max-width: 5em; overflow: hidden; text-overflow: ellipsis; }
  .header-actions .hide-sm,
  .header-actions .btn { display: none; }
  .search { max-width: none; }
  .search input { font-size: 13px; height: 38px; border-width: 1.5px; }
  .search button { height: 38px; padding: 0 12px; }
  .nav { display: none; }

  .hero { grid-template-columns: 1fr; min-height: auto; padding: 20px; margin: 12px 0; }
  .hero h1 { font-size: 22px; }
  .hero-card { display: none; }
  .section { margin: 20px 0; }
  .section-hd h2 { font-size: 18px; }
  .page-hero { padding: 24px 18px; }
  .page-hero h1 { font-size: 22px; }

  /* H5 home */
  .h5-home-head {
    display: block; background: #fff;
    margin: 0 -12px; padding: 10px 12px 8px;
    border-bottom: 1px solid var(--border-soft);
  }
  .h5-toprow {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; margin-bottom: 10px;
  }
  .h5-brand { display: flex; align-items: center; gap: 6px; justify-content: center; grid-column: 2; }
  .h5-brand-mark {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #B8956C);
    color: #fff; font-size: 11px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .h5-brand strong { color: var(--primary); font-size: 16px; font-family: var(--font-display); }
  .h5-login { text-align: right; font-size: 13px; color: var(--muted); font-weight: 600; }
  .h5-search {
    display: flex; align-items: center; gap: 6px;
    background: #F3F4F6; border-radius: var(--radius-pill); padding: 4px 4px 4px 14px;
  }
  .h5-search input {
    flex: 1; border: 0; background: transparent; min-height: 34px; padding: 0; box-shadow: none;
  }
  .h5-search input:focus { box-shadow: none; border: 0; }
  .h5-filter {
    flex-shrink: 0; font-size: 12px; color: var(--primary); font-weight: 700;
    padding: 6px 10px; background: #fff; border-radius: var(--radius-pill);
    border: 1px solid var(--primary-border);
  }
  .h5-search button {
    width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: var(--primary); color: #fff; font-size: 16px; cursor: pointer;
  }
  .h5-tags { display: flex; gap: 8px; overflow: auto; padding: 10px 0 6px; -webkit-overflow-scrolling: touch; }
  .h5-tags a {
    flex-shrink: 0; padding: 4px 12px; border-radius: var(--radius-pill);
    background: var(--primary-tint); color: var(--primary); font-size: 12px; font-weight: 600;
  }
  .h5-notice {
    display: flex; align-items: center; gap: 6px;
    background: #FFF8E8; border-radius: var(--radius); padding: 6px 10px; margin-top: 2px; overflow: hidden;
  }
  .h5-notice-ico { flex-shrink: 0; font-size: 12px; }
  .h5-notice-track { flex: 1; overflow: hidden; white-space: nowrap; }
  .h5-notice-track span {
    display: inline-block; padding-left: 100%;
    animation: h5marquee 16s linear infinite; font-size: 12px; color: #9A6700;
  }
  @keyframes h5marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

  .home-banner { margin: 10px 0; border-radius: 12px; aspect-ratio: 16/9; max-height: none; }
  .carousel-caption { font-size: 12px; left: 10px; bottom: 10px; padding: 4px 10px; }

  .h5-icon-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 6px;
    background: #fff; border-radius: var(--radius-md); padding: 16px 8px;
    margin: 0 0 12px; box-shadow: var(--shadow);
  }
  .h5-icon-grid a { text-align: center; }
  .h5-icon-grid .ball {
    width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 15px;
    background: radial-gradient(circle at 30% 28%, #B8956C, #0B1F33 62%, #082030);
    box-shadow: 0 6px 12px rgba(232, 93, 76, .25);
  }
  .h5-icon-grid a:nth-child(2) .ball { background: radial-gradient(circle at 30% 28%, #D4A574, #1B3A5F 62%, #152C48); }
  .h5-icon-grid a:nth-child(3) .ball { background: radial-gradient(circle at 30% 28%, #FFB086, #E8704A 62%, #C45A35); }
  .h5-icon-grid a:nth-child(4) .ball { background: radial-gradient(circle at 30% 28%, #9AE6B2, #10B981 62%, #059669); }
  .h5-icon-grid a:nth-child(5) .ball { background: radial-gradient(circle at 30% 28%, #C9B896, #1B3A5F 62%, #1B3A5F); }
  .h5-icon-grid a:nth-child(6) .ball { background: radial-gradient(circle at 30% 28%, #D4C4A8, #0B1F33 62%, #163A5C); }
  .h5-icon-grid a:nth-child(7) .ball { background: radial-gradient(circle at 30% 28%, #E8C9A8, #A67C52 62%, #152C48); }
  .h5-icon-grid a:nth-child(8) .ball { background: radial-gradient(circle at 30% 28%, #FCD34D, #E8A838 62%, #B45309); }
  .h5-icon-grid a:nth-child(9) .ball { background: radial-gradient(circle at 30% 28%, #C5D2E0, #1B3A5F 62%, #0B1F33); }
  .h5-icon-grid a:nth-child(10) .ball { background: radial-gradient(circle at 30% 28%, #B8956C, #163A5C 62%, #9F2A1F); }
  .h5-icon-grid em {
    display: block; font-style: normal; font-size: 11px; font-weight: 700;
    color: var(--text); line-height: 1.25;
  }

  .h5-tabs-section {
    display: block; background: #fff; border-radius: var(--radius-md);
    padding: 8px 8px 14px; box-shadow: var(--shadow);
  }
  .h5-tabs {
    display: flex; gap: 4px; overflow: auto; padding: 4px 0 10px;
    -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--border-soft); margin-bottom: 10px;
  }
  .h5-tab {
    flex-shrink: 0; border: 0; background: transparent; padding: 8px 14px;
    font-size: 14px; font-weight: 700; color: var(--muted);
    border-bottom: 2px solid transparent; cursor: pointer; font-family: var(--font-display);
  }
  .h5-tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }
  .h5-tab-panel { display: none; }
  .h5-tab-panel.is-active { display: grid; }
  .h5-tabs-section .home-product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .home-product-grid, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card .body { padding: 10px; }
  .product-card h3 { font-size: 13px; }
  .product-card .foot .btn { display: none; }
  .home-article-grid { grid-template-columns: 1fr; }
  .corp-band { padding: 18px; margin: 18px 0; }
  .corp-band .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-trust { grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 0; }

  .float-side { display: none; }
  body.page-home .float-side { display: flex; bottom: 72px; right: 8px; }
  body.page-home .float-side a { width: 44px; min-height: 44px; border-radius: 50%; font-size: 10px; }

  .mobile-tab { display: block; }
  .page-pad { padding-bottom: 76px; }
  .sticky-buy {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; bottom: var(--tab-h);
  }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-card { padding: 14px; }
  .buy-actions { display: grid; grid-template-columns: 88px 1fr 1fr; width: 100%; }
  .buy-actions .btn { width: 100%; }
  table.data { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .page-title { font-size: 20px; }

  .detail-info { padding: 16px; }
  .detail-info h1 { font-size: 20px; }
  .detail-price-box .price { font-size: 24px; }

  .cart-table-wrap { display: none; }
  .cart-item-mobile { display: block; }
  .cart-mobile-row {
    display: flex; gap: 12px; padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .cart-mobile-row img {
    width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  }
  .cart-mobile-row .name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }

  .auth-page { padding: 16px 12px; }
  .auth-hero { display: none; }
  .user-stat .num { font-size: 22px; }
  .grid-2.article-list { grid-template-columns: 1fr; }
  .article-item { flex-direction: column; }
  .article-item img { width: 100%; height: auto; aspect-ratio: 16/9; }
  .article-item-body { padding: 12px; }
  .chip-row { flex-wrap: nowrap; overflow: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .chip-row .btn { flex-shrink: 0; }
  .order-tabs { flex-wrap: nowrap; }
  .order-tabs .btn { flex-shrink: 0; }

  .chat-page { padding-top: 8px; padding-bottom: 0; }
  .chat-box {
    min-height: calc(100vh - var(--tab-h) - 24px);
    height: calc(100vh - var(--tab-h) - 24px);
    border-radius: var(--radius-md);
    padding: 12px;
    margin: 0;
  }
  .chat-log { min-height: 0; flex: 1; }
  .chat-chips { max-height: 96px; overflow: auto; margin: 8px 0; }
  .bubble { max-width: 88%; }
}

@media (max-width: 420px) {
  .buy-actions { grid-template-columns: 1fr 1fr; }
  .buy-actions .qty-input { grid-column: 1 / -1; width: 100% !important; }
  .home-product-grid { grid-template-columns: 1fr 1fr; }
  .h5-icon-grid { grid-template-columns: repeat(5, 1fr); gap: 10px 4px; }
  .h5-icon-grid .ball { width: 40px; height: 40px; font-size: 13px; }
  .h5-icon-grid em { font-size: 10px; }
}
