/* ==========================================================================
   PuniCase — 复刻 aiedaofficial.com（Shopify Dawn 主题）
   配色取自原站 color scheme：bg #efc2dc / fg #360606 / card #fffcf5
   ========================================================================== */

:root {
  --bg: 239, 194, 220;
  --fg: 54, 6, 6;
  --card: 255, 252, 245;
  --cream: 253, 251, 246;
  --accent: 227, 102, 102;
  --border: rgba(54, 6, 6, 0.16);
  --muted: rgba(54, 6, 6, 0.62);

  --page-w: 120rem;
  --gap: 2rem;
  --pad: 5rem;

  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-head: 'Ovo', 'Times New Roman', serif;

  --radius: 8px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--fg));
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.page-width {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

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

/* ---------- 公告条 ---------- */
.announcement {
  background: rgb(var(--card));
  color: rgb(var(--fg));
  border-bottom: 1px solid var(--border);
  position: relative;
  height: 3.6rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.announcement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1rem;
}
.announcement__item {
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-align: center;
}
.announcement__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 0.8rem;
  display: flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.announcement__nav:hover { opacity: 1; }
.announcement__nav--prev { left: 0.6rem; }
.announcement__nav--next { right: 0.6rem; }
.announcement__nav svg { width: 1rem; height: 1rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--bg));
  border-bottom: 1px solid rgba(54, 6, 6, 0.1);
  transition: box-shadow 0.2s;
}
.header.is-stuck { box-shadow: 0 2px 14px rgba(54, 6, 6, 0.08); }

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.4rem var(--pad);
  max-width: 144rem;
  margin: 0 auto;
}

.header__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  column-gap: 2.6rem;
  row-gap: 0.6rem;
  font-size: 1.4rem;
}
.header__nav a {
  position: relative;
  white-space: nowrap;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease);
}
.header__nav a:hover::after { width: 100%; }

.header__logo {
  justify-self: center;
  display: flex;
  align-items: center;
}
.header__logo img {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.header__logo:hover img { transform: scale(1.06); }

.header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.8rem;
  font-size: 1.3rem;
}
.header__tools button,
.header__tools a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s;
  opacity: 0.9;
}
.header__tools button:hover,
.header__tools a:hover { opacity: 1; }
.header__tools svg { width: 1.8rem; height: 1.8rem; }

.header__locale {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  font-size: 1.3rem;
}
.header__locale .chev { width: 1rem; height: 1rem; }

.cart-count {
  position: absolute;
  top: -0.5rem; right: -0.8rem;
  min-width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: rgb(var(--fg));
  color: rgb(var(--card));
  font-size: 1rem;
  line-height: 1.7rem;
  text-align: center;
  padding: 0 0.3rem;
}
.cart-btn { position: relative; }

.header__burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.hero__content {
  position: absolute;
  inset: auto 0 2.2rem 0;
  text-align: center;
  padding: 0 2rem;
}
.btn-shop {
  display: inline-block;
  background: rgb(var(--cream));
  color: rgb(var(--fg));
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 2.2rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  box-shadow: 0 2px 10px rgba(54, 6, 6, 0.12);
}
.btn-shop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(54, 6, 6, 0.18);
}

/* 跟随我们 */
.social-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.6rem 0 0.4rem;
  font-size: 1.3rem;
  color: var(--muted);
}
.social-strip__icon {
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.8);
  display: grid;
  place-items: center;
}
.social-strip__icon svg { width: 1.2rem; height: 1.2rem; }

/* ---------- 产品区块 ---------- */
.section { padding: 4.2rem 0; }
.section--tight { padding-top: 2rem; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.4rem;
}
.section__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.6rem, 3.4vw, 4rem);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
.section__link {
  font-size: 1.3rem;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  opacity: 0.8;
  white-space: nowrap;
}
.section__link:hover { opacity: 1; }

.grid-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.6rem 2rem;
}

.card { position: relative; }
.card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 252, 245, 0.5);
  aspect-ratio: 1 / 1;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }

.card__badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgb(var(--accent));
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.card__quick {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgb(var(--cream));
  color: rgb(var(--fg));
  font-size: 1.25rem;
  text-align: center;
  padding: 0.8rem 0;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  box-shadow: 0 2px 10px rgba(54, 6, 6, 0.12);
}
.card:hover .card__quick { opacity: 1; transform: translateY(0); }

.card__title {
  display: block;
  margin-top: 1.2rem;
  font-size: 1.4rem;
  line-height: 1.45;
  font-weight: 400;
}
.card__title:hover { text-decoration: underline; text-underline-offset: 0.25em; }

.card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: var(--muted);
}
.stars { display: inline-flex; gap: 0.12rem; }
.stars svg { width: 1.05rem; height: 1.05rem; fill: rgb(var(--fg)); }

.card__price {
  margin-top: 0.5rem;
  font-size: 1.35rem;
  color: rgb(var(--fg));
}
.card__price .from { color: var(--muted); }

/* ---------- 优惠 band ---------- */
.promo-band {
  margin: 3.6rem 0;
  background: rgba(255, 252, 245, 0.72);
  border-radius: 14px;
  padding: 3rem 3.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
}
.promo-band__item h4 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2.2rem;
  margin: 0 0 0.6rem;
}
.promo-band__item p { margin: 0; font-size: 1.35rem; color: var(--muted); }
.promo-code {
  display: inline-block;
  margin-top: 1rem;
  border: 1px dashed rgba(54, 6, 6, 0.4);
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  background: #fff;
}

/* ---------- 图文区 Transform Your Style ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}
.feature-split__media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.feature-split__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-split__body h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  margin: 0 0 1.4rem;
  line-height: 1.2;
}
.feature-split__body p {
  font-size: 1.45rem;
  color: rgba(54, 6, 6, 0.78);
  margin: 0 0 2.2rem;
  max-width: 44ch;
}

/* ---------- 博客 ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
}
.blog-card__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.2rem;
}
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card h4 { font-size: 1.5rem; font-weight: 500; margin: 0 0 0.5rem; }
.blog-card p { font-size: 1.3rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(54, 6, 6, 0.14);
  padding: 4rem 0 2.4rem;
  margin-top: 4rem;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 3.4rem;
  border-bottom: 1px solid rgba(54, 6, 6, 0.12);
}
.footer__news h4 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 1.2rem;
}
.news-form {
  display: flex;
  align-items: center;
  border: 1px solid rgba(54, 6, 6, 0.35);
  border-radius: 6px;
  background: #fff;
  width: 32rem;
  max-width: 100%;
  overflow: hidden;
}
.news-form input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 1.1rem 1.4rem;
  font-size: 1.4rem;
  background: transparent;
  font-family: inherit;
}
.news-form button { padding: 0 1.3rem; display: grid; place-items: center; }
.news-form button svg { width: 1.7rem; height: 1.7rem; }

.footer__follow { display: flex; align-items: center; gap: 1.6rem; }
.btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #5a31f4;
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-size: 1.3rem;
  transition: filter 0.2s;
}
.btn-follow:hover { filter: brightness(1.1); }
.btn-follow svg { width: 1.5rem; height: 1.5rem; }
.social-links { display: flex; gap: 1.2rem; }
.social-links a { opacity: 0.85; transition: opacity 0.2s; }
.social-links a:hover { opacity: 1; }
.social-links svg { width: 1.7rem; height: 1.7rem; }

.footer__mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 2.6rem 0 3rem;
  flex-wrap: wrap;
}
.footer__locale { display: flex; gap: 2.6rem; }
.footer__select-label {
  display: block;
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  border: 1px solid rgba(54, 6, 6, 0.3);
  background: #fff;
  border-radius: 6px;
  padding: 0.8rem 3.2rem 0.8rem 1.2rem;
  font-size: 1.3rem;
  font-family: inherit;
  color: rgb(var(--fg));
  cursor: pointer;
  min-width: 14rem;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 1.2rem; top: 50%;
  width: 0.7rem; height: 0.7rem;
  border-right: 1px solid rgb(var(--fg));
  border-bottom: 1px solid rgb(var(--fg));
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 44rem;
  justify-content: flex-end;
}
.payments span {
  display: inline-grid;
  place-items: center;
  height: 2.4rem;
  min-width: 3.6rem;
  padding: 0 0.5rem;
  background: #fff;
  border: 1px solid rgba(54, 6, 6, 0.12);
  border-radius: 4px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #2c2c2c;
  font-weight: 600;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.8rem;
  font-size: 1.2rem;
  color: var(--muted);
  padding-top: 1rem;
}
.footer__bottom a:hover { text-decoration: underline; }

/* ---------- 购物车抽屉 ---------- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 8, 8, 0.38);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 90;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 42rem; max-width: 92vw;
  background: rgb(var(--card));
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.36s var(--ease);
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 2.2rem;
  border-bottom: 1px solid var(--border);
}
.drawer__head h3 { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: 2rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.6rem 2.2rem; }
.drawer__empty { text-align: center; color: var(--muted); padding: 6rem 0; font-size: 1.4rem; }
.drawer__foot { padding: 2rem 2.2rem; border-top: 1px solid var(--border); }
.drawer__total {
  display: flex; justify-content: space-between;
  font-size: 1.5rem; margin-bottom: 1.4rem;
}
.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: rgb(var(--fg));
  color: rgb(var(--card));
  border-radius: 999px;
  padding: 1.2rem;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }

.line-item {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1.4rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(54, 6, 6, 0.08);
  align-items: center;
}
.line-item img { width: 7rem; height: 7rem; object-fit: cover; border-radius: 6px; }
.line-item__t { font-size: 1.3rem; line-height: 1.35; }
.line-item__p { font-size: 1.3rem; margin-top: 0.4rem; color: var(--muted); }
.line-item__rm { font-size: 1.2rem; text-decoration: underline; color: var(--muted); }

/* ---------- 搜索层 ---------- */
.search-panel {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgb(var(--card));
  z-index: 95;
  transform: translateY(-100%);
  transition: transform 0.34s var(--ease);
  padding: 2rem var(--pad) 2.4rem;
}
.search-panel.is-open { transform: translateY(0); }
.search-panel__form {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(54, 6, 6, 0.35);
  padding-bottom: 1rem;
}
.search-panel__form input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 1.8rem; font-family: var(--font-head); color: rgb(var(--fg));
}
.search-results { max-width: 72rem; margin: 1.6rem auto 0; display: grid; gap: 0.4rem; }
.search-results a {
  display: grid; grid-template-columns: 4rem 1fr auto;
  gap: 1rem; align-items: center; padding: 0.6rem 0; font-size: 1.35rem;
}
.search-results img { width: 4rem; height: 4rem; object-fit: cover; border-radius: 4px; }
.search-results a:hover { text-decoration: underline; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 3rem;
  transform: translate(-50%, 2rem);
  background: rgb(var(--fg));
  color: rgb(var(--card));
  padding: 1.1rem 2rem;
  border-radius: 999px;
  font-size: 1.35rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  z-index: 120;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 移动端 ---------- */
@media screen and (max-width: 990px) {
  :root { --pad: 2rem; --gap: 1.4rem; }

  .header__inner {
    grid-template-columns: auto 1fr auto;
    padding: 1rem var(--pad);
  }
  .header__nav { display: none; }
  .header__burger { display: grid; place-items: center; }
  .header__burger svg { width: 2rem; height: 2rem; }
  .header__logo img { width: 4.4rem; height: 4.4rem; }
  .header__tools { gap: 1.2rem; }
  .header__locale .locale-label { display: none; }
  .header__search-btn { display: none; }

  .hero__media img { max-height: 52vh; object-fit: cover; object-position: center; }

  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 1.2rem; }

  .promo-band { grid-template-columns: 1fr; padding: 2.2rem; gap: 1.8rem; }
  .feature-split { grid-template-columns: 1fr; gap: 2.4rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 2.4rem; }
  .footer__mid { flex-direction: column; align-items: flex-start; }
  .payments { justify-content: flex-start; }
  .news-form { width: 100%; }
  .section { padding: 3rem 0; }
  .section__title { font-size: 2.6rem; }
}

/* 移动端抽屉菜单 */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 32rem; max-width: 86vw;
  background: rgb(var(--card));
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.36s var(--ease);
  padding: 2.4rem 2rem;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 1.1rem 0; border-bottom: 1px solid rgba(54, 6, 6, 0.08); font-size: 1.5rem; }
.mobile-nav__close { margin-bottom: 1.6rem; font-size: 1.3rem; text-decoration: underline; }

/* 滚动入场 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; }
}
