:root {
  --primary: #2f6df0;
  --primary-d: #1f53c9;
  --accent: #19a0a9;
  --ink: #1f2d3d;
  --ink-2: #4a5b70;
  --muted: #7a8aa0;
  --line: #e6ebf2;
  --bg: #f5f7fb;
  --card: #ffffff;
  --ok: #19a979;
  --warn: #e08a1e;
  --danger: #e0556b;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(31, 45, 61, 0.08);
  --shadow-s: 0 2px 10px rgba(31, 45, 61, 0.06);
  --maxw: 1180px;
  --header-h: 68px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: .18s; line-height: 1.2;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-d); }
.btn--ghost { background: #fff; color: var(--primary); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); }
.btn--block { width: 100%; }
.btn--lg { padding: 13px 26px; font-size: 15px; }
.btn--sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; height: var(--header-h); gap: 18px; }
.brand { display: flex; align-items: center; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav__link { padding: 8px 13px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.nav__link:hover { color: var(--primary); background: #eef3ff; }
.nav__link.is-active { color: var(--primary); background: #eef3ff; }
.header__right { display: flex; align-items: center; gap: 12px; }
.cart-link { position: relative; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 4px; }
.cart-link:hover { color: var(--primary); }
.cart-badge { position: absolute; top: -4px; right: -8px; background: var(--danger); color: #fff; font-size: 11px; min-width: 17px; height: 17px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.user-menu { position: relative; }
.user-menu__btn { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; font-weight: 600; cursor: pointer; color: var(--ink); }
.caret { display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: var(--muted); position: relative; top: 3px; }
.user-menu__panel { position: absolute; right: 0; top: 46px; width: 160px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; flex-direction: column; }
.user-menu__panel.show { display: flex; }
.user-menu__panel a { padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.user-menu__panel a:hover { background: #eef3ff; color: var(--primary); }
.burger { display: none; flex-direction: column; gap: 4px; width: 38px; height: 34px; background: none; border: none; cursor: pointer; justify-content: center; align-items: center; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 14px; }
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: 11px 6px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }

/* ---------- Layout blocks ---------- */
.section { padding: 54px 0; }
.section--tight { padding: 34px 0; }
.section__head { text-align: center; margin-bottom: 30px; }
.section__head h2 { font-size: 26px; }
.section__head p { color: var(--muted); margin: 6px 0 0; }
.section__head .kicker { color: var(--primary); font-weight: 700; letter-spacing: 2px; font-size: 13px; }
.eyebrow { color: var(--primary); font-weight: 700; letter-spacing: 1px; font-size: 13px; }

/* biz-strip（静态展示，便于无脚本环境阅读） */
.biz-strip { background: linear-gradient(135deg, #2f6df0, #19a0a9); color: #fff; }
.biz-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 22px 0; }
.biz-strip__item { padding: 4px 14px; border-left: 1px solid rgba(255,255,255,.25); }
.biz-strip__item:first-child { border-left: none; }
.biz-strip__k { font-size: 12px; opacity: .85; }
.biz-strip__v { font-size: 15px; font-weight: 700; margin-top: 3px; }

/* hero */
.hero { background: linear-gradient(135deg, #eaf1ff 0%, #e9f8f7 100%); padding: 64px 0 56px; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 36px; line-height: 1.25; margin-bottom: 16px; }
.hero p { color: var(--ink-2); font-size: 16px; max-width: 520px; }
.hero__cta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mod-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-s); transition: .2s; }
.mod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mod-card__icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eef3ff; margin-bottom: 12px; }
.mod-card__icon svg { width: 26px; height: 26px; }
.mod-card h3 { font-size: 18px; margin-bottom: 6px; }
.mod-card p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.mod-card .more { color: var(--primary); font-weight: 600; font-size: 14px; }

/* feature row */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; }
.feature__icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 12px; background: #eef3ff; display: flex; align-items: center; justify-content: center; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); font-size: 14px; }

/* grids */
.grid { display: grid; gap: 22px; }
.grid--mall { grid-template-columns: repeat(4, 1fr); }
.grid--info { grid-template-columns: repeat(3, 1fr); }
.grid--merchant { grid-template-columns: repeat(3, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-s); transition: .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 16/10; overflow: hidden; background: #f0f3f8; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 14px 15px 16px; flex: 1; display: flex; flex-direction: column; }
.card__title { font-size: 15px; font-weight: 600; margin: 0 0 8px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { color: var(--danger); font-weight: 700; }
.price small { font-size: 12px; }
.price__old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 12px; margin-left: 6px; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.tag { background: #eef3ff; color: var(--primary); font-size: 12px; padding: 2px 8px; border-radius: 6px; }

.info-card__meta { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.info-card__meta b { color: var(--ink-2); font-weight: 600; }
.info-card .more { margin-top: 10px; color: var(--primary); font-weight: 600; font-size: 14px; }

/* steps */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; position: relative; }
.step__no { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.step h4 { font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; text-align: center; }
.plan--hot { border-color: var(--primary); box-shadow: var(--shadow); }
.plan__name { font-size: 17px; font-weight: 700; }
.plan__price { font-size: 30px; font-weight: 800; color: var(--primary); margin: 10px 0; }
.plan__price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; text-align: left; }
.plan li { padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); font-size: 14px; }
.plan li:last-child { border-bottom: none; }

/* breadcrumb */
.crumb { padding: 16px 0 0; color: var(--muted); font-size: 13px; }
.crumb a { color: var(--primary); }

/* filters */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.chip { padding: 7px 15px; border-radius: 20px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.search { display: flex; flex: 1; min-width: 220px; max-width: 360px; }
.search input { flex: 1; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px 0 0 10px; border-right: none; outline: none; }
.search input:focus { border-color: var(--primary); }
.search button { padding: 0 16px; border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: 0 10px 10px 0; cursor: pointer; }

/* product detail */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd__main-img { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #f0f3f8; aspect-ratio: 1/1; }
.pd__main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd__thumbs img { width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; }
.pd__thumbs img.is-active { border-color: var(--primary); }
.pd__title { font-size: 24px; margin-bottom: 12px; }
.pd__price { font-size: 28px; color: var(--danger); font-weight: 800; }
.pd__price small { font-size: 15px; }
.pd__old { color: var(--muted); text-decoration: line-through; margin-left: 10px; font-size: 15px; font-weight: 400; }
.pd__meta { display: flex; gap: 18px; color: var(--muted); font-size: 14px; margin: 14px 0; flex-wrap: wrap; }
.pd__buy { display: flex; gap: 14px; align-items: center; margin: 22px 0; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 38px; height: 42px; border: none; background: #f5f7fb; cursor: pointer; font-size: 18px; color: var(--ink-2); }
.qty input { width: 52px; height: 42px; border: none; text-align: center; outline: none; font-size: 15px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.spec-table td { padding: 11px 14px; border: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child { background: #f7f9fc; color: var(--ink-2); width: 30%; font-weight: 600; }
.detail-block { margin-top: 40px; }
.detail-block h3 { font-size: 20px; margin-bottom: 12px; }
.detail-block p { color: var(--ink-2); }

/* merchant */
.merchant-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-s); }
.merchant-card__cover { aspect-ratio: 16/7; overflow: hidden; background: #eef3ff; }
.merchant-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.merchant-card__body { padding: 16px; }
.merchant-card__name { font-size: 17px; font-weight: 700; }
.merchant-card__desc { color: var(--muted); font-size: 14px; margin: 8px 0 12px; }
.merchant-card__row { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.badge--ok { background: #e7f7ef; color: var(--ok); }
.badge--line { background: #eef3ff; color: var(--primary); }
.badge--muted { background: #eef1f6; color: var(--muted); }

/* info detail */
.info-detail__hero { aspect-ratio: 16/8; border-radius: 14px; overflow: hidden; background: #f0f3f8; }
.info-detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.info-detail__title { font-size: 26px; margin: 20px 0 10px; }
.info-detail__metarow { display: flex; gap: 16px; color: var(--muted); font-size: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.contact-card__left { display: flex; align-items: center; gap: 14px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.contact-card__name { font-weight: 700; }
.contact-card__sub { color: var(--muted); font-size: 13px; }
.phone-reveal { font-size: 18px; font-weight: 700; color: var(--primary); }
.phone-locked { color: var(--muted); }

/* forms */
.auth-wrap { max-width: 440px; margin: 50px auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-s); }
.auth-card h2 { text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; outline: none; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field textarea { min-height: 110px; resize: vertical; }
.check-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.check-row input { margin-top: 3px; }
.check-row a { color: var(--primary); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 14px; }
.form-note a { color: var(--primary); }
.error-msg { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* cart */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; table-layout: fixed; }
.cart-table th, .cart-table td { padding: 15px 13px; border-bottom: 1px solid var(--line); word-break: break-word; font-size: 14px; text-align: left; vertical-align: middle; }
.cart-table th { background: #f7f9fc; color: var(--ink-2); font-weight: 600; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-prod { display: flex; align-items: center; gap: 12px; }
.cart-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-prod__name { font-weight: 600; font-size: 14px; }
.cart-prod__mer { color: var(--muted); font-size: 12px; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--ink-2); }
.cart-summary .total { font-size: 22px; font-weight: 800; color: var(--danger); }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

/* account */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.account-side { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; align-self: start; }
.account-side a { display: block; padding: 11px 14px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.account-side a:hover, .account-side a.is-active { background: #eef3ff; color: var(--primary); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.panel h3 { margin-bottom: 16px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state__icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: #eef3ff; display: flex; align-items: center; justify-content: center; }
.empty-state__icon svg { width: 30px; height: 30px; }

/* admin */
.admin-layout { display: grid; grid-template-columns: 200px 1fr; gap: 22px; }
.admin-side { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; align-self: start; }
.admin-side a { display: block; padding: 11px 14px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.admin-side a:hover, .admin-side a.is-active { background: #eef3ff; color: var(--primary); }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.admin-table th, .admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { background: #f7f9fc; color: var(--ink-2); font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-login-wrap { max-width: 380px; margin: 70px auto; }

/* footer */
.footer { background: #1f2d3d; color: #c7d0dd; margin-top: 50px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 26px; padding: 44px 20px 30px; }
.footer__brand p { color: #9fb0c4; font-size: 14px; margin-top: 10px; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer__col a, .footer__col p { display: block; color: #9fb0c4; font-size: 14px; padding: 4px 0; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 20px; display: flex; justify-content: space-between; font-size: 13px; color: #8b9bb0; flex-wrap: wrap; gap: 10px; }
.footer__bottom a { color: #8b9bb0; }
.footer__bottom a:hover { color: #fff; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px); background: rgba(31,45,61,.94); color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 999; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* notice bar / static */
.notice-banner { background: #fff7e8; border: 1px solid #ffe2b8; color: #9a6a12; border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.page-hero { background: linear-gradient(135deg, #eaf1ff, #e9f8f7); padding: 44px 0; }
.page-hero h1 { font-size: 30px; }
.page-hero p { color: var(--ink-2); margin: 8px 0 0; }

/* company about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.kv { display: flex; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv__k { width: 110px; color: var(--muted); flex-shrink: 0; }
.kv__v { color: var(--ink); flex: 1; }

/* responsive */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__cards { grid-template-columns: 1fr 1fr; }
  .grid--mall { grid-template-columns: repeat(3, 1fr); }
  .grid--info, .grid--merchant { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .steps, .pricing { grid-template-columns: repeat(2, 1fr); }
  .biz-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .pd { grid-template-columns: 1fr; }
  .cart-layout, .account-layout, .admin-layout, .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header__right .btn { display: none; }
  .burger { display: flex; }
  .cart-link { display: inline-flex; }
  .grid--mall, .grid--info, .grid--merchant { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .steps, .pricing, .hero__cards { grid-template-columns: 1fr; }
  .biz-strip__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .section { padding: 38px 0; }
}
@media (max-width: 420px) {
  .grid--mall, .grid--info, .grid--merchant { grid-template-columns: 1fr; }
}
.icon { width: 18px; height: 18px; }
.module-card__icon svg, .feature__icon svg, .empty-state__icon svg, .avatar svg { width: 100%; height: 100%; }
