:root {
  --ink: #25231f;
  --muted: #777168;
  --line: #e8e2d9;
  --canvas: #f3f0ea;
  --surface: #fffdfa;
  --brand: #263d35;
  --brand-strong: #1d302a;
  --accent: #a87543;
  --accent-soft: #f1e5d8;
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: #e8e3da;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
button, input { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.site-shell { width: min(100%, 480px); min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--surface); box-shadow: 0 12px 50px rgba(52, 42, 31, .14); }
.site-header { position: sticky; top: 0; z-index: 20; height: 62px; display: flex; align-items: center; justify-content: center; padding: 0 16px; border-bottom: 1px solid rgba(232,226,217,.9); background: rgba(255,253,250,.92); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: var(--ink); }
.brand span { width: 34px; height: 34px; display: grid; place-items: center; color: #f7f1e9; background: var(--brand); border-radius: 4px; font-family: Georgia, "Microsoft YaHei", serif; font-size: 18px; box-shadow: 0 5px 12px rgba(38,61,53,.2); }
.brand strong { font-size: 16px; font-weight: 800; }
.language-picker { position: absolute; right: 14px; }
.language-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--brand); font-size: 12px; font-weight: 800; }
.language-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.language-button svg { width: 17px; height: 17px; }
.language-menu { position: absolute; top: 44px; right: 0; z-index: 40; display: grid; grid-template-columns: repeat(2, minmax(105px, 1fr)); gap: 4px; width: 250px; max-height: min(62vh, 420px); padding: 8px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 14px 34px rgba(52,42,31,.18); }
.language-menu[hidden] { display: none; }
.language-menu button { min-height: 36px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); text-align: left; font-size: 12px; }
.language-menu button:hover, .language-menu button.active { background: var(--accent-soft); color: var(--brand); font-weight: 800; }
#content { min-height: calc(100vh - 58px); }
.loading { padding: 120px 20px; color: var(--muted); text-align: center; }
.hero { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; color: white; background: #dfe2de center/cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,24,21,.72), rgba(18,24,21,.08) 62%, rgba(18,24,21,0) 82%); }
.hero-copy { position: relative; z-index: 1; width: calc(100% - 32px); margin: 0 auto; padding-bottom: 36px; }
.hero-copy h1 { margin: 0; font-family: Georgia, "Microsoft YaHei", serif; font-size: 40px; font-weight: 500; }
.hero-copy p { margin: 10px 0 0; font-size: 15px; }
.hero-dots { position: absolute; right: 16px; bottom: 18px; z-index: 2; display: flex; gap: 6px; }
.hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.48); transition: width .2s ease, background .2s ease; }
.hero-dots span.active { width: 20px; border-radius: 4px; background: #fff; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-links button { min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 0; border-right: 1px solid var(--line); background: var(--surface); color: #57534c; font-size: 12px; transition: background .2s ease, color .2s ease; }
.quick-links button:hover { background: #f7f1e9; color: var(--brand); }
.quick-links button:last-child { border-right: 0; }
.quick-links svg { width: 25px; height: 25px; color: var(--accent); }
.home-categories { padding: 38px 16px 42px; background: var(--surface); }
.home-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-category-card { position: relative; min-height: 142px; overflow: hidden; padding: 0; border: 0; border-radius: 7px; background: #e5e0d7; color: #fff; text-align: left; box-shadow: 0 5px 14px rgba(54,43,31,.12); transition: transform .2s ease, box-shadow .2s ease; }
.home-category-card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(54,43,31,.18); }
.home-category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17, 24, 20, .68), rgba(17, 24, 20, .04) 70%); }
.home-category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-category-card span { position: absolute; right: 14px; bottom: 13px; left: 14px; z-index: 1; }
.home-category-card strong, .home-category-card small { display: block; }
.home-category-card strong { font-size: 16px; font-weight: 800; }
.home-category-card small { margin-top: 5px; color: rgba(255,255,255,.78); font-size: 11px; }
.home-category-card.featured { grid-column: 1 / -1; min-height: 156px; }
.category-page-header .eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 800; }
.category-page-header h1 { margin-bottom: 8px; }
.category-page-header > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.subcategory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.subcategory-card { position: relative; min-height: 82px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 18px; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fffefa; color: var(--ink); text-align: left; box-shadow: 0 4px 12px rgba(54,43,31,.06); }
.subcategory-card:hover { border-color: #c9ad8f; background: #fbf5ed; }
.subcategory-icon { grid-row: 1 / 3; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 6px; color: #fffaf4; background: var(--brand); font-family: Georgia, "Microsoft YaHei", serif; font-size: 18px; }
.subcategory-icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.subcategory-card strong { align-self: end; font-size: 16px; }
.subcategory-card small { align-self: start; color: var(--muted); }
.subcategory-card svg { grid-column: 3; grid-row: 1 / 3; width: 18px; color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 18px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 800; }
.back-link svg { width: 17px; height: 17px; }
.subcategory-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 142px; padding: 16px; }
.subcategory-icon { flex: 0 0 auto; margin-bottom: 12px; }
.subcategory-card strong { align-self: auto; }
.subcategory-card small { align-self: auto; margin-top: 5px; }
.subcategory-card svg { position: absolute; top: 14px; right: 14px; width: 17px; }
.section { padding: 38px 16px; background: var(--surface); }
.section.alt { background: var(--canvas); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.section-header h2 { margin: 0; font-family: Georgia, "Microsoft YaHei", serif; font-size: 28px; font-weight: 500; color: var(--ink); }
.text-button { border: 0; background: transparent; color: var(--accent); font-weight: 800; }
.product-grid, .case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.product-card, .case-card { border: 0; background: transparent; padding: 0; text-align: left; color: inherit; }
.product-card img, .case-card img { width: 100%; aspect-ratio: 1.18; display: block; object-fit: cover; border-radius: 7px; background: #e7e1d8; box-shadow: 0 4px 12px rgba(54,43,31,.08); }
.product-card strong, .case-card strong { display: block; margin-top: 13px; font-size: 15px; line-height: 1.4; }
.product-card small, .case-card small { display: block; margin-top: 6px; color: var(--muted); }
.article-list { display: grid; grid-template-columns: 1fr; gap: 20px; }
.article-card { display: grid; grid-template-columns: 120px 1fr; gap: 14px; border: 0; padding: 0; background: transparent; text-align: left; }
.article-card img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 7px; }
.article-card strong { display: block; margin-top: 13px; font-size: 16px; }
.article-card small { display: block; margin-top: 8px; color: var(--muted); }
.page-header { padding: 34px 16px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-header h1 { margin: 0 0 20px; font-family: Georgia, "Microsoft YaHei", serif; font-size: 30px; font-weight: 500; }
.search-tools { display: flex; gap: 14px; }
.search-tools input { width: min(520px, 100%); height: 44px; padding: 0 15px; border: 1px solid #dcd5ca; border-radius: 6px; outline: none; background: #fffefa; }
.search-tools input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,117,67,.14); }
.search-tools button, .solid-button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 6px; color: #fffaf4; background: var(--brand); font-weight: 800; box-shadow: 0 5px 12px rgba(38,61,53,.16); }
.search-tools button:hover, .solid-button:hover { background: var(--brand-strong); }
.sort-row { display: flex; gap: 34px; margin-top: 22px; }
.sort-row button { padding: 0 0 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #606661; }
.sort-row button.active { color: var(--accent); border-color: var(--accent); font-weight: 800; }
.empty { padding: 90px 20px; text-align: center; }
.empty svg { width: 58px; height: 58px; color: #a9aea9; }
.empty h2 { margin: 20px 0 8px; font-size: 21px; }
.empty p { margin: 0 0 24px; color: var(--muted); }
.support-layout { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 58px); background: white; }
.support-image { min-height: 340px; background: #e2e5e1 center/cover no-repeat; }
.support-copy { align-self: center; padding: 36px 22px; }
.support-copy h1 { margin: 0; font-family: Georgia, serif; font-size: 38px; font-weight: 500; }
.support-copy > p { color: var(--accent); }
.contact-list { margin-top: 38px; border-top: 1px solid var(--line); }
.contact-list div { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-list span:first-child { color: var(--muted); }
.mobile-tabs { position: fixed; bottom: 0; left: 50%; z-index: 30; width: min(100%, 480px); height: calc(70px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 6px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,253,250,.96); box-shadow: 0 -8px 24px rgba(52,42,31,.1); backdrop-filter: blur(14px); transform: translateX(-50%); }
.mobile-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 6px; background: transparent; color: #777168; font-size: 11px; transition: color .2s ease, background .2s ease; }
.mobile-tabs button:hover { background: #f5eee5; color: var(--brand); }
.mobile-tabs svg { width: 20px; height: 20px; stroke-width: 1.8; }
.mobile-tabs button.active { color: var(--accent); background: var(--accent-soft); font-weight: 800; }
.mobile-tabs button.active::before { content: ''; position: absolute; top: -4px; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
dialog { width: min(460px, calc(100vw - 28px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 8px; box-shadow: 0 20px 70px rgba(52,42,31,.26); }
dialog::backdrop { background: rgba(20,25,22,.68); }
.auth-dialog { width: min(430px, calc(100vw - 24px)); background: var(--surface); }
.auth-panel { padding: 34px 26px 28px; }
.auth-panel .eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 800; }
.auth-panel h2 { margin: 0; font-family: Georgia, "Microsoft YaHei", serif; font-size: 29px; font-weight: 500; }
.auth-copy { margin: 12px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-tabs, .auth-methods { display: grid; gap: 6px; padding: 4px; border-radius: 6px; background: #f0ece5; }
.auth-tabs { grid-template-columns: 1fr 1fr; }
.auth-methods { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.auth-tabs button, .auth-methods button { min-height: 38px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 13px; }
.auth-tabs button.active, .auth-methods button.active { background: var(--surface); color: var(--brand); font-weight: 800; box-shadow: 0 2px 8px rgba(54,43,31,.09); }
.auth-fields { display: grid; gap: 16px; margin-top: 22px; }
.auth-fields label { display: grid; gap: 8px; color: #57524b; font-size: 13px; font-weight: 700; }
.auth-fields input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #ddd5ca; border-radius: 6px; background: #fffefa; outline: none; }
.code-row { display: grid; grid-template-columns: 1fr 112px; gap: 8px; }
.code-row button { border: 1px solid var(--brand); border-radius: 6px; color: var(--brand); background: transparent; font-size: 12px; font-weight: 700; }
.code-row button:disabled { opacity: .5; }
.auth-error { min-height: 20px; margin: 12px 0 0; color: #a13f39; font-size: 12px; }
.auth-submit { width: 100%; min-height: 46px; border: 0; border-radius: 6px; color: #fffaf4; background: var(--brand); font-weight: 800; }
.auth-wechat-note { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; border: 0; color: var(--muted); background: transparent; font-size: 12px; }
.auth-wechat-note svg { width: 16px; }
.close-button { position: sticky; top: 14px; z-index: 2; float: right; width: 38px; height: 38px; display: grid; place-items: center; margin: 14px 14px -52px 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); }
.detail-cover { width: 100%; max-height: 480px; display: block; object-fit: cover; }
.detail-copy { padding: 28px; }
.detail-copy h2 { margin: 0; font-size: 28px; }
.detail-copy .meta { margin: 8px 0 22px; color: var(--muted); }
.detail-copy p { color: #505650; line-height: 1.8; }
.detail-images img { width: 100%; display: block; margin-top: 6px; }
#toast { position: fixed; right: 20px; bottom: 84px; z-index: 50; padding: 12px 16px; border-radius: 6px; color: #fffaf4; background: var(--brand); box-shadow: 0 10px 24px rgba(38,61,53,.22); opacity: 0; transform: translateY(10px); transition: .2s ease; }
#toast.show { opacity: 1; transform: none; }

@media (max-width: 480px) {
  .site-shell { box-shadow: none; }
  .hero { aspect-ratio: 16 / 9; }
  .search-tools { gap: 8px; }
}
