/*
Theme Name: Uhave
Theme URI: https://www.uhaveshop.com
Author: 维仆
Description: 维仆外贸与跨境独立站。WordPress 建站、Shopify 独立站与网站设计开发。
Version: 1.3.2
Text Domain: uhave
*/

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4efe6;
  --paper-2: #e7ddd0;
  --ink: #111111;
  --muted: #6b645c;
  --line: rgba(17, 17, 17, 0.14);
  --green: #0b0b0b;
  --green-2: #171717;
  --forest: #123f3b;
  --lime: #ff4d1c;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "PMingLiU", "Songti TC", serif;
  --sans: "Outfit", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "PingFang HK", "Noto Sans TC", sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.home { background: var(--forest); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--lime);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 9;
}
.skip:focus { top: 12px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.home .site-header {
  background: rgba(18, 63, 59, 0.86);
  color: var(--paper);
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  min-width: 88px;
}
.brand strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.brand span {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.72;
}
.brand .brand-mark {
  display: block;
  width: 124px;
  height: 48px;
  margin: 0;
  opacity: 1;
  letter-spacing: 0;
  text-transform: none;
  background: currentColor;
  -webkit-mask: url("assets/wiipoo-logo-mark.png") center / contain no-repeat;
  mask: url("assets/wiipoo-logo-mark.png") center / contain no-repeat;
}
.brand .brand-word {
  display: block;
  margin: 0;
  opacity: 1;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.04em;
  text-transform: none;
  line-height: 1;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav a:hover { text-decoration: underline; }
.nav-tools { display: flex; align-items: center; gap: 16px; }
.langs { display: flex; gap: 8px; font-size: 12px; letter-spacing: 0.08em; }
.langs a { text-decoration: none; opacity: 0.55; }
.langs a[aria-current="true"] { opacity: 1; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.home .btn-lime, .btn-lime { background: var(--lime); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1px currentColor;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span:before, .menu-toggle span:after {
  display: block;
  height: 1px;
  width: 22px;
  background: currentColor;
  position: relative;
}
.menu-toggle span:before, .menu-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span:before { top: -7px; }
.menu-toggle span:after { top: 7px; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
  padding: 4vh var(--pad) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
  min-height: calc(100vh - 88px);
}
.hero-ribbon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero > div,
.hero-index { position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.78;
}
.hero h1, .page-hero h1, .article-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.96;
  margin: 0;
}
.hero h1 {
  font-size: clamp(52px, 7vw, 104px);
}
.hero h1 em, .page-hero h1 em {
  font-style: italic;
  color: var(--lime);
}
.lede {
  max-width: 40rem;
  font-size: 18px;
  color: rgba(243, 240, 232, 0.82);
  margin: 28px 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(243,240,232,.25); }
.hero-index a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(243,240,232,.25);
  text-decoration: none;
  text-shadow: 0 1px 16px rgba(18, 63, 59, 0.85);
}
.hero-index em { font-family: var(--serif); font-style: italic; color: var(--lime); }
.hero-index strong { font-weight: 500; }
.hero-index span { grid-column: 2; color: rgba(243,240,232,.68); font-size: 14px; }

.sheet {
  background: var(--paper);
  color: var(--ink);
  border-top-left-radius: 28px;
  padding: 72px 0 40px;
}
.section { padding: 28px var(--pad) 64px; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  max-width: var(--max);
}
.section-head h2, .block h2, .page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
.section-head h2 { font-size: clamp(36px, 4vw, 56px); }
.kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

.service-rows { max-width: var(--max); }
.service-row {
  display: grid;
  grid-template-columns: 90px 1.1fr 1.4fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row i {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--green);
}
.service-row strong { font-size: 28px; font-family: var(--serif); font-weight: 400; }
.service-row p { margin: 0; color: var(--muted); }
.service-row b { font-weight: 500; letter-spacing: 0.08em; font-size: 13px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: var(--max);
}
.step {
  background: var(--paper-2);
  padding: 22px 20px 26px;
  min-height: 220px;
}
.step em { font-family: var(--serif); font-style: italic; color: var(--green); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 18px 0 8px; }
.step p { margin: 0; color: var(--muted); }

.clients {
  max-width: var(--max);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 8px;
}
.clients p { max-width: 46rem; margin: 8px 0 0; font-size: 20px; }

.news-grid, .faq, .prose, .form, .page-hero, .article, .related {
  max-width: var(--max);
}
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.news-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.news-item time, .meta { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }
.news-item h3 { margin: 4px 0 0; font-size: 22px; font-family: var(--serif); font-weight: 400; line-height: 1.25; }

.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 20px; font-family: var(--serif); }
.faq p { color: var(--muted); margin: 10px 0 0; }

.band {
  margin: 20px var(--pad) 0;
  background: var(--green);
  color: var(--paper);
  padding: 48px 36px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.home .band { background: var(--forest); }
.band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 60px); margin: 0; line-height: 1; }
.band p { margin: 10px 0 0; max-width: 36rem; color: rgba(243,240,232,.78); }

.site-footer {
  background: var(--paper);
  padding: 48px var(--pad) 28px;
  color: var(--ink);
}
.home .site-footer { background: var(--paper); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  max-width: var(--max);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.site-footer h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0 0 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal { display: flex; justify-content: space-between; gap: 16px; max-width: var(--max); padding-top: 16px; color: var(--muted); font-size: 13px; }

.crumbs { max-width: var(--max); padding: 18px var(--pad) 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); }
.page-hero { padding: 28px var(--pad) 10px; }
.page-hero h1 { font-size: clamp(46px, 6vw, 84px); max-width: 14ch; }
.page-hero .lede { color: var(--muted); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.6fr);
  gap: 48px;
  padding: 20px var(--pad) 72px;
  max-width: calc(var(--max) + var(--pad) * 2);
}
.prose h2 { font-size: 34px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.1em; }
.side {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--green);
  color: var(--paper);
  padding: 22px;
}
.side h2 { font-family: var(--serif); font-weight: 400; margin: 0 0 8px; font-size: 28px; }
.side p { color: rgba(243,240,232,.8); margin: 0 0 16px; }
.side .btn { background: var(--lime); color: var(--ink); }

.form { display: grid; gap: 14px; padding-bottom: 72px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  border-radius: 0;
}
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.note { background: var(--lime); color: var(--ink); padding: 12px 14px; }

.article { padding: 36px var(--pad) 72px; }
.article-head h1 { font-size: clamp(36px, 5vw, 68px); max-width: 18ch; }
.article-body { max-width: 46rem; font-size: 18px; }
.article-body h2, .article-body h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
.article-body img { margin: 18px 0; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.pager a { text-decoration: none; border-bottom: 1px solid var(--ink); }

@media (max-width: 980px) {
  .hero, .steps, .layout, .footer-grid, .news-grid, .form-row, .clients { grid-template-columns: 1fr; display: grid; }
  .service-row { grid-template-columns: 48px 1fr; }
  .service-row p, .service-row b { grid-column: 2; }
  .hero { min-height: auto; padding-top: 18px; }
  .band, .clients { display: grid; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px var(--pad) 20px;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .home .nav { background: var(--forest); color: var(--paper); }
  .nav.open { display: flex; }
  .side { position: static; }
}
.case-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; max-width: var(--max); margin: 8px var(--pad) 0; }
.case-filters a { text-decoration: none; font-size: 14px; color: var(--muted); }
.case-filters a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--lime); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 22px; max-width: var(--max); }
.case-grid-home { padding: 0; }
.case-card { display: grid; gap: 8px; text-decoration: none; }
.case-media { display: block; overflow: hidden; background: #111; aspect-ratio: 16 / 10; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .8s cubic-bezier(.16,1,.3,1); }
.case-card:hover .case-media img { transform: scale(1.08); }
.case-meta { color: var(--muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.case-card strong { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -0.03em; line-height: 1.15; }
.case-detail { padding: 28px var(--pad) 80px; max-width: calc(var(--max) + var(--pad)); }
.case-detail h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 84px); letter-spacing: -0.03em; line-height: 0.98; margin: 0 0 18px; max-width: 14ch; }
.case-detail .case-media { margin: 22px 0; aspect-ratio: auto; }
.case-detail .case-media img { height: auto; transform: none; }
.case-prose { max-width: 42rem; font-size: 18px; }
.case-actions { display: flex; gap: 12px; margin: 22px 0 8px; }

.hero h1, .hero .lede, .hero-actions { animation: uhave-rise 1s cubic-bezier(.16,1,.3,1) both; }
.hero .lede { animation-delay: .12s; }
.hero-actions { animation-delay: .22s; }
.hero-index li { animation: uhave-rise .9s cubic-bezier(.16,1,.3,1) both; }
.hero-index li:nth-child(1) { animation-delay: .18s; }
.hero-index li:nth-child(2) { animation-delay: .28s; }
.hero-index li:nth-child(3) { animation-delay: .38s; }
.hero-index li:nth-child(4) { animation-delay: .48s; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.btn { transition: transform .35s cubic-bezier(.16,1,.3,1), background .35s ease; }
.btn:hover { transform: translateY(-2px); }
.service-row { transition: background .4s ease; }
.service-row:hover { background: rgba(255, 77, 28, 0.06); }
@keyframes uhave-rise {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .case-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero .lede, .hero-actions, .hero-index li, .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
