:root {
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 50; height: 44px;
  background: rgba(251, 251, 253, 0.8); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav-inner { max-width: 1024px; margin: 0 auto; height: 100%; padding: 0 22px; display: flex; align-items: center; gap: 32px; font-size: 12px; }
.nav-inner a { color: rgba(0,0,0,.8); }
.nav-inner a:hover { color: #000; text-decoration: none; }
.brand { font-weight: 600; font-size: 15px; margin-right: auto; display: flex; align-items: center; gap: 6px; }
.brand-dot { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #2b2b2e, #6b6b70); }

/* 促销条 */
.ribbon { background: var(--bg-alt); text-align: center; font-size: 14px; padding: 12px 22px; color: var(--text); }

/* 页头 */
.page-head { max-width: 1024px; margin: 0 auto; padding: 48px 22px 8px; }
.eyebrow { color: #bf4800; font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.page-head h1 { font-size: 48px; line-height: 1.08; font-weight: 600; letter-spacing: -0.003em; margin: 0; }
.page-head .sub { color: var(--muted); font-size: 17px; margin: 10px 0 0; }

/* 分段控件 */
.segmented { display: inline-flex; background: #e8e8ed; border-radius: 999px; padding: 3px; margin-top: 28px; }
.segmented button {
  border: 0; background: transparent; padding: 8px 22px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--text);
  transition: background .2s, box-shadow .2s;
}
.segmented button.on { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); font-weight: 600; }

/* 购买区主体 */
.buy { max-width: 1024px; margin: 0 auto; padding: 32px 22px 160px; display: grid; grid-template-columns: 1fr 380px; gap: 56px; }
.gallery { position: sticky; top: 76px; align-self: start; }
.stage {
  background: var(--bg-alt); border-radius: var(--radius); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
}
.stage svg, .stage img { width: 72%; height: auto; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.stage img { width: 62%; }
.stage.bump svg, .stage.bump img { transform: scale(1.04); }
.gallery-caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }

.config h2 { font-size: 24px; font-weight: 600; margin: 0 0 6px; line-height: 1.17; }
.config h2 span { color: var(--muted); }
.config .hint { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.step { padding: 32px 0; border-bottom: 1px solid var(--line); }
.step:first-child { padding-top: 0; }

.options { display: grid; gap: 14px; }
.opt {
  display: block; width: 100%; text-align: left; background: #fff; cursor: pointer;
  border: 1px solid #86868b; border-radius: 12px; padding: 16px 18px; transition: border-color .15s, box-shadow .15s;
}
.opt:hover { border-color: #424245; }
.opt.on { border: 2px solid var(--blue); padding: 15px 17px; }
.opt:disabled { opacity: .4; cursor: not-allowed; }
.opt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.opt-name { font-weight: 600; font-size: 17px; }
.opt-price { font-size: 14px; white-space: nowrap; }
.opt ul { margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; line-height: 1.6; }
.badge { display: inline-block; color: #bf4800; font-size: 12px; font-weight: 600; margin-bottom: 2px; }

.options.row { grid-template-columns: repeat(3, 1fr); }
.options.row .opt { text-align: center; padding: 14px 8px; }
.options.row .opt.on { padding: 13px 7px; }
.options.row .opt-price { display: block; color: var(--muted); margin-top: 2px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid #86868b; border-radius: 12px; overflow: hidden; }
.stepper button { width: 48px; height: 48px; border: 0; background: #fff; font-size: 22px; cursor: pointer; }
.stepper button:hover { background: var(--bg-alt); }
.stepper input { width: 70px; height: 48px; border: 0; text-align: center; font-size: 17px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper-unit { margin-left: 12px; color: var(--muted); }

.field { display: block; margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; border: 1px solid #86868b; border-radius: 12px; padding: 14px 16px; font-size: 17px; background: #fff; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.field textarea { min-height: 84px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue); }

.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-top: 32px; font-size: 14px; }
.perks div strong { display: block; font-size: 14px; }
.perks div span { color: var(--muted); }

/* 底部固定价格栏 */
.bag {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0,0,0,.08);
}
.bag-inner { max-width: 1024px; margin: 0 auto; padding: 16px 22px; display: flex; align-items: center; gap: 24px; }
.bag-summary { flex: 1; min-width: 0; }
.bag-summary .t { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bag-summary .p { font-size: 24px; font-weight: 600; }
.btn {
  display: inline-block; border: 0; border-radius: 980px; background: var(--blue); color: #fff; cursor: pointer;
  padding: 12px 28px; font-size: 17px; font-weight: 400; min-width: 140px; text-align: center; transition: background .15s;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn:disabled { background: #b8d6f5; cursor: default; }
.btn.secondary { background: #e8e8ed; color: var(--text); }
.error { color: #e30000; font-size: 14px; margin-top: 8px; min-height: 1em; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.4); display: none; place-items: center; padding: 22px; }
.modal.open { display: grid; animation: fade .2s; }
.sheet { background: #fff; border-radius: 22px; max-width: 460px; width: 100%; padding: 40px 36px 32px; text-align: center; animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.sheet .ok { width: 56px; height: 56px; border-radius: 50%; background: #34c759; color: #fff; font-size: 30px; display: grid; place-items: center; margin: 0 auto 16px; }
.sheet h3 { font-size: 28px; margin: 0 0 8px; font-weight: 600; }
.sheet p { color: var(--muted); margin: 0 0 6px; }
.sheet .oid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; color: var(--text); background: var(--bg-alt); border-radius: 10px; padding: 10px; margin: 16px 0; user-select: all; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }

/* 通用窄页面（查询 / 条款 / 后台） */
.narrow { max-width: 692px; margin: 0 auto; padding: 56px 22px 80px; }
.narrow h1 { font-size: 40px; font-weight: 600; margin: 0 0 8px; line-height: 1.1; }
.narrow h2 { font-size: 21px; margin: 32px 0 8px; }
.narrow p, .narrow li { color: #424245; }
.card { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.kv { display: grid; grid-template-columns: 100px 1fr; gap: 8px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #e8e8ed; }
.pill.pending { background: #fff4e5; color: #b25e00; }
.pill.paid { background: #e5f1ff; color: #0058b0; }
.pill.active { background: #e3f9e9; color: #1a7f37; }
.pill.cancelled, .pill.expired { background: #f1f1f3; color: #86868b; }

.wide { max-width: 1200px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 24px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 400; }
select { font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

footer { background: var(--bg-alt); color: var(--muted); font-size: 12px; padding: 20px 22px; }
footer .in { max-width: 1024px; margin: 0 auto; display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: #424245; }

@media (max-width: 860px) {
  .buy { grid-template-columns: 1fr; gap: 28px; padding-bottom: 180px; }
  .gallery { position: static; }
  .stage { aspect-ratio: 16 / 10; }
  .stage svg { width: 50%; }
  .stage img { width: 42%; }
  .page-head h1 { font-size: 34px; }
  .nav-inner { gap: 18px; }
}
@media (max-width: 480px) {
  .options.row { grid-template-columns: 1fr; }
  .bag-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn { width: 100%; }
  .perks { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 80px 1fr; }
}

/* 租借时间 / 附加服务 */
.sublabel { display: block; font-size: 14px; font-weight: 600; margin: 4px 0 8px; }
.period { margin-top: 16px; background: var(--bg-alt); border-radius: 12px; padding: 14px 16px; font-size: 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.period dt { color: var(--muted); }
.period dd { margin: 0; }
.opt.addon { display: flex; gap: 14px; align-items: flex-start; }
.opt.addon .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #86868b; margin-top: 1px;
  display: grid; place-items: center; color: #fff; font-size: 13px; transition: background .15s, border-color .15s;
}
.opt.addon.on .tick { background: var(--blue); border-color: var(--blue); }
.opt.addon .body { flex: 1; min-width: 0; }
.opt .desc, .opt.addon .desc { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* 租期卡片 */
.options.terms { grid-template-columns: repeat(2, 1fr); }
.options.terms .opt { padding: 16px; }
.options.terms .opt.on { padding: 15px; }
.options.terms .opt:first-child { grid-column: 1 / -1; }
.term-price { font-size: 17px; margin-top: 6px; }
.term-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.save { color: #bf4800; font-size: 12px; font-weight: 600; }
@media (max-width: 480px) { .options.terms { grid-template-columns: 1fr; } }
td { white-space: pre-line; }

/* 联系我们 */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 24px; }
.contact-card { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; }
.contact-label { font-size: 14px; color: var(--muted); }
.contact-value { font-size: 19px; font-weight: 600; margin: 4px 0 10px; word-break: break-all; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font-size: 15px; }
.link-btn:hover { text-decoration: underline; }
.ok-text { color: #1a7f37; margin: 12px 0 0; }
.footer-contact { flex-basis: 100%; }
.help { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* 币种切换 / 支付页 */
.segmented.small { margin-top: 0; }
.segmented.small button { padding: 6px 14px; font-size: 13px; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.pay-method { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pay-method strong { display: block; font-size: 15px; }
.pay-method span { font-size: 12px; color: var(--muted); }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.pay-total .p { font-size: 28px; font-weight: 600; }
.notice { background: #fff8e6; border-radius: 12px; padding: 14px 16px; font-size: 14px; color: #6b4a00; margin-top: 20px; }
.steps-list { color: #424245; font-size: 15px; padding-left: 20px; margin-top: 16px; }
.steps-list li { margin-bottom: 6px; }

/* 手机端：导航不换行、底部价格栏压缩 */
.error:empty { display: none; }
.nav-inner { white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
@media (max-width: 480px) {
  .nav-inner { gap: 16px; padding: 0 16px; }
  /* 窄屏：产品链接与首页的切换按钮重复，隐藏以免「联系我们」「账户」被挤出屏幕 */
  .nav-inner a[href^="/?c="] { display: none; }
  .brand { font-size: 14px; }
  .ribbon { font-size: 12px; padding: 10px 16px; }
  .page-head { padding: 32px 16px 0; }
  .buy { padding-left: 16px; padding-right: 16px; padding-bottom: 150px; }
  .bag-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .bag-inner > div:last-child { grid-column: 1 / -1; }
  .bag-summary .t { font-size: 12px; }
  .bag-summary .p { font-size: 20px; }
  .bag .btn { padding: 11px 20px; }
}

/* 付款成功 / 后台设置开关 */
.paid-box { background: var(--bg-alt); border-radius: var(--radius); padding: 32px 24px; text-align: center; margin-top: 24px; }
.paid-box .ok { width: 56px; height: 56px; border-radius: 50%; background: #34c759; color: #fff; font-size: 30px; display: grid; place-items: center; margin: 0 auto 12px; }
.paid-box h2 { margin: 0 0 8px; }
.settings { display: grid; gap: 12px; margin-top: 16px; max-width: 560px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg-alt); border-radius: 14px; padding: 14px 18px; }
.switch-row strong { display: block; font-size: 16px; }
.switch-row span { font-size: 13px; color: var(--muted); }
.switch { position: relative; flex: none; width: 51px; height: 31px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: #e9e9eb; border-radius: 999px; transition: background .2s; cursor: pointer; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; background: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .track { background: #34c759; }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:disabled + .track { opacity: .5; cursor: not-allowed; }

/* 我的账户 */
.order-card { margin-top: 16px; }
.order-card .opt-top { margin-bottom: 12px; }
details.card { margin-top: 16px; }
details.card summary { cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: '›'; float: right; color: var(--muted); transition: transform .2s; }
details.card[open] summary::after { transform: rotate(90deg); }

/* 语言切换 */
.lang-pick { position: relative; display: flex; align-items: center; gap: 4px; color: rgba(0,0,0,.8); flex: none; }
.lang-pick select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 12px;
  color: inherit; padding: 4px 2px; cursor: pointer;
}
.lang-pick select:focus-visible { outline: 2px solid var(--blue); border-radius: 4px; }
:lang(ja) body { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
:lang(ko) body { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
:lang(zh-TW) body { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif; }
:lang(en) body { letter-spacing: -0.016em; }
/* 西文 / 韩文标题：主标题与灰色副标题之间留空格 */
:lang(en) h1 > span::before, :lang(en) h2 > span::before, :lang(ko) h2 > span::before { content: ' '; }
/* 手机上导航可横向滚动，语言切换固定在右侧始终可见 */
@media (max-width: 860px) {
  .lang-pick { position: sticky; right: -16px; margin-right: -16px; padding: 0 16px 0 14px; height: 100%; background: linear-gradient(to right, rgba(251,251,253,0), #fbfbfd 12px); }
}
:lang(ko) body { word-break: keep-all; }
.footer-legal { flex-basis: 100%; color: #86868b; font-size: 11px; }
