/* ==========================================================================
   盒盒玛特 HOHOMART — Flat Swiss Gallery & 0-1 UX Case Study
   Aligned 1:1 with TAPI, Construction, TAPI Hub & Daily Reading Editorial System:
     - Pure #FFFFFF Architectural Drafting Grid (zero gray top wash, zero shadows)
     - Official Planetary-Box Logo + Crisp Sans Wordmark + Calm Subtitle + UX Rationale
     - Clean #F7F8FA 1px Exhibition Plates Preserving Original SVG Research/UI Boards
   ========================================================================== */

:root {
  --hoho-ink: #141416;
  --hoho-body: #525560;
  --hoho-muted: #7e818c;
  --hoho-hair: #e8e8e5;
  --hoho-plate: #f7f8fa;
  --hoho-blue: #175ce5;
  --hoho-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='184' height='184' viewBox='0 0 184 184'%3E%3Cpath d='M184 0H0V184' fill='none' stroke='%23181a24' stroke-opacity='0.028' stroke-width='1'/%3E%3Cpath d='M0 0v5M0 0h5M184 0h-4M0 184v-4' fill='none' stroke='%23181a24' stroke-opacity='0.11' stroke-width='1'/%3E%3C/svg%3E");
}

html {
  background: #ffffff;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body.hoho-xyf {
  margin: 0;
  color: var(--hoho-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background-color: #ffffff !important;
  background-image: var(--hoho-grid) !important;
  background-size: 184px 184px !important;
  background-position: center top !important;
}

body.hoho-xyf .original-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid #ededed !important;
  box-shadow: none !important;
  color: var(--hoho-ink);
}

body.hoho-xyf #original-project {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.hoho-xyf #original-project * {
  box-sizing: border-box;
  box-shadow: none !important;
  text-shadow: none !important;
}

.hoho-sec {
  position: relative;
  max-width: calc(1080px + 2 * clamp(24px, 5vw, 72px));
  width: 100%;
  margin: 0 auto;
  padding: clamp(72px, 8.8vw, 120px) clamp(24px, 5vw, 72px);
  border: 0;
  scroll-margin-top: 76px;
}

.hoho-sec + .hoho-sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(24px, 5vw, 72px);
  right: clamp(24px, 5vw, 72px);
  height: 1px;
  background: var(--hoho-hair);
}

.hoho-sec:first-child {
  padding-top: clamp(96px, 14vh, 144px);
  padding-bottom: 84px;
}

/* ---------- 00 · Airy Gallery Cover (Aligned 1:1 with TAPI, TAPI Hub & Daily Reading) ---------- */
.hoho-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: 48px;
  align-items: end;
  margin: 0 0 clamp(56px, 7.6vh, 80px);
}

.hoho-hero-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.hoho-hero-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 !important;
  line-height: 1 !important;
}

.hoho-hero-logo {
  display: block;
  height: 38px;
  width: auto;
  flex: none;
  user-select: none;
  pointer-events: none;
}

.hoho-hero-wordmark {
  font-size: clamp(38px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hoho-ink);
}

.hoho-hero-sub {
  margin: 0 !important;
  font-size: clamp(18px, 1.8vw, 22px) !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  letter-spacing: -0.015em !important;
  color: #666972 !important;
}

.hoho-hero-quote {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.84 !important;
  font-weight: 400 !important;
  color: var(--hoho-body) !important;
  text-align: left !important;
  text-wrap: pretty;
}

/* Hero Visual Stage — Clean 1px Gallery Plate on Pure White Drafting Grid */
.hoho-hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--hoho-plate);
  border: 1px solid rgba(20, 20, 22, 0.08);
}

.hoho-hero-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.hoho-hero-stage img {
  position: absolute;
  z-index: 1;
  display: block;
  object-fit: contain;
  filter: none;
}

.hoho-phone-landscape {
  width: 58%;
  height: auto;
  left: 11%;
  bottom: 8%;
}

.hoho-phone-portrait {
  height: 82%;
  width: auto;
  right: 13%;
  top: 9%;
}

/* Clean 3-Column Metadata Strip Below Hero Stage */
.hoho-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--hoho-hair);
}

.hoho-meta dt {
  font-size: 12px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  color: var(--hoho-muted) !important;
  margin: 0 0 6px !important;
}

.hoho-meta dd {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.68 !important;
  font-weight: 500 !important;
  color: var(--hoho-ink) !important;
}

/* ---------- Chapter Headers (Unified Swiss Editorial Grammar) ---------- */
.hoho-split-head {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}

.hoho-split-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hoho-move-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 12px !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hoho-muted);
}

.hoho-move-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--hoho-ink);
}

.hoho-split-left h2,
.hoho-display-h2 {
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: clamp(26px, 2.7vw, 34px) !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
  color: var(--hoho-ink) !important;
}

.hoho-display-h2 {
  margin-bottom: 36px !important;
}

.hoho-split-right p {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.86 !important;
  color: var(--hoho-body) !important;
  text-align: left !important;
  text-wrap: pretty;
}

/* ---------- 3-Column Solution Ledger ---------- */
.hoho-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--hoho-hair);
  border-bottom: 1px solid var(--hoho-hair);
  margin-bottom: 48px;
}

.hoho-solution-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.hoho-solution-item + .hoho-solution-item {
  padding-left: 32px;
  border-left: 1px solid var(--hoho-hair);
}

.hoho-solution-item:hover {
  opacity: 0.76;
}

.hoho-sol-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  color: var(--hoho-muted) !important;
  letter-spacing: 0.04em;
}

.hoho-solution-item strong {
  font-family: inherit !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
  letter-spacing: -0.015em;
  color: var(--hoho-ink) !important;
  font-weight: 500 !important;
}

.hoho-solution-item p {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.8 !important;
  color: var(--hoho-body) !important;
}

/* ---------- Original Research & UX Boards on Clean Subtle Plates ---------- */
.hoho-board-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hoho-board {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 22, 0.07);
  background: var(--hoho-plate);
}

.hoho-board[data-board="13"] {
  background: #ffffff;
}

.hoho-board .hoho-svg-art {
  display: block;
  width: 100%;
  height: auto;
}

body.hoho-xyf .original-footer {
  background: #ffffff !important;
  border-top: 1px solid #ededed !important;
  color: var(--hoho-body);
}

@media (max-width: 960px) {
  .hoho-hero-head,
  .hoho-solution-grid,
  .hoho-split-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hoho-solution-item + .hoho-solution-item {
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid var(--hoho-hair);
  }
}

@media (max-width: 600px) {
  .hoho-meta {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hoho-hero-logo {
    height: 32px;
  }
}
