:root {
  --navy: #0b1f3a;
  --navy-2: #132c52;
  --accent: #19b8a8;
  --accent-dark: #0f8f83;
  --accent-soft: #e3f7f4;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --text: #15202e;
  --muted: #5d6b7c;
  --line: #dde3ea;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --error: #b42318;
  --error-soft: #fee4e2;
  --ok-soft: #dcfce7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3, .h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.section { padding: 40px 0; }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.note { font-size: .875rem; color: var(--muted); margin: -.3em 0 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- 顶栏 */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: #fff; }
.logo-main { font-weight: 800; font-size: 1.45rem; letter-spacing: .08em; }
.logo-sub { font-size: .58rem; letter-spacing: .62em; margin-top: 3px; padding-left: 2px; opacity: .9; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { color: #dbe5f2; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a.on { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.lang { border: 1px solid rgba(255, 255, 255, .25); }
.cart-link { color: #fff; position: relative; padding: 8px; display: inline-flex; }
.badge { position: absolute; top: 0; right: -2px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-left: auto; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .cart-link { margin-left: 0; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; box-shadow: 0 8px 16px rgba(0,0,0,.2); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.lang { text-align: center; margin-top: 6px; }
}

/* ---------- 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; min-height: 46px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); }
.btn-block { width: 100%; margin-top: 10px; }
.btn-small { padding: 6px 12px; min-height: 34px; font-size: .875rem; }
.btn-danger { background: var(--error); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.link-btn { background: none; border: 0; color: var(--error); cursor: pointer; padding: 6px; font: inherit; font-size: .875rem; }

/* ---------- 首页 */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); }
.hero .lead { font-size: 1.12rem; color: #c9d6e6; max-width: 34em; }
.hero-img img { border-radius: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.35); aspect-ratio: 1.15; object-fit: cover; width: 100%; }
@media (max-width: 820px) { .hero-inner { grid-template-columns: 1fr; padding-top: 32px; } }

.features4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 4px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 12px; font-weight: 700; }
.feature p { font-size: .95rem; }
@media (max-width: 900px) { .features4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .features4 { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { background: var(--bg-alt); border-radius: var(--radius); padding: 18px; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps p { margin: 0; }

/* ---------- 产品卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 20px 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line); overflow: hidden; }
.card-img img { max-height: 100%; width: auto; object-fit: contain; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 8px 0 6px; }
.card-body p { font-size: .92rem; flex: 1; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.tag-line { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.tag-warn { background: var(--warn-soft); color: var(--warn); vertical-align: middle; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.price small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.price.big { font-size: 1.9rem; margin: 8px 0 16px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .9rem; background: #fff; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- 产品详情 */
.back { display: inline-block; margin-bottom: 16px; text-decoration: none; color: var(--muted); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-main-img { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; place-items: center; aspect-ratio: 1; }
.product-main-img img { max-height: 100%; width: auto; }
.product-scene { margin-top: 14px; }
.product-scene img { border-radius: var(--radius); width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.lead-dark { font-size: 1.08rem; color: var(--muted); }
.buy { margin-top: 8px; }
.buy-row { display: flex; gap: 12px; align-items: flex-end; margin-top: 14px; }
.buy-row .btn { margin-top: 0; flex: 1; }
.qty input { width: 84px; }
.product-details { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { padding: 6px 0 6px 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 45%; }
@media (max-width: 820px) { .product, .product-details { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 表单 */
.field { display: block; margin-bottom: 14px; }
.label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.label em { color: var(--error); font-style: normal; }
.label.strong { margin-top: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input:not([type]), select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #c7d0db; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--text); min-height: 46px;
}
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[type=file] { font-size: .9rem; max-width: 100%; }
.check, .radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check input, .radio input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.check span:first-of-type, .radio span { flex: 1; }
fieldset { border: 0; margin: 0 0 16px; }
legend { font-weight: 700; font-size: 1.1rem; color: var(--navy); padding: 0; margin-bottom: 12px; float: left; width: 100%; }
legend + * { clear: both; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.three { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .two, .three { grid-template-columns: 1fr; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel-accent { border-color: var(--accent); background: var(--accent-soft); }
.install-box { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; }

.flash { padding: 12px 16px; border-radius: 10px; margin: 16px 0; }
.flash-ok { background: var(--ok-soft); color: #14532d; }
.flash-error { background: var(--error-soft); color: var(--error); }

/* ---------- 购物车 / 下单 */
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:last-child { border-bottom: 0; }
.line img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: #fff; }
.line-main a { color: var(--navy); text-decoration: none; }
.line-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.line-actions input { width: 72px; min-height: 36px; padding: 6px 8px; }
.line-total { font-weight: 700; }
.totals .row, .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1.1rem; }
.row.total small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.mini-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.sticky { position: sticky; top: 80px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .sticky { position: static; } }

/* ---------- 订单页 */
.thanks { text-align: center; padding: 10px 0 24px; }
.thanks-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 14px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.order-no { font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.status { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--bg-alt); color: var(--navy); }
.status-new { background: #dbeafe; color: #1e40af; }
.status-quoted { background: var(--warn-soft); color: var(--warn); }
.status-paid, .status-shipped, .status-scheduled { background: var(--accent-soft); color: var(--accent-dark); }
.status-completed { background: var(--ok-soft); color: #166534; }
.status-cancelled { background: #f1f5f9; color: #64748b; }
.progress { list-style: none; display: flex; padding: 0; margin: 0 0 20px; overflow-x: auto; }
.progress li { flex: 1; min-width: 0; padding-left: 2px; padding-right: 2px; text-align: center; font-size: .78rem; color: var(--muted); position: relative; padding-top: 22px; }
.progress li span { position: absolute; top: 4px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--line); z-index: 1; }
.progress li::before { content: ""; position: absolute; top: 10px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.progress li:first-child::before { display: none; }
.progress li.done span, .progress li.now span { background: var(--accent); }
.progress li.done::before, .progress li.now::before { background: var(--accent); }
.progress li.now { color: var(--navy); font-weight: 700; }
.progress li.now span { box-shadow: 0 0 0 4px var(--accent-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.file { display: inline-block; padding: 6px 10px; background: var(--bg-alt); border-radius: 8px; font-size: .8rem; }
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; background: var(--bg-alt); }
.bubble.me { align-self: flex-end; background: var(--accent-soft); }
.bubble .who { font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.bubble .text { white-space: pre-wrap; word-wrap: break-word; }
.bubble.sys { align-self: center; background: none; font-size: .8rem; color: var(--muted); padding: 2px 8px; }
.reply { border-top: 1px solid var(--line); padding-top: 14px; }

.contact-direct { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.contact-card { display: flex; flex-direction: column; text-decoration: none; color: var(--navy); margin: 0; }
.prose h2 { margin-top: 1.4em; font-size: 1.2rem; }

/* ---------- 页脚 */
.footer { background: var(--navy); color: #c9d6e6; margin-top: 40px; padding-top: 36px; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer a { color: #e6eef8; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.muted-light { color: #9fb0c6; margin-top: 12px; max-width: 30em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 16px; padding-bottom: 24px; color: #8597ad; font-size: .82rem; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
