/* ============================================================
   yk.css — Yanji Selection storefront stylesheet
   Hand-built for shop.yanjimaoyi.com (no framework, no template)
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  --ink: #23272b;
  --ink-soft: #5d6368;
  --ink-faint: #9aa0a5;
  --paper: #faf8f3;
  --card: #ffffff;
  --line: #e9e3d8;
  --brand: #b8474f;
  --brand-deep: #8f3239;
  --brand-wash: #f7e9e7;
  --gold: #c8a05a;
  --ok: #2e8b57;
  --warn: #c2571f;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-pill: 999px;
  --shadow-1: 0 1px 3px rgba(35, 39, 43, 0.07);
  --shadow-2: 0 8px 26px rgba(35, 39, 43, 0.11);
  --w-wrap: 1180px;
}

/* ---------- web fonts (subset woff2, self hosted) ---------- */
@font-face {
  font-family: 'YKSans';
  src: url('../fonts/yk-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'YKSans';
  src: url('../fonts/yk-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- base reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'YKSans', 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.72;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
svg { display: inline-block; vertical-align: -0.15em; }

.yk-wrap { max-width: var(--w-wrap); margin: 0 auto; padding: 0 20px; }
.yk-hide { display: none !important; }

/* ---------- header / navigation ---------- */
.yk-topbar {
  background: var(--ink);
  color: #cfd3d6;
  font-size: 12.5px;
}
.yk-topbar .yk-wrap {
  display: flex; justify-content: space-between; align-items: center;
  height: 34px;
}
.yk-topbar a { color: #e8ebed; }
.yk-topbar a:hover { color: #fff; }
.yk-topbar-greet { letter-spacing: 0.4px; }

.yk-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.yk-header.is-scrolled { box-shadow: var(--shadow-2); }
.yk-header-bar {
  display: flex; align-items: center; gap: 26px;
  height: 66px;
}
.yk-logo { display: flex; align-items: center; flex-shrink: 0; }
.yk-logo img { height: 42px; width: auto; }

.yk-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.yk-nav > li { position: relative; }
.yk-nav > li > a {
  display: block; padding: 8px 13px;
  font-size: 15px; color: var(--ink);
  border-radius: var(--r-sm);
  position: relative;
}
.yk-nav > li > a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
.yk-nav > li > a:hover::after,
.yk-nav > li.is-active > a::after { transform: scaleX(1); }
.yk-nav > li.is-active > a { color: var(--brand); }

.yk-nav-drop {
  position: absolute; top: calc(100% + 6px); left: 6px;
  min-width: 148px; padding: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.2s ease;
}
.yk-nav li:hover .yk-nav-drop,
.yk-nav li.is-open .yk-nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.yk-nav-drop a {
  display: block; padding: 8px 12px; font-size: 14px;
  border-radius: var(--r-sm);
}
.yk-nav-drop a:hover { background: var(--brand-wash); color: var(--brand-deep); }

.yk-header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.yk-tool-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 13.5px; color: var(--ink-soft);
  background: var(--card);
  transition: all 0.2s ease;
}
.yk-tool-btn:hover { border-color: var(--brand); color: var(--brand); }
.yk-cart-count {
  position: absolute; top: -6px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--brand); color: #fff;
  font-size: 11px; line-height: 18px; text-align: center;
  border-radius: var(--r-pill);
}
.yk-btn-login {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.yk-btn-login:hover { background: var(--brand-deep); color: #fff; }

.yk-burger { display: none; width: 40px; height: 40px; position: relative; }
.yk-burger span {
  position: absolute; left: 9px; right: 9px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 0.25s ease;
}
.yk-burger span:nth-child(1) { top: 13px; }
.yk-burger span:nth-child(2) { top: 19px; }
.yk-burger span:nth-child(3) { top: 25px; }
.yk-burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.yk-burger.is-open span:nth-child(2) { opacity: 0; }
.yk-burger.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.yk-mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 10px 20px 16px;
}
.yk-mobile-nav.is-open { display: block; }
.yk-mobile-nav a {
  display: block; padding: 11px 6px;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.yk-mobile-nav a:last-child { border-bottom: 0; }

/* ---------- hero slider ---------- */
.yk-hero { position: relative; overflow: hidden; background: var(--ink); }
.yk-hero-track { position: relative; height: 480px; }
.yk-hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.7s ease;
  background-size: cover; background-position: center;
}
.yk-hero-slide.is-on { opacity: 1; }
.yk-hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,24,0.14) 0%, rgba(20,22,24,0) 42%);
}
.yk-hero-dots {
  position: absolute; left: 0; right: 0; bottom: 18px;
  display: flex; justify-content: center; gap: 9px; z-index: 5;
}
.yk-hero-dots button {
  width: 26px; height: 4px; border-radius: 3px;
  background: rgba(255,255,255,0.45);
  transition: background 0.2s ease, width 0.2s ease;
}
.yk-hero-dots button.is-on { background: #fff; width: 40px; }
.yk-hero-tag {
  position: absolute; left: 0; right: 0; bottom: 52px; z-index: 4;
  color: #fff; font-size: 13px; letter-spacing: 2px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* ---------- section scaffolding ---------- */
.yk-sec { padding: 58px 0; }
.yk-sec--paper { background: var(--paper); }
.yk-sec--white { background: var(--card); }
.yk-sec-head { margin-bottom: 30px; }
.yk-sec-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: 2.5px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 8px;
}
.yk-sec-kicker::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.yk-sec-title { font-size: 26px; font-weight: 700; letter-spacing: 1px; }
.yk-sec-sub { margin-top: 6px; color: var(--ink-soft); font-size: 14px; }
.yk-sec-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
}
.yk-more {
  font-size: 13.5px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 5px;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.yk-more:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- category cards ---------- */
.yk-cats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: -64px; position: relative; z-index: 10;
}
.yk-cat-card {
  background: var(--card); border-radius: var(--r-lg);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-2);
  border: 1px solid rgba(233,227,216,0.7);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.yk-cat-card:hover { transform: translateY(-4px); }
.yk-cat-ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-wash); color: var(--brand);
  margin-bottom: 14px;
}
.yk-cat-card h3 { font-size: 18px; margin-bottom: 4px; }
.yk-cat-card p { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.yk-cat-link {
  font-size: 13px; color: var(--brand);
  display: inline-flex; align-items: center; gap: 4px;
}

/* ---------- product grid & card ---------- */
.yk-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.yk-grid--third { grid-template-columns: repeat(3, 1fr); }
.yk-goods {
  background: var(--card); border-radius: var(--r-md);
  overflow: hidden; border: 1px solid rgba(233,227,216,0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.yk-goods:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.yk-goods-pic {
  position: relative; padding-top: 100%; overflow: hidden;
}
.yk-goods-pic img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; loading: lazy;
  transition: transform 0.4s ease;
}
.yk-goods:hover .yk-goods-pic img { transform: scale(1.04); }
.yk-goods-flag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(184,71,79,0.92); color: #fff;
  font-size: 11.5px; padding: 3px 9px; border-radius: var(--r-pill);
  letter-spacing: 0.5px;
}
.yk-goods-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.yk-goods-cat { font-size: 11.5px; color: var(--ink-faint); letter-spacing: 1px; margin-bottom: 5px; }
.yk-goods-name {
  font-size: 15.5px; font-weight: 700; line-height: 1.45;
  margin-bottom: 8px; min-height: 44px;
}
.yk-goods-name a:hover { color: var(--brand); }
.yk-goods-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.yk-tag {
  font-size: 11px; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: var(--r-pill);
}
.yk-goods-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.yk-price { color: var(--brand); font-weight: 700; font-size: 20px; line-height: 1; }
.yk-price small { font-size: 13px; font-weight: 400; }
.yk-price-orig {
  font-size: 12px; color: var(--ink-faint);
  text-decoration: line-through; margin-left: 6px; font-weight: 400;
}
.yk-add-cart {
  height: 34px; padding: 0 15px;
  background: var(--brand); color: #fff;
  border-radius: var(--r-pill); font-size: 13px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: background 0.2s ease;
}
.yk-add-cart:hover { background: var(--brand-deep); }
.yk-add-cart.is-done { background: var(--ok); }

/* ---------- brand story (asymmetric split) ---------- */
.yk-story {
  display: grid; grid-template-columns: 5fr 6fr; gap: 46px; align-items: center;
}
.yk-story-pic { position: relative; }
.yk-story-pic img {
  width: 100%; height: 400px; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-2);
}
.yk-story-badge {
  position: absolute; right: -18px; bottom: 26px;
  background: var(--brand); color: #fff;
  border-radius: var(--r-md); padding: 14px 20px;
  box-shadow: var(--shadow-2);
}
.yk-story-badge b { display: block; font-size: 22px; line-height: 1.2; }
.yk-story-badge span { font-size: 12px; opacity: 0.85; letter-spacing: 1px; }
.yk-story-txt h2 { font-size: 24px; margin-bottom: 16px; }
.yk-story-txt p { color: var(--ink-soft); margin-bottom: 12px; text-align: justify; }
.yk-story-meta {
  display: flex; gap: 34px; margin-top: 22px; padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.yk-story-meta b { display: block; font-size: 21px; color: var(--brand); }
.yk-story-meta span { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- service promises ---------- */
.yk-promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.yk-promise {
  text-align: center; padding: 26px 18px;
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.yk-promise-ico {
  width: 44px; height: 44px; margin: 0 auto 12px;
  color: var(--gold);
}
.yk-promise b { display: block; font-size: 15.5px; margin-bottom: 5px; }
.yk-promise p { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- news strip ---------- */
.yk-news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.yk-news-card {
  background: var(--card); border-radius: var(--r-md);
  border: 1px solid rgba(233,227,216,0.75);
  padding: 22px 22px 18px;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.yk-news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.yk-news-date {
  font-size: 12px; color: var(--gold); letter-spacing: 1px; margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
}
.yk-news-card h3 { font-size: 16.5px; line-height: 1.5; margin-bottom: 9px; }
.yk-news-card h3 a:hover { color: var(--brand); }
.yk-news-card p { font-size: 13.5px; color: var(--ink-soft); flex: 1; }

/* ---------- page banner (inner pages) ---------- */
.yk-pagebanner {
  background: linear-gradient(135deg, #2a2e33 0%, #3c4148 100%);
  color: #fff; padding: 44px 0 40px;
}
.yk-pagebanner h1 { font-size: 27px; letter-spacing: 1.5px; margin-bottom: 7px; }
.yk-pagebanner p { font-size: 13.5px; color: #c3c8cc; }
.yk-crumb {
  font-size: 13px; color: var(--ink-faint); padding: 16px 0 0;
}
.yk-crumb a:hover { color: var(--brand); }
.yk-crumb i { margin: 0 7px; font-style: normal; }

/* ---------- list page: sidebar + main ---------- */
.yk-list-layout { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
.yk-sidebox {
  background: var(--card); border-radius: var(--r-md);
  border: 1px solid rgba(233,227,216,0.75);
  overflow: hidden; margin-bottom: 20px;
}
.yk-sidebox-hd {
  padding: 14px 18px; font-size: 15.5px; font-weight: 700;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.yk-side-cats a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; font-size: 14px;
  border-bottom: 1px dashed var(--line);
  transition: all 0.15s ease;
}
.yk-side-cats a:last-child { border-bottom: 0; }
.yk-side-cats a span { font-size: 12px; color: var(--ink-faint); }
.yk-side-cats a:hover, .yk-side-cats a.is-active {
  background: var(--brand-wash); color: var(--brand-deep); font-weight: 700;
}
.yk-side-help { padding: 16px 18px; font-size: 13px; color: var(--ink-soft); }
.yk-side-help b { color: var(--ink); }

.yk-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid rgba(233,227,216,0.75);
  border-radius: var(--r-md); padding: 12px 18px; margin-bottom: 20px;
  font-size: 13.5px; color: var(--ink-soft);
}

/* ---------- product detail ---------- */
.yk-detail { display: grid; grid-template-columns: 460px 1fr; gap: 40px; align-items: start; }
.yk-detail-pic {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid rgba(233,227,216,0.75);
  overflow: hidden;
}
.yk-detail-pic img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.yk-detail-info h1 { font-size: 25px; line-height: 1.4; margin: 6px 0 12px; }
.yk-detail-brief {
  color: var(--ink-soft); font-size: 14px; padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.yk-detail-pricebox {
  background: var(--brand-wash); border-radius: var(--r-md);
  padding: 18px 20px; margin: 18px 0;
  display: flex; align-items: baseline; gap: 12px;
}
.yk-detail-pricebox .yk-price { font-size: 30px; }
.yk-detail-pricebox .yk-price-orig { font-size: 14px; }
.yk-detail-pricebox em {
  margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--brand-deep);
}
.yk-spec { margin-bottom: 20px; }
.yk-spec h4 { font-size: 14px; margin-bottom: 10px; color: var(--ink-soft); font-weight: 400; }
.yk-spec ul { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.yk-spec li {
  font-size: 13px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 12px;
  display: flex; align-items: center; gap: 7px;
}
.yk-spec li svg { color: var(--gold); flex-shrink: 0; }
.yk-detail-actions { display: flex; gap: 12px; align-items: center; }
.yk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 30px; border-radius: var(--r-pill);
  font-size: 15px; transition: all 0.2s ease;
}
.yk-btn--primary { background: var(--brand); color: #fff; }
.yk-btn--primary:hover { background: var(--brand-deep); }
.yk-btn--ghost { border: 1px solid var(--brand); color: var(--brand); background: transparent; }
.yk-btn--ghost:hover { background: var(--brand-wash); }
.yk-btn--wide { width: 100%; }
.yk-detail-meta { margin-top: 16px; font-size: 12.5px; color: var(--ink-faint); display: flex; flex-direction: column; gap: 5px; }
.yk-detail-meta svg { margin-right: 5px; color: var(--gold); }

.yk-detail-tabs { margin-top: 46px; background: var(--card); border-radius: var(--r-lg); border: 1px solid rgba(233,227,216,0.75); overflow: hidden; }
.yk-tabs-nav { display: flex; border-bottom: 1px solid var(--line); }
.yk-tabs-nav button {
  padding: 15px 26px; font-size: 15px; color: var(--ink-soft);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.yk-tabs-nav button.is-on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.yk-tabs-pane { padding: 26px 28px; display: none; }
.yk-tabs-pane.is-on { display: block; }
.yk-tabs-pane p { margin-bottom: 10px; color: var(--ink-soft); text-align: justify; }
.yk-tabs-pane ul { padding-left: 2px; }
.yk-tabs-pane ul li {
  position: relative; padding-left: 18px; margin-bottom: 7px; color: var(--ink-soft); font-size: 14px;
}
.yk-tabs-pane ul li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--gold);
}

/* ---------- related products ---------- */
.yk-related { margin-top: 26px; }

/* ---------- forms (auth / checkout) ---------- */
.yk-form-wrap { max-width: 460px; margin: 0 auto; }
.yk-form-card {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid rgba(233,227,216,0.75);
  padding: 36px 36px 30px; box-shadow: var(--shadow-1);
}
.yk-form-card h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.yk-form-card .yk-form-tip { text-align: center; font-size: 13px; color: var(--ink-soft); margin-bottom: 24px; }
.yk-field { margin-bottom: 16px; }
.yk-field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.yk-field input, .yk-field textarea, .yk-field select {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.yk-field textarea { height: 92px; padding: 10px 14px; resize: vertical; }
.yk-field input:focus, .yk-field textarea:focus, .yk-field select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(184,71,79,0.12);
}
.yk-field-err { font-size: 12px; color: var(--warn); margin-top: 5px; display: none; }
.yk-field.is-err input { border-color: var(--warn); }
.yk-field.is-err .yk-field-err { display: block; }
.yk-form-foot { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 18px; }
.yk-form-foot a { color: var(--brand); }
.yk-form-foot a:hover { text-decoration: underline; }
.yk-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ink-soft); margin: 14px 0 18px; }
.yk-agree input { margin-top: 3px; }
.yk-agree a { color: var(--brand); }

/* ---------- cart table ---------- */
.yk-cart-box { background: var(--card); border-radius: var(--r-lg); border: 1px solid rgba(233,227,216,0.75); overflow: hidden; }
.yk-cart-head {
  display: grid; grid-template-columns: 1fr 130px 110px 130px 60px;
  padding: 13px 22px; font-size: 13px; color: var(--ink-faint);
  border-bottom: 1px solid var(--line); background: var(--paper);
}
.yk-cart-row {
  display: grid; grid-template-columns: 1fr 130px 110px 130px 60px;
  align-items: center; padding: 18px 22px;
  border-bottom: 1px dashed var(--line);
}
.yk-cart-row:last-child { border-bottom: 0; }
.yk-cart-goods { display: flex; gap: 14px; align-items: center; }
.yk-cart-goods img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); }
.yk-cart-goods b { font-size: 14.5px; display: block; margin-bottom: 3px; }
.yk-cart-goods span { font-size: 12px; color: var(--ink-faint); }
.yk-cart-price { color: var(--brand); font-weight: 700; }
.yk-qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.yk-qty button { width: 30px; height: 32px; font-size: 15px; color: var(--ink-soft); background: var(--paper); }
.yk-qty button:hover { color: var(--brand); }
.yk-qty input { width: 44px; height: 32px; text-align: center; border: 0; background: var(--card); outline: none; }
.yk-cart-sub { font-weight: 700; }
.yk-cart-del { color: var(--ink-faint); font-size: 13px; }
.yk-cart-del:hover { color: var(--brand); }
.yk-cart-empty { text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.yk-cart-empty svg { color: var(--line); margin-bottom: 14px; }
.yk-cart-empty p { margin-bottom: 18px; }
.yk-cart-foot {
  display: flex; justify-content: flex-end; align-items: center; gap: 26px;
  padding: 18px 22px; background: var(--paper); border-top: 1px solid var(--line);
}
.yk-cart-total { font-size: 14px; color: var(--ink-soft); }
.yk-cart-total b { color: var(--brand); font-size: 24px; margin: 0 4px; }

/* ---------- checkout / order summary ---------- */
.yk-checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.yk-panel {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid rgba(233,227,216,0.75); padding: 26px 28px;
}
.yk-panel + .yk-panel { margin-top: 20px; }
.yk-panel h3 {
  font-size: 16.5px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 9px;
}
.yk-panel h3 i {
  font-style: normal; width: 22px; height: 22px; border-radius: 6px;
  background: var(--brand); color: #fff; font-size: 12.5px;
  display: inline-flex; align-items: center; justify-content: center;
}
.yk-order-mini { font-size: 13.5px; }
.yk-order-mini li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft);
}
.yk-order-mini li b { color: var(--ink); font-weight: 400; }
.yk-order-total {
  display: flex; justify-content: space-between; padding-top: 14px;
  font-size: 14px;
}
.yk-order-total b { color: var(--brand); font-size: 22px; }

/* ---------- pay page ---------- */
.yk-pay-amount { text-align: center; padding: 10px 0 24px; }
.yk-pay-amount span { font-size: 13px; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.yk-pay-amount b { font-size: 40px; color: var(--ink); font-weight: 700; }
.yk-pay-amount b i { font-style: normal; font-size: 20px; margin-right: 4px; }
.yk-pay-methods { display: grid; gap: 12px; margin-bottom: 26px; }
.yk-pay-method {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 18px; cursor: pointer; transition: all 0.18s ease;
  background: var(--card);
}
.yk-pay-method:hover { border-color: var(--brand); }
.yk-pay-method.is-on { border-color: var(--brand); background: var(--brand-wash); box-shadow: 0 0 0 2px rgba(184,71,79,0.14); }
.yk-pay-ico {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.yk-pay-ico--alipay { background: #1677ff; }
.yk-pay-ico--wechat { background: #22b358; }
.yk-pay-ico--union { background: #d8601f; }
.yk-pay-method b { font-size: 15px; display: block; }
.yk-pay-method span { font-size: 12.5px; color: var(--ink-soft); }
.yk-pay-method .yk-radio {
  margin-left: auto; width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid var(--line); position: relative; flex-shrink: 0;
}
.yk-pay-method.is-on .yk-radio { border-color: var(--brand); }
.yk-pay-method.is-on .yk-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand);
}
.yk-pay-processing { text-align: center; padding: 30px 0 6px; color: var(--ink-soft); font-size: 14px; }
.yk-pay-processing .yk-spin {
  width: 34px; height: 34px; margin: 0 auto 14px;
  border: 3px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: ykspin 0.8s linear infinite;
}
@keyframes ykspin { to { transform: rotate(360deg); } }

/* ---------- result pages ---------- */
.yk-result { max-width: 520px; margin: 0 auto; text-align: center; padding: 70px 20px; }
.yk-result-ico { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.yk-result-ico--ok { background: #e8f4ec; color: var(--ok); }
.yk-result-ico--fail { background: #f9ece4; color: var(--warn); }
.yk-result h1 { font-size: 24px; margin-bottom: 10px; }
.yk-result .yk-result-sub { color: var(--ink-soft); margin-bottom: 26px; }
.yk-result-order {
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--r-md);
  padding: 18px 22px; text-align: left; margin-bottom: 28px;
}
.yk-result-order li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; color: var(--ink-soft); }
.yk-result-order li b { color: var(--ink); font-weight: 400; }
.yk-result-btns { display: flex; gap: 14px; justify-content: center; }

/* ---------- article / static pages ---------- */
.yk-article {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid rgba(233,227,216,0.75);
  padding: 40px 46px; max-width: 880px; margin: 0 auto;
}
.yk-article-hd { text-align: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.yk-article-hd h1 { font-size: 24px; line-height: 1.5; margin-bottom: 12px; }
.yk-article-hd .yk-article-meta { font-size: 13px; color: var(--ink-faint); display: flex; justify-content: center; gap: 20px; }
.yk-article-body p { margin-bottom: 14px; color: #3a3f44; text-align: justify; }
.yk-article-body h3 { font-size: 17px; margin: 22px 0 12px; }
.yk-article-body ul { margin-bottom: 14px; }
.yk-article-body ul li { position: relative; padding-left: 18px; margin-bottom: 8px; color: #3a3f44; }
.yk-article-body ul li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--gold);
}
.yk-article-note {
  background: var(--paper); border-left: 3px solid var(--gold);
  padding: 13px 16px; font-size: 13.5px; color: var(--ink-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 18px 0;
}
.yk-zixun-list .yk-news-card { margin-bottom: 0; }

/* ---------- contact page ---------- */
.yk-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.yk-contact-info { padding: 34px 36px; }
.yk-contact-line { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.yk-contact-line svg { color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.yk-contact-line b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.yk-contact-line span { font-size: 13.5px; color: var(--ink-soft); }
.yk-contact-map {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(233,227,216,0.75);
  background: linear-gradient(150deg, #eef2ec 0%, #e3e9e2 100%);
  min-height: 320px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.yk-contact-map-inner { text-align: center; padding: 30px; }
.yk-contact-map-inner svg { color: var(--brand); margin-bottom: 12px; }
.yk-contact-map-inner b { display: block; font-size: 15px; margin-bottom: 6px; }
.yk-contact-map-inner span { font-size: 12.5px; color: var(--ink-soft); }
.yk-map-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(35,39,43,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,39,43,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------- about page ---------- */
.yk-about-lead { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.yk-about-lead-pic img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.yk-about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.yk-about-fact { background: var(--card); border: 1px solid rgba(233,227,216,0.75); border-radius: var(--r-md); padding: 16px 14px; text-align: center; }
.yk-about-fact b { display: block; font-size: 14px; color: var(--brand); margin-bottom: 4px; }
.yk-about-fact span { font-size: 12px; color: var(--ink-soft); }
.yk-scope-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.yk-scope-tags span {
  font-size: 12.5px; background: var(--card); border: 1px solid var(--line);
  padding: 5px 13px; border-radius: var(--r-pill); color: var(--ink-soft);
}

/* ---------- activity page ---------- */
.yk-act-banner {
  border-radius: var(--r-lg); padding: 34px 38px; color: #fff;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 100%);
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.yk-act-banner::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.yk-act-banner h2 { font-size: 23px; margin-bottom: 8px; }
.yk-act-banner p { font-size: 13.5px; opacity: 0.92; }
.yk-act-item {
  display: flex; gap: 20px; align-items: center;
  background: var(--card); border: 1px solid rgba(233,227,216,0.75);
  border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 14px;
  transition: box-shadow 0.2s ease;
}
.yk-act-item:hover { box-shadow: var(--shadow-2); }
.yk-act-badge {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: var(--r-md);
  background: var(--brand-wash); color: var(--brand);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1.3;
}
.yk-act-badge b { font-size: 19px; }
.yk-act-item h3 { font-size: 16px; margin-bottom: 5px; }
.yk-act-item p { font-size: 13px; color: var(--ink-soft); margin-bottom: 7px; }
.yk-act-item .yk-link-go { font-size: 13px; color: var(--brand); }

/* ---------- search page ---------- */
.yk-searchbar { display: flex; gap: 12px; max-width: 640px; margin: 0 auto 34px; }
.yk-searchbar input {
  flex: 1; height: 48px; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 0 22px; background: var(--card); outline: none;
}
.yk-searchbar input:focus { border-color: var(--brand); }
.yk-searchbar button {
  height: 48px; padding: 0 30px; border-radius: var(--r-pill);
  background: var(--brand); color: #fff; font-size: 15px;
}
.yk-searchbar button:hover { background: var(--brand-deep); }

/* ---------- footer ---------- */
.yk-footer { background: #24282c; color: #a9aeb3; margin-top: 66px; }
.yk-footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
  padding: 52px 0 40px;
}
.yk-footer h4 { color: #e8ebed; font-size: 15.5px; margin-bottom: 16px; letter-spacing: 1px; }
.yk-footer-about p { font-size: 13px; line-height: 1.9; }
.yk-footer-logo { display: inline-block; background: #fff; border-radius: 8px; padding: 7px 12px; margin-bottom: 16px; }
.yk-footer-logo img { height: 30px; }
.yk-footer ul li { margin-bottom: 9px; font-size: 13.5px; }
.yk-footer ul a:hover { color: #fff; }
.yk-footer-contact li { display: flex; gap: 9px; align-items: flex-start; }
.yk-footer-contact svg { margin-top: 3px; color: var(--gold); flex-shrink: 0; }
.yk-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding: 19px 0 21px; font-size: 12.5px; text-align: center;
  display: flex; flex-direction: column; gap: 7px;
}
.yk-footer-bottom a { color: #a9aeb3; }
.yk-footer-bottom a:hover { color: #fff; }

/* ---------- float buttons ---------- */
.yk-float {
  position: fixed; right: 26px; bottom: 90px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px;
}
.yk-float button {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink-soft); box-shadow: var(--shadow-1);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.yk-float button:hover { color: var(--brand); border-color: var(--brand); }
.yk-float .yk-tel-btn { background: var(--brand); border-color: var(--brand); color: #fff; }
.yk-float .yk-tel-btn:hover { background: var(--brand-deep); color: #fff; }

/* ---------- toast ---------- */
.yk-toast {
  position: fixed; left: 50%; top: 18%; transform: translateX(-50%) translateY(-8px);
  background: rgba(35,39,43,0.92); color: #fff;
  padding: 11px 24px; border-radius: var(--r-pill); font-size: 14px;
  z-index: 200; opacity: 0; pointer-events: none;
  transition: all 0.25s ease;
}
.yk-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .yk-grid { grid-template-columns: repeat(3, 1fr); }
  .yk-cats { grid-template-columns: repeat(3, 1fr); }
  .yk-detail { grid-template-columns: 1fr; }
  .yk-detail-pic { max-width: 520px; }
  .yk-list-layout { grid-template-columns: 200px 1fr; }
  .yk-hero-track { height: 400px; }
}
@media (max-width: 860px) {
  .yk-nav { display: none; }
  .yk-burger { display: block; }
  .yk-topbar-greet { display: none; }
  .yk-grid, .yk-grid--third { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .yk-cats { grid-template-columns: 1fr; margin-top: 20px; gap: 12px; }
  .yk-story, .yk-about-lead, .yk-contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .yk-story-pic img { height: 260px; }
  .yk-story-badge { right: 12px; }
  .yk-promises { grid-template-columns: repeat(2, 1fr); }
  .yk-news-list { grid-template-columns: 1fr; }
  .yk-list-layout { grid-template-columns: 1fr; }
  .yk-checkout-layout { grid-template-columns: 1fr; }
  .yk-hero-track { height: 300px; }
  .yk-sec { padding: 40px 0; }
  .yk-footer-main { grid-template-columns: 1fr 1fr; gap: 26px; padding: 40px 0 30px; }
  .yk-article { padding: 28px 22px; }
  .yk-cart-head { display: none; }
  .yk-cart-row {
    grid-template-columns: 1fr; gap: 12px;
    padding: 16px;
  }
  .yk-cart-row .yk-cart-goods { justify-content: space-between; }
  .yk-cart-row .yk-cart-price::before { content: '单价 '; font-size: 11px; color: var(--ink-faint); font-weight: 400; }
  .yk-cart-row .yk-cart-sub::before { content: '小计 '; font-size: 11px; color: var(--ink-faint); font-weight: 400; }
  .yk-detail-pic { max-width: 100%; }
}
@media (max-width: 480px) {
  .yk-wrap { padding: 0 14px; }
  .yk-grid, .yk-grid--third { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .yk-goods-body { padding: 11px 11px 13px; }
  .yk-goods-name { font-size: 14px; min-height: 40px; }
  .yk-price { font-size: 17px; }
  .yk-add-cart { padding: 0 11px; font-size: 12px; height: 31px; }
  .yk-hero-track { height: 230px; }
  .yk-promises { grid-template-columns: 1fr 1fr; gap: 10px; }
  .yk-footer-main { grid-template-columns: 1fr; }
  .yk-detail-actions { flex-direction: column; align-items: stretch; }
  .yk-spec ul { grid-template-columns: 1fr; }
  .yk-about-facts { grid-template-columns: repeat(2, 1fr); }
  .yk-result h1 { font-size: 20px; }
  .yk-pay-amount b { font-size: 32px; }
  .yk-act-item { flex-direction: column; align-items: flex-start; }
  .yk-float { right: 14px; bottom: 70px; }
}
