/* 零一未来 PC 站点样式 */
:root {
  --red: #e31c23;
  --red-dark: #c4161c;
  --red-soft: #fff1f1;
  --navy: #1b2433;
  --navy-2: #243044;
  --ink: #1d2129;
  --text: #4e5969;
  --muted: #86909c;
  --line: #e5e6eb;
  --bg: #f5f6f8;
  --card: #ffffff;
  --gold: #f5a623;
  --green: #00b42a;
  --shadow: 0 8px 24px rgba(28, 31, 35, 0.06);
  --radius: 10px;
  --w: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-width: 1200px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }
.wrap { width: var(--w); margin: 0 auto; }
.hidden { display: none !important; }

/* topbar */
.topbar {
  background: var(--navy);
  color: #c9d1d9;
  font-size: 12px;
  height: 36px;
}
.topbar .wrap {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar a:hover { color: #fff; }
.topbar-l span { margin-right: 18px; }
.topbar-r a { margin-left: 14px; }

/* header */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red), #ff6a3d);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -1px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 20px; color: var(--navy); }
.logo-text em { font-style: normal; font-size: 12px; color: var(--muted); margin-top: 3px; }

.search {
  flex: 1;
  display: flex;
  height: 44px;
  border: 2px solid var(--red);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.search select {
  border: 0;
  background: #fff7f7;
  padding: 0 10px;
  color: var(--ink);
  outline: none;
  width: 92px;
}
.search input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
}
.search button {
  width: 92px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.search button:hover { background: var(--red-dark); }

.header-user { display: flex; align-items: center; gap: 10px; min-width: 210px; justify-content: flex-end; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--red); color: var(--red); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-lg { height: 44px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.user-chip { font-size: 13px; color: var(--text); }
.user-chip b { color: var(--red); font-weight: 600; }

/* nav */
.nav {
  background: var(--navy);
  height: 46px;
}
.nav .wrap { display: flex; height: 46px; }
.nav a {
  color: #fff;
  padding: 0 26px;
  display: flex;
  align-items: center;
  font-size: 15px;
  position: relative;
}
.nav a:hover, .nav a.active { background: var(--red); }

/* footer */
.footer {
  background: #161c27;
  color: #9aa4b2;
  margin-top: 48px;
  padding: 40px 0 0;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2a3344;
}
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer p, .footer li { margin-bottom: 8px; line-height: 1.7; }
.footer a:hover { color: #fff; }
.icp a { color: #d0d7e0; }
.icp a:hover { color: #fff; text-decoration: underline; }
.footer-copy {
  text-align: center;
  padding: 16px 0;
  color: #7b8594;
  font-size: 12px;
}

/* hero */
.hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #111;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,20,28,.78) 0%, rgba(16,20,28,.28) 70%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 92px;
  max-width: 640px;
}
.hero-copy h2 { font-size: 36px; letter-spacing: 1px; margin-bottom: 12px; }
.hero-copy p { font-size: 16px; color: #e8edf3; margin-bottom: 22px; }
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dots span {
  width: 28px;
  height: 4px;
  background: rgba(255,255,255,.4);
  border-radius: 2px;
  cursor: pointer;
}
.hero-dots span.on { background: #fff; }

/* sections */
.section { padding: 28px 0 8px; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sec-head h3 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-head h3 i {
  width: 4px;
  height: 18px;
  background: var(--red);
  display: inline-block;
  border-radius: 2px;
}
.more { font-size: 13px; color: var(--muted); }
.more:hover { color: var(--red); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.cat-card img { height: 110px; width: 100%; object-fit: cover; }
.cat-card .body { padding: 12px 14px 14px; }
.cat-card .name { font-weight: 700; font-size: 15px; }
.cat-card .desc { font-size: 12px; color: var(--muted); margin-top: 4px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat {
  padding: 22px 10px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 26px; color: var(--red); }
.stat span { font-size: 13px; color: var(--muted); }

.list-grid, .prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.card:hover { transform: translateY(-3px); }
.card img.cover { width: 100%; height: 160px; object-fit: cover; }
.card .body { padding: 12px 14px 14px; }
.card .title {
  font-size: 14px;
  font-weight: 600;
  height: 44px;
  overflow: hidden;
}
.card .meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.price { color: var(--red); font-weight: 800; font-size: 18px; }
.price small { font-size: 12px; font-weight: 500; margin-left: 2px; }
.origin { color: var(--muted); text-decoration: line-through; font-size: 12px; margin-left: 6px; }
.tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px;
  color: var(--red);
  background: var(--red-soft);
  padding: 1px 6px;
  border-radius: 3px;
}

.cta-band {
  margin: 28px 0 8px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}
.cta-band .mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,36,51,.88), rgba(227,28,35,.55)); }
.cta-band .inner { position: relative; z-index: 1; padding: 42px 40px; }
.cta-band h3 { font-size: 26px; margin-bottom: 8px; }
.cta-band p { margin-bottom: 18px; color: #f0f3f7; }

/* page head */
.page-banner {
  background: var(--navy) url("../images/city1.jpg") center/cover;
  color: #fff;
  padding: 36px 0;
  position: relative;
}
.page-banner:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 28, 39, .72);
}
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner h1 { font-size: 28px; margin-bottom: 6px; }
.crumb { font-size: 13px; color: #c5ccd6; }
.crumb a:hover { color: #fff; }

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  padding: 22px 0 10px;
}
.layout .list-grid { grid-template-columns: repeat(3, 1fr); }
.side {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  height: fit-content;
}
.side h4 { font-size: 15px; margin-bottom: 10px; }
.side a, .side button.link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.side a:hover, .side a.on, .side button.link:hover, .side button.link.on {
  background: var(--red-soft);
  color: var(--red);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* detail */
.detail {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 24px;
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 22px;
}
.gallery img.main {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs img {
  width: 78px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
}
.thumbs img.on { border-color: var(--red); }
.detail-info h1 { font-size: 22px; line-height: 1.4; margin-bottom: 12px; }
.info-price {
  background: #fff7f7;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 12px 0;
}
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 12px 0; font-size: 14px; }
.kv span { color: var(--muted); margin-right: 8px; }
.panel {
  background: #fff;
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel h3 { margin-bottom: 12px; font-size: 18px; }
.panel p { color: var(--text); margin-bottom: 10px; }

.lock-box {
  border: 1px dashed #f0b4b4;
  background: #fffafa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
}
.lock-box .blur {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
  color: var(--ink);
}
.merchant-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 14px 0;
}
.merchant-mini img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

/* forms */
.form-page {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  padding: 22px 0;
}
.form-card, .guide-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.guide-card h3 { margin-bottom: 10px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.step {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
}
.step b { display: block; color: var(--red); margin-bottom: 4px; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.fee-table th, .fee-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.fee-table th { background: #fafafa; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.field label em { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text); }
.check input { margin-top: 3px; }
.check a { color: var(--red); }

.auth-wrap {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  background: url("../images/banner1.jpg") center/cover;
  position: relative;
}
.auth-wrap:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22,28,39,.55);
}
.auth-box {
  position: relative;
  z-index: 1;
  width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 32px 34px 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.auth-box h2 { margin-bottom: 6px; }
.auth-box .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.demo-tip {
  background: #fff7e8;
  color: #8a5a00;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.switch-auth { margin-top: 14px; font-size: 13px; color: var(--text); text-align: center; }
.switch-auth a { color: var(--red); }

.article {
  background: #fff;
  margin: 22px auto;
  padding: 32px 40px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 900px;
}
.article h1 { font-size: 24px; margin-bottom: 8px; }
.article .date { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.article h2 { font-size: 17px; margin: 22px 0 8px; }
.article p { color: var(--text); margin-bottom: 10px; text-align: justify; }

.merchant-head {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 22px;
}
.merchant-head .cover { height: 200px; width: 100%; object-fit: cover; }
.merchant-head .info { padding: 22px 24px 24px; }
.merchant-head h1 { font-size: 24px; margin-bottom: 8px; }

.empty {
  background: #fff;
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  border-radius: var(--radius);
}

.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(27,36,51,.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  z-index: 99;
  font-size: 14px;
}
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal {
  width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
}
.modal h3 { margin-bottom: 10px; }
.modal p { color: var(--text); margin-bottom: 16px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; }

.buy-bar { display: flex; gap: 10px; margin-top: 16px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 13px;
}
.chip.on { border-color: var(--red); color: var(--red); background: var(--red-soft); }

.note-list li { padding-left: 14px; position: relative; margin-bottom: 6px; color: var(--text); font-size: 13px; }
.note-list li:before { content: "·"; position: absolute; left: 2px; color: var(--red); font-weight: 700; }

.join-hero {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
  margin-top: 22px;
}
.join-hero img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 18px; }
.benefit { background: var(--bg); border-radius: 8px; padding: 14px; }
.benefit b { display: block; margin-bottom: 4px; }

.ok { color: var(--green); font-weight: 600; }
.err { color: var(--red); font-size: 13px; margin-top: 6px; min-height: 18px; }

/* header cart */
.cart-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  margin-right: 4px;
}
.cart-entry em {
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-user { min-width: auto; flex-wrap: wrap; }

/* qty */
.qty-row { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; font-size: 14px; }
.qty-box { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.qty-box button {
  width: 34px; height: 34px; border: 0; background: #f7f8fa; font-size: 16px; color: var(--ink);
}
.qty-box input {
  width: 52px; height: 34px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; outline: none;
}

/* cart / checkout */
.cart-box, .check-box, .pay-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 8px;
  margin-top: 18px;
}
.cart-row, .check-item {
  display: grid;
  grid-template-columns: 36px 88px 1fr 120px 140px 100px 70px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cart-row img, .check-item img { width: 88px; height: 66px; object-fit: cover; border-radius: 6px; }
.cart-head {
  display: grid;
  grid-template-columns: 36px 88px 1fr 120px 140px 100px 70px;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cart-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 12px;
}
.addr-list { display: grid; gap: 10px; margin: 12px 0 18px; }
.addr-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
}
.addr-card.on { border-color: var(--red); background: var(--red-soft); }
.addr-card b { display: block; margin-bottom: 4px; }
.pay-methods { display: grid; gap: 10px; margin: 12px 0 18px; }
.pay-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
}
.pay-card.on { border-color: var(--red); background: #fffafa; }
.pay-card .mark {
  width: 42px; height: 42px; border-radius: 8px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
}
.bank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 20px;
}
.bank-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  background: #fff;
}
.bank-card:hover, .bank-card.on { border-color: var(--red); color: var(--red); }
.steps-bar { display: flex; gap: 8px; margin: 18px 0 6px; font-size: 13px; color: var(--muted); }
.steps-bar span.on { color: var(--red); font-weight: 700; }
.steps-bar i { font-style: normal; color: #c9cdd4; }

/* join success */
.success-page {
  background: #fff;
  margin: 36px auto;
  max-width: 720px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 56px 40px;
  text-align: center;
}
.success-page .icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #e8f8ee; color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 36px; margin-bottom: 16px;
}
.success-page h1 { font-size: 24px; margin-bottom: 10px; }
.success-page p { color: var(--text); margin-bottom: 10px; }

/* gateway pages */
.gate-page { min-height: 100vh; }
.ali-top { background: #1677ff; color: #fff; height: 56px; display: flex; align-items: center; }
.ali-top .wrap { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.ali-body { padding: 40px 0; background: #f4f7fb; min-height: calc(100vh - 56px); }
.ali-card {
  width: 640px; margin: 0 auto; background: #fff; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(22,119,255,.12); padding: 28px 32px;
}
.wx-top { background: #07c160; color: #fff; height: 56px; display: flex; align-items: center; }
.wx-top .wrap { font-size: 18px; font-weight: 700; }
.wx-body { padding: 40px 0; background: #f6f6f6; min-height: calc(100vh - 56px); }
.bank-top { color: #fff; height: 56px; display: flex; align-items: center; }
.bank-top .wrap { font-size: 18px; font-weight: 700; }
.gate-amount { font-size: 36px; color: var(--ink); font-weight: 800; margin: 8px 0 18px; }
.gate-meta { font-size: 13px; color: var(--muted); line-height: 1.8; }
.spin-box { background: #fff; border-radius: 12px; padding: 36px 40px; text-align: center; width: 380px; }
.spinner {
  width: 48px; height: 48px; margin: 0 auto 16px;
  border: 4px solid #eee; border-top-color: var(--red); border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spin-box p { color: var(--text); margin-bottom: 8px; }
.order-empty { text-align: center; padding: 48px 0; color: var(--muted); }
