* { box-sizing: border-box; }
:root {
  --bg: #eef3f6;
  --paper: #ffffff;
  --paper-soft: #f7fafb;
  --ink: #142027;
  --muted: #66737c;
  --line: #d9e2e7;
  --brand: #0b7a75;
  --brand-dark: #075a57;
  --gold: #d88a1d;
  --accent: #e5532d;
  --danger: #d92d20;
  --shadow: 0 18px 46px rgba(17, 31, 39, .12);
  --shadow-soft: 0 10px 28px rgba(17, 31, 39, .08);
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(232, 242, 244, .82), rgba(246, 248, 250, .98) 420px),
    var(--bg);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
.mobile {
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px;
}
.home-shell { padding-top: 14px; }
.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 18px;
  background: #13272b;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 28, 33, .88), rgba(9, 28, 33, .66) 38%, rgba(9, 28, 33, .24) 70%, rgba(9, 28, 33, .1)),
    linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .1));
  z-index: -1;
}
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
}
.brand-mark { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark > span {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  font-weight: 900;
}
.brand-mark strong { display: block; font-size: 18px; }
.brand-mark em { display: block; margin-top: 2px; color: rgba(255, 255, 255, .72); font-size: 12px; font-style: normal; }
.nav-btn { background: rgba(255,255,255,.94); color: #123034; }
.nav-btn:hover { background: #fff; }
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: end;
  padding: 72px 34px 34px;
}
.hero-copy { max-width: 660px; color: #fff; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 122, 117, .12);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}
.hero .eyebrow { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .92); border: 1px solid rgba(255,255,255,.22); }
.hero h1 { margin: 18px 0 14px; font-size: 48px; line-height: 1.08; letter-spacing: 0; }
.hero p { width: min(560px, 100%); color: rgba(255, 255, 255, .82); font-size: 17px; line-height: 1.8; }
.hero-search {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-top: 24px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 38px rgba(0,0,0,.22);
}
.hero-search .input { border-color: transparent; background: #f5f8f9; }
.hero-proof {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px);
  color: #fff;
}
.hero-proof div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.hero-proof div:last-child { border-bottom: 0; }
.hero-proof strong { font-size: 26px; }
.hero-proof span { color: rgba(255,255,255,.76); font-size: 13px; }
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}
.feature-strip div {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(217, 226, 231, .92);
  box-shadow: var(--shadow-soft);
}
.feature-strip strong { display: block; margin-bottom: 6px; font-size: 16px; }
.feature-strip span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0 20px;
}
.brand-title { font-size: 28px; font-weight: 850; letter-spacing: 0; }
.brand-subtitle { margin-top: 6px; color: var(--muted); font-size: 14px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.title { font-size: 24px; font-weight: 850; }
.link { color: var(--brand); font-size: 14px; font-weight: 800; }
.searchbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}
.search-input { min-width: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 2px 16px; }
.section-head h2 { margin: 8px 0 0; font-size: 28px; }
.list-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; margin: 2px 2px 14px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card, .section, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(11, 122, 117, .45); box-shadow: 0 20px 44px rgba(17, 31, 39, .16); }
.thumb-wrap { position: relative; overflow: hidden; background: #e8edf2; }
.thumb { width: 100%; aspect-ratio: 1 / 1; background: #e8edf2; object-fit: cover; transition: transform .22s ease; }
.product-card:hover .thumb { transform: scale(1.035); }
.placeholder-thumb { background: linear-gradient(135deg, #e8f2f1, #f4f5f0); }
.thumb-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(20, 32, 39, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.product-body { padding: 13px; display: grid; gap: 9px; }
.product-title { min-height: 44px; font-size: 15px; line-height: 1.45; font-weight: 800; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.price { color: var(--accent); font-size: 23px; font-weight: 900; letter-spacing: 0; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }
.status, .badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf7f5;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}
.btn {
  border: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.danger { background: var(--danger); }
.btn.ghost { background: #eef3f5; color: #1f3037; }
.btn.ghost:hover { background: #e0e8ec; }
.disabled { opacity: .45; cursor: not-allowed; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 0 8px; }
.pager-current { color: var(--muted); font-size: 14px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 18px; align-items: start; }
.detail-images { display: grid; gap: 10px; }
.detail-images img { width: 100%; max-height: 680px; border-radius: 12px; object-fit: cover; background: #e8edf2; border: 1px solid var(--line); }
.section { padding: 16px; margin-bottom: 14px; }
.detail-title { font-size: 25px; line-height: 1.35; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 10px; font-size: 14px; padding: 9px 0; border-bottom: 1px solid #edf0f3; }
.kv:last-child { border-bottom: 0; }
.bottom-buy { position: sticky; bottom: 0; padding: 10px 0 0; background: linear-gradient(180deg, rgba(238,243,246,0), var(--bg) 35%); }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: #34434b; font-weight: 750; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid #cbd7dd;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.input:focus, .textarea:focus, .select:focus { outline: 3px solid rgba(11, 122, 117, .16); border-color: var(--brand); }
.textarea { min-height: 96px; resize: vertical; }
.error { color: var(--danger); background: #fff1f0; border: 1px solid #ffd1cc; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 36px 16px; }
.order-card { padding: 14px; display: grid; gap: 7px; }
.ship-info { margin: 2px 0 0; color: var(--brand-dark); font-weight: 750; }
.pay-loading { min-height: 240px; display: grid; place-items: center; text-align: center; }
.spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #d8dee6;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.result-panel { text-align: center; display: grid; justify-items: center; gap: 8px; }
.result-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef7f5;
  color: var(--brand);
  font-size: 30px;
  font-weight: 900;
}
@keyframes spin { to { transform: rotate(360deg); } }
.site-footer {
  margin: 28px auto 0;
  padding: 18px 0 24px;
  color: #66737c;
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
  border-top: 1px solid var(--line);
}
.site-footer a { color: #4d5961; }
.beian-row { display: inline-flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.beian-row img { width: 16px; height: 16px; }

.admin { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; background: #f4f7f8; }
.side { background: #10282b; color: #fff; padding: 22px 18px; }
.side h1 { font-size: 18px; margin: 0 0 20px; }
.side a { display: block; padding: 10px 12px; color: #d7e5e6; border-radius: 10px; margin-bottom: 4px; }
.side a:hover { background: rgba(255,255,255,.09); color: #fff; }
.main { padding: 24px; min-width: 0; }
.main h2 { font-size: 22px; margin-bottom: 16px; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.admin-head h2 { margin-bottom: 6px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.stat { padding: 16px; color: var(--muted); }
.stat strong { display: block; color: var(--ink); font-size: 28px; margin-top: 8px; }
.toolbar { padding: 12px; margin-bottom: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.table-panel { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { border-bottom: 1px solid #e6edf0; padding: 11px 10px; text-align: left; vertical-align: top; font-size: 14px; }
.table th { background: #f8fafb; color: #34434b; font-weight: 850; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.compact { max-width: 160px; }
.compact.wide { max-width: 220px; }
.price-cell { color: var(--accent); font-weight: 850; white-space: nowrap; }
.detail-panel, .ship-form, .narrow-form { padding: 16px; }
.narrow-form { max-width: 520px; }
.notify-pre { max-width: 460px; max-height: 180px; overflow: auto; white-space: pre-wrap; margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: #34434b; }
.login { max-width: 400px; margin: 12vh auto; padding: 24px; }
.login-bg { min-height: 100vh; background: radial-gradient(circle at top, #e8f3f1 0, #f4f6f8 42%, #eef1f5 100%); }
.login-brand { margin-bottom: 18px; }
.login-brand h1 { margin-bottom: 6px; }

@media (max-width: 900px) {
  .mobile { padding: 14px; }
  .hero { min-height: auto; border-radius: 14px; }
  .hero-content { grid-template-columns: 1fr; padding: 42px 20px 24px; }
  .hero h1 { font-size: 36px; }
  .hero-proof { grid-template-columns: repeat(3, 1fr); }
  .hero-proof div { display: grid; gap: 4px; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.18); }
  .hero-proof div:last-child { border-right: 0; }
  .feature-strip { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .side { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .admin-head { flex-direction: column; }
  .compact, .compact.wide { max-width: none; }
}
@media (max-width: 560px) {
  .mobile { padding: 10px; }
  .hero-nav { padding: 14px; }
  .brand-mark em { display: none; }
  .hero-content { padding: 36px 14px 18px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .hero-search { grid-template-columns: 1fr auto; }
  .search-reset { grid-column: 1 / -1; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div { display: flex; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .site-header { grid-template-columns: 1fr; }
  .brand-title { font-size: 23px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .searchbar { grid-template-columns: 1fr auto; }
  .kv { grid-template-columns: 92px 1fr; }
}
