/* ==========================================================================
   DigitalLife — 高仿静态站样式
   主题色与原站一致：前景 #0f172a / 按钮红 #dc2626 / 背景 #ffffff
   字体：标题 Archivo（工业 grotesque，严谨、硬朗），正文 Inter（中性、高可读、等宽数字）
   ========================================================================== */

:root {
  --color-foreground: 15, 23, 42;
  --color-background: 255, 255, 255;
  --color-button: 220, 38, 38;
  --color-button-text: 255, 255, 255;
  --color-sale: 220, 38, 38;
  --color-line: 226, 232, 240;
  --color-muted: 100, 116, 139;
  --color-soft: 248, 250, 252;

  /* 标题：Archivo — 结构严谨的工业 grotesque，适合硬件/技术品牌
     正文：Inter — 中性高可读，且数字为等宽（tabular），价格/型号对齐 */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --page-width: 1560px;
  --banner-width: 1680px;
  --radius: 2px;
  --header-h: 80px;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-pop: 0 12px 40px rgba(15, 23, 42, 0.18);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: rgb(var(--color-foreground));
  background: rgb(var(--color-background));
  overflow-x: hidden;
  /* 数字等宽：价格、型号、库存数字对齐更严谨 */
  font-feature-settings: "tnum" 1, "lnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  /* Archivo 本身结构紧凑，字距不必像 Josefin Sans 那样放开 */
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 1.18;
}

h1 {
  font-size: 36px;
}
h2 {
  font-size: 27px;
}
h3 {
  font-size: 18px;
}
h4 {
  font-weight: 600;
}

p {
  margin: 0 0 14px;
}

.container {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
}

.small-hide {
  display: initial;
}
.medium-hide {
  display: initial;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------- 按钮 ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  transition: all 0.25s var(--ease);
}
.btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: rgb(var(--color-foreground));
  border-color: rgb(var(--color-foreground));
}
.btn--outline:hover {
  background: rgb(var(--color-foreground));
  color: #fff;
}
.btn--light {
  background: #fff;
  color: rgb(var(--color-foreground));
}
.btn--light:hover {
  background: #e2e8f0;
}
.btn--block {
  width: 100%;
}

/* --------------------------- 顶部公告栏 --------------------------------- */
.announcement {
  background: rgb(var(--color-foreground));
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 8px 16px;
}
.announcement a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announcement .marquee-viewport {
  overflow: hidden;
}
.announcement .marquee-track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------ 页头 ------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid rgb(var(--color-line));
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}
.brand {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand span {
  color: rgb(var(--color-button));
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.nav__item {
  position: relative;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 30px 15px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 18px;
  height: 2px;
  background: rgb(var(--color-button));
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav__item:hover .nav__link::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}
.nav__caret {
  width: 10px;
  height: 10px;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgb(var(--color-line));
  box-shadow: var(--shadow-pop);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s var(--ease);
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
}
.nav__dropdown a:hover {
  background: rgb(var(--color-soft));
  color: rgb(var(--color-button));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  transition: background 0.2s var(--ease);
  position: relative;
}
.icon-btn:hover {
  background: rgb(var(--color-soft));
}
.icon-btn svg {
  width: 21px;
  height: 21px;
}
.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  padding: 0 10px;
  color: rgb(var(--color-muted));
}
/* 邮箱图标：与 12.5px 文字匹配，尺寸固定为默认渲染的一半 */
.header-contact svg {
  width: 14px;
  height: 14px;
  flex: none;
  stroke-width: 2; /* 缩小后补一点线宽，保持清晰 */
  opacity: 0.85;
}
.header-contact:hover svg {
  color: rgb(var(--color-button));
}
.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: rgb(var(--color-button));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.burger {
  display: none;
}

/* --------------------------- 移动端抽屉导航 ----------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 90;
}
.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(380px, 90vw);
  background: #fff;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.32s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-pop);
}
.drawer--right {
  left: auto;
  right: 0;
  transform: translateX(100%);
}
.drawer.is-open {
  transform: translateX(0);
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgb(var(--color-line));
  font-family: var(--font-heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 15px;
}
.drawer__body {
  padding: 16px 20px 32px;
  overflow-y: auto;
}
.mobile-nav details {
  border-bottom: 1px solid rgb(var(--color-line));
}
.mobile-nav summary {
  list-style: none;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav a {
  display: block;
  padding: 9px 0 9px 12px;
  font-size: 14px;
  color: rgb(var(--color-muted));
}
.mobile-nav a:hover {
  color: rgb(var(--color-button));
}

/* ------------------------------ 轮播 ------------------------------------ */
.slideshow {
  position: relative;
  overflow: hidden;
  background: #0b1220;
}
.slideshow__track {
  display: flex;
  transition: transform 0.7s var(--ease);
}
.slide {
  flex: 0 0 100%;
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  color: #fff;
}
.slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 14, 26, 0.78) 0%, rgba(9, 14, 26, 0.35) 55%, rgba(9, 14, 26, 0.12) 100%);
}
.slide__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Banner 比正文容器更宽，画面更舒展 */
  max-width: var(--banner-width);
  margin: 0 auto;
  padding: 120px 40px;
}
.slide__kicker {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}
.slide__title {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.04;
  margin: 0 0 10px;
}
.slide__sub {
  font-size: 17.5px;
  line-height: 1.6;
  max-width: 680px;
  opacity: 0.92;
  margin-bottom: 30px;
}
.slideshow__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.slideshow__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  padding: 0;
  transition: all 0.2s var(--ease);
}
.slideshow__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}
.slideshow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(15, 23, 42, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slideshow__arrow--prev {
  left: 16px;
}
.slideshow__arrow--next {
  right: 16px;
}
.slideshow__arrow:hover {
  background: rgba(15, 23, 42, 0.6);
}

/* ------------------------------ 区块 ------------------------------------ */
.section {
  padding: 66px 0;
}
.section--tight {
  padding: 40px 0;
}
.section--soft {
  background: rgb(var(--color-soft));
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section__title {
  font-size: 26px;
}
.section__subtitle {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgb(var(--color-muted));
  display: block;
  margin-bottom: 6px;
}
.link-more {
  font-family: var(--font-heading);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgb(var(--color-foreground));
  padding-bottom: 2px;
  white-space: nowrap;
}
.link-more:hover {
  color: rgb(var(--color-button));
  border-color: rgb(var(--color-button));
}
.divider {
  height: 1px;
  background: rgb(var(--color-line));
  margin: 0;
}

/* ---------------------------- 分类卡片 ---------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgb(var(--color-line));
}
.category-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgb(var(--color-soft));
}
.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.category-card:hover .category-card__media img {
  transform: scale(1.07);
}
.category-card__body {
  padding: 16px 18px 18px;
  text-align: center;
}
.category-card__title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.category-card__count {
  font-size: 12.5px;
  color: rgb(var(--color-muted));
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------------------- 产品卡片 ---------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform 0.25s var(--ease);
}
.product-card:hover {
  transform: translateY(-3px);
}
.product-card__media {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgb(var(--color-line));
  aspect-ratio: 1 / 1;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.35s var(--ease);
  padding: 8px;
}
.product-card__media img.product-card__img--alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.product-card:hover .product-card__img--alt {
  opacity: 1;
}
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgb(var(--color-button));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.product-card__add {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 11px;
  font-size: 12px;
  transform: translateY(140%);
  transition: transform 0.28s var(--ease);
}
.product-card:hover .product-card__add,
.product-card:focus-within .product-card__add {
  transform: translateY(0);
}
.product-card__body {
  padding: 14px 2px 0;
}
.product-card__title {
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: var(--font-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
  margin: 0 0 6px;
}
.product-card__title:hover {
  color: rgb(var(--color-button));
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}
.price--sale {
  color: rgb(var(--color-sale));
}
.price__was {
  font-size: 13px;
  font-weight: 400;
  color: rgb(var(--color-muted));
  text-decoration: line-through;
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
  margin-left: 4px;
}
.stars svg {
  width: 13px;
  height: 13px;
}

/* ---------------------------- 礼物/横幅贴片 ------------------------------ */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.tile {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
  background: #0f172a;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.tile:hover img {
  transform: scale(1.06);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 14, 26, 0) 40%, rgba(9, 14, 26, 0.75) 100%);
}
.tile__label {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tile__label .btn {
  margin-top: 12px;
  padding: 9px 20px;
  font-size: 11px;
}

/* ---------------------------- 服务图标条 -------------------------------- */
.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid rgb(var(--color-line));
  border-bottom: 1px solid rgb(var(--color-line));
  padding: 30px 0;
}
.service-strip__item {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  text-align: left;
}
.service-strip__item svg {
  width: 30px;
  height: 30px;
  color: rgb(var(--color-button));
  flex: none;
}
.service-strip__title {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 2px;
}
.service-strip__text {
  font-size: 12.5px;
  color: rgb(var(--color-muted));
  margin: 0;
}

/* ------------------------------ 博客 ------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgb(var(--color-soft));
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.blog-card:hover .blog-card__media img {
  transform: scale(1.05);
}
.blog-card__title {
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
  margin: 14px 0 6px;
}
.blog-card__meta {
  font-size: 12.5px;
  color: rgb(var(--color-muted));
  letter-spacing: 0.06em;
}

/* ---------------------------- 订阅区块 ---------------------------------- */
.join {
  background: rgb(var(--color-foreground));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.join h2 {
  font-size: 30px;
}
.join p {
  opacity: 0.82;
  margin-bottom: 22px;
}
.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}
.subscribe-form input {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font: inherit;
  border-radius: var(--radius);
}
.subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.form-note {
  font-size: 12.5px;
  margin-top: 12px;
  min-height: 18px;
}
.form-note.ok {
  color: #4ade80;
}
.form-note.err {
  color: #fca5a5;
}

/* ------------------------------ 页脚 ------------------------------------ */
.site-footer {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 26px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.footer-title {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list li {
  margin-bottom: 9px;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.footer-select {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 8px 10px;
  font: inherit;
  font-size: 12.5px;
  max-width: 260px;
}
.footer-select option {
  color: #0f172a;
}

/* ------------------------------ 购物车 ---------------------------------- */
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgb(var(--color-line));
}
.cart-line img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border: 1px solid rgb(var(--color-line));
  background: #fff;
}
.cart-line__title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(var(--color-line));
}
.qty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: #fff;
  font-size: 16px;
  line-height: 1;
}
.qty button:hover {
  background: rgb(var(--color-soft));
}
.qty span {
  min-width: 34px;
  text-align: center;
  font-size: 13.5px;
}
.cart-line__remove {
  border: 0;
  background: none;
  font-size: 12px;
  color: rgb(var(--color-muted));
  text-decoration: underline;
  padding: 0;
}
.cart-foot {
  padding: 20px 0;
  border-top: 1px solid rgb(var(--color-line));
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: rgb(var(--color-muted));
}
.free-ship {
  font-size: 12.5px;
  text-align: center;
  padding: 8px;
  background: rgb(var(--color-soft));
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

/* ------------------------------ 搜索 ------------------------------------ */
.search-panel {
  position: fixed;
  inset: 0 0 auto 0;
  background: #fff;
  z-index: 95;
  padding: 24px 0 30px;
  transform: translateY(-100%);
  transition: transform 0.3s var(--ease);
  box-shadow: var(--shadow-pop);
  max-height: 100vh;
  overflow-y: auto;
}
.search-panel.is-open {
  transform: translateY(0);
}
.search-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.search-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 2px solid rgb(var(--color-foreground));
  padding-bottom: 8px;
}
.search-input-row input {
  flex: 1;
  border: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  padding: 6px 0;
  outline: none;
}

/* ------------------------------ 其它页 ---------------------------------- */
.breadcrumb {
  font-size: 12.5px;
  color: rgb(var(--color-muted));
  padding: 18px 0;
  letter-spacing: 0.06em;
}
.breadcrumb a:hover {
  color: rgb(var(--color-button));
}
.page-head {
  padding: 26px 0 30px;
  border-bottom: 1px solid rgb(var(--color-line));
}
.page-head h1 {
  margin-bottom: 6px;
}
.page-head p {
  color: rgb(var(--color-muted));
  margin: 0;
  max-width: 760px;
}

.collection-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 34px;
  padding: 30px 0 70px;
  align-items: start;
}
.facets__group {
  margin-bottom: 26px;
}
.facets__title {
  font-family: var(--font-heading);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.facets__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  padding: 4px 0;
  cursor: pointer;
}
.facets__item input {
  accent-color: rgb(var(--color-button));
}
.collection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.collection-bar select {
  border: 1px solid rgb(var(--color-line));
  padding: 9px 12px;
  font: inherit;
  font-size: 13.5px;
  background: #fff;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding: 30px 0 70px;
  align-items: start;
}
.gallery__main {
  border: 1px solid rgb(var(--color-line));
  background: #fff;
  aspect-ratio: 1 / 1;
}
.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.gallery__thumbs button {
  border: 1px solid rgb(var(--color-line));
  background: #fff;
  padding: 4px;
  aspect-ratio: 1 / 1;
}
.gallery__thumbs button.is-active {
  border-color: rgb(var(--color-button));
}
.gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-detail__price {
  font-size: 24px;
  font-weight: 700;
  margin: 12px 0 4px;
}
.product-detail__price .price__was {
  font-size: 16px;
}
.product-meta {
  font-size: 13px;
  color: rgb(var(--color-muted));
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-options {
  margin: 18px 0 22px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 14px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: rgb(var(--color-button));
  transform: rotate(45deg);
}
.accordion {
  border-top: 1px solid rgb(var(--color-line));
  margin-top: 22px;
}
.accordion details {
  border-bottom: 1px solid rgb(var(--color-line));
}
.accordion summary {
  list-style: none;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion .acc-body {
  padding: 0 0 16px;
  font-size: 14px;
  color: rgb(var(--color-muted));
}

.prose {
  max-width: 820px;
  font-size: 14.5px;
  line-height: 1.8;
}
.prose h2 {
  margin-top: 34px;
  font-size: 20px;
}
.prose h3 {
  margin-top: 24px;
  font-size: 16px;
}
.prose ul {
  padding-left: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.info-card {
  border: 1px solid rgb(var(--color-line));
  padding: 26px;
  background: #fff;
}
.info-card svg {
  width: 28px;
  height: 28px;
  color: rgb(var(--color-button));
  margin-bottom: 12px;
}
.info-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.info-card p {
  font-size: 13.5px;
  color: rgb(var(--color-muted));
  margin: 0;
}

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgb(var(--color-line));
  font: inherit;
  font-size: 14px;
  background: #fff;
  border-radius: var(--radius);
}
.field input:focus,
.field textarea:focus {
  outline: 1px solid rgb(var(--color-button));
  border-color: rgb(var(--color-button));
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  border: 1px solid rgb(var(--color-line));
  padding: 26px;
  position: relative;
}
.step__num {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: rgb(var(--color-button));
  line-height: 1;
  margin-bottom: 10px;
}

/* -------------------------------- Toast --------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: rgb(var(--color-foreground));
  color: #fff;
  padding: 12px 22px;
  font-size: 13.5px;
  border-radius: var(--radius);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s var(--ease);
}
.toast.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgb(var(--color-line));
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: rgb(var(--color-foreground));
  color: #fff;
}

/* ------------------------------ 响应式 ---------------------------------- */
@media (max-width: 1100px) {
  .product-grid,
  .search-results {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-grid,
  .tile-grid,
  .contact-grid,
  .steps,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .header-contact,
  .medium-hide {
    display: none;
  }
  .slide {
    min-height: 470px;
  }
  .slide__title {
    font-size: 44px;
  }
  .slide__inner {
    padding: 90px 24px;
  }
}

@media (max-width: 780px) {
  /* 移动端信息量少，导航条不必占 80px */
  :root {
    --header-h: 66px;
  }
  .container {
    padding: 0 16px;
  }
  .product-grid,
  .search-results,
  .category-grid,
  .tile-grid,
  .contact-grid,
  .steps,
  .blog-grid,
  .service-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-strip {
    grid-template-columns: 1fr;
  }
  .slide__title {
    font-size: 34px;
  }
  .slide__inner {
    padding: 64px 18px;
  }
  .slide {
    min-height: 410px;
  }
  h1 {
    font-size: 26px;
  }
  .collection-layout {
    grid-template-columns: 1fr;
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .small-hide {
    display: none;
  }
  .product-card__add {
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .product-grid,
  .search-results,
  .category-grid,
  .tile-grid,
  .contact-grid,
  .steps,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
