/* /editor.css */
/* 柴不多 CMS - 公共样式 */

/* ===== CMS Toolbar ===== */
.cms-toolbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 50px; background: #2c2c2c; color: white;
  display: none; align-items: center; justify-content: space-between;
  padding: 0 20px; z-index: 10001; font-size: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.cms-toolbar.visible { display: flex; }
.cms-toolbar .cms-left { display: flex; align-items: center; gap: 15px; }
.cms-toolbar .cms-right { display: flex; align-items: center; gap: 10px; }
.cms-toolbar .cms-logo { font-weight: 700; font-size: 15px; }
.cms-toolbar .cms-badge { background: #c4956a; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.cms-toolbar button { padding: 6px 14px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; transition: all 0.2s; }
.cms-btn-save { background: #c4956a; color: white; }
.cms-btn-save:hover { background: #b5845b; }
.cms-btn-logout { background: #555; color: #ddd; }
.cms-btn-logout:hover { background: #666; }
.cms-btn-admin { background: #444; color: #ddd; border: 1px solid #666 !important; }
.cms-btn-admin:hover { background: #555; }

/* ===== Edit mode highlights ===== */
body.cms-editing [data-cms] {
  outline: 2px dashed transparent; transition: outline-color 0.2s; cursor: default; position: relative;
}
body.cms-editing [data-cms]:hover { outline-color: #c4956a; }
body.cms-editing [data-cms][contenteditable="true"] {
  outline-color: #4CAF50; background: rgba(76, 175, 80, 0.05); cursor: text;
}

/* ===== Image hover ===== */
body.cms-editing [data-cms-img]:hover {
  outline: 2px dashed #c4956a; cursor: pointer; position: relative;
}
body.cms-editing [data-cms-img]:hover::after {
  content: '📷 点击更换图片'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: white;
  padding: 8px 16px; border-radius: 6px; font-size: 14px; white-space: nowrap; z-index: 100;
}

/* Static insert buttons */
body.cms-editing [data-cms-insert] {
  display: flex !important; align-items: center; justify-content: center; gap: 6px;
  background: #f8f5f2; border: 2px dashed #ddd; border-radius: 8px; padding: 12px;
  cursor: pointer; transition: all 0.2s; color: #999; font-size: 14px; margin: 0.5rem 0;
}
body.cms-editing [data-cms-insert]:hover { border-color: #c4956a; color: #c4956a; background: #faf5f0; }
body:not(.cms-editing) [data-cms-insert] { display: none !important; }

body.cms-toolbar-active { padding-top: 50px; }
body.cms-toolbar-active nav { top: 50px !important; }

.cms-login-link {
  display: none !important;
}

/* ===== Toast ===== */
.cms-toast {
  position: fixed; top: 60px; right: 20px; padding: 12px 20px;
  border-radius: 8px; color: white; font-size: 14px; z-index: 10002;
  animation: cms-slide-in 0.3s ease, cms-fade-out 0.5s ease 2.5s forwards;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.cms-toast.success { background: #4CAF50; }
.cms-toast.error { background: #f44336; }
.cms-toast.info { background: #2196F3; }
@keyframes cms-slide-in { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes cms-fade-out { from { opacity: 1; } to { opacity: 0; } }

/* ===== Image upload modal ===== */
.cms-modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 10003; justify-content: center; align-items: center;
}
.cms-modal-overlay.active { display: flex; }
.cms-modal {
  background: white; border-radius: 12px; padding: 30px;
  max-width: 500px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.cms-modal h3 { margin-bottom: 15px; font-size: 18px; }
.cms-modal .upload-area {
  border: 2px dashed #ddd; border-radius: 8px; padding: 40px 20px;
  text-align: center; cursor: pointer; transition: all 0.2s; margin-bottom: 15px;
}
.cms-modal .upload-area:hover { border-color: #c4956a; background: #faf5f0; }
.cms-modal .upload-area .icon { font-size: 2rem; margin-bottom: 10px; }
.cms-modal .upload-area p { color: #999; font-size: 14px; }
.cms-modal .preview { max-width: 100%; max-height: 200px; border-radius: 8px; margin-bottom: 15px; display: none; }
.cms-modal .btn-row { display: flex; gap: 10px; justify-content: flex-end; }
.cms-modal button { padding: 8px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; }
.cms-modal .btn-cancel { background: #f0f0f0; color: #666; }
.cms-modal .btn-confirm { background: #c4956a; color: white; }
.cms-modal .btn-confirm:hover { background: #b5845b; }

/* ============================================================
   INSERT-POINT INDICATORS
   ============================================================ */

.cms-insert-point {
  position: relative; height: 0; margin: 0; padding: 0;
  overflow: visible; cursor: pointer; z-index: 50;
}
.cms-insert-point::before {
  content: ''; position: absolute; left: 5%; right: 5%; top: 50%;
  height: 2px; background: transparent; transition: background 0.2s; border-radius: 1px;
}
.cms-insert-point .cms-insert-plus {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 28px; height: 28px; background: #f8f5f2; border: 2px solid #ddd;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 300; color: transparent; transition: all 0.2s;
  line-height: 1; user-select: none; z-index: 1;
}
.cms-insert-point:hover::before { background: #c4956a; }
.cms-insert-point:hover .cms-insert-plus {
  background: #c4956a; border-color: #c4956a; color: white;
  box-shadow: 0 2px 8px rgba(196, 149, 106, 0.3);
}
body:not(.cms-editing) .cms-insert-point { display: none !important; }

/* ===== Inline add menu ===== */
#cmsInlineMenu {
  display: flex; gap: 6px; padding: 6px 10px; background: white;
  border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin: 4px 0; position: relative; z-index: 60;
  animation: cms-inline-in 0.15s ease; flex-wrap: wrap; justify-content: center;
}
@keyframes cms-inline-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.cms-inline-item {
  display: flex; align-items: center; gap: 4px; padding: 6px 12px;
  border-radius: 6px; cursor: pointer; font-size: 13px; color: #666;
  transition: all 0.15s; white-space: nowrap; user-select: none;
}
.cms-inline-item:hover { background: #faf5f0; color: #c4956a; }
.cms-inline-item span { font-size: 16px; }

/* ===== Image layout sub-menu ===== */
#cmsImageLayoutSub {
  display: none; flex-direction: column; gap: 2px;
  padding: 4px 0 4px 24px; border-left: 2px solid #f0e6dc; margin-left: 8px;
}
.cms-layout-item { font-size: 12px !important; padding: 4px 10px !important; }
.cms-layout-item span { font-size: 14px !important; }

/* ===== Floating "+" button ===== */
#cmsAddBtn {
  position: fixed; bottom: 20px; left: 20px;
  width: 50px; height: 50px; background: #c4956a; color: white;
  border-radius: 50%; display: none; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 300; cursor: pointer; z-index: 10000;
  box-shadow: 0 4px 15px rgba(196, 149, 106, 0.4);
  transition: all 0.2s; line-height: 1; user-select: none;
}
body.cms-editing #cmsAddBtn { display: flex; }
#cmsAddBtn:hover { background: #b5845b; transform: scale(1.1); box-shadow: 0 6px 20px rgba(196, 149, 106, 0.5); }

#cmsAddMenu {
  position: fixed; bottom: 80px; left: 20px;
  background: white; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15); padding: 8px 0;
  min-width: 160px; z-index: 10000; display: none;
  animation: cms-menu-in 0.2s ease;
}
#cmsAddMenu.active { display: block; }
@keyframes cms-menu-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.cms-add-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer; transition: all 0.15s; font-size: 14px; color: #555;
}
.cms-add-item:hover { background: #faf5f0; color: #c4956a; }
.cms-add-icon { font-size: 18px; width: 24px; text-align: center; }

/* ===== User-created content blocks ===== */
.cms-user-block { position: relative; margin: 1rem 0; transition: all 0.2s; }
.cms-text-block {
  padding: 1rem; background: white; border-radius: 8px;
  min-height: 3rem; font-size: 0.95rem; color: #555; line-height: 1.8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.cms-heading-block {
  padding: 0.8rem 1rem; color: #2c2c2c; font-size: 1.3rem;
  font-weight: 600; border-bottom: 2px solid #f0e6dc;
}
.cms-image-block {
  background: #f8f5f2; border: 2px dashed #ddd; border-radius: 8px;
  padding: 20px; text-align: center; color: #999; cursor: pointer;
  min-height: 60px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all 0.2s;
}
.cms-image-block:hover { border-color: #c4956a; color: #c4956a; background: #faf5f0; }
.cms-image-uploaded { background: transparent; border: none; padding: 0; display: block; }
.cms-divider-block {
  border: none; height: 1px; background: #e0d5ca; margin: 2rem 0; position: relative;
}

/* ===== Image layout: left / right float ===== */
.cms-layout-left {
  float: left; width: 45%; margin: 0.5rem 1.5rem 0.5rem 0;
  clear: both;
}
.cms-layout-right {
  float: right; width: 45%; margin: 0.5rem 0 0.5rem 1.5rem;
  clear: both;
}
.cms-layout-full {
  width: auto; max-width: 100%;
  text-align: center;
}
.cms-layout-full img,
.cms-layout-full .cms-resizable-img {
  margin: 0 auto;
  display: block;
}
.cms-clearfix::after {
  content: ''; display: table; clear: both;
}
.cms-layout-left.cms-image-block,
.cms-layout-right.cms-image-block {
  min-height: 120px;
}

/* ===== Block delete button ===== */
.cms-block-delete {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px; background: #f44336; color: white;
  border-radius: 50%; display: none; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer; z-index: 10;
  box-shadow: 0 2px 6px rgba(244,67,54,0.3); transition: all 0.2s; line-height: 1;
}
.cms-block-delete:hover { background: #d32f2f; transform: scale(1.1); }
.cms-user-block:hover > .cms-block-delete { display: flex; }
.cms-divider-delete { top: -12px; right: -8px; }
.cms-text-block .cms-block-delete,
.cms-heading-block .cms-block-delete {
  pointer-events: auto; -webkit-user-select: none; user-select: none;
}

/* ============================================================
   RESIZE HANDLE — larger, more visible, touch-friendly
   ============================================================ */

.cms-resize-handle {
  position: absolute;
  width: 24px; height: 24px;
  background: #c4956a;
  border-radius: 4px;
  display: none; /* only show on hover */
  align-items: center; justify-content: center;
  font-size: 12px; color: white; cursor: nwse-resize;
  z-index: 20; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.15s, transform 0.15s;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.cms-image-uploaded:hover .cms-resize-handle { display: flex; }
.cms-resize-handle:hover { background: #b5845b; transform: scale(1.15); }

.cms-resizing-active {
  outline: 2px solid #c4956a;
  outline-offset: 2px;
}

/* When image is being resized */
.cms-resizable-img.resizing {
  opacity: 0.8;
  outline: 2px solid #c4956a;
}

/* ============================================================
   MOBILE RESPONSIVE — CMS components
   ============================================================ */

@media (max-width: 768px) {
  /* Toolbar: compact on mobile - two rows */
  .cms-toolbar {
    height: auto; min-height: 44px; padding: 6px 10px; font-size: 12px;
    flex-wrap: wrap; gap: 4px;
    align-items: center;
  }
  .cms-toolbar .cms-left { gap: 8px; flex-shrink: 0; }
  .cms-toolbar .cms-logo { font-size: 13px; }
  .cms-toolbar .cms-badge { display: none; }
  .cms-toolbar .cms-right { gap: 5px; flex-wrap: nowrap; flex-shrink: 0; }
  .cms-toolbar button { padding: 4px 8px; font-size: 11px; white-space: nowrap; }
  body.cms-toolbar-active { padding-top: 50px; }
  body.cms-toolbar-active nav { top: 50px !important; }

  /* Add button: slightly smaller */
  #cmsAddBtn { width: 44px; height: 44px; font-size: 24px; bottom: 16px; left: 16px; }
  #cmsAddMenu { bottom: 70px; left: 16px; min-width: 140px; }
  .cms-add-item { padding: 8px 14px; font-size: 13px; }

  /* Inline menu: vertical on mobile */
  #cmsInlineMenu { flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 8px; }
  .cms-inline-item { padding: 8px 10px; font-size: 14px; }
  #cmsImageLayoutSub { padding: 4px 0 4px 16px; margin-left: 6px; }
  .cms-layout-item { font-size: 13px !important; padding: 6px 10px !important; }

  /* Insert points: easier to tap */
  .cms-insert-point .cms-insert-plus {
    width: 32px; height: 32px; font-size: 20px;
  }

  /* Resize handle: larger for touch */
  .cms-resize-handle { width: 32px; height: 32px; font-size: 14px; }

  /* Float images: full width on mobile, no float */
  .cms-layout-left,
  .cms-layout-right {
    float: none; width: 100%; margin: 0.5rem 0;
  }

  /* Modal: full width on mobile */
  .cms-modal {
    padding: 20px; max-width: 95%; margin: 0 10px;
  }

  /* Toast: smaller */
  .cms-toast { font-size: 12px; padding: 8px 14px; top: 50px; right: 10px; }

  /* Block delete: larger tap target */
  .cms-block-delete { width: 28px; height: 28px; font-size: 14px; }
}

/* ===== NUCLEAR: 非编辑模式绝对禁止任何编辑行为 ===== */
body:not(.cms-editing) [data-cms],
body:not(.cms-editing) [data-cms-img],
body:not(.cms-editing) [data-cms-insert] {
  contentEditable: false !important;
  -webkit-user-modify: read-only !important;
  user-select: none !important;
  pointer-events: none !important;
  cursor: default !important;
  outline: none !important;
}

/* 图片区域仍然允许点击导航，但禁止编辑 */
body:not(.cms-editing) [data-cms-img] a,
body:not(.cms-editing) [data-cms-img] img {
  pointer-events: auto !important;
  cursor: default !important;
}

/* 强制隐藏所有 CMS 编辑UI */
body:not(.cms-editing) .cms-toolbar,
body:not(.cms-editing) .cms-modal-overlay,
body:not(.cms-editing) .cms-insert-point,
body:not(.cms-editing) [data-cms-insert],
body:not(.cms-editing) .cms-resize-handle,
body:not(.cms-editing) #cmsAddBtn,
body:not(.cms-editing) #cmsAddMenu,
body:not(.cms-editing) .cms-block-delete,
body:not(.cms-editing) .cms-user-block .cms-block-delete {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 非编辑模式下 data-cms-img 的hover提示也不显示 */
body:not(.cms-editing) [data-cms-img]:hover::after {
  display: none !important;
  content: none !important;
}


/* /theme.css */
/* 柴不多：统一的官网展示层。CMS、账号和编辑控件保留独立样式。 */
:root{--ink:#242820;--muted:#707167;--paper:#fbfaf6;--white:#fff;--line:#dfdfd4;--accent:#856349;--soft:#efeee7;--green:#455744;--radius:10px;--font:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;--serif:"Noto Serif CJK SC","Songti SC",STSong,serif;--primary:var(--green);--primary-light:#a3b19a;--primary-dark:#2d402d;--bg:var(--paper);--bg-warm:var(--soft);--card:#fff;--text:var(--ink);--text-light:var(--muted);--text-mid:#5b6056;--border:var(--line);--shadow:none}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.8 var(--font);-webkit-font-smoothing:antialiased}a{color:inherit;text-underline-offset:4px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}img,video{max-width:100%;height:auto}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #927458;outline-offset:4px}h1,h2,h3,p,figure{margin:0}h1,h2,h3{font-weight:600;line-height:1.45}h1{font-size:42px;letter-spacing:-.035em}h2{font-size:28px;letter-spacing:-.025em}h3{font-size:19px}p+p{margin-top:16px}[hidden]{display:none!important}.sr-only,.sr-file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-100px;left:20px;z-index:100001;background:#fff;padding:10px 18px}.skip-link:focus{top:10px}
.site-nav{height:88px;position:sticky;top:0;z-index:1000;background:#fbfaf6f5;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:36px;padding:0 max(28px,calc((100vw - 1160px)/2));backdrop-filter:blur(12px)}.site-brand{display:flex;align-items:center;gap:11px;text-decoration:none;flex-shrink:0}.site-brand img{width:50px;height:56px;object-fit:contain}.site-brand strong{display:block;font-size:23px;letter-spacing:.1em;line-height:1.4}.site-brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:.16em}.site-nav-links{display:flex;gap:32px;margin-left:auto}.site-nav-links>a{text-decoration:none;font-size:14px;padding:29px 0;position:relative;white-space:nowrap}.site-nav-links>a[aria-current=page]:after{content:"";height:2px;background:var(--ink);position:absolute;bottom:20px;left:0;right:0}.site-nav-tools{display:flex;gap:12px;align-items:center;padding-left:28px;border-left:1px solid var(--line);white-space:nowrap}.nav-login{font-size:13px;text-decoration:none;color:var(--muted)}.site-menu-toggle{display:none;background:transparent;border:1px solid var(--line);padding:6px 10px}.nav-user-area{font-size:12px;display:flex;gap:10px}.nav-username{max-width:75px;overflow:hidden;text-overflow:ellipsis}.nav-logout{cursor:pointer}
.site-footer{margin-top:80px;border-top:1px solid var(--line);padding:36px max(28px,calc((100vw - 1160px)/2)) 24px;background:var(--soft)}.footer-row{display:flex;justify-content:space-between;gap:30px;align-items:center}.footer-brand{font-size:18px;font-weight:600;letter-spacing:.06em}.footer-brand small{font-size:12px;font-weight:400;color:var(--muted);margin-left:18px}.footer-links{display:flex;gap:22px;font-size:12px}.footer-links a{text-decoration:none}.footer-meta{margin-top:26px;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:11px;gap:20px}
.wrap{max-width:1160px;margin:auto;padding-left:28px;padding-right:28px}.section{padding-top:68px;padding-bottom:68px}.eyebrow{font-size:11px;letter-spacing:.17em;color:var(--accent);margin-bottom:16px;font-weight:600}.muted,.lead{color:var(--muted)}.lead{font-size:16px;line-height:1.9;max-width:650px;margin-top:18px}.page-heading{padding-top:50px;padding-bottom:34px}.page-heading h1{font-size:38px}.section-title{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}.section-title p{color:var(--muted);font-size:14px;margin-top:7px}.text-link{font-size:14px;text-decoration:none;white-space:nowrap;border-bottom:1px solid #b7b5a7;padding-bottom:3px}.button,.site-action{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:48px;padding:11px 24px;background:var(--ink);border:1px solid var(--ink);border-radius:3px;color:#fff;text-decoration:none;font-size:14px}.button.secondary{background:transparent;color:var(--ink);border-color:#aaa99b}.button:hover{background:var(--green);color:#fff}.breadcrumb{display:flex;flex-wrap:wrap;gap:9px;font-size:12px;color:var(--muted);padding-top:27px;margin-bottom:0}.breadcrumb a{text-decoration:none}.next-step{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 0;border-top:1px solid var(--line);margin-top:40px}.next-step p{font-size:13px;color:var(--muted);margin-top:5px}.next-step strong{font-size:17px}
.home-hero{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;padding-top:48px;padding-bottom:48px}.home-hero-copy{padding:18px 0}.home-hero h1{font:500 clamp(40px,4.3vw,62px)/1.35 var(--serif);letter-spacing:.025em}.home-hero h1 em{font-style:normal;color:var(--accent)}.home-hero .lead{max-width:400px}.hero-actions{display:flex;gap:24px;align-items:center;margin-top:30px}.hero-note{border-top:1px solid var(--line);padding-top:22px;margin-top:42px;font-size:12px;color:var(--muted)}.hero-picture{position:relative;background:#ddd9cb;border-radius:4px;overflow:hidden;aspect-ratio:1.12}.hero-picture>img{width:100%;height:100%;object-fit:cover}.hero-picture figcaption{position:absolute;bottom:16px;left:18px;color:#fff;font-size:11px;background:#1f251f70;padding:4px 8px}.home-divider{border-bottom:1px solid var(--line)}
.featured-product{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}.featured-product>figure{background:#ece8df;aspect-ratio:1.2;overflow:hidden}.featured-product>figure img{width:100%;height:100%;object-fit:contain}.featured-product h3{font-size:32px;margin:8px 0 14px}.featured-product .price{font-size:25px;margin:15px 0;color:var(--accent)}.featured-product .lead{font-size:14px}.product-note{font-size:12px;color:var(--muted);margin:20px 0 24px}.reading-links{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}.reading-link{border-top:1px solid #bdbbac;padding-top:22px;text-decoration:none}.reading-link .number{font:italic 22px var(--serif);color:#aaa28e}.reading-link h3{margin:17px 0 9px}.reading-link p{font-size:13px;color:var(--muted);line-height:1.9}.reading-link .arrow{display:block;margin-top:20px}.home-founder{background:var(--soft)}.founder-teaser{display:grid;grid-template-columns:260px 1fr;gap:55px;align-items:center}.founder-teaser>img{width:100%;aspect-ratio:1;object-fit:cover;object-position:center}.founder-teaser .lead{font-size:15px;margin:16px 0 24px}.archived-brand-image{display:none}
.catalog-toolbar{display:flex;justify-content:space-between;gap:20px;padding:17px 0;border-block:1px solid var(--line);margin:4px 0 16px;align-items:center}.catalog-toolbar label{font-size:13px}.catalog-toolbar select{padding:8px 12px;margin-left:12px;border:1px solid #c7c6b8;background:#fff;max-width:180px}.catalog-toolbar p{color:var(--muted);font-size:12px}.product{border-bottom:1px solid var(--line);padding:38px 0;display:grid;grid-template-columns:340px 1fr;gap:40px;scroll-margin-top:115px}.product-img{background:#eeece3;min-height:260px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:4px}.product-img img{width:100%;height:360px;object-fit:contain}.catalog-index{font:italic 45px var(--serif);color:#aaa38e;margin-right:14px}.photo-pending{font-size:12px;color:var(--muted)}.product-info{align-self:center}.product-info h2{font-size:27px;margin-bottom:12px}.product-info .price{font-size:25px;color:var(--accent);margin:12px 0}.product-info p{color:var(--muted);font-size:14px;line-height:1.9}.tag{display:inline-block;border:1px solid var(--line);font-size:12px;padding:3px 9px;margin:16px 6px 0 0}.product-info .product-footer-actions{margin-top:22px;display:flex;gap:24px}.product-details{grid-column:1/-1;border:1px solid var(--line);padding:16px 20px;border-radius:4px}.product-details>summary{font-size:13px;cursor:pointer}.product-details .product-media-section{padding-top:24px}.product-media-label{font-size:13px;color:var(--muted);margin-bottom:12px}.product-video-container{max-width:420px}.product-gallery{margin-top:15px}.catalog-empty{padding:60px;text-align:center}.site-products .product-gallery-add{display:none}body.cms-editing .product-gallery-add{display:flex}.catalog-footnote{font-size:13px;color:var(--muted);padding:25px 0}
.knowledge-layout{max-width:1040px}.kb-search{display:flex;max-width:740px;border:1px solid #adad9c;background:#fff;border-radius:4px;margin:28px 0 20px;overflow:hidden}.kb-search input{padding:13px 17px;border:0;outline:none;background:transparent;min-width:0;flex:1}.kb-search button{padding:12px 24px;background:var(--ink);color:#fff;border:0}.kb-tags{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.kb-tag{font-size:13px;padding:8px 15px;border:1px solid var(--line);background:transparent;border-radius:3px;color:var(--muted)}.kb-tag.active{background:var(--green);color:white;border-color:var(--green)}.knowledge-advanced{font-size:12px;color:var(--muted);padding:8px}.knowledge-advanced summary{cursor:pointer}.knowledge-advanced[open]{flex-basis:100%}.knowledge-paths{display:flex;gap:25px;padding:0 0 25px;border-bottom:1px solid var(--line);font-size:13px}.knowledge-paths a{text-decoration:none}.kb-stats{font-size:12px;color:var(--muted);margin:15px 0}.kb-group{margin:25px 0}.kb-group-title{font-size:17px;font-weight:600;margin:15px 0}.kb-group-count{font-size:12px;color:var(--muted)}.kb-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.kb-card{display:flex;width:100%;align-items:center;justify-content:space-between;gap:15px;text-decoration:none;text-align:left;padding:18px;background:#fff;border:1px solid var(--line);border-radius:4px;color:var(--ink)}.kb-card-name{font-size:16px;display:block;font-weight:500}.kb-card-sub{font-size:11px;color:var(--muted);display:block;margin-top:5px}.kb-card-price{font-size:11px;color:var(--accent);white-space:nowrap}.kb-more{border:1px solid var(--line);background:transparent;padding:8px 16px;color:var(--muted);font-size:12px;margin:12px 0}.kb-fake,.kb-care,.kb-culture,.kb-ind,.kb-sup,.kb-isn{padding:22px;background:#fff;border:1px solid var(--line);border-radius:4px;margin:12px 0;font-size:14px}.kb-fake-crystal,.kb-care-crystal,.kb-culture-crystal,.kb-ind-cat,.kb-sup-cat{font-size:12px;color:var(--muted);margin-bottom:5px}.kb-fake-type,.kb-culture-title,.kb-sup-name{font-weight:600;margin:6px 0}.kb-fake-desc,.kb-care-row,.kb-culture-content{line-height:1.9}.kb-fake-tools,.kb-care-reason{color:var(--muted);font-size:12px;margin-top:10px}.kb-ind-value{font-size:22px;color:var(--accent)}.kb-articles-section{margin-top:40px;padding-top:30px;border-top:1px solid var(--line)}.kb-articles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.kb-article-card{border-top:1px solid var(--line);padding:20px 0;text-decoration:none}.kb-article-body{display:block}.kb-article-num{font-size:10px;color:var(--accent);letter-spacing:.1em}.kb-article-title{display:block;font-size:17px;margin:8px 0}.kb-article-sub{font-size:12px;color:var(--muted)}.kb-more-hint{font-size:12px;color:var(--muted);padding:20px 0}.kb-empty{padding:40px 0;color:var(--muted)}#searchStatus{font-size:13px;color:var(--muted);min-height:26px}#searchStatus.error{color:#a13b24}#searchStatus button{margin-left:15px}.kb-toc-grid{display:flex;gap:12px;flex-wrap:wrap}.kb-toc-item{border:1px solid var(--line);background:#fff;padding:14px}.kb-toc{padding:15px 0}.modal-bg{display:none;position:fixed;inset:0;background:#20262088;z-index:2000;padding:25px;align-items:center;justify-content:center}.modal-bg.active{display:flex}.modal-box{background:var(--paper);padding:32px;max-height:85vh;width:760px;max-width:100%;overflow-y:auto;border-radius:8px}.modal-box h2{font-size:27px;margin:8px 0 18px}.modal-box h3{font-size:18px;margin:24px 0 12px}.modal-close{float:right;border:0;background:transparent;font-size:25px}.modal-table{width:100%;border-collapse:collapse;font-size:13px}.modal-table td,.modal-table th{padding:10px;border-bottom:1px solid var(--line);text-align:left}.modal-section{margin:24px 0}.modal-box p,.modal-box li{font-size:14px;line-height:1.9}
.founder-hero{display:grid;grid-template-columns:1.05fr 1fr;gap:64px;align-items:center;padding-top:44px;padding-bottom:65px}.founder-hero h1{font-size:43px}.founder-hero .lead{font-size:15px;margin:22px 0 28px}.founder-photo{background:#e4e7df;border-radius:4px;overflow:hidden;position:relative}.founder-photo .cms-user-block{margin:0}.founder-photo img,.founder-photo .cms-resizable-img{display:block;width:100%!important;height:auto;max-width:100%!important;max-height:none;object-fit:contain}.founder-photo figcaption{background:#fff;padding:10px 16px;color:var(--muted);font-size:11px}.brand-values{display:grid;grid-template-columns:1fr 1fr 1fr;gap:35px;border-block:1px solid var(--line);padding:32px 0}.brand-values p{font-size:14px;color:var(--muted);margin-top:10px}.brand-chapters{margin-top:45px}.brand-chapters>summary{font-size:20px;padding-bottom:20px;cursor:pointer}.brand-chapter{border-top:1px solid var(--line);padding:17px 0;scroll-margin-top:100px}.brand-chapter>summary{font-size:16px;cursor:pointer}.brand-chapter>summary span{font-size:11px;color:var(--muted);margin-right:20px}.brand-story-body{max-width:780px;line-height:2;color:#5c6156;padding:25px 20px}.brand-story-body h3{margin:25px 0 12px}.brand-story-body p{font-size:14px}.diary-heading{display:grid;grid-template-columns:1fr 230px;gap:40px;align-items:center}.diary-photo{border-radius:4px;overflow:hidden}.diary-photo img,.diary-photo .cms-resizable-img{width:100%!important;max-width:none!important}.diary-photo .cms-user-block{margin:0}.diary-chapter{padding:26px 0 13px;font-size:13px;color:var(--accent);letter-spacing:.04em}.diary-card{border-top:1px solid var(--line);padding:23px 0}.diary-card .card-date{font-size:11px;color:var(--muted)}.diary-card .card-title{font-size:19px;margin:5px 0 12px}.diary-card .card-body{font-size:14px;color:#63665b;max-width:760px;line-height:1.95}.diary-card .card-body p{margin:12px 0}.diary-card .card-body.collapsed{max-height:5.8em;overflow:hidden;mask-image:linear-gradient(#000 70%,transparent)}.card-toggle{display:inline-block;margin-top:12px;font-size:12px;color:var(--accent);border:0;background:transparent;padding:0}.diary-add-form{display:none;padding:25px;background:#fff;border:1px solid var(--line)}.cms-editing .diary-add-form{display:block}.diary-add-form input,.diary-add-form textarea{display:block;width:100%;padding:10px;margin:10px 0;border:1px solid var(--line)}
.article-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:55px;padding-top:35px;max-width:1080px}.article-toc{font-size:12px;align-self:start;position:sticky;top:120px;border-top:1px solid var(--line);padding-top:20px}.article-toc strong{font-size:12px;display:block;margin-bottom:14px}.article-toc a{display:block;text-decoration:none;color:var(--muted);padding:6px 0;line-height:1.7}.article-content{min-width:0}.article-header{padding-bottom:27px;border-bottom:1px solid var(--line);margin-bottom:30px}.article-header h1{font-size:35px;letter-spacing:-.02em}.article-sub{font-size:14px;color:var(--muted);margin-top:13px}.article-body{font-size:15px;line-height:2;color:#454b41;overflow-wrap:anywhere}.article-body h2{font-size:23px;color:var(--ink);margin:35px 0 16px;padding-top:5px}.article-body h3{font-size:18px;color:var(--ink);margin:26px 0 12px}.article-body p{margin:14px 0}.article-body ul,.article-body ol{padding-left:23px;margin:18px 0}.article-body li{margin:7px 0}.article-body table{border-collapse:collapse;width:100%;margin:22px 0;font-size:13px;display:block;overflow-x:auto}.article-body td,.article-body th{padding:12px 15px;border:1px solid var(--line);text-align:left;min-width:90px}.article-body th{background:var(--soft);font-weight:600}.article-body blockquote{margin:24px 0;border-left:3px solid #a59272;background:#eeede4;padding:18px 22px;color:#646757}.article-body img{border-radius:4px}.article-body .highlight,.article-body .warning,.article-body .tip,.article-body .info-box{padding:20px;background:var(--soft);margin:22px 0;border-radius:4px}.article-body a{color:var(--accent)}.article-video-section{margin:35px 0;border-top:1px solid var(--line);padding-top:25px}.article-video-section video{display:block;max-height:380px;width:100%;object-fit:contain;background:#ecebe4}.article-video-section h2{font-size:21px;margin-bottom:14px}.article-video-section p{font-size:13px;color:var(--muted);margin:12px 0}.related-reading{margin-top:35px;border-top:1px solid var(--line);padding-top:24px}.related-reading h2{font-size:17px;margin-bottom:14px}.related-reading a{display:block;padding:8px 0;font-size:13px}.guide-sections{max-width:800px;margin:0 auto}.guide-step{display:grid;grid-template-columns:55px 1fr;gap:25px;padding:30px 0;border-top:1px solid var(--line)}.guide-step .num{font:italic 30px var(--serif);color:#a3967f}.guide-step h2{font-size:23px;margin-bottom:12px}.guide-step p{font-size:14px;color:var(--muted);line-height:1.95}.guide-step a{display:inline-block;margin-top:15px;font-size:13px;color:var(--accent)}.guide-callout{padding:22px 26px;background:var(--soft);border-left:3px solid var(--accent);font-size:14px;line-height:1.9;margin:15px 0 35px}
.community-main{max-width:900px}.community-main .page-header{padding:0;text-align:left}.community-main .page-header h1{font-size:38px}.community-main .login-prompt{background:#eeeee5;border:1px solid var(--line);border-radius:4px;padding:23px;text-align:left;box-shadow:none}.community-main .login-prompt p{margin:0 0 12px;color:var(--muted)}.community-main .login-prompt button{background:var(--ink);border-radius:3px}.community-main .post-card,.community-main .user-bar,.community-main .post-form{box-shadow:none;border:1px solid var(--line);border-radius:4px}.community-main .empty-state{padding:55px 20px;color:var(--muted)}.community-main .filter-tabs{margin:25px 0}.community-main .tab-btn{border-radius:3px}.community-help{font-size:13px;margin-top:25px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted)}
.account-main{min-height:64vh;display:flex;align-items:center;justify-content:center;padding-top:50px;padding-bottom:20px}.login-card,.reset-card,.forgot-card{width:430px;max-width:100%;padding:36px;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:none}.login-card .logo,.reset-card .logo{margin-bottom:28px;text-align:center}.account-mark{width:68px;height:74px;object-fit:contain}.account-main h1{font-size:27px;margin:8px 0}.account-main .logo p{color:var(--muted);font-size:13px}.account-main .form-group{margin:18px 0}.account-main label{display:block;font-size:13px;margin-bottom:7px}.account-main input{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:3px}.account-main button{width:100%;padding:12px;background:var(--ink);color:#fff;border:0;border-radius:3px}.account-main .back-link{font-size:12px;margin-top:24px;text-align:center;color:var(--muted)}.error-msg{display:none;background:#fff1ea;color:#913e29;font-size:13px;padding:10px}.success-msg{display:none;background:#edf2e8;color:#405640;padding:12px;font-size:13px}.error-page{text-align:center;padding:100px 25px}.error-page h1{font:500 70px var(--serif);margin-bottom:15px}.error-page p{color:var(--muted);margin-bottom:25px}
@media(max-width:900px){.site-nav{gap:20px;padding:0 25px}.site-nav-links{gap:20px}.site-nav-tools{padding-left:18px}.home-hero{gap:28px}.product{grid-template-columns:280px 1fr;gap:28px}.article-layout{grid-template-columns:150px minmax(0,1fr);gap:30px}.founder-hero{gap:35px}.founder-teaser{grid-template-columns:210px 1fr;gap:35px}}
@media(max-width:700px){body{font-size:14px}.wrap{padding-inline:21px}.site-nav{height:74px;padding:0 18px;gap:12px}.site-brand img{width:40px;height:46px}.site-brand strong{font-size:21px}.site-brand small{font-size:8px}.site-nav-tools{margin-left:auto;padding-left:0;border:0;gap:13px}.site-menu-toggle{display:block;font-size:12px}.site-nav-links{display:none;position:absolute;top:100%;left:0;right:0;background:var(--paper);border-bottom:1px solid var(--line);padding:10px 22px 22px;margin:0}.site-nav-links.is-open{display:flex;flex-direction:column;gap:0}.site-nav-links>a{padding:13px 0}.site-nav-links>a[aria-current=page]:after{bottom:7px;right:auto;width:20px}.nav-login{font-size:12px}.section{padding-block:42px}h1{font-size:33px}h2{font-size:25px}.page-heading{padding-top:32px;padding-bottom:25px}.page-heading h1,.community-main .page-header h1{font-size:31px}.lead{font-size:14px}.section-title{align-items:start;gap:15px;flex-wrap:wrap}.section-title p{font-size:13px}.home-hero{grid-template-columns:1fr;padding-top:30px;padding-bottom:30px;gap:27px}.home-hero h1{font-size:43px}.home-hero-copy{padding:0}.home-hero .lead{font-size:14px;margin-top:18px}.hero-actions{margin-top:23px}.hero-note{margin-top:27px;padding-top:16px}.hero-picture{aspect-ratio:1.35}.featured-product{grid-template-columns:1fr;gap:26px}.featured-product h3{font-size:27px}.featured-product>figure{aspect-ratio:1.2}.reading-links{grid-template-columns:1fr;gap:24px}.reading-link{display:grid;grid-template-columns:35px 1fr;gap:2px 15px;padding-top:20px}.reading-link .number{grid-row:1/4}.reading-link h3{margin:0 0 5px}.reading-link p{grid-column:2}.reading-link .arrow{grid-column:2;margin-top:10px}.founder-teaser{grid-template-columns:1fr;gap:25px}.founder-teaser>img{max-width:190px}.footer-row{align-items:start;flex-direction:column;gap:22px}.footer-links{gap:18px;flex-wrap:wrap}.footer-brand small{margin-left:12px}.footer-meta{flex-direction:column;gap:8px}.site-footer{margin-top:48px;padding:30px 21px 20px}.product{grid-template-columns:1fr;gap:22px;padding:28px 0}.product-img{min-height:180px}.product-img img{height:320px}.product-info h2{font-size:25px}.product-details{grid-column:auto;padding:13px}.catalog-toolbar{align-items:start;gap:10px;flex-wrap:wrap}.catalog-toolbar select{max-width:170px;font-size:16px}.catalog-toolbar p{font-size:11px}.catalog-empty{padding:40px 15px}.next-step{align-items:start;flex-direction:column;gap:18px}.founder-hero{grid-template-columns:1fr;padding-top:28px;padding-bottom:35px;gap:28px}.founder-hero h1{font-size:34px}.founder-photo{max-width:440px}.brand-values{grid-template-columns:1fr;gap:25px}.brand-story-body{padding:20px 0}.diary-heading{grid-template-columns:1fr;gap:22px}.diary-photo{width:200px}.article-layout{display:block;padding-top:26px}.article-toc{position:static;margin-bottom:27px;padding:15px;background:var(--soft);border:0;border-radius:3px;display:flex;flex-wrap:wrap;gap:4px 18px}.article-toc strong{width:100%;margin:0}.article-toc a{font-size:11px}.article-header h1{font-size:29px}.article-body{font-size:14px}.article-body h2{font-size:22px}.article-body h3{font-size:17px}.article-body table{font-size:12px}.article-body td,.article-body th{padding:9px 10px}.article-body blockquote{margin-inline:0;padding:15px}.guide-step{grid-template-columns:30px 1fr;gap:15px;padding:25px 0}.guide-step h2{font-size:21px}.guide-callout{padding:20px}.kb-cards{grid-template-columns:1fr}.kb-card{padding:15px}.kb-card-name{font-size:15px}.kb-card-sub{font-size:11px}.kb-card-price{font-size:10px}.kb-articles-grid{grid-template-columns:1fr}.kb-tag{padding:7px 11px;font-size:12px}.knowledge-paths{gap:15px;flex-wrap:wrap;font-size:12px}.kb-search{margin-top:23px}.kb-search input{font-size:16px}.kb-search button{padding:12px 19px}.modal-bg{padding:14px}.modal-box{padding:23px}.modal-box h2{font-size:24px}.account-main{padding-top:30px}.login-card,.reset-card,.forgot-card{padding:28px 23px}.account-main input,textarea{font-size:16px}.login-card .logo{margin-bottom:20px}.button,.site-action{font-size:13px;padding:10px 20px;gap:18px}.text-link{font-size:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

/* Keep headings balanced on narrow screens and two-link guides aligned. */
h1,h2{text-wrap:balance}.guide-sections>.reading-links{grid-template-columns:1fr 1fr}.kb-card+.kb-card{margin-top:8px}.community-main .section-title{margin-top:26px}
@media(max-width:700px){.guide-sections>.reading-links{grid-template-columns:1fr}.guide-sections>.reading-links .reading-link{display:block}.hero-actions{flex-wrap:wrap;gap:18px}.site-nav-tools .nav-username{max-width:65px}}

.community-main .post-form .btn-upload{cursor:pointer}.modal-overlay .modal{border-radius:6px;border:1px solid var(--line)}

.article-body .table-scroll{max-width:100%;overflow-x:auto;margin:22px 0}.article-body .table-scroll table{display:table;overflow:visible;width:100%;margin:0}.article-body .table-scroll th:first-child,.article-body .table-scroll td:first-child{min-width:105px}

.account-main .invalid-msg{display:none;padding:16px 0;font-size:14px;color:var(--muted)}.account-main .invalid-msg h3{font-size:17px;color:var(--ink)}

@media(max-width:700px){.founder-hero h1{font-size:clamp(28px,8vw,34px)}}

/* /cms-product.css */
/* cms-product.css — 产品页视频 & 多图样式 */

/* 产品媒体区域 — 默认隐藏，有内容时JS显示，编辑模式始终显示 */
.product-media-section {
  display: none;
  width: 100%;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid #f0ece8;
  background: #fcfbf9;
  flex-shrink: 0;
}

/* 编辑模式下始终显示 */
body.cms-editing .product-media-section {
  display: block;
}

@media (max-width: 768px) {
  .product-media-section {
    padding: 1rem 1.2rem;
    display: none;
  }
  body.cms-editing .product-media-section {
    display: block;
  }
}

.product-media-label {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* 产品视频 */
.product-video-wrapper {
  margin-bottom: 1rem;
}

.product-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #f0e6dc;
  border-radius: 8px;
}

.product-video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.product-video-container:has(video) {
  padding-bottom: 0;
  background: transparent;
  overflow: hidden; /* 防止 blur-bg 溢出遮挡下方编辑栏 */
}

.product-video-container .video-blur-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120%; height: 120%;
  object-fit: cover;
  filter: blur(30px) brightness(0.6) saturate(1.2);
  z-index: 0;
  pointer-events: none;
}

.product-video-container video.foreground-video {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 50vh;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  background: transparent;
  object-fit: contain;
}

@media (max-width: 768px) {
  .product-video-container video.foreground-video {
    max-height: 40vh;
  }
  .product-video-container .video-blur-bg {
    height: 140%; width: 140%;
    filter: blur(20px) brightness(0.6) saturate(1.2);
  }
}

.product-video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0e6dc, #e6d5c8);
  color: #bbb;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.product-video-placeholder:hover {
  background: linear-gradient(135deg, #ebe0d5, #dfd0c0);
}

.product-video-placeholder .play-icon {
  font-size: 2rem;
  color: #c4956a;
  margin-bottom: 0.3rem;
}

.product-video-edit-bar {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0;
  position: relative;
  z-index: 10;
}

.product-video-edit-btn {
  padding: 0.3rem 0.8rem;
  border: 1px solid #c4956a;
  background: white;
  color: #c4956a;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.product-video-edit-btn:hover {
  background: #c4956a;
  color: white;
}

.product-video-delete-btn {
  border-color: #e74c3c;
  color: #e74c3c;
}

.product-video-delete-btn:hover {
  background: #e74c3c;
  color: white;
}

/* ===== 产品图片：横排滚动展示 ===== */
.product-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: #c4956a #f5f0eb;
  -webkit-overflow-scrolling: touch;
}

.product-gallery::-webkit-scrollbar {
  height: 6px;
}
.product-gallery::-webkit-scrollbar-track {
  background: #f5f0eb;
  border-radius: 3px;
}
.product-gallery::-webkit-scrollbar-thumb {
  background: #c4956a;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .product-gallery {
    gap: 0.5rem;
    padding: 0.3rem 0;
  }
}

.product-gallery-item {
  position: relative;
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f0eb;
  cursor: pointer;
  transition: transform 0.2s;
}

@media (max-width: 768px) {
  .product-gallery-item {
    width: 130px;
    height: 130px;
  }
}

.product-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.product-gallery-item:hover img {
  transform: scale(1.05);
}

/* 编辑按钮：桌面端 hover 显示，移动端始终可见 */
.product-gallery-item .gallery-delete {
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  background: rgba(231,76,60,0.85);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  padding: 0;
  line-height: 1;
  z-index: 2;
}

.product-gallery-item .gallery-replace {
  position: absolute;
  top: 6px; right: 36px;
  width: 26px; height: 26px;
  background: rgba(196,149,106,0.85);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  padding: 0;
  line-height: 1;
  z-index: 2;
}

@media (hover: hover) {
  .product-gallery-item .gallery-delete,
  .product-gallery-item .gallery-replace {
    opacity: 0;
  }
  .product-gallery-item:hover .gallery-delete,
  .product-gallery-item:hover .gallery-replace {
    opacity: 1;
  }
}

@media (hover: none) {
  .product-gallery-item .gallery-delete,
  .product-gallery-item .gallery-replace {
    opacity: 1;
  }
}

.product-gallery-add {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ddd;
  border-radius: 10px;
  color: #ccc;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 160px;
  height: 160px;
  user-select: none;
  gap: 0.3rem;
}

@media (max-width: 768px) {
  .product-gallery-add {
    width: 130px;
    height: 130px;
  }
}

.product-gallery-add:hover {
  border-color: #c4956a;
  color: #c4956a;
  background: #faf5f0;
}

.product-gallery-add .add-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* 非编辑模式隐藏编辑按钮 */
body:not(.cms-editing) .product-video-edit-bar,
body:not(.cms-editing) .product-gallery-add,
body:not(.cms-editing) .gallery-delete,
body:not(.cms-editing) .gallery-replace {
  display: none !important;
}

/* 编辑模式下：视频编辑栏始终显示 */
body.cms-editing .product-video-edit-bar {
  display: flex !important;
}
/* /sync.css */
/* Product and illustrated-content additions share the existing site palette. */
.sync-main{padding-bottom:72px}.sync-breadcrumb{display:flex;flex-wrap:wrap;gap:10px;color:#777569;font-size:13px;padding-top:28px}.sync-breadcrumb a:hover{text-decoration:underline}.sync-note{color:#777569;font-size:13px;line-height:1.8;margin:14px 0}.sync-notice{padding:20px;background:#efeee7;line-height:1.8}.sync-section{margin:64px 0}.sync-shop-section{margin-bottom:44px}.sync-actions{display:flex;flex-wrap:wrap;gap:12px}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.shop-card{border:1px solid #dfdccf;background:#fffefa;min-width:0}.shop-card-image{display:block;overflow:hidden}.shop-card-image img{display:block;aspect-ratio:1;width:100%;height:auto;object-fit:contain}.shop-card-body{padding:22px}.shop-card h3{font-size:21px;line-height:1.45;margin:8px 0}.shop-card p:not(.eyebrow){color:#777569;font-size:14px;line-height:1.8}.shop-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px}.shop-price{font-family:Georgia,'Songti SC',serif;font-size:30px;line-height:1.3;margin:18px 0}.shop-card-bottom .shop-price{font-size:26px;margin:0}.shop-card .text-link{font-size:14px;white-space:nowrap}.shop-detail-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:56px;margin:42px 0 56px;align-items:start}.shop-detail-hero figure{margin:0}.shop-detail-hero figure>img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#efeee7}.shop-detail-hero h1{font-size:clamp(28px,3.2vw,44px);line-height:1.3;letter-spacing:-.02em;text-wrap:balance}.shop-detail-hero .lead{font-size:17px}.shop-buy{margin:12px 0}.shop-specs{font-size:14px;line-height:1.8;margin:28px 0}.shop-specs dt{font-weight:600;margin-top:14px}.shop-specs dd{margin:4px 0 0;color:#777569}.shop-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.shop-photo-grid figure{margin:0}.sync-details{border-top:1px solid #d6d2c6;border-bottom:1px solid #d6d2c6;padding:20px 0;margin:24px 0;line-height:1.8}.sync-details+.sync-details{border-top:0;margin-top:-24px}.sync-details>summary{font-weight:600;cursor:pointer;min-height:32px}.sync-details[open]>summary{margin-bottom:20px}.sync-details video{width:min(100%,720px);max-height:75vh;display:block;background:#252722;margin:22px auto}.original-copy{white-space:pre-wrap;max-width:760px;line-height:2;margin:20px auto}.legacy-series>.products{margin-top:28px}.legacy-series>summary{font-size:20px}.illustrated-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 22px}.illustrated-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.illustrated-card{display:block;border:1px solid #dfdccf;background:#fffefa;min-width:0;color:inherit;text-decoration:none}.illustrated-card>img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#f3efe6}.illustrated-card>div{padding:18px}.illustrated-card h3{font-size:18px;line-height:1.5;margin:4px 0 10px}.illustrated-card p:not(.eyebrow){color:#777569;font-size:13px;line-height:1.7;margin:0}.illustrated-card:hover h3,.shop-card a:hover h3{color:#8d6044}.illustrated-filter{display:flex;gap:18px;align-items:end;flex-wrap:wrap;padding:24px;background:#efeee7;margin:0 0 20px}.illustrated-filter label{display:grid;gap:8px;font-size:13px}.illustrated-filter label:first-child{flex:1;min-width:180px}.illustrated-filter input,.illustrated-filter select{font:inherit;font-size:16px;min-height:46px;background:#fffefa;border:1px solid #cbc7bb;border-radius:0;padding:10px 12px;width:100%;color:inherit}.illustrated-filter .button{height:46px}#illustratedCount{font-size:14px;color:#777569;margin:20px 0}.illustrated-entry{display:grid;grid-template-columns:180px minmax(0,1fr);gap:32px;align-items:center;border:1px solid #dfdccf;background:#f0efe7;padding:24px;margin-top:32px;color:inherit;text-decoration:none}.illustrated-entry img{width:180px;height:auto;aspect-ratio:1;object-fit:contain}.illustrated-entry h3,.illustrated-entry h2{font-size:25px;line-height:1.5;margin:6px 0 12px}.illustrated-entry p{color:#777569;font-size:14px;line-height:1.8}.illustrated-entry .text-link{font-size:14px}.article-illustrated-entry{margin:44px 0}.illustrated-spread{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px;max-width:1020px;margin:0 auto 48px;align-items:start}.illustrated-spread figure{margin:0;min-width:0}.sync-image-button{display:block;width:100%;background:none;border:0;padding:0;cursor:zoom-in;color:inherit}.sync-image-button img{display:block;width:100%;height:auto}.illustrated-spread figcaption{font-size:13px;color:#777569;line-height:1.6;padding:12px 0}.illustrated-spread figcaption>span:first-child{font-variant-numeric:tabular-nums;color:#8d6044}.illustrated-search-card{display:flex;align-items:center;gap:18px}.illustrated-search-card>img{width:96px;height:96px;object-fit:contain;flex-shrink:0}.illustrated-search-card h3{font-size:18px;margin:0 0 8px}.illustrated-search-card p{font-size:13px;color:#777569;margin:0}.sync-lightbox{position:fixed;inset:0;margin:auto;max-width:min(98vw,1100px);max-height:96dvh;border:1px solid #d3cfc2;background:#fbfaf6;padding:16px;color:#252722;overflow:auto}.sync-lightbox::backdrop{background:#181c18dd}.sync-lightbox-tools{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 14px}.sync-lightbox-tools button{min-height:40px;padding:8px 12px;border:1px solid #aaa99b;background:#fffefa;color:#252722;cursor:pointer;font:inherit;font-size:14px}.sync-lightbox>img{display:block;max-height:73dvh;max-width:100%;height:auto;width:auto;margin:auto;object-fit:contain}.sync-lightbox>p{text-align:center;font-size:13px}.sync-lightbox a{text-decoration:underline}.site-sync [hidden],.illustrated-grid>[hidden]{display:none!important}#illustratedReset{font:inherit;padding:8px 12px;margin-left:8px;cursor:pointer;border:1px solid #aaa99b;background:#fffefa}
@media(max-width:1000px){.illustrated-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-detail-hero{gap:32px}.shop-card-body{padding:16px}.shop-card h3{font-size:19px}.shop-card-bottom{align-items:flex-start;flex-direction:column;gap:8px}}
@media(max-width:700px){.shop-grid{grid-template-columns:1fr;gap:24px}.shop-card-body{padding:22px}.shop-card-bottom{flex-direction:row;align-items:center}.shop-detail-hero{grid-template-columns:1fr;gap:26px;margin-top:24px}.shop-detail-hero h1{font-size:32px}.shop-detail-hero .lead{font-size:16px}.shop-photo-grid{gap:12px}.sync-section{margin:44px 0}.illustrated-grid,.illustrated-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.illustrated-card>div{padding:12px}.illustrated-card h3{font-size:16px}.illustrated-card .eyebrow{font-size:10px;letter-spacing:.08em}.illustrated-card p:not(.eyebrow){font-size:12px}.illustrated-spread{grid-template-columns:1fr;gap:24px}.illustrated-entry{grid-template-columns:100px minmax(0,1fr);padding:16px;gap:16px}.illustrated-entry img{width:100px}.illustrated-entry h3,.illustrated-entry h2{font-size:19px;line-height:1.5}.illustrated-entry p{font-size:13px}.illustrated-entry .eyebrow{font-size:10px;letter-spacing:.08em}.illustrated-filter{padding:18px;gap:14px}.illustrated-filter label:first-child{flex-basis:100%}.illustrated-filter label:nth-child(2){flex:1}.sync-actions{flex-direction:column}.sync-lightbox{padding:10px}.sync-lightbox-tools{gap:6px}.sync-lightbox-tools button{padding:7px 9px;font-size:12px}.sync-lightbox>img{max-height:68dvh}.illustrated-search-card{gap:12px}.illustrated-search-card>img{width:70px;height:70px}.illustrated-search-card h3{font-size:16px}}
@media(prefers-reduced-motion:reduce){.site-sync *{scroll-behavior:auto!important}}

@media(min-width:701px){.illustrated-grid.compact:has(>.illustrated-card:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}.illustrated-grid.compact:has(>.illustrated-card:only-child){grid-template-columns:minmax(0,380px)}}

/* /iteration.css */
/* Shared presentation for content that is visible without an extra click. */
.content-open { min-width:0; }
.content-open-heading { font-size:clamp(20px,2.1vw,28px);line-height:1.5;margin:0 0 22px;font-weight:650;letter-spacing:-.025em; }
.sync-details.content-open { border-top:1px solid var(--line,#dcdad1);padding-top:30px;margin-top:40px; }
.product-photo-details.content-open { margin:38px 0 55px; }
.shop-primary-photo { display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in; }
.shop-primary-photo img { display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover; }
.shop-photo-grid { gap:20px; }
.shop-photo-grid img { width:100%;height:auto;object-fit:contain; }
.legacy-series.content-open { margin-top:68px; }
.product-details.content-open { border:0;padding:0;margin-top:26px; }
.product-details>.content-open-heading { font-size:15px;color:var(--muted,#72756e);border-bottom:1px solid var(--line,#dcdad1);padding-bottom:12px;margin-bottom:20px; }
.brand-chapters.content-open { border-top:1px solid var(--line,#dcdad1);padding-top:52px;margin-top:54px; }
.brand-story-toc { display:flex;flex-wrap:wrap;gap:10px 22px;padding:0 0 34px;margin-bottom:12px;border-bottom:1px solid var(--line,#dcdad1); }
.brand-story-toc a { font-size:13px;color:var(--muted,#72756e);text-decoration:none; }
.brand-story-toc a:hover { color:var(--ink,#252b22); }
.brand-chapter.content-open { max-width:760px;margin:0 auto;padding:36px 0;border-bottom:1px solid var(--line,#dcdad1);scroll-margin-top:105px; }
.brand-chapter>.content-open-heading { font-size:24px;margin-bottom:18px; }
.brand-chapter>.content-open-heading span { display:inline-block;color:var(--accent,#a58364);font-size:14px;margin-right:12px;font-weight:500; }
.brand-story-body { padding:0!important; }
.sync-main>.content-open video { display:block;max-height:600px;max-width:100%;width:min(100%,400px);margin:0 auto;background:#efeee7; }
.sync-main>.content-open-heading { font-size:21px; }
.content-open .original-caption { max-width:760px; }
.content-open :last-child { margin-bottom:0; }
.image-credit-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px; }
.image-credit-card { border:1px solid var(--line,#dcdad1);background:#fffefa;min-width:0; }
.image-credit-card>img { display:block;width:100%;height:280px;object-fit:contain;background:#111611; }
.image-credit-card>div { padding:24px; }
.image-credit-card h2 { font-size:24px;margin:0 0 16px; }
.image-credit-card p { font-size:14px;margin:9px 0;line-height:1.8; }
.image-credit-card a { text-decoration:underline;text-underline-offset:3px; }
@media(max-width:700px){
 .content-open-heading { font-size:22px; }
 .shop-photo-grid { gap:16px; }
 .shop-photo-grid { grid-template-columns:1fr; }
 .brand-story-toc { gap:10px 16px; }
 .brand-story-toc a { font-size:12px; }
 .brand-chapter.content-open { padding:28px 0; }
 .brand-chapter>.content-open-heading { font-size:21px; }
 .legacy-series.content-open { margin-top:48px; }
 .image-credit-grid { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}

/* /product-video.css */
/* Native, playable product media; uploaded content keeps existing CMS access controls. */
.shop-video-shell{min-width:0;position:relative;background:#efeee7}
.shop-video-shell .product-video-container{padding-bottom:0;border-radius:0;aspect-ratio:1;background:#efeee7;overflow:hidden}
.shop-video-shell .product-video-container video.foreground-video{display:block;width:100%;height:100%;max-height:none;aspect-ratio:1;object-fit:contain;border-radius:0;background:#efeee7}
.shop-video-shell .product-video-container iframe{height:100%;width:100%;position:absolute;inset:0}
.shop-video-shell .video-blur-bg{display:none}
.shop-video-caption{padding:10px 16px!important;margin:0!important;font-size:12px!important;line-height:1.5!important;color:#706c5e!important;letter-spacing:.02em}
.shop-video-shell .product-video-edit-bar{display:none;margin:0;padding:8px 12px;flex-wrap:wrap;background:#fffefa}
body.cms-editing .shop-video-shell .product-video-edit-bar{display:flex}
.shop-video-detail{align-self:start}
.shop-video-shell:focus-within{outline:2px solid #9c7952;outline-offset:2px}
#cmsVideoModal .cms-video-tab{font:inherit;border:1px solid #d6d2c6;cursor:pointer}
#cmsVideoModal .cms-video-tab:focus-visible{outline:3px solid #9c7952;outline-offset:2px}
#cmsVideoModal .cms-modal{max-height:90dvh;overflow:auto}
body.cms-editing .shop-video-shell .product-video-edit-btn{min-height:40px;font-size:13px;color:#775432;border-color:#aa947b}
@media(max-width:700px){.shop-video-caption{padding:9px 14px!important}.shop-video-detail .product-video-container{max-height:none}}

#cmsVideoModal .cms-video-tabs{display:flex;gap:8px;margin:18px 0}
#cmsVideoModal .cms-video-tab{min-height:42px;padding:8px 18px;background:#fffefa;border-radius:3px;color:#3e4138}
#cmsVideoModal .cms-video-tab.active{background:#455744;color:#fff;border-color:#455744}
#cmsVideoModal .upload-area{margin:0 0 14px;border:1px dashed #a7a18f;padding:22px 14px;color:#5b6056}
#cmsVideoModal .upload-area .icon{font-size:28px;color:#856349;line-height:1.5}
#cmsVideoModal .upload-area p{color:#625f55!important}
#cmsVideoModal .cms-video-file-info{display:none;align-items:center;gap:12px;padding:10px 12px;margin:12px 0;background:#efeee7;color:#3e4138;font-size:13px;overflow-wrap:anywhere}
#cmsVideoFileName{flex:1;min-width:0}
#cmsVideoModal .cms-video-remove{flex:none;border:1px solid #aaa99b;background:#fffefa;width:36px;height:36px;border-radius:3px;color:#3e4138}
#cmsVideoModal .cms-upload-progress{display:none;position:relative;align-items:center;justify-content:center;min-height:34px;background:#efeee7;margin:14px 0;overflow:hidden}
#cmsVideoModal .cms-upload-progress-bar{position:absolute;inset:0 auto 0 0;background:#cad4c4;width:0;transition:width .15s}
#cmsVideoProgressText{position:relative;z-index:1;font-size:13px;color:#2d402d}
#cmsVideoModal .cms-video-embed-input label{display:block;margin:0 0 8px;font-size:14px}
#cmsVideoModal #cmsVideoUrl{box-sizing:border-box;width:100%;min-height:44px;border:1px solid #aaa99b;padding:10px;font:inherit}
#cmsVideoModal .cms-video-embed-hint{color:#625f55;font-size:13px;margin:10px 0}
#cmsVideoModal .btn-row{margin-top:20px}

/* Native playback controls appear after a single accessible play action. */
.product-video-container>.product-play-cover{position:absolute;inset:0;z-index:3;width:100%;height:100%;padding:0;border:0;background:#ede9e0;cursor:pointer;display:grid;place-items:center}
.product-video-container>.product-play-cover[hidden]{display:none}
.product-play-cover>img{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;pointer-events:none}
.product-play-cover>span{position:relative;z-index:1;background:rgba(22,29,24,.85);color:#fff;padding:12px 20px;border-radius:30px;font:600 15px/1.4 var(--font-sans, sans-serif);pointer-events:none}
.product-play-cover:focus-visible{outline:3px solid #a06b44;outline-offset:3px}.product-play-cover:disabled{cursor:wait}

/* /mobile-refinement.css */
/* Phone/tablet refinements. Keep content, media and desktop composition intact. */
.mobile-refined{overflow-wrap:break-word}
.mobile-refined img,.mobile-refined video,.mobile-refined canvas{max-width:100%}
.mobile-refined :is(main,section,article,aside,figure,form){min-width:0}
.mobile-refined :is(input,select,textarea){max-width:100%}
.mobile-refined .table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
@media(max-width:900px){
  .mobile-brand .site-nav{height:72px;padding-inline:max(16px,env(safe-area-inset-left));gap:12px}
  .mobile-brand .site-brand{gap:9px;min-width:0}
  .mobile-brand .site-brand img{width:40px;height:46px;flex-shrink:0}
  .mobile-brand .site-brand strong{font-size:20px}
  .mobile-brand .site-brand small{font-size:8px}
  .mobile-brand .site-nav-tools{margin-left:auto;border:0;padding-left:0;gap:8px;flex-shrink:0}
  .mobile-brand .nav-login{display:inline-flex;min-height:44px;align-items:center;padding:5px 8px}
  .mobile-brand .site-menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:60px;padding:8px 12px;font-size:13px;border-radius:4px}
  .mobile-brand .site-nav-links{display:none;position:absolute;top:100%;left:0;right:0;margin:0;padding:12px 16px 20px;background:var(--paper,#fbfaf6);border-bottom:1px solid var(--line,#dfdfd4);max-height:calc(100dvh - 72px);overflow-y:auto;box-shadow:0 14px 22px #2428200c}
  .mobile-brand .site-nav-links.is-open{display:flex;flex-direction:column;gap:4px}
  .mobile-brand .site-nav-links>a{display:flex;align-items:center;min-height:48px;padding:10px 12px;font-size:16px;border-radius:4px}
  .mobile-brand .site-nav-links>a[aria-current=page]{background:var(--soft,#efeee7)}
  .mobile-brand .site-nav-links>a[aria-current=page]:after{display:none}
  .mobile-brand .nav-user-area{gap:8px;min-width:0;max-width:110px;font-size:12px}
  .mobile-brand .nav-user-area .nav-username{max-width:48px;overflow:hidden;text-overflow:ellipsis}
  .mobile-brand .nav-logout{display:inline-flex;align-items:center;min-height:44px}
}
@media(max-width:700px){
  html:has(body.mobile-refined){scroll-padding-top:92px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .mobile-brand{font-size:15px;line-height:1.85}
  .mobile-brand .wrap{width:100%;padding-inline:clamp(16px,5vw,24px)}
  .mobile-brand .page-heading{padding-top:28px;padding-bottom:24px}
  .mobile-brand .page-heading h1,.mobile-brand .community-main .page-header h1{font-size:clamp(27px,7.8vw,34px);line-height:1.4}
  .mobile-brand .lead{font-size:15px;line-height:1.85}
  .mobile-brand .eyebrow{font-size:11px;letter-spacing:.11em;overflow-wrap:anywhere}
  .mobile-brand .section{padding-block:38px}
  .mobile-brand .section-title{gap:12px;align-items:start}
  .mobile-brand .section-title h2{font-size:25px;line-height:1.5}
  .mobile-brand .button,.mobile-brand .site-action{min-height:48px;padding:11px 18px;text-align:center;white-space:normal;line-height:1.6}
  .mobile-brand :is(.text-link,.reading-link,.footer-links a,.knowledge-paths a){min-height:44px}
  .mobile-brand .text-link{display:inline-flex;align-items:center;white-space:normal}
  .mobile-brand .footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 28px;width:100%}
  .mobile-brand .footer-links a{display:flex;align-items:center;font-size:14px}
  .mobile-brand .footer-brand small{display:block;margin:7px 0 0}
  .mobile-brand .footer-meta{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
  .mobile-brand .site-footer{padding:28px max(18px,env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom))}
  .mobile-brand .breadcrumb,.mobile-brand .sync-breadcrumb{font-size:12px;gap:6px 9px;line-height:1.8;overflow-wrap:anywhere}
  .mobile-brand .next-step h2{font-size:24px}
  .mobile-brand .next-step .sync-actions,.mobile-brand .next-step .button{width:100%}
  .mobile-brand .home-hero h1{font-size:clamp(34px,10vw,43px);line-height:1.4}
  .mobile-brand .hero-actions{gap:12px;align-items:center}
  .mobile-brand .hero-actions>.button{flex:1 1 180px}
  .mobile-brand .hero-note{font-size:13px;line-height:1.85}
  .mobile-brand .mineral-carousel-controls{display:grid;grid-template-columns:1fr auto;gap:8px}
  .mobile-brand .mineral-carousel-arrows{grid-column:1;grid-row:1;gap:6px}
  .mobile-brand .mineral-carousel-controls button{min-height:44px;min-width:44px}
  .mobile-brand .mineral-carousel-controls [data-mineral-pause]{grid-column:2;grid-row:1}
  .mobile-brand .mineral-carousel-dots{grid-column:1/-1;grid-row:2;justify-content:center;gap:8px}
  .mobile-brand .mineral-carousel-controls [data-mineral-dot]{width:44px;min-width:44px;min-height:44px}
  .mobile-brand .mineral-credit{font-size:11px;line-height:1.8;text-align:left}
  .mobile-brand .home-quick-start{padding:22px 18px}
  .mobile-brand .home-quick-start .button{width:100%}
  .mobile-brand .founder-teaser>img{max-width:220px;border-radius:6px}
  .mobile-brand .catalog-toolbar{gap:12px}
  .mobile-brand .catalog-toolbar label{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
  .mobile-brand .catalog-toolbar select{margin:0;min-height:46px}
  .mobile-brand .product-info h2{font-size:25px}
  .mobile-brand .product-info p{font-size:15px}
  .mobile-brand .product-footer-actions{flex-wrap:wrap;gap:12px!important}
  .mobile-brand .product-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:visible;padding:10px 0}
  .mobile-brand .product-gallery-item{width:100%;height:auto;aspect-ratio:1;min-width:0}
  .mobile-brand .product-gallery-item img{width:100%;height:100%;object-fit:contain}
  .mobile-brand .product-gallery-add{min-height:100px;width:auto}
  .mobile-brand .product-video-edit-bar{flex-wrap:wrap;gap:8px}
  .mobile-brand .product-video-edit-btn{min-height:44px;font-size:13px;padding:8px 12px}
  .mobile-brand .shop-detail-hero{gap:24px;margin-bottom:36px}
  .mobile-brand .shop-detail-hero h1{font-size:clamp(27px,7.8vw,34px);line-height:1.45}
  .mobile-brand .shop-card-body{padding:20px}
  .mobile-brand .shop-card h3{font-size:23px}
  .mobile-brand .shop-photo-grid{gap:10px}
  .mobile-brand .shop-buy{width:100%}
  .mobile-brand .shop-specs{font-size:15px}
  .mobile-brand .knowledge-paths{gap:6px 14px;font-size:14px}
  .mobile-brand .knowledge-paths a{display:inline-flex;align-items:center}
  .mobile-brand .kb-search{margin-top:22px;min-height:50px}
  .mobile-brand .kb-search input{padding:12px;min-width:0}
  .mobile-brand .kb-search button{min-width:64px;padding:10px 14px}
  .mobile-brand .kb-tags{gap:8px}
  .mobile-brand .kb-tag{min-height:44px;padding:8px 12px;font-size:13px}
  .mobile-brand .kb-card{padding:14px;gap:12px}
  .mobile-brand .kb-card-sub{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
  .mobile-brand .kb-crystal-card .kb-card-price{max-width:50px;white-space:normal;line-height:1.7}
  .mobile-brand :is(.kb-fake,.kb-care,.kb-culture,.kb-ind,.kb-sup,.kb-isn){padding:18px;font-size:15px;overflow-wrap:anywhere}
  .mobile-brand .knowledge-type h3{font-size:20px}
  .mobile-brand .illustrated-card h3{font-size:17px}
  .mobile-brand .illustrated-card p:not(.eyebrow){font-size:13px;line-height:1.75}
  .mobile-brand .illustrated-filter{padding:16px}
  .mobile-brand .illustrated-filter input,.mobile-brand .illustrated-filter select{min-height:48px}
  .mobile-brand .original-copy{font-size:15px;line-height:1.95;overflow-wrap:anywhere}
  .mobile-brand .original-archive-notice{font-size:14px;line-height:1.8}
  .mobile-brand .article-header h1{font-size:clamp(26px,7.4vw,32px);line-height:1.5}
  .mobile-brand .article-sub{font-size:14px}
  .mobile-brand .article-body{font-size:16px;line-height:1.95}
  .mobile-brand .article-body h2{font-size:23px;line-height:1.5;margin-top:30px}
  .mobile-brand .article-body h3{font-size:19px;line-height:1.6}
  .mobile-brand .article-body :is(.highlight,.warning,.tip,.info-box){padding:16px;line-height:1.85}
  .mobile-brand .article-body :is(td,th){font-size:13px;padding:10px;line-height:1.8}
  .mobile-brand .article-toc{gap:4px 12px;padding:14px}
  .mobile-brand .article-toc a{font-size:13px;min-height:38px;display:flex;align-items:center}
  .mobile-brand .related-reading a{font-size:14px;min-height:44px;display:flex;align-items:center}
  .mobile-brand .guide-step p{font-size:15px}
  .mobile-brand .guide-step{grid-template-columns:42px minmax(0,1fr);gap:14px}
  .mobile-brand .guide-step .num{white-space:nowrap;font-size:28px;letter-spacing:-.04em}
  .mobile-brand .guide-step a{min-height:44px;display:inline-flex;align-items:center}
  .mobile-brand .brand-story-body p,.mobile-brand .diary-card .card-body{font-size:15px;line-height:1.95}
  .mobile-brand .brand-chapter>summary{padding-block:10px;min-height:48px}
  .mobile-brand .card-toggle{min-height:44px;padding-block:8px}
  .mobile-brand .community-main .post-form-actions,.mobile-brand .community-main .user-bar{flex-wrap:wrap;gap:12px}
  .mobile-brand .community-main .post-card{padding:18px}
  .mobile-brand .community-main .filter-tabs{flex-wrap:wrap;gap:8px}
  .mobile-brand .community-main :is(.tab-btn,.btn-upload,.emoji-picker-btn,.btn-small){min-height:44px}
  .mobile-brand .community-main .post-content{font-size:15px;overflow-wrap:anywhere}
  .mobile-brand .start-intro h1{font-size:clamp(29px,8.4vw,36px)}
  .mobile-brand .start-intro-links a{display:inline-flex;align-items:center;min-height:44px}
  .mobile-brand .start-share{padding:22px 18px}
  .mobile-brand .atlas-summary,.mobile-brand .atlas-story p{font-size:15px;line-height:1.95}
  .mobile-brand .atlas-quality{font-size:14px;line-height:1.85}
  .mobile-brand .atlas-toolbar label{font-size:13px}
  .mobile-brand .atlas-region-tabs button,.mobile-brand .atlas-learning a,.mobile-brand .atlas-share button{min-height:44px}
  .mobile-brand .atlas-sources a{font-size:12px;min-height:36px}
  .mobile-refined :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){font-size:16px!important;min-height:44px}
  .mobile-brand :is(.login-card,.forgot-card,.reset-card){padding:26px 20px}
  .mobile-brand .auth-modal-overlay{padding:12px;overflow-y:auto;overscroll-behavior:contain}
  .mobile-brand .auth-modal{width:100%;max-height:calc(100dvh - 24px);overflow-y:auto;padding:24px 20px;margin:auto}
  .mobile-brand .auth-modal :is(input,button){min-height:46px}
  .mobile-refined .modal-bg{padding:12px}
  .mobile-refined .modal-box{width:100%;max-height:calc(100dvh - 24px);padding:22px 18px;overscroll-behavior:contain}
  .mobile-refined .modal-close{min-width:44px;min-height:44px}
  .mobile-refined .cms-modal-overlay{padding:12px;overflow:auto;overscroll-behavior:contain}
  .mobile-refined .cms-modal{max-width:100%;width:100%;max-height:calc(100dvh - 24px);overflow-y:auto;padding:22px 18px;margin:auto}
  .mobile-refined .cms-modal .upload-area{padding:24px 12px}
  .mobile-refined .cms-modal .btn-row{gap:10px;flex-wrap:wrap}
  .mobile-refined .cms-modal .btn-row button{min-height:44px;flex:1;padding:10px 14px}
  .mobile-refined .cms-video-file-info{min-width:0;overflow-wrap:anywhere}
  .mobile-refined #cmsVideoFileName{min-width:0;overflow-wrap:anywhere}
  .mobile-refined .cms-toast{max-width:calc(100vw - 24px);white-space:normal;overflow-wrap:anywhere}
  .mobile-refined .sync-lightbox{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:10px}
  .mobile-refined .sync-lightbox-tools{gap:6px;display:grid;grid-template-columns:1fr auto 1fr}
  .mobile-refined .sync-lightbox-tools button{min-height:44px;font-size:13px;padding:8px}
  .mobile-refined .sync-lightbox-tools [data-image-close]{grid-column:1/-1}
  .mobile-refined .sync-lightbox>img{max-height:65dvh}
  .mobile-refined .cms-toolbar{height:96px;align-items:stretch;flex-direction:column;gap:4px;padding:7px 12px}
  .mobile-refined .cms-toolbar .cms-left{gap:8px;min-width:0;font-size:11px}
  .mobile-refined .cms-toolbar .cms-logo{font-size:12px;white-space:nowrap}
  .mobile-refined .cms-toolbar .cms-badge{font-size:10px}
  .mobile-refined .cms-toolbar .cms-right{gap:8px;justify-content:flex-end}
  .mobile-refined .cms-toolbar button{min-height:40px;padding:7px 10px;font-size:12px}
  body.mobile-refined.cms-toolbar-active{padding-top:96px}
  body.mobile-refined.cms-toolbar-active nav{top:96px!important}
  .mobile-content-pack{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  .mobile-content-pack .phone-frame{width:100%;min-width:0}
  .mobile-content-pack .img-grid{grid-template-columns:1fr;gap:18px;padding-inline:16px}
  .mobile-content-pack .img-item .img-download{width:44px;height:44px;bottom:10px;right:10px}
  .mobile-content-pack :is(.copy-btn,.video-actions a){min-height:44px;line-height:1.7;padding:10px 16px}
  .mobile-content-pack .text-section .content{font-size:16px;line-height:1.9;overflow-wrap:anywhere}
  .mobile-content-pack .bottom-bar{padding:10px 16px calc(10px + env(safe-area-inset-bottom));gap:10px}
  .mobile-content-pack .bottom-bar :is(a,button){min-height:46px;font-size:13px}
  .mobile-tool{padding-inline:0!important;overflow-wrap:anywhere}
  .mobile-tool .wrap,.mobile-tool>.container{padding:16px;width:100%;max-width:100%}
  .mobile-tool .card{padding:18px 16px;border-radius:12px}
  .mobile-tool .row{flex-wrap:wrap;gap:12px}
  .mobile-tool .row>div{min-width:0;flex:1 1 140px}
  .mobile-tool :is(button,.btn,.chip,.step){min-height:44px}
  .mobile-tool :is(.chip,label,.hint,.sub){line-height:1.75}
  .mobile-tool label{font-size:13px}
  .mobile-tool .hint{font-size:12px}
  .mobile-tool :is(.drop,.upload-area){padding:24px 16px}
  .mobile-tool .video-input-row{flex-wrap:wrap}
  .mobile-tool .video-input-row input{min-width:0;flex:1 1 180px}
  .mobile-tool .video-input-row button{flex:1 1 72px}
  .mobile-tool :is(.results,.grid,.ecom-grid){grid-template-columns:minmax(0,1fr)}
  .mobile-tool :is(.pg .ph,.pg .ops,.file-item,.file-row){flex-wrap:wrap;gap:8px}
  .mobile-tool .pg canvas{width:100%;height:auto}
  .mobile-tool .toast{max-width:calc(100vw - 24px);white-space:normal;overflow-wrap:anywhere}
  .mobile-management .topbar{padding:12px;flex-wrap:wrap;gap:12px}
  .mobile-management .topbar .left{gap:8px;flex-wrap:wrap}
  .mobile-management .topbar .right{flex-wrap:wrap;gap:8px}
  .mobile-management .topbar button{min-height:44px;padding:9px 12px;font-size:12px}
  .mobile-management .container{padding:0 14px;margin:18px auto}
  .mobile-management .card{padding:18px 14px;min-width:0}
  .mobile-management :is(.stats-row,.grid-2){grid-template-columns:minmax(0,1fr)}
  .mobile-management table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
  .mobile-management .pw-row{flex-direction:column;align-items:stretch}
  .mobile-management .pw-row input{width:100%}
  .mobile-management .pw-row button{min-height:46px}
}
@media(min-width:701px) and (max-width:1000px){.mobile-brand .wrap{padding-inline:28px}.mobile-brand .shop-grid{gap:16px}}
@media(prefers-reduced-motion:reduce){.mobile-refined{scroll-behavior:auto}}

/* /topic-navigation.css */
.topic-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0 32px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.topic-tabs button{min-height:44px;padding:9px 20px;border:1px solid var(--line);border-radius:4px;color:var(--green);background:transparent;cursor:pointer}
.topic-tabs button[aria-selected=true]{color:#fff;background:var(--green);border-color:var(--green)}
.topic-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
[data-topic-panel][hidden],#brandDiaryPanel[hidden],#brandStoryPanel[hidden],#libraryCategories[hidden]{display:none!important}
.knowledge-layout .knowledge-illustrated .illustrated-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.knowledge-layout .kb-search{margin:20px 0 14px}.knowledge-layout .kb-tags{margin-bottom:24px}
.topic-atlas>h2{margin-bottom:20px}.topic-frame{display:block;width:100%;min-height:520px;border:0;background:var(--paper,#faf9f5);overflow:hidden}
.topic-reader{box-sizing:border-box;padding:0;border:1px solid var(--line);border-radius:8px;width:min(920px,calc(100vw - 40px));max-width:none;height:calc(100dvh - 64px);max-height:none;overflow:hidden;color:var(--ink);background:var(--paper,#faf9f5)}
.topic-reader::backdrop,.topic-image-viewer::backdrop{background:#14251fc4}
.topic-reader[open],.topic-image-viewer[open]{display:flex;flex-direction:column}
.topic-reader-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 24px;border-bottom:1px solid var(--line);background:var(--paper,#faf9f5)}
.topic-reader-header h2{margin:0;min-width:0}.topic-reader-header button{flex-shrink:0;min-height:44px;padding:6px 16px;border:1px solid var(--line);background:transparent;border-radius:4px;color:var(--ink);cursor:pointer}
.topic-reader-header{flex-shrink:0}
.topic-reader-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px 32px;box-sizing:border-box;scroll-behavior:auto}
.topic-reader-body .article-content,.topic-reader-body main{padding:0;margin:0;max-width:none;width:auto;display:block;background:transparent}
.topic-reader-body .article-header{margin-bottom:20px}.topic-reader-body .article-body{padding:0}.topic-reader-body img{max-width:100%;height:auto}.topic-reader-body video{display:block;width:100%;max-height:70dvh}
.topic-reader-body .page-heading{padding:0;margin:0 0 16px}
a.atlas-hero-caption{text-decoration:none}
.topic-reader-body :is(table){max-width:100%;border-collapse:collapse}.topic-reader-body .table-scroll{overflow:auto}.topic-reader-body .illustrated-spread{display:grid;grid-template-columns:1fr;gap:20px}.topic-reader-body .sync-details{display:block;margin:20px 0}.topic-reader-body .sync-details-body{display:block}
.topic-image-button{display:block;padding:0;width:100%;border:0;background:none;cursor:zoom-in}.topic-readable-image{display:block}
.topic-image-viewer{box-sizing:border-box;width:calc(100vw - 24px);height:calc(100dvh - 24px);max-width:none;max-height:none;padding:0;border:1px solid var(--line);border-radius:6px;background:var(--paper,#faf9f5);overflow:hidden}
.topic-image-viewer .topic-reader-header>div{display:flex;gap:8px}.topic-image-scroll{flex:1;min-height:0;overflow:auto;padding:12px;box-sizing:border-box;text-align:center}.topic-image-scroll img{display:block;max-width:100%;height:auto;margin:0 auto}.topic-image-viewer.is-original .topic-image-scroll img{max-width:none;width:auto}
.topic-embedded{padding:0!important}.topic-embedded :is(.site-nav,.site-footer,.skip-link,main>.sync-breadcrumb,.atlas-hero,.atlas-journeys){display:none!important}.topic-embedded main.wrap{width:100%;max-width:none;padding:16px 0 0;margin:0}.topic-embedded .atlas-directory{padding-top:24px}.topic-embedded .diary-heading{margin-top:0}.topic-embedded #diaryAddForm{display:none}
.home-topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-block:36px}.home-topic-card{display:flex;flex-direction:column;gap:8px;padding:24px 20px;border:1px solid var(--line);border-radius:4px;background:var(--soft)}.home-topic-card .home-topic-number{color:var(--accent)}
@media(max-width:900px){.knowledge-layout .knowledge-illustrated .illustrated-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-tabs{gap:6px;margin-block:20px 24px}.topic-tabs button{flex:1;padding:8px 10px;white-space:nowrap}.topic-reader{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:5px}.topic-reader-header{gap:12px;padding:10px 14px}.topic-reader-header button{padding:6px 12px}.topic-reader-body{padding:20px 16px}.topic-image-viewer .topic-reader-header{flex-wrap:wrap;gap:8px}.topic-image-viewer .topic-reader-header>div{margin-left:auto}.home-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-topic-card{padding:20px 16px}.topic-embedded main.wrap{padding-top:0}}

.topic-mount{min-width:0;width:100%}.topic-mount .atlas-directory{padding-top:24px}.topic-mount .diary-photo{max-width:460px;margin:0 0 28px}.topic-mount .diary-photo img{width:100%;height:auto}.topic-mount .diary-card{margin-bottom:24px}.topic-mount .diary-toggle{display:none}.topic-mount .collapsed{max-height:none!important;overflow:visible!important}

.topic-mount .atlas-hero,.topic-mount .atlas-journeys{display:none!important}

/* /typography.css */
/*
 * 柴不多 public typography, 2026-11-05.
 * Five sizes, two weights, one system sans-serif stack. This sheet loads last.
 * The repeated scope deliberately wins older !important presentation rules.
 * SVG labels keep the atlas collision/zoom algorithm and its existing sizes.
 */
body.mobile-refined.mobile-refined {
  --type-caption:14px;
  --type-body:16px;
  --type-subheading:20px;
  --type-section:28px;
  --type-title:40px;
  --type-face:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  --font:var(--type-face);
  --serif:var(--type-face);
  font-family:var(--type-face)!important;
  font-size:var(--type-body)!important;
  font-weight:400!important;
  line-height:1.8;
}
body.mobile-refined.mobile-refined :where(*):where(:not(svg *)) {
  font-family:inherit!important;
  font-size:inherit!important;
  font-weight:inherit!important;
}
body.mobile-refined.mobile-refined :where(h1,h2,h3,h4,h5,h6) {
  font-family:var(--type-face)!important;
  font-weight:600!important;
  font-style:normal;
  letter-spacing:0;
  line-height:1.45;
}
body.mobile-refined.mobile-refined :where(h1) {font-size:var(--type-title)!important;line-height:1.35}
body.mobile-refined.mobile-refined :where(h2) {font-size:var(--type-section)!important}
body.mobile-refined.mobile-refined :where(h3,h4,h5,h6) {font-size:var(--type-subheading)!important}
body.mobile-refined.mobile-refined :where(strong,b,dt,th) {font-weight:600!important}
body.mobile-refined.mobile-refined :where(button,input,select,textarea) {font-size:var(--type-body)!important;line-height:1.6}
body.mobile-refined.mobile-refined :where(.button,.site-action,.shop-buy,.text-link,.site-menu-toggle,.nav-login,.site-nav-links>a,.footer-links>a) {font-size:var(--type-body)!important}
body.mobile-refined.mobile-refined :where(button,a)[aria-current=page],
body.mobile-refined.mobile-refined :where(button,a)[aria-selected=true],
body.mobile-refined.mobile-refined button[aria-pressed=true] {font-weight:600!important}

/* Introductory copy and long-form reading share the same comfortable body size. */
body.mobile-refined.mobile-refined :where(.lead,.article-body,.article-sub,.original-copy,.brand-story-body,.brand-story-body p,.diary-card .card-body,.guide-step p,.post-content,.atlas-intro,.atlas-summary,.atlas-story p,.atlas-quality,.shop-specs,.sync-notice,.guide-callout,.original-archive-notice,.legacy-reading-note,.text-section .content) {
  font-size:var(--type-body)!important;
  line-height:1.85;
}
body.mobile-refined.mobile-refined :where(.product-info p,.featured-product .lead,.founder-teaser .lead,.brand-values p,.reading-link p,.knowledge-type p,.shop-card p:not(.eyebrow),.atlas-editorial p) {font-size:var(--type-body)!important;line-height:1.8}

/* Quiet supporting details use a single readable size, including image credits. */
body.mobile-refined.mobile-refined :where(small,figcaption,.eyebrow,.site-eyebrow,.breadcrumb,.sync-breadcrumb,.sync-note,.footer-meta,.footer-brand small,.site-brand small,.hero-note,.product-note,.photo-pending,.catalog-toolbar p,.catalog-footnote,.product-media-label,.product-details>.content-open-heading,.tag,.kb-stats,.kb-card-sub,.kb-card-price,.kb-group-count,.kb-article-num,.kb-article-sub,.kb-more-hint,.kb-fake-crystal,.kb-care-crystal,.kb-culture-crystal,.kb-ind-cat,.kb-sup-cat,.kb-fake-tools,.kb-care-reason,.kb-care-label,.knowledge-type-number,.knowledge-type-action,.library-photo-note,.library-detail-photo figcaption,.illustrated-card p:not(.eyebrow),.illustrated-search-card p,.card-date,.diary-chapter,.brand-story-toc a,.brand-chapter>.content-open-heading>span,.article-toc,.article-toc strong,.article-toc a,.article-video-section p,.shop-card .eyebrow,.shop-video-caption,.brand-photo-caption,.start-product-copy .start-spec,.promotion-status,.char-count,.user-role,.post-time,.atlas-kicker,.atlas-country,.atlas-gems,.atlas-sources,.atlas-sources a,.atlas-share-status,.atlas-status,.atlas-map-note,.atlas-map-overline,.atlas-map-current,.atlas-map-heading>span,.atlas-map-zoom span,.atlas-region-tabs button span,.atlas-photo-kind,.atlas-photo-credit,.atlas-story .atlas-story-source,.atlas-location .location-country,.atlas-location .location-gems,.atlas-location .location-action,.atlas-hero-caption,.atlas-hero-caption span,.atlas-hero-index,.atlas-journey-copy small,.atlas-journey-copy>span,.atlas-journey-heading>span,.atlas-browse span,.mineral-slide-caption p,.mineral-slide-caption small,.mineral-credit,.mineral-carousel-controls [data-mineral-status],.mineral-carousel-controls [data-mineral-pause],.account-main .back-link,.account-main .logo p,.error-msg,.success-msg,.hint,.sub,.status,.badge) {
  font-size:var(--type-caption)!important;
  line-height:1.7;
}
body.mobile-refined.mobile-refined :where(.section-title p,.knowledge-illustrated .section-title p,.atlas-directory .section-title p,.atlas-explorer-heading>p:last-child) {font-size:var(--type-body)!important;line-height:1.8}

/* Card labels stay compact; section headings carry the larger emphasis. */
body.mobile-refined.mobile-refined :where(.illustrated-card h3,.illustrated-search-card h3,.kb-card-name,.kb-fake-type,.kb-culture-title,.kb-sup-name,.kb-ind-metric,.atlas-location strong,.atlas-journey-copy strong,.atlas-hero-caption strong,.next-step strong,.footer-brand,.diary-card .card-title,.atlas-map-heading strong,.atlas-journey-heading>p:nth-child(2)) {
  font-size:var(--type-subheading)!important;
  font-weight:600!important;
  line-height:1.5;
}
body.mobile-refined.mobile-refined :where(.illustrated-card h3,.illustrated-search-card h3,.kb-card-name,.atlas-location strong,.atlas-journey-copy strong,.atlas-hero-caption strong) {font-size:var(--type-body)!important}
body.mobile-refined.mobile-refined :where(.kb-group-title,.kb-article-title,.modal-bd .sec-title,.atlas-story h3,.atlas-detail h3,.shop-card h3,.reading-link h3,.brand-values h3,.related-reading h2,.site-brand strong) {font-size:var(--type-subheading)!important;font-weight:600!important;line-height:1.5}
body.mobile-refined.mobile-refined :where(.content-open-heading,.product-info h2,.guide-step h2,.article-body h2,.article-video-section h2,.modal-box h2,.image-credit-card h2,.atlas-detail h2,.atlas-editorial h2,.atlas-teaser h2,.atlas-teaser h3,.illustrated-entry h2,.illustrated-entry h3,.featured-product h3) {font-size:var(--type-section)!important;font-weight:600!important;line-height:1.5}
body.mobile-refined.mobile-refined :where(.shop-price,.product-info .price,.featured-product .price,.kb-ind-value,.catalog-index,.catalog-index .number,.reading-link .number,.guide-step .num) {
  font-family:var(--type-face)!important;
  font-size:var(--type-section)!important;
  font-weight:600!important;
  font-style:normal;
  letter-spacing:0;
  line-height:1.5;
  font-variant-numeric:tabular-nums;
}
body.mobile-refined.mobile-refined :where(code,kbd,pre,samp) {font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important}
body.mobile-refined.mobile-refined :where(.modal-close,.auth-close,.cms-modal-close) {font-size:var(--type-subheading)!important}
body.mobile-refined.mobile-refined .site-brand small {letter-spacing:.04em;line-height:1.4}
body.mobile-refined.mobile-refined .site-brand strong {letter-spacing:.08em;line-height:1.4}
body.mobile-refined.mobile-refined :where(.eyebrow,.atlas-kicker,.knowledge-type-number,.atlas-map-overline) {letter-spacing:.05em}

/* Larger credit text must occupy its own space instead of overlaying the hero. */
body.mobile-refined.mobile-refined .atlas-heading.atlas-hero {display:flex;flex-direction:column;justify-content:space-between;gap:28px}
body.mobile-refined.mobile-refined .atlas-hero-caption {position:static;inset:auto;max-width:100%;text-align:left;align-self:flex-start;border-top:1px solid #f7eed333;padding-top:14px;margin:0;overflow-wrap:anywhere}
body.mobile-refined.mobile-refined .atlas-hero-caption span:last-child {position:static}
body.mobile-refined.mobile-refined .atlas-hero-index {display:none}
body.mobile-refined.mobile-refined .atlas-detail .atlas-photo:nth-child(2) {grid-template-columns:minmax(100px,.65fr) minmax(0,1fr);column-gap:15px;row-gap:8px;align-items:start}
body.mobile-refined.mobile-refined .atlas-detail .atlas-photo:nth-child(2) img {grid-column:1;grid-row:1 / span 2}
body.mobile-refined.mobile-refined .atlas-detail .atlas-photo:nth-child(2) .atlas-photo-kind {position:static;grid-column:2;grid-row:1;margin:0;align-self:start;justify-self:start}
body.mobile-refined.mobile-refined .atlas-detail .atlas-photo:nth-child(2) figcaption {grid-column:2;grid-row:2;padding:0}
body.mobile-refined.mobile-refined .atlas-journey-card {align-items:stretch}
body.mobile-refined.mobile-refined .atlas-journey-card img {height:auto;min-height:110px}
body.mobile-refined.mobile-refined .atlas-journey-copy {overflow-wrap:anywhere}
body.mobile-refined.mobile-refined .kb-crystal-card .kb-card-price {max-width:70px;white-space:normal}
body.mobile-refined.mobile-refined .illustrated-card h3 {text-wrap:balance}

@media(max-width:900px) {
  body.mobile-refined.mobile-refined {--type-section:24px;--type-title:30px}
}
@media(max-width:700px) {
  body.mobile-refined.mobile-refined .atlas-heading.atlas-hero {padding-bottom:28px}
  body.mobile-refined.mobile-refined .atlas-detail .atlas-photo:nth-child(2) {grid-template-columns:minmax(90px,35%) minmax(0,1fr);column-gap:11px}
  body.mobile-refined.mobile-refined .guide-step {grid-template-columns:42px minmax(0,1fr)}
  body.mobile-refined.mobile-refined .guide-step .num {white-space:nowrap}
  body.mobile-refined.mobile-refined .atlas-map-heading {gap:12px;align-items:start;flex-wrap:wrap}
  body.mobile-refined.mobile-refined .atlas-map-heading>span {white-space:normal}
  body.mobile-refined.mobile-refined .atlas-map-note {gap:8px}
}

/* /clean-tabs.css */
/* Four visible theme tabs; normal document flow on every screen. */
html:has(.site-nav){scroll-padding-top:20px}
.site-nav.site-nav{position:relative;top:auto;height:auto;min-height:0;display:grid;grid-template-columns:1fr auto;gap:0 20px;padding:14px max(24px,calc((100vw - 1160px)/2)) 0;background:var(--paper,#fbfaf6);backdrop-filter:none;box-shadow:none;z-index:20}
.site-nav.site-nav .site-brand{grid-column:1;grid-row:1;align-self:center;gap:10px;width:fit-content}
.site-nav.site-nav .site-brand img{width:36px;height:40px}
.site-nav.site-nav .site-brand small{display:none}
.site-nav.site-nav .site-nav-tools{grid-column:2;grid-row:1;margin:0;padding:0;border:0;gap:10px}
.site-nav.site-nav .site-nav-links{grid-column:1/-1;grid-row:2;position:static;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;max-height:none;margin:10px 0 0;padding:0;border:0;box-shadow:none;overflow:visible;background:transparent}
.site-nav.site-nav .site-nav-links>a{display:flex;justify-content:center;align-items:center;min-height:54px;padding:12px 8px;border-radius:0;background:transparent;color:var(--muted);text-decoration:none;white-space:nowrap;text-align:center}
.site-nav.site-nav .site-nav-links>a[aria-current=page]{color:var(--ink);background:transparent}
.site-nav.site-nav .site-nav-links>a[aria-current=page]:after{display:block;content:'';position:absolute;width:32px;height:2px;left:calc(50% - 16px);right:auto;top:auto;bottom:0;background:var(--ink)}
.site-nav.site-nav .site-menu-toggle{display:none!important}
.site-nav.site-nav .nav-login{display:inline-flex;align-items:center;min-height:44px;padding:4px 0}
.site-nav.site-nav .nav-user-area{max-width:150px}
.site-nav.site-nav .nav-username{max-width:76px}
body.cms-toolbar-active .site-nav.site-nav{position:relative;top:auto!important}
.site-footer .footer-row{margin-bottom:12px}.site-footer .footer-meta{gap:12px 24px;align-items:center;flex-wrap:wrap}.site-footer .footer-meta a{font-size:var(--type-caption,14px);color:var(--muted)}
.topic-tabs.topic-tabs{gap:0;display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;margin:10px 0 28px;padding:0;border-bottom:1px solid var(--line)}
.topic-tabs.topic-tabs button{flex:1 0 auto;min-height:50px;padding:12px 16px;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted);background:transparent;white-space:nowrap}
.topic-tabs.topic-tabs button[aria-selected=true]{background:transparent;color:var(--ink);border-bottom-color:var(--ink)}
.home-hero.home-hero{padding-top:46px;padding-bottom:34px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:42px}
.home-hero .lead{max-width:26em;margin-top:20px}.home-hero .hero-actions{margin-top:24px}
.home-hero .mineral-carousel-stage{aspect-ratio:1.2;border:0;border-radius:8px}
.home-product-film{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:38px;border-top:1px solid var(--line);margin-top:22px}
.home-product-film p{margin:14px 0 20px;color:var(--muted)}
.home-product-film .product-video-container{position:relative;height:440px;aspect-ratio:auto;max-width:440px;width:100%;justify-self:center;background:#eeeae2;border-radius:6px;overflow:hidden}
.home-product-film .foreground-video{position:static!important;display:block;width:100%;height:100%!important;max-height:440px;object-fit:contain}
#nature .product-video-container{background:#eeeae2}#nature .product-details{margin-top:0}
@media(max-width:700px){
 .site-nav.site-nav{padding:10px max(18px,env(safe-area-inset-left)) 0;gap:0 12px}
 .site-nav.site-nav .site-brand img{width:32px;height:36px}.site-nav.site-nav .site-nav-links{margin-top:6px}
 .site-nav.site-nav .site-nav-links>a{min-height:48px;padding:10px 6px}
 .site-nav.site-nav .site-nav-links>a[aria-current=page]:after{width:28px;left:calc(50% - 14px)}
 .site-nav.site-nav .nav-user-area{max-width:125px}.site-nav.site-nav .nav-username{max-width:52px}
 .site-home .home-hero.home-hero{display:flex;flex-direction:column;align-items:stretch;padding-top:28px;padding-bottom:26px;gap:24px}
 .site-home .home-hero-copy h1 br{display:none}.site-home .home-hero-copy h1{max-width:12em}
 .site-home .home-hero-copy .lead{margin-top:12px}.site-home .hero-actions{margin-top:16px}
 .site-home .hero-actions>.button{flex:none;padding:10px 18px;min-height:44px}
 .site-home .home-hero .mineral-carousel-stage{aspect-ratio:1.24;border-radius:6px}
 .site-home .mineral-carousel-controls{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
 .site-home .mineral-carousel-dots{gap:0}.site-home .mineral-carousel-controls [data-mineral-dot]{min-width:26px;width:26px}
 .site-home .mineral-carousel-arrows{gap:3px}.site-home .mineral-carousel-controls [data-mineral-status]{display:none}
 .site-home .mineral-carousel-controls [data-mineral-pause]{min-width:48px;padding:0 8px}
 .site-home #homeProducts{padding-top:20px}
 .home-product-film{grid-template-columns:1fr;gap:22px;margin-top:14px;padding-block:32px}
 .home-product-film .product-video-container{height:min(125vw,500px);max-width:100%}.home-product-film .foreground-video{max-height:500px}
 .topic-tabs.topic-tabs{margin:0 0 24px}.topic-tabs.topic-tabs button{padding:12px 9px;min-width:0;flex:1}
 .site-footer .footer-meta{align-items:flex-start;gap:7px}.site-footer .footer-brand small{display:inline;margin-left:10px}
}

/* Match the restored portrait film to its explicit container height. */
.home-product-film .product-video-container video.foreground-video{max-height:none;position:relative!important;z-index:1}

/* Five themes: desktop shares one baseline; mobile keeps five equal tabs in normal flow. */
.site-nav.site-nav{grid-template-columns:minmax(150px,1fr) minmax(400px,580px) minmax(70px,1fr);gap:24px;padding-block:12px;align-items:center}
.site-nav.site-nav .site-brand{grid-column:1;grid-row:1;min-width:0}
.site-nav.site-nav .site-nav-links{grid-column:2;grid-row:1;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;align-self:stretch;align-items:center}
.site-nav.site-nav .site-nav-links>a{position:relative;min-width:0;min-height:48px;line-height:1.4;padding:12px 4px;letter-spacing:0}
.site-nav.site-nav .site-nav-tools{grid-column:3;grid-row:1;justify-self:end;align-self:center}
.site-home .home-hero{min-height:0}.home-observations{padding-block:44px 20px;border-top:1px solid var(--line)}
.observation-heading{margin-bottom:26px}.observation-heading .eyebrow{margin-bottom:10px}
.observation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.observation-card{min-width:0;margin:0}.observation-photo{aspect-ratio:1.12;background:#171a16;border-radius:6px;overflow:hidden}
.observation-photo img{width:100%;height:100%;object-fit:cover}.observation-color .observation-photo{background:#e8e1d6}
.observation-card figcaption{padding-top:16px}.observation-card figcaption span{font-size:var(--type-caption,14px);color:var(--muted)}.observation-card figcaption p{margin-top:7px;line-height:1.7}
@media(max-width:900px){
 .site-nav.site-nav{grid-template-columns:1fr auto;gap:0 12px;padding:10px max(20px,env(safe-area-inset-left)) 0}
 .site-nav.site-nav .site-nav-tools{grid-column:2;grid-row:1}
 .site-nav.site-nav .site-nav-links{grid-column:1/-1;grid-row:2;margin-top:6px;grid-template-columns:repeat(5,minmax(0,1fr))}
 .site-nav.site-nav .site-nav-links>a{min-height:48px;padding:12px 2px}
}
@media(max-width:700px){
 .site-nav.site-nav .site-nav-links>a{font-size:15px!important}
 .site-home .home-hero.home-hero{padding-top:26px;gap:22px}
 .home-observations{padding-block:30px 4px}.observation-heading{margin-bottom:20px}
 .observation-grid{grid-template-columns:1fr;gap:26px}.observation-photo{aspect-ratio:1.55}.observation-card figcaption{padding-top:12px}
 .observation-card figcaption p{font-size:var(--type-body,16px)}
}
