/* ============================================================
   服装店 · 全站样式
   浅色 · 硬边 · 3 列商品
   ============================================================ */

@import url('https://fonts.loli.net/css2?family=Archivo+Black&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #F2F0EB;
  --fg: #0B0B0C;
  --dim: rgba(11,11,12,0.55);
  --line: rgba(11,11,12,0.14);
  --accent: #FF4D00;
  --accent-2: #C6FF00;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Sans', -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; }

/* ---------- 噪点 ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* ============================================================
   顶栏
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(242,240,235,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav .brand {
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.nav .brand .dot {
  width: 8px; height: 8px;
  background: var(--accent);
}

.nav .links {
  display: flex;
  gap: 22px;
  margin-left: 16px;
}
.nav .links a {
  font-size: 13px;
  color: var(--dim);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease, color 0.2s;
}
.nav .links a:hover {
  color: var(--fg);
  background-size: 100% 1px;
}

.nav .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav .search {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.nav .search input {
  background: transparent;
  border: none; outline: none;
  color: var(--fg);
  font-size: 13px;
  padding: 6px 0;
  width: 160px;
}
.nav .search input::placeholder { color: var(--dim); }

.nav .icon-btn {
  position: relative;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: color 0.2s;
}
.nav .icon-btn:hover { color: var(--accent); }
.nav .icon-btn svg { width: 18px; height: 18px; }

.nav .cart-num {
  position: absolute;
  top: -4px; right: -6px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav .cart-num[data-count="0"],
.nav .cart-num:empty { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 100px 0 40px;
}
.hero h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  max-width: 24ch;
  margin-bottom: 14px;
}
.hero h1 .accent { color: var(--accent); }
.hero .sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 56ch;
  margin-bottom: 26px;
}
.hero .meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  flex-wrap: wrap;
}
.hero .meta-row .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
}

/* ============================================================
   通栏色带
   ============================================================ */
.band {
  background: var(--accent);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 40px;
}
.band .band-inner {
  display: inline-flex;
  gap: 40px;
  padding-left: 40px;
  animation: marquee 30s linear infinite;
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.band .band-inner span::after {
  content: '·';
  margin-left: 40px;
  opacity: 0.5;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   分类条
   ============================================================ */
.cats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.cat {
  padding: 14px 22px;
  border-right: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.02em;
  transition: all 0.2s;
  white-space: nowrap;
}
.cat:last-child { border-right: none; }
.cat:hover { color: var(--fg); background: rgba(11,11,12,0.03); }
.cat.active {
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
}

/* ============================================================
   商品区头
   ============================================================ */
.shop-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}
.shop-head .title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.shop-head .title .num { color: var(--accent); margin-right: 10px; }
.shop-head .sort {
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
}

/* ============================================================
   商品网格（3 列）
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.card {
  background: var(--bg);
  padding: 20px 18px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.card:hover { background: #EAE7E0; }
.card:hover .card-img img { transform: scale(1.03); }
.card:hover .card-title {
  background-size: 100% 1px;
  color: var(--accent);
}

.card .card-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #E2DED6;
  margin-bottom: 16px;
  position: relative;
}
.card .card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card .card-img .no-img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(11,11,12,0.25);
  text-transform: uppercase;
}
.card .badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: #fff;
  font-family: 'Archivo Black', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  text-transform: uppercase;
}

.card .card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: 12px;
  align-self: flex-start;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease, color 0.2s;
}

.card .card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  gap: 10px;
  flex-wrap: wrap;
}
.card .price {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.card .price::before {
  content: '¥';
  font-size: 11px;
  margin-right: 3px;
}
.card .original {
  font-size: 12px;
  color: var(--dim);
  text-decoration: line-through;
  margin-left: 6px;
}
.card .stock {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}
.card .stock.out { color: var(--accent); font-weight: 600; }

/* ============================================================
   空状态
   ============================================================ */
.empty {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.empty .big {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(11,11,12,0.18);
  margin-bottom: 18px;
}
.empty p {
  font-size: 14px;
  color: var(--dim);
  max-width: 44ch;
  line-height: 1.7;
}

/* ============================================================
   文档页（关于 / 隐私 / 协议 / 配送 / 退换 / 尺码）
   ============================================================ */
.doc-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 0 60px;
}
.doc-page h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.doc-page .doc-date {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.doc-page h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.doc-page h2:first-of-type { border-top: none; padding-top: 0; margin-top: 24px; }
.doc-page p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(11,11,12,0.8);
  margin-bottom: 14px;
}
.doc-page ul, .doc-page ol {
  margin: 10px 0 18px 22px;
}
.doc-page li {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(11,11,12,0.8);
  margin-bottom: 6px;
}
.doc-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 14px 0 24px;
  border: 1px solid var(--line);
}
.doc-page th, .doc-page td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.doc-page th {
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(11,11,12,0.03);
}
.doc-page strong, .doc-page b { font-weight: 600; color: var(--fg); }

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  transition: all 0.2s;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.outline {
  background: transparent;
  color: var(--fg);
}
.btn.outline:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn.full { width: 100%; justify-content: center; }

/* ============================================================
   通用输入
   ============================================================ */
.field {
  margin-bottom: 20px;
}
.field > span {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--fg);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--fg);
}
.field textarea { resize: vertical; min-height: 80px; }

/* ============================================================
   页脚
   ============================================================ */
footer.foot {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}
footer.foot .foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
footer.foot .foot-brand {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
footer.foot .foot-brand .dot { color: var(--accent); }
footer.foot .foot-desc {
  font-size: 13px;
  color: var(--dim);
  max-width: 40ch;
  line-height: 1.7;
}
footer.foot h4 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
footer.foot ul { list-style: none; }
footer.foot ul li { margin-bottom: 8px; }
footer.foot ul a {
  font-size: 13px;
  color: var(--dim);
  transition: color 0.2s;
}
footer.foot ul a:hover { color: var(--fg); }
footer.foot .copy {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   滚动淡入
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav .links { display: none; }
  .nav .search input { width: 110px; }

  .hero { padding: 90px 0 30px; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  .cat { padding: 12px 16px; font-size: 12px; }

  .grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 16px 14px 14px; }
  .card .price { font-size: 16px; }

  footer.foot .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
}