:root {
  --v2-blue: #007bff;
  --v2-blue-dark: #0062cc;
  --v2-text: #333;
  --v2-muted: #888;
  --v2-bg: #f4f6f8;
  --v2-price: #e4393c;
  --v2-line: #e8eaed;
  --v2-sidebar: 210px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--v2-bg);
  color: var(--v2-text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
.hidden { display: none !important; }
.v2-wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

.v2-topbar {
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #666;
}
.v2-topbar .v2-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
}
.v2-topbar a, .v2-topbar button {
  background: none;
  border: 0;
  color: #666;
  cursor: pointer;
  padding: 0 6px;
}
.v2-topbar a:hover, .v2-topbar button:hover { color: var(--v2-blue); }

.v2-head {
  background: #fff;
  padding: 16px 0 0;
}
.v2-head-row {
  display: flex;
  align-items: center;
  gap: 28px;
}
.v2-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
  max-width: 22rem;
}
.v2-logo img { height: 42px; width: auto; object-fit: contain; }
.v2-logo-mark {
  width: 42px; height: 42px;
  background: var(--v2-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.v2-logo-text { font-size: 15px; font-weight: 800; color: #1f2a38; letter-spacing: .02em; line-height: 1.25; }
.v2-search {
  flex: 1;
  display: flex;
  max-width: 640px;
}
.v2-search input {
  flex: 1;
  height: 44px;
  border: 0;
  background: #f3f4f6;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
}
.v2-search button {
  width: 128px;
  border: 0;
  background: var(--v2-blue);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.v2-search button:hover { background: var(--v2-blue-dark); }

.v2-nav {
  margin-top: 16px;
  display: flex;
  align-items: stretch;
}
.v2-cat-btn {
  width: var(--v2-sidebar);
  background: var(--v2-blue);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 42px;
  font-weight: 700;
  flex-shrink: 0;
}
.v2-nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  background: #fff;
  font-size: 15px;
  color: var(--v2-blue);
}
.v2-nav-links a.active, .v2-nav-links a:hover { font-weight: 700; }
.v2-cart {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--v2-blue);
  position: relative;
  padding-right: 4px;
}
.v2-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  background: #e4393c;
  color: #fff;
  border-radius: 99px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.v2-hero-row { position: relative; background: #fff; }
.v2-sidecat {
  width: var(--v2-sidebar);
  background: #fff;
  border-right: 1px solid var(--v2-line);
  flex-shrink: 0;
}
.v2-sidecat-home {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  background: #fff;
}
.v2-sidecat a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}
.v2-sidecat a:hover, .v2-sidecat a.is-on { background: #f7fbff; color: var(--v2-blue); }
.v2-sidecat svg { width: 18px; height: 18px; color: var(--v2-blue); flex-shrink: 0; }
.v2-hero {
  position: relative;
  width: 100%;
  min-height: 360px;
  height: 360px;
  overflow: hidden;
  background: #dbe4ee;
}
.v2-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s;
}
.v2-hero img.is-on { opacity: 1; }
.v2-hero-copy {
  position: absolute;
  right: 48px;
  bottom: 48px;
  left: auto;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  max-width: 460px;
  text-align: right;
  z-index: 2;
  pointer-events: none;
}
.v2-hero-copy h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
.v2-hero-copy p { margin: 0; font-size: 14px; opacity: .92; }
.v2-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.v2-hero-dots button {
  width: 8px; height: 8px; border-radius: 99px; border: 0;
  background: rgba(255,255,255,.55); cursor: pointer;
}
.v2-hero-dots button.is-on { background: #fff; width: 18px; }

.v2-section { padding: 28px 0; }
.v2-section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
}
.v2-hot {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.v2-hot a {
  background: #fff;
  padding: 12px;
  display: block;
}
.v2-hot img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fafafa; }
.v2-hot p { margin: 10px 0 0; font-size: 13px; height: 40px; overflow: hidden; }
.v2-hot strong { display: block; margin-top: 6px; color: var(--v2-price); font-size: 16px; }

.v2-floor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.v2-floor-head h3 { margin: 0; font-size: 20px; }
.v2-floor-head h3 em {
  font-style: normal;
  color: var(--v2-blue);
  margin-right: 8px;
}
.v2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.v2-card {
  background: #fff;
  padding: 12px;
  display: block;
}
.v2-card:hover { box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.v2-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fafafa; }
.v2-card .name { margin: 10px 0 4px; font-size: 14px; height: 40px; overflow: hidden; line-height: 1.4; }
.v2-card .price { color: var(--v2-price); font-size: 18px; font-weight: 700; }
.v2-card .market { color: #999; font-size: 12px; text-decoration: line-through; margin-left: 6px; font-weight: 400; }

.v2-foot {
  background: #fff;
  border-top: 1px solid var(--v2-line);
  margin-top: 24px;
  padding: 28px 0 18px;
  font-size: 13px;
  color: #666;
}
.v2-foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 18px;
}
.v2-foot h4 { margin: 0 0 10px; color: #333; }
.v2-foot a { display: block; padding: 3px 0; }
.v2-foot a:hover { color: var(--v2-blue); }
.v2-copy { text-align: center; color: #999; font-size: 12px; border-top: 1px solid #f0f0f0; padding-top: 14px; }
.v2-copy a { color: #999; }
.v2-copy a:hover { color: var(--v2-blue); }

.v2-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 70;
}
.v2-mask.is-open { display: block; }
.v2-drawer-hd { display: none; }
body.is-pc #aisle-drawer,
body.is-pc #aisle-mask { display: none !important; }
.v2-hamb { display: none; }
.v2-checkout-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--v2-line);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.v2-box .v2-cart-row { grid-template-columns: 64px 1fr auto; }
.v2-account-hero {
  background: var(--v2-blue);
  color: #fff;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.v2-account-hero .v2-btn { margin: 8px 6px 0; }
.v2-menu-list { background: #fff; }
.v2-menu-list a, .v2-menu-list button {
  display: flex;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
}
.v2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.v2-stats div { background: #fff; padding: 14px; text-align: center; }
.v2-stats strong { display: block; font-size: 20px; color: var(--v2-blue); }
.v2-help h2 { font-size: 18px; margin: 22px 0 10px; }
.v2-help h2:first-child { margin-top: 0; }
.v2-help p { line-height: 1.8; color: #555; }
.v2-help-note { font-size: 13px; color: #888; }
.v2-scope {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.v2-scope li {
  background: #f4f6f8;
  padding: 8px 12px;
  font-size: 13px;
}
.v2-help details { background: #fff; padding: 12px 14px; margin-bottom: 8px; }
.v2-help summary { cursor: pointer; font-weight: 700; }

.v2-tabbar { display: none; }

.v2-crumb { font-size: 13px; color: #888; padding: 14px 0; }
.v2-crumb a:hover { color: var(--v2-blue); }

.v2-list-layout { display: flex; gap: 16px; align-items: flex-start; }
.v2-filter {
  width: 200px;
  background: #fff;
  padding: 14px;
  flex-shrink: 0;
}
.v2-filter h4 { margin: 0 0 10px; font-size: 14px; }
.v2-filter a { display: block; padding: 8px 10px; font-size: 13px; }
.v2-filter a.is-on { background: #eef6ff; color: var(--v2-blue); font-weight: 700; }
.v2-list-main { flex: 1; min-width: 0; }
.v2-toolbar {
  background: #fff;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #666;
}

.v2-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; background: #fff; padding: 24px; }
.v2-gallery img.main { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fafafa; }
.v2-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.v2-thumbs button { border: 1px solid #eee; padding: 0; background: #fff; cursor: pointer; }
.v2-thumbs img { width: 64px; height: 64px; object-fit: contain; }
.v2-summary h1 { margin: 0 0 8px; font-size: 22px; line-height: 1.4; }
.v2-summary .sub { color: #888; margin: 0 0 16px; }
.v2-pricebox { background: #f4f4f4; padding: 14px 16px; margin-bottom: 16px; }
.v2-pricebox strong { color: var(--v2-price); font-size: 28px; }
.v2-meta { display: flex; gap: 16px; color: #888; font-size: 13px; margin-bottom: 18px; }
.v2-qty { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.v2-qty button { width: 32px; height: 32px; border: 1px solid #ddd; background: #fff; cursor: pointer; }
.v2-qty input { width: 52px; height: 32px; text-align: center; border: 1px solid #ddd; }
.v2-actions { display: flex; gap: 12px; }
.v2-btn {
  border: 0;
  height: 44px;
  padding: 0 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}
.v2-btn.primary { background: var(--v2-blue); color: #fff; }
.v2-btn.ghost { background: #fff; color: var(--v2-blue); border: 1px solid var(--v2-blue); }
.v2-long { background: #fff; margin-top: 16px; padding: 20px; }
.v2-long h2 { margin: 0 0 12px; font-size: 18px; }
.v2-long img { margin: 8px auto; }

.v2-cart-page, .v2-box { background: #fff; padding: 20px; }
.v2-cart-row {
  display: grid;
  grid-template-columns: 24px 80px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.v2-form input, .v2-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.v2-ok { padding: 40px 20px; text-align: center; }

#auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#auth-modal.hidden { display: none !important; }
.v2-modal {
  background: #fff;
  width: min(380px, 100%);
  padding: 22px;
}
.v2-modal input {
  width: 100%;
  border: 1px solid #ddd;
  padding: 10px 12px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .v2-topbar { display: none; }
  .v2-head { padding: 10px 0 0; }
  .v2-head-row { gap: 10px; }
  .v2-logo-text { display: none; }
  .v2-logo { max-width: 48px; }
  .v2-logo img { height: 42px; width: 42px; }
  .v2-search button { width: 88px; font-size: 12px; }
  .v2-search button svg { display: none; }
  .v2-nav-links { display: none; }
  .v2-hamb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: var(--v2-blue);
    color: #fff;
    border: 0;
    cursor: pointer;
  }
  .v2-cat-btn { display: none; }
  .v2-hero-row { display: block; }
  .v2-sidecat-home { display: none; }
  .v2-sidecat {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 75;
    transform: translateX(-100%);
    transition: transform .2s;
    box-shadow: 8px 0 24px rgba(0,0,0,.12);
    overflow: auto;
  }
  .v2-sidecat.is-open { transform: translateX(0); }
  .v2-drawer-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--v2-blue);
    color: #fff;
    font-weight: 700;
  }
  .v2-drawer-hd button {
    background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer;
  }
  .v2-hero { min-height: 200px; height: 200px; }
  .v2-hero-copy { left: 16px; right: 16px; bottom: 28px; text-align: left; max-width: none; }
  .v2-hero-copy h2 { font-size: 20px; }
  .v2-hot { grid-template-columns: repeat(2, 1fr); }
  .v2-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-list-layout { display: block; }
  .v2-filter { width: auto; margin-bottom: 12px; }
  .v2-detail { grid-template-columns: 1fr; padding: 14px; }
  .v2-foot-cols { grid-template-columns: 1fr 1fr; }
  .v2-tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-top: 1px solid var(--v2-line);
    z-index: 60;
    height: 52px;
  }
  .v2-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    gap: 2px;
    color: #666;
  }
  .v2-tabbar a.is-on { color: var(--v2-blue); font-weight: 700; }
  body { padding-bottom: 56px; }
  .v2-checkout-bar { bottom: 56px !important; }
}
