:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f4f8;
  --ink: #121826;
  --muted: #667085;
  --line: #d9e0ea;
  --brand: #e64b36;
  --brand-dark: #b93224;
  --teal: #0f9b8e;
  --blue: #2563eb;
  --gold: #f2b84b;
  --green: #2e7d58;
  --shadow: 0 18px 42px rgba(18, 24, 38, 0.1);
  --radius: 8px;
  --max: 1280px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Avenir Next", sans-serif;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fbff 0%, #eef4f8 42%, #f7f8fb 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
button {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 3px;
  background: rgba(18, 24, 38, 0.08);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--teal), var(--blue));
  transition: width 0.16s ease;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: calc(10px + var(--safe-top));
  z-index: 40;
  padding-top: 12px;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid rgba(217, 224, 234, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(18, 24, 38, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 260px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.brand-logo svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 18px rgba(230, 75, 54, 0.22));
}

.brand-text {
  display: block;
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.brand-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 320px;
  max-width: 100%;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #475467;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: #eef3f8;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 360px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 420px);
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.search-box:focus-within {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--brand);
  font-size: 14px;
  font-weight: 800;
  flex: 0 0 auto;
}

.search-box input {
  flex: 1;
  font-size: 14px;
}

.header-cta,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-cta,
.primary-btn {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(230, 75, 54, 0.22);
}

.secondary-btn {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.header-cta:hover,
.primary-btn:hover,
.secondary-btn:hover,
.product-card:hover,
.category-card:hover,
.service-item:hover,
.offer-card:hover,
.brand-tile:hover {
  transform: translateY(-2px);
}

main {
  padding: 22px 0 calc(52px + var(--safe-bottom));
}

.hero {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 15, 24, 0.78) 0%, rgba(10, 15, 24, 0.46) 48%, rgba(10, 15, 24, 0.08) 100%),
    url("https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?auto=format&fit=crop&w=1800&q=82") center / cover;
  box-shadow: var(--shadow);
}

.hero-content {
  position: relative;
  width: min(620px, 100%);
  padding: 54px;
  color: #fff;
}

.label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero p {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-actions .secondary-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(560px, calc(100% - 36px));
  margin: -58px 0 0 36px;
  position: relative;
  z-index: 2;
}

.stat-item {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(18, 24, 38, 0.12);
}

.stat-item strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.stat-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section {
  padding: 62px 0 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-title h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.section-note {
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: right;
}

.promo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.deal-panel {
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.38)),
    url("https://images.unsplash.com/photo-1542291026-7eec264c27ff?auto=format&fit=crop&w=1300&q=82") center / cover;
  color: #fff;
  padding: 28px;
}

.deal-panel h2 {
  margin: 18px 0 12px;
  max-width: 520px;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0;
}

.deal-panel p {
  margin: 0;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.time-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-weight: 800;
}

.offer-stack {
  display: grid;
  gap: 18px;
}

.offer-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 150px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(18, 24, 38, 0.08);
  transition: transform 0.18s ease;
}

.offer-card img {
  width: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.offer-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.offer-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  min-height: 172px;
  padding: 18px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--blue);
  overflow: hidden;
  position: relative;
  transition: transform 0.18s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.category-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-copy small {
  width: fit-content;
  padding: 6px 9px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.category-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1.25;
}

.category-copy span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.6;
}

.collection-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.result-count {
  color: var(--muted);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(18, 24, 38, 0.08);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  box-shadow: 0 18px 38px rgba(18, 24, 38, 0.12);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-soft);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  flex: 1;
}

.tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius);
  color: var(--brand-dark);
  background: #fff0ed;
  font-weight: 700;
}

.product-info h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0;
}

.product-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.price strong {
  color: var(--brand);
  font-size: 22px;
  line-height: 1;
}

.price span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  text-decoration: line-through;
  font-size: 12px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.empty-state {
  display: none;
  margin-top: 16px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.lookbook {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.lookbook-main {
  min-height: 360px;
  padding: 28px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.18)),
    url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1400&q=82") center / cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lookbook-main h2 {
  margin: 14px 0 10px;
  max-width: 520px;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lookbook-main p {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.brand-tile,
.service-item {
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 24, 38, 0.08);
  transition: transform 0.18s ease;
}

.brand-tile strong,
.service-item strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.brand-tile .tile-copy,
.service-copy {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-item .service-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
}

.footer {
  margin-top: 58px;
  padding: 28px 0 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer strong {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .header-tools {
    justify-content: flex-start;
  }

  .header-cta {
    display: none;
  }

  .promo-grid,
  .lookbook {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100%, calc(100% - 20px));
  }

  .site-header {
    top: calc(6px + var(--safe-top));
  }

  .header-bar {
    gap: 10px;
  }

  .brand {
    flex-basis: 100%;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .header-tools,
  .search-box {
    width: 100%;
  }

  .hero {
    min-height: 470px;
    background-position: 62% center;
  }

  .hero-content {
    padding: 34px 24px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
    margin: 10px auto 0;
  }

  .section {
    padding-top: 44px;
  }

  .section-head {
    display: block;
  }

  .section-note {
    margin-top: 10px;
    text-align: left;
  }

  .deal-panel h2,
  .lookbook-main h2,
  .section-title h2 {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: 430px;
  }

  .hero-content {
    padding: 28px 18px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
  }

  .category-grid,
  .service-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .offer-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .offer-card img {
    width: 92px;
  }

  .deal-panel,
  .lookbook-main {
    min-height: 300px;
    padding: 22px;
  }
}