/* ==========================================================================
   Team Dogs — base: tokens, reset, typography, layout, buttons, header, footer
   ========================================================================== */

:root {
  --ink: #0b0c0f;
  --ink-2: #111318;
  --ink-3: #171a21;
  --ink-4: #1f232c;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --bone: #f4f1ea;
  --mute: #9ba1ae;
  --dim: #6b7180;
  --fang: #ff5a1f;
  --fang-2: #ff8a3d;
  --fang-3: #ffb27a;
  --ok: #2ed47a;
  --bad: #ff4d4f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --font-display: "Barlow Condensed", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1320px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
.ico { width: 18px; height: 18px; flex: none; vertical-align: -0.16em; }
.ico-lg { width: 32px; height: 32px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--fang); color: #fff; }

:focus-visible { outline: 2px solid var(--fang); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--fang);
  color: #140802;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.skip-link:focus { left: 12px; top: 12px; }

.noscript {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 99;
  padding: 14px 24px;
  background: var(--fang);
  color: #140802;
  text-align: center;
  font-weight: 600;
}

/* grain + vignette ------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { position: relative; padding: 104px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--ink-2); }
.section--line { border-top: 1px solid var(--line); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section__head > div:first-child { max-width: 720px; }
.section__text { color: var(--mute); margin-top: 14px; font-size: 17px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ------------------------------------------------------------ typography */
.h1, .h2, .h3, .h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.04;
  text-transform: uppercase;
}
.h1 { font-size: clamp(44px, 8.2vw, 124px); }
.h2 { font-size: clamp(32px, 4.6vw, 62px); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); }
.h4 { font-size: 19px; letter-spacing: 0.04em; }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--bone); }
.muted { color: var(--mute); }
.dim { color: var(--dim); }
.nowrap { white-space: nowrap; }
.accent { color: var(--fang); }
.tnum { font-variant-numeric: tabular-nums; }

html[lang="zh-CN"] .h1,
html[lang="zh-CN"] .h2,
html[lang="zh-CN"] .h3 { letter-spacing: 0.02em; line-height: 1.12; }

/* dog-tag eyebrow: the brand's signature label ------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(255, 255, 255, 0.03);
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--fang);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.18);
}
.eyebrow--solid { background: var(--fang); border-color: var(--fang); color: #120703; }
.eyebrow--solid::before { border-color: #120703; box-shadow: none; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
}
.tag--accent { background: var(--fang); border-color: var(--fang); color: #140802; }
.tag--ghost { background: transparent; }
.tag--ok { color: var(--ok); border-color: rgba(46, 212, 122, 0.35); background: rgba(46, 212, 122, 0.1); }
.tag--bad { color: var(--bad); border-color: rgba(255, 77, 79, 0.35); background: rgba(255, 77, 79, 0.1); }

/* --------------------------------------------------------------- buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  overflow: hidden;
}
.btn .ico { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico { transform: translateX(4px); }
.btn--primary { background: var(--fang); color: #140802; }
.btn--primary:hover { background: var(--fang-2); }
.btn--ghost { border-color: var(--line-2); color: var(--bone); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--fang); color: var(--fang); }
.btn--dark { background: var(--ink-3); border-color: var(--line); }
.btn--dark:hover { border-color: var(--fang); }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--fang);
}
.link-arrow .ico { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }

/* chips / tabs ----------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--mute);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--bone); border-color: var(--line-2); }
.chip.is-active { background: var(--fang); border-color: var(--fang); color: #140802; }

.tabs { display: inline-flex; padding: 5px; border-radius: 12px; background: var(--ink-3); border: 1px solid var(--line); gap: 4px; flex-wrap: wrap; }
.tab {
  padding: 10px 20px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  transition: all 0.2s var(--ease);
}
.tab:hover { color: var(--bone); }
.tab.is-active { background: var(--fang); color: #140802; }

/* inputs ----------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; color: var(--mute); }
.input, .select, .textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  color: var(--bone);
  transition: border-color 0.2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--fang); }
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239ba1ae' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--bad); }
.field__error { color: var(--bad); font-size: 13px; min-height: 18px; }

.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search .ico { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--dim); }
.search .input { padding-left: 46px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 12, 15, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.td-mark { width: 38px; height: 38px; color: var(--fang); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.06em; white-space: nowrap; }
.brand__sub { font-size: 12px; color: var(--mute); letter-spacing: 0.18em; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--bone); }
.nav__link.is-active { color: var(--bone); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 3px;
  background: var(--fang);
  transform: skewX(-24deg);
}

.header__tools { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.02);
}
.lang-switch__btn {
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mute);
  transition: all 0.2s var(--ease);
}
.lang-switch__btn.is-active { background: var(--fang); color: #140802; }

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--bone);
  transition: all 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--fang); color: var(--fang); }
.icon-btn .ico { width: 20px; height: 20px; }
.cart-btn__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--fang);
  color: #140802;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-btn__badge.is-empty { display: none; }
.menu-btn { display: none; }

/* mobile drawer nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 22px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.mobile-nav__list { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mobile-nav__link span { font-size: 13px; color: var(--fang); letter-spacing: 0.2em; }
.mobile-nav__link.is-active { color: var(--fang); }
.mobile-nav__foot { margin-top: auto; padding-top: 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: 72px 0 32px; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.4fr; gap: 40px; }
.footer__title { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--mute); transition: color 0.2s var(--ease); font-size: 15px; }
.footer__links a:hover { color: var(--fang); }
.footer__about { color: var(--mute); margin: 18px 0 22px; max-width: 340px; font-size: 15px; }
.footer__socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social-pill {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--mute);
  transition: all 0.2s var(--ease);
}
.social-pill:hover { border-color: var(--fang); color: var(--fang); }
.newsletter { display: flex; gap: 10px; margin-top: 14px; }
.newsletter .input { flex: 1; }
.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 13px;
}
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--bone); }
.footer__wordmark {
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(120px, 22vw, 300px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}

/* ------------------------------------------------------------- overlays */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  z-index: 85;
  background: var(--ink-2);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--ink-3); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 3; background: rgba(11, 12, 15, 0.7); }

.toast-host { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
  animation: toast-in 0.35s var(--ease) both;
}
.toast .ico { width: 18px; height: 18px; color: var(--fang); }
.toast.is-out { animation: toast-out 0.3s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* scroll progress + back to top ------------------------------------------ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--fang), var(--fang-3));
  z-index: 75;
}
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 55;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(17, 19, 24, 0.9);
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s var(--ease);
}
.back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { border-color: var(--fang); color: var(--fang); }

/* reveal ----------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .nav__link { padding: 10px 10px; font-size: 15px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header__inner { height: 68px; }
  .section { padding: 76px 0; }
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 32px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .brand__sub { display: none; }
  .newsletter { flex-direction: column; }
  .back-top { right: 14px; bottom: 14px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .site-header__inner { gap: 10px; }
  .brand { gap: 8px; }
  .td-mark { width: 32px; height: 32px; }
  .brand__name { font-size: 18px; }
  .icon-btn { width: 40px; height: 40px; }
  .header__tools { gap: 8px; }
  .lang-switch__btn { padding: 5px 8px; font-size: 12px; }
  .site-header__inner { gap: 10px; }
  .brand { gap: 8px; }
  .td-mark { width: 32px; height: 32px; }
  .brand__name { font-size: 18px; }
  .icon-btn { width: 40px; height: 40px; }
  .header__tools { gap: 8px; }
  .lang-switch__btn { padding: 5px 8px; font-size: 12px; }
  .grid--4, .grid--5 { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .lang-switch__btn { padding: 5px 9px; }
}
