:root {
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --ink: #20242a;
  --muted: #646b73;
  --line: #dfd7cc;
  --red: #c9493d;
  --teal: #126c72;
  --gold: #b8873b;
  --night: #26313f;
  --shadow: 0 18px 60px rgba(32, 36, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.site-header.scrolled,
.site-header.open {
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(32, 36, 42, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: currentColor;
  font-size: 0.72rem;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.92rem;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.site-header.scrolled .site-nav a:hover,
.site-header.open .site-nav a:hover {
  background: #eee7dc;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 128px clamp(20px, 6vw, 80px) 70px;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 16, 22, 0.82), rgba(13, 16, 22, 0.34) 48%, rgba(13, 16, 22, 0.06)),
    linear-gradient(0deg, rgba(13, 16, 22, 0.58), rgba(13, 16, 22, 0.04) 42%);
}

.hero-content {
  position: relative;
  max-width: 680px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.split h2,
.contact h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 12em;
  font-size: clamp(3rem, 7vw, 6.5rem);
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.56);
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
}

.band {
  padding: clamp(44px, 7vw, 84px) clamp(20px, 6vw, 80px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--night);
  color: #fff;
}

.stats div {
  min-height: 118px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.stats strong {
  display: block;
  color: #f2c166;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: clamp(58px, 8vw, 110px) clamp(20px, 6vw, 80px);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section h2,
.split h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.section-heading p:not(.eyebrow),
.contact p {
  color: var(--muted);
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-height: 270px;
  border-radius: 8px;
  padding: 26px;
  color: #fff;
  box-shadow: var(--shadow);
}

.product-card.red {
  background: linear-gradient(145deg, #c9493d, #812d36);
}

.product-card.teal {
  background: linear-gradient(145deg, #126c72, #123f52);
}

.product-card.ink {
  background: linear-gradient(145deg, #344153, #1d2530);
}

.tag {
  display: inline-block;
  margin-bottom: 56px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.65rem;
}

.product-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.card-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  padding: 9px 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.section-button {
  margin-top: 22px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.catalog-item {
  display: grid;
  gap: 22px;
  align-content: space-between;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
}

.stock-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: rgba(18, 108, 114, 0.1);
  color: var(--teal);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.catalog-item h3,
.item-info h3 {
  margin: 12px 0 8px;
  line-height: 1.25;
}

.catalog-item p,
.item-info p {
  margin: 0;
  color: var(--muted);
}

.catalog-item dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.catalog-item dl div {
  background: #fff;
  padding: 12px;
}

.catalog-item dt,
.catalog-item dd {
  margin: 0;
}

.catalog-item dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.catalog-item dd {
  margin-top: 3px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: #fffdf8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.figure-list {
  display: grid;
  gap: 14px;
}

.figure-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.figure-list strong {
  font-size: 1.15rem;
}

.figure-list span {
  color: var(--muted);
}

.product-showcase {
  background: #f4eee5;
}

.item-list {
  display: grid;
  gap: 12px;
}

.item-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  padding: 18px;
}

.item-thumb {
  display: grid;
  width: 180px;
  min-height: 180px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
}

.item-image {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.item-image-button {
  position: relative;
  width: 180px;
  height: 180px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
  padding: 0;
}

.item-image-button span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: rgba(13, 16, 22, 0.82);
  color: #fff;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.item-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.item-details div {
  background: #fff;
  padding: 12px;
}

.item-details dt,
.item-details dd {
  margin: 0;
}

.item-details dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.item-details dd {
  margin-top: 4px;
  font-weight: 900;
}

.card-thumb {
  background: linear-gradient(145deg, var(--red), #7f2f35);
}

.figure-thumb {
  background: linear-gradient(145deg, var(--teal), #25384a);
}

.item-meta {
  display: grid;
  gap: 6px;
  align-content: end;
  justify-items: end;
  text-align: right;
}

.item-meta strong {
  font-size: 1.18rem;
}

.item-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.buy-link {
  display: inline-flex;
  justify-content: center;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

.product-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
}

.product-pagination button {
  min-width: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 9px 12px;
}

.product-pagination button[aria-current="page"] {
  background: var(--night);
  color: #fff;
}

.product-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(13, 16, 22, 0.92);
  padding: 28px;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
}

.lightbox-nav {
  top: 50%;
  width: 46px;
  height: 64px;
  transform: translateY(-50%);
  font-size: 2.4rem;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-nav:disabled {
  cursor: default;
  opacity: 0.28;
}

.lightbox-count {
  position: fixed;
  bottom: 18px;
  left: 50%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 7px 12px;
  transform: translateX(-50%);
  font-weight: 900;
}

.shop-page {
  background: var(--bg);
}

.shop-main {
  padding-top: 78px;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(54px, 8vw, 100px) clamp(20px, 6vw, 80px);
}

.shop-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 1;
}

.shop-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.shop-tabs a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 800;
}

.shop-tabs a.active {
  background: var(--night);
  color: #fff;
}

.shop-products {
  padding: clamp(44px, 7vw, 84px) clamp(20px, 6vw, 80px);
}

.shop-products .item-list {
  max-width: 1120px;
}

.shop-note {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 18px;
}

.rank-guide {
  max-width: 1120px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: clamp(18px, 3vw, 26px);
}

.rank-guide h3 {
  margin: 4px 0 8px;
  font-size: 1.35rem;
}

.rank-guide p {
  margin: 0;
  color: var(--muted);
}

.rank-guide dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.rank-guide dl div {
  background: #fff;
  padding: 13px;
}

.rank-guide dt,
.rank-guide dd {
  margin: 0;
}

.rank-guide dt {
  color: var(--red);
  font-weight: 900;
}

.rank-guide dd {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.rank-note {
  margin-top: 14px !important;
  border-left: 4px solid var(--gold);
  padding-left: 12px;
  font-size: 0.9rem;
}

.buyback {
  background: var(--paper);
}

.buyback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.buyback-grid article {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
}

.buyback-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--night);
  color: #fff;
  font-weight: 900;
}

.buyback-grid h3 {
  margin: 34px 0 10px;
  font-size: 1.35rem;
}

.buyback-grid p {
  margin: 0;
  color: var(--muted);
}

.buyback-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  border-radius: 8px;
  background: #26313f;
  color: #fff;
  padding: 22px;
}

.buyback-flow strong,
.buyback-flow span {
  display: block;
}

.buyback-flow span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
}

.service {
  background: #eef4f2;
}

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

.service-steps article {
  min-height: 230px;
  border: 1px solid rgba(18, 108, 114, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  padding: 26px;
}

.service-steps span {
  color: var(--teal);
  font-weight: 900;
}

.service-steps h3 {
  margin: 34px 0 10px;
  font-size: 1.35rem;
}

.service-steps p {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: var(--paper);
}

.inquiry-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow);
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.inquiry-form input,
.inquiry-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.loading-note {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  color: var(--muted);
  padding: 20px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 30px clamp(20px, 6vw, 80px);
  background: #20242a;
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand span {
  display: block;
  color: #fff;
  font-weight: 800;
}

.footer-brand small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
  font-style: normal;
}

.footer-contact a {
  width: fit-content;
}

.footer-contact a:hover {
  color: #fff;
}

@media (max-width: 860px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .site-header.open .site-nav {
    display: grid;
  }

  .hero {
    min-height: 88vh;
    padding-top: 112px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(13, 16, 22, 0.82), rgba(13, 16, 22, 0.28)),
      linear-gradient(0deg, rgba(13, 16, 22, 0.66), rgba(13, 16, 22, 0.12));
  }

  .stats,
  .product-grid,
  .catalog-grid,
  .buyback-grid,
  .service-steps,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .buyback-flow {
    display: grid;
  }

  .shop-main {
    padding-top: 72px;
  }

  .shop-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    padding: 46px 20px 34px;
  }

  .shop-hero h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 10vw, 4rem);
    line-height: 1.08;
    word-break: keep-all;
  }

  .shop-tabs {
    justify-content: flex-start;
  }

  .rank-guide dl {
    grid-template-columns: 1fr;
  }

  .item-row {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 14px;
  }

  .item-thumb {
    width: 128px;
    min-height: 128px;
  }

  .item-image {
    width: 128px;
    height: 128px;
  }

  .item-image-button {
    width: 128px;
    height: 128px;
  }

  .item-details {
    grid-template-columns: 1fr;
  }

  .item-meta {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .stats {
    gap: 1px;
  }

  .figure-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding: 104px 18px 46px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .shop-hero {
    padding: 34px 18px 30px;
  }

  .shop-hero h1 {
    font-size: 2.65rem;
  }

  .shop-hero p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .shop-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .shop-tabs a {
    text-align: center;
  }

  .shop-products {
    padding: 34px 18px 58px;
  }

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

  .stats div,
  .product-card,
  .service-steps article {
    min-height: auto;
  }
}
