:root {
  --ink: #10281a;
  --ink-soft: #24583a;
  --muted: #728279;
  --paper: #f7f8f6;
  --paper-strong: #eef2ee;
  --white: #ffffff;
  --line: rgba(16, 21, 18, .10);
  --mint: #8de0aa;
  --mint-strong: #00a73c;
  --mint-deep: #008d46;
  --blue: #e7efea;
  --blue-strong: #37865a;
  --dark: #123522;
  --dark-2: #1e4c31;
  --brand-red: #cf554a;
  --shadow: 0 24px 70px rgba(16, 32, 22, .10);
  --shadow-small: 0 12px 28px rgba(16, 32, 22, .07);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

/* V28: unify large surfaces around the small-corner language used by 最近更新. */
.button, .chip, .filter-button, .front-page-button, .admin-management-tabs a, .meta-tag, .activity-status, .support-links a, .admin-status, .nav-dropdown-panel a,
.field-select, .form-input, .form-textarea, .support-search input, .search-box input, .driver-keyword-box,
.category-card, .product-card, .support-panel, .content-card, .activity-card,
.detail-panel, .product-detail-visual-art, .product-action-settings, .article-video-block, .article-video-note,
.driver-filter-panel, .tutorial-filter-panel, .driver-group, .driver-card, .admin-section, .admin-subsection,
.admin-form-page > .admin-section, .stat-card, .rich-editor-shell, .file-input, .media-card, .media-picker-dialog,
.media-picker-card, .media-source-dialog, .media-source-option, .video-cover-option, .upload-progress-panel {
  border-radius: 10px;
}
.button, .chip, .filter-button, .admin-management-tabs a, .meta-tag, .activity-status, .support-links a, .admin-status, .nav-dropdown-panel a,
.tutorial-keyword-search .driver-keyword-box button, .driver-inline-search, .driver-platform-button, .media-library-tabs button,
.admin-form-page-state { border-radius: 8px; }

.menu-sort-list { display: grid; gap: 8px; }
.menu-sort-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.menu-sort-row { transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s ease; }
.menu-sort-row.is-dragging { opacity: .48; }
.menu-sort-row.is-drag-over { border-color: var(--mint-deep); background: rgba(141, 224, 170, .12); box-shadow: 0 0 0 2px rgba(0, 141, 70, .10); }
.menu-sort-actions { display: flex; gap: 6px; }
.menu-sort-actions .small-button:disabled { opacity: .35; cursor: not-allowed; }

/* 统一为首页最近更新卡片的小圆角，保留搜索/菜单的圆形交互按钮。 */
:root { --radius-xl: 10px; --radius-lg: 10px; --radius-md: 8px; }
.button, .chip, .filter-button, .front-page-button, .admin-management-tabs a, .meta-tag, .activity-status, .support-links a, .admin-status, .nav-dropdown-panel a { border-radius: 8px; }
.support-search input, .search-box input { border-radius: 8px; }

.admin-list-controls { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:16px 0; color:var(--muted,#72857b); font-size:13px; }
.admin-list-controls label { display:flex; align-items:center; gap:6px; }
.admin-list-controls select { min-height:34px; padding:0 9px; border:1px solid rgba(20,43,33,.18); border-radius:8px; background:#fff; color:inherit; }
.admin-pagination { display:flex; gap:6px; margin-left:auto; flex-wrap:wrap; }
.admin-pagination .is-current { background:#123b2b; color:#fff; border-color:#123b2b; }
.admin-pagination button:disabled { opacity:.45; cursor:not-allowed; }
.front-pagination { display:flex; justify-content:center; gap:8px; margin:30px 0 8px; flex-wrap:wrap; }
.front-page-button { display:inline-flex; align-items:center; justify-content:center; min-width:36px; min-height:34px; padding:0 11px; border:1px solid var(--line); border-radius:9px; color:var(--ink-soft); background:#fff; font-size:12px; }
.front-page-button.is-current, .front-page-button:hover { color:#fff; border-color:var(--mint-deep); background:var(--mint-deep); }
.front-page-button[aria-disabled="true"] { pointer-events:none; opacity:.42; }
.front-page-gap { display:inline-flex; align-items:center; justify-content:center; min-width:24px; color:var(--muted); }
.admin-management-tabs { display:flex; gap:10px; flex-wrap:wrap; margin:0 0 18px; padding:0 4px; }
.admin-management-tabs a { padding:9px 14px; border:1px solid var(--line); border-radius:999px; color:var(--muted); background:#fff; font-size:13px; }
.admin-management-tabs button { padding:9px 14px; border:1px solid var(--line); border-radius:999px; color:var(--muted); background:#fff; font-size:13px; cursor:pointer; }
.admin-management-tabs a:hover { color:#fff; border-color:var(--mint-deep); background:var(--mint-deep); }
.admin-management-tabs button:hover { color:#fff; border-color:var(--mint-deep); background:var(--mint-deep); }
.admin-management-tabs a.active { color:#fff; border-color:var(--mint-deep); background:var(--mint-deep); }
.admin-management-tabs button.active { color:#fff; border-color:var(--mint-deep); background:var(--mint-deep); }
[data-settings-panel][hidden] { display:none !important; }
.settings-panel .admin-subsection + .admin-subsection { margin-top: 14px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.site-shell { min-height: 100vh; overflow-x: clip; }
.container { width: calc(100% - clamp(32px, 5vw, 128px)); max-width: none; min-width: 0; margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  border-bottom: 0;
  backdrop-filter: blur(18px);
}
.nav-inner { height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 720; letter-spacing: -.03em; }
.brand-logo { display: block; width: 176px; height: auto; max-height: 42px; object-fit: contain; object-position: left center; }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px;
  color: #fff; background: var(--ink); font-size: 12px; letter-spacing: -.06em;
}
.brand-copy { display: grid; line-height: 1; gap: 4px; }
.brand-copy strong { font-size: 17px; }
.brand-copy small { font-size: 10px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(26px, 2.7vw, 42px); margin-left: clamp(56px, 7vw, 154px); margin-right: auto; }
.main-nav > a, .nav-dropdown > a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; margin: -8px -10px; color: var(--ink-soft); font-size: 14px; font-weight: 580; list-style: none; white-space: nowrap; cursor: pointer; border-radius: 999px; transition: color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.main-nav > a::after, .nav-dropdown > a::after { position: absolute; right: 9px; bottom: -8px; left: 9px; height: 3px; border-radius: 3px; background: var(--mint-deep); content: ''; opacity: 0; transform: scaleX(.35); transition: opacity .18s ease, transform .18s ease; }
.main-nav > a.active { color: var(--mint-deep); }
.main-nav > a:hover, .nav-dropdown > a:hover { color: var(--mint-deep); }
.main-nav > a:hover::after, .nav-dropdown > a:hover::after, .nav-dropdown:focus-within > a::after, .nav-dropdown.is-open > a::after { opacity: 1; transform: scaleX(1); }
.main-nav > a:focus-visible, .nav-dropdown > a:focus-visible { outline: 2px solid var(--mint-strong); outline-offset: 3px; }
.main-nav > a:hover, .nav-dropdown > a:hover { background: var(--paper); box-shadow: 0 5px 16px rgba(16,21,18,.06); }
.nav-dropdown { position: relative; }
.nav-dropdown-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.nav-dropdown:hover > a .nav-dropdown-caret, .nav-dropdown:focus-within > a .nav-dropdown-caret, .nav-dropdown.is-open > a .nav-dropdown-caret { transform: rotate(225deg) translate(-1px, -1px); }
.nav-dropdown-panel {
  position: fixed; z-index: 30; top: 76px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px;
  min-height: 0; padding: 20px clamp(32px, 5vw, 128px) 22px; background: rgba(255,255,255,.98); border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: 0 18px 35px rgba(16,21,18,.12);
  visibility: hidden; opacity: 0; transform: translateY(-14px); pointer-events: none; transition: opacity .24s ease, transform .28s ease, visibility .28s ease;
}
.nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown:focus-within .nav-dropdown-panel, .nav-dropdown.is-open .nav-dropdown-panel { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-dropdown-panel a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 16px; border-radius: 999px; font-size: 13px; white-space: nowrap; transition: color .18s ease, background-color .18s ease; }
.nav-dropdown-panel a:hover { background: var(--paper); color: var(--mint-deep); }
.nav-dropdown-panel { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; min-width: min(360px, calc(100vw - 32px)); width: max-content; max-width: min(520px, calc(100vw - 32px)); }
.nav-category-group { display: grid; gap: 2px; padding: 5px 0; border-bottom: 1px solid rgba(16, 21, 18, .07); }
.nav-category-group:last-child { border-bottom: 0; }
.nav-category-parent a { font-weight: 700; }
.nav-category-child { padding-left: 20px; }
.nav-category-child a { min-height: 32px; padding-top: 6px; padding-bottom: 6px; color: var(--muted); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: 12px; }
.search-trigger, .menu-trigger { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }
.search-trigger:hover { background: var(--white); }
.menu-trigger { display: none; }
.mobile-nav { display: none; }

.site-header-over-hero {
  position: absolute;
  left: 0;
  right: 0;
  color: #fff;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}
.site-header-over-hero .brand-mark { color: var(--ink); background: #fff; }
.site-header-over-hero .brand-logo { filter: brightness(0) invert(1); }
.site-header-over-hero .brand-copy small { color: rgba(255,255,255,.66); }
.site-header-over-hero .main-nav > a, .site-header-over-hero .nav-dropdown > a { color: rgba(255,255,255,.88); text-shadow: 0 1px 12px rgba(0,0,0,.22); }
.site-header-over-hero .main-nav > a:hover, .site-header-over-hero .nav-dropdown > a:hover { color: #fff; background: rgba(255,255,255,.16); box-shadow: 0 5px 18px rgba(0,0,0,.12); }
.site-header-over-hero .nav-dropdown-panel, .site-header-over-hero .nav-dropdown-panel a { color: var(--ink-soft); text-shadow: none; }
.site-header-over-hero .nav-dropdown-panel a:hover { color: var(--mint-deep); }
.site-header-over-hero .search-trigger, .site-header-over-hero .menu-trigger { color: #fff; border-color: rgba(255,255,255,.38); background: rgba(0,0,0,.12); }
.site-header-over-hero .search-trigger:hover, .site-header-over-hero .menu-trigger:hover { background: rgba(255,255,255,.18); }
.site-header-over-hero.is-scrolled {
  position: fixed;
  background: rgba(15, 29, 23, .95);
  box-shadow: 0 10px 30px rgba(4, 14, 8, .18);
  backdrop-filter: blur(18px);
  transition: background .28s ease, box-shadow .28s ease;
}
.site-header-over-hero.is-light-hero {
  color: var(--ink);
}
.site-header-over-hero.is-light-hero .brand-logo { filter: none; }
.site-header-over-hero.is-light-hero .brand-copy small { color: var(--muted); }
.site-header-over-hero.is-light-hero .main-nav > a,
.site-header-over-hero.is-light-hero .nav-dropdown > a { color: var(--ink-soft); text-shadow: none; }
.site-header-over-hero.is-light-hero .main-nav > a:hover,
.site-header-over-hero.is-light-hero .nav-dropdown > a:hover { color: var(--mint-deep); background: rgba(255,255,255,.66); box-shadow: 0 5px 18px rgba(16,21,18,.08); }
.site-header-over-hero.is-light-hero .search-trigger,
.site-header-over-hero.is-light-hero .menu-trigger { color: var(--ink); border-color: rgba(16,21,18,.18); background: rgba(255,255,255,.38); }
.site-header-over-hero.is-light-hero.is-scrolled {
  color: #fff;
}
.site-header-over-hero.is-light-hero.is-scrolled .brand-logo { filter: brightness(0) invert(1); }
.site-header-over-hero.is-light-hero.is-scrolled .brand-copy small { color: rgba(255,255,255,.66); }
.site-header-over-hero.is-light-hero.is-scrolled .main-nav > a,
.site-header-over-hero.is-light-hero.is-scrolled .nav-dropdown > a { color: rgba(255,255,255,.88); text-shadow: 0 1px 12px rgba(0,0,0,.22); }
.site-header-over-hero.is-light-hero.is-scrolled .search-trigger,
.site-header-over-hero.is-light-hero.is-scrolled .menu-trigger { color: #fff; border-color: rgba(255,255,255,.38); background: rgba(0,0,0,.12); }
.site-header-over-hero.is-scrolled .main-nav > a:hover,
.site-header-over-hero.is-scrolled .nav-dropdown > a:hover { background: rgba(255,255,255,.12); }

.hero {
  position: relative;
  height: min(100svh, 920px);
  min-height: 560px;
  overflow: hidden;
  padding: 0;
  color: #fff;
  background: var(--dark);
}
.hero-slider { position: relative; }
.hero-slide { position: absolute; inset: 0; z-index: 0; overflow: hidden; visibility: hidden; opacity: 0; pointer-events: none; background: var(--dark); transition: opacity .65s ease, visibility .65s ease; }
.hero-slide.active { z-index: 1; visibility: visible; opacity: 1; pointer-events: auto; }
.hero-slide-picture { position: absolute; inset: 0; display: block; }
.hero-slide-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide-scrim { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4,10,7,.32), transparent 28%, transparent 60%, rgba(4,10,7,.55)); }
.hero-slide-light .hero-slide-scrim { background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 35%, rgba(4,40,18,.16)); }
.hero-slide-deep .hero-slide-scrim { background: linear-gradient(180deg, rgba(0,0,0,.24), transparent 32%, rgba(0,0,0,.52)); }
.hero-slide-link { position: absolute; z-index: 2; inset: 0; display: block; cursor: pointer; }
.hero-slide-link:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: -8px; }
.home-feature-banners { padding: 10px 0 0; }
.home-feature-banners .container { display: grid; gap: 10px; }
.home-feature-banner { display: block; overflow: hidden; border-radius: 10px; background: var(--paper-strong); }
.home-feature-banner img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.home-feature-banner:focus-visible { outline: 3px solid var(--mint-strong); outline-offset: 3px; }
.hero-slide-fallback { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 74% 24%, rgba(104, 210, 153, .42), transparent 27%), linear-gradient(135deg, #17241e 0%, #253c31 48%, #101713 100%); }
.hero-slide-fallback-empty { display: grid; place-items: center; padding: 30px; }
.hero-slide-fallback-empty .empty-state { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.2); background: rgba(0,0,0,.16); }
.hero .hero-slide-fallback .product-art.large { min-height: 0; height: 100%; border-radius: 0; box-shadow: none; }
.product-detail-hero .product-art.large { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
.eyebrow { color: var(--mint-deep); font-size: 11px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.page-head > .container > .eyebrow,
.home-section .section-kicker,
.support-panel > .eyebrow { display: none; }
.hero h1 { max-width: 590px; margin: 20px 0 22px; font-size: clamp(46px, 5.4vw, 74px); letter-spacing: -.075em; line-height: .98; font-weight: 740; }
.hero-description { max-width: 500px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 680; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: var(--mint-deep); }
.button-light { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.58); }
.button-light:hover { background: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; color: var(--ink-soft); border: 1px solid rgba(16,21,18,.08); border-radius: 999px; background: rgba(255,255,255,.5); font-size: 11px; }
.hero-slider-bar { position: absolute; z-index: 5; left: 50%; bottom: 30px; display: flex; justify-content: center; width: 100%; transform: translateX(-50%); pointer-events: none; }
.hero-dots { display: flex; align-items: center; gap: 5px; width: min(360px, 45vw); pointer-events: auto; }
.hero-dot { flex: 1 1 0; width: auto; height: 3px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.38); box-shadow: 0 1px 5px rgba(0,0,0,.22); transition: background .25s ease, transform .25s ease; }
.hero-dot.active { background: #fff; transform: scaleY(1.35); }
.hero-slider-buttons { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.hero-slider-buttons button { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 72px; padding: 0 0 5px; border: 0; border-radius: 12px; background: rgba(0,0,0,.10); color: #fff; font-family: Arial, sans-serif; font-size: 52px; font-weight: 200; line-height: 1; text-shadow: 0 2px 12px rgba(0,0,0,.35); transform: translateY(-50%); pointer-events: auto; transition: background .2s ease, transform .2s ease; }
.hero-slider-buttons button:first-child { left: clamp(12px, 2.6vw, 48px); }
.hero-slider-buttons button:last-child { right: clamp(12px, 2.6vw, 48px); }
.hero-slider-buttons button:hover { background: rgba(0,0,0,.34); transform: translateY(-50%) scale(1.04); }

.product-art {
  position: relative; min-height: 430px; overflow: hidden; border-radius: var(--radius-xl);
  background: radial-gradient(circle at 70% 25%, rgba(104, 210, 153, .38), transparent 28%), linear-gradient(135deg, #17241e 0%, #253c31 48%, #101713 100%);
  box-shadow: var(--shadow); isolation: isolate;
}
.product-art.blue { background: radial-gradient(circle at 72% 22%, rgba(141,224,170,.38), transparent 29%), linear-gradient(135deg, #113023, #17613d 52%, #0b1710); }
.product-art.glass { background: radial-gradient(circle at 72% 22%, rgba(255,255,255,.78), transparent 25%), linear-gradient(135deg, #dceee1, #8bb79a 54%, #304d39); }
.product-art.violet { background: radial-gradient(circle at 68% 24%, rgba(128,226,164,.4), transparent 28%), linear-gradient(135deg, #173326, #28704a 52%, #0c1911); }
.product-art.sunset { background: radial-gradient(circle at 72% 20%, rgba(255,196,111,.5), transparent 28%), linear-gradient(135deg, #3a2c18, #527331 54%, #152016); }
.product-art.silver { background: radial-gradient(circle at 72% 20%, rgba(255,255,255,.85), transparent 28%), linear-gradient(135deg, #526b59, #b6d4bf 54%, #2b4131); }
.product-art.light { color: var(--ink); background: radial-gradient(circle at 75% 18%, rgba(0,167,60,.22), transparent 27%), linear-gradient(135deg, #f2faf3 0%, #d9f0df 52%, #b8dfc5 100%); }
.product-art.deep { background: radial-gradient(circle at 75% 18%, rgba(0,201,76,.55), transparent 28%), linear-gradient(135deg, #06140b 0%, #0a5b2d 52%, #031008 100%); }
.product-art.light::before { border-color: rgba(0,124,50,.24); box-shadow: 0 0 0 34px rgba(0,124,50,.055), 0 0 0 72px rgba(0,124,50,.035); }
.product-art.light::after { background: linear-gradient(90deg, transparent, rgba(0,124,50,.28), transparent); }
.product-art.light .art-label { color: rgba(16,32,22,.58); }
.product-art.light .art-model { color: var(--ink); }
.product-art.light .art-model small { color: rgba(16,32,22,.62); }
.product-art[data-card-text-contrast="light"] .art-label { color: rgba(255,255,255,.82); text-shadow: 0 1px 9px rgba(0,0,0,.3); }
.product-art[data-card-text-contrast="light"] .art-model { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.34); }
.product-art[data-card-text-contrast="light"] .art-model small { color: rgba(255,255,255,.76); text-shadow: 0 1px 8px rgba(0,0,0,.28); }
.product-art[data-card-text-contrast="dark"] .art-label { color: rgba(16,32,22,.68); text-shadow: 0 1px 4px rgba(255,255,255,.34); }
.product-art[data-card-text-contrast="dark"] .art-model { color: var(--ink); text-shadow: 0 1px 5px rgba(255,255,255,.38); }
.product-art[data-card-text-contrast="dark"] .art-model small { color: rgba(16,32,22,.7); text-shadow: 0 1px 4px rgba(255,255,255,.3); }
.product-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-art::before { content: ""; position: absolute; width: 420px; height: 420px; top: -140px; right: -90px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 72px rgba(255,255,255,.025); }
.art-label { position: absolute; left: 34px; top: 30px; color: rgba(255,255,255,.68); font-size: 11px; letter-spacing: .17em; font-weight: 680; }
.art-model { position: absolute; left: 34px; bottom: 30px; color: #fff; font-size: 18px; font-weight: 720; letter-spacing: -.02em; }
.art-model small { display: block; margin-top: 6px; color: rgba(255,255,255,.62); font-size: 11px; font-weight: 500; }
.device-placeholder { position: absolute; left: 15%; right: 11%; top: 29%; height: 38%; border-radius: 26px; background: linear-gradient(140deg, rgba(255,255,255,.25), rgba(255,255,255,.06) 35%, rgba(0,0,0,.34)); border: 1px solid rgba(255,255,255,.34); transform: perspective(720px) rotateX(58deg) rotateZ(-12deg); box-shadow: 0 35px 50px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.4); }
.device-placeholder::before { content: ""; position: absolute; inset: 13px; border-radius: 17px; border: 1px solid rgba(255,255,255,.18); }
.device-placeholder::after { content: "10moons"; position: absolute; left: 18px; bottom: 15px; color: rgba(255,255,255,.45); font-size: 9px; letter-spacing: .14em; }
.camera-placeholder { position: absolute; left: 24%; top: 26%; width: 52%; height: 42%; border-radius: 42px 42px 28px 28px; background: linear-gradient(145deg, #edf5fa, #8ca8b7); box-shadow: 0 30px 45px rgba(0,0,0,.32), inset 0 2px rgba(255,255,255,.8); }
.camera-placeholder::before { content: ""; position: absolute; width: 42%; aspect-ratio: 1; left: 29%; top: 25%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #b5e3ff, #31546c 40%, #111b22 67%); border: 7px solid rgba(255,255,255,.62); box-shadow: 0 0 0 1px rgba(17, 28, 36, .28); }
.camera-placeholder::after { content: ""; position: absolute; width: 48%; height: 12px; left: 26%; bottom: 16px; border-radius: 20px; background: rgba(29, 50, 58, .55); }

.section { padding: 92px 0; }
.home-section { padding-top: 82px; padding-bottom: 82px; }
.home-categories + .home-products, .home-products + .home-support { padding-top: 0; }
.home-categories, .home-products, .home-support { background: var(--paper); }
.home-section .section-header { margin-bottom: 24px; }
.home-section .section-kicker { color: var(--mint-deep); letter-spacing: .08em; text-transform: none; }
.home-section .section-title { font-size: clamp(28px, 3.2vw, 40px); }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.section-kicker { color: var(--muted); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; font-weight: 720; }
.section-title { margin: 10px 0 0; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.06em; line-height: 1.02; }
.section-lead { max-width: 400px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.category-card { position: relative; min-height: clamp(220px, 22vw, 420px); aspect-ratio: 16 / 9; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow-small); }
.category-card.blue { background: #fff; }
.category-card.dark { background: var(--paper-strong); color: var(--ink); }
.category-card.sand { background: #f0e8dc; }
.category-card.soft { background: #fff; }
.category-card.night { background: radial-gradient(circle at 80% 15%, rgba(115,179,255,.32), transparent 34%), linear-gradient(135deg, #14222b, #203c4b); color: #fff; }
.category-card.warm { background: radial-gradient(circle at 82% 12%, rgba(255,190,117,.45), transparent 32%), linear-gradient(135deg, #f5e3d4, #ead1bf); }
.category-card.mesh { background: #fff; }
.category-card.has-cover { background: var(--paper); color: #fff; }
.category-card.has-cover { border: 0; box-shadow: none; isolation: isolate; }
.category-card.has-cover::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(120deg, rgba(10,24,18,.34), rgba(10,24,18,.06)); pointer-events: none; }
.category-cover { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; }
.category-card h3 { position: relative; z-index: 2; margin: 0 0 10px; font-size: 28px; letter-spacing: -.05em; }
.category-card p { position: relative; z-index: 2; max-width: 260px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.category-card.has-cover p { color: rgba(255,255,255,.7); }
.category-card .card-link { position: absolute; z-index: 3; left: 30px; bottom: 28px; color: var(--mint-deep); font-size: 13px; font-weight: 700; }
.category-card.has-cover .card-link { color: var(--mint-deep); }
.category-card .card-link { display: none; }
.category-orb { position: absolute; width: 250px; height: 250px; right: -36px; bottom: -90px; border-radius: 50%; border: 1px solid rgba(29,127,83,.25); box-shadow: 0 0 0 28px rgba(29,127,83,.07), 0 0 0 60px rgba(29,127,83,.05); }
.blue .category-orb { border-color: rgba(67, 129, 194, .28); box-shadow: 0 0 0 28px rgba(67,129,194,.08), 0 0 0 60px rgba(67,129,194,.05); }
.dark .category-orb { border-color: rgba(184,240,207,.28); box-shadow: 0 0 0 28px rgba(184,240,207,.08), 0 0 0 60px rgba(184,240,207,.04); }
.has-cover .category-orb { display: none; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 5px 16px rgba(22,44,30,.03); }
.product-card-art-link { display: block; }
.product-card-art-link .product-art { transition: transform .35s ease; }
.product-card-art-link:hover .product-art { transform: scale(1.015); }
.product-card .product-art { min-height: 0; height: auto; aspect-ratio: 16 / 9; border-radius: 0; box-shadow: none; }
.product-card-body { padding: 23px; }
.product-card-body h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.04em; }
.product-card-body p { min-height: 44px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.text-link { color: var(--mint-deep); font-size: 13px; font-weight: 700; }
.text-link::after { content: " ↗"; }

.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scene-card { min-height: 170px; padding: 22px; border-radius: var(--radius-md); background: var(--dark); color: #fff; }
.scene-card:nth-child(2) { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.scene-card:nth-child(3) { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.scene-number { color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: .12em; }
.scene-card:nth-child(2) .scene-number, .scene-card:nth-child(3) .scene-number { color: var(--muted); }
.scene-card h3 { margin: 42px 0 0; font-size: 21px; letter-spacing: -.04em; }
.scene-card p { margin: 8px 0 0; color: inherit; opacity: .67; font-size: 12px; line-height: 1.6; }

.support-panel { position: relative; overflow: hidden; padding: 52px; border-radius: var(--radius-xl); background: var(--dark); color: #fff; }
.support-panel::after { content: ""; position: absolute; width: 430px; height: 430px; right: -100px; top: -190px; border: 1px solid rgba(184,240,207,.25); border-radius: 50%; box-shadow: 0 0 0 36px rgba(184,240,207,.04), 0 0 0 75px rgba(184,240,207,.03); }
.support-panel h2 { position: relative; z-index: 1; max-width: 820px; margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 50px); letter-spacing: -.065em; line-height: 1.08; }
.support-panel p { position: relative; z-index: 1; max-width: 480px; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.7; }
.support-search { position: relative; z-index: 2; display: flex; gap: 10px; max-width: 700px; margin-top: 28px; }
.support-search input, .search-box input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; outline: none; color: #fff; background: rgba(255,255,255,.09); }
.support-search input::placeholder { color: rgba(255,255,255,.42); }
.support-search input:focus { border-color: rgba(184,240,207,.65); }
.support-search .button { flex: 0 0 auto; }
.support-search .button { color: #fff !important; background: var(--mint-deep) !important; box-shadow: 0 8px 20px rgba(0,141,70,.2); }
.support-search .button:hover { background: var(--mint-strong) !important; box-shadow: 0 10px 24px rgba(0,141,70,.28); }
.support-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.support-links a { padding: 9px 13px; color: rgba(255,255,255,.77); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-size: 12px; }
.support-links a:hover { color: #fff; border-color: rgba(184,240,207,.55); }

.site-footer { padding: 48px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-brand p { max-width: 280px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-title { margin: 0 0 14px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; font-size: 13px; }
.footer-links a:hover { color: var(--mint-deep); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.page-head { padding: 58px 0 28px; }
.page-head h1 { margin: 14px 0 14px; font-size: clamp(42px, 6vw, 72px); letter-spacing: -.08em; line-height: .98; }
.page-head p { max-width: 560px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.page-head > .container > p { display: none; }
.filter-bar.filter-category-bar { display: grid; gap: 18px; align-items: start; margin: 0 0 30px; }
.filter-category-all { display: flex; }
.filter-category-all .filter-button { min-height: 42px; padding: 0 20px; }
.filter-category-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.filter-category-group { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-small); }
.filter-category-parent { display: grid; gap: 8px; }
.filter-category-level { color: var(--mint-deep); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.filter-category-children { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.filter-category-child-list { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 11px; border-left: 2px solid rgba(0,141,70,.22); }
.filter-category-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.filter-category-no-children { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.filter-category-group .filter-button-parent { width: 100%; min-height: 42px; justify-content: space-between; color: var(--ink-soft); background: #edf8f0; border-color: rgba(0,141,70,.22); font-size: 14px; font-weight: 750; }
.filter-button-arrow { color: var(--mint-deep); font-size: 17px; }
.filter-category-group .filter-button-child { min-height: 32px; padding: 0 10px; color: var(--muted); background: #fff; font-size: 11px; }
.filter-button-child.active { color: #fff; background: var(--mint-deep); border-color: var(--mint-deep); }
.filter-level-tag { margin-left: 9px; color: var(--mint-deep); font-size: 10px; font-weight: 700; }
.filter-button-parent.active { color: #fff; background: var(--mint-deep); border-color: var(--mint-deep); }
.filter-category-group .filter-button { display: inline-flex; align-items: center; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; }
.filter-button { min-height: 34px; padding: 0 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 12px; }
.filter-button.active, .filter-button:hover { color: #fff; border-color: var(--mint-deep); background: var(--mint-deep); }
.split-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
.split-filters > .admin-notice { display: none; }
.field-select, .form-input, .form-textarea { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: #fff; }
.form-textarea { padding: 12px 13px; min-height: 120px; resize: vertical; line-height: 1.6; }
.field-select:focus, .form-input:focus, .form-textarea:focus { border-color: var(--mint-strong); box-shadow: 0 0 0 3px rgba(85,201,130,.12); }
.content-list { display: grid; min-width: 0; gap: 13px; }
.content-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.content-card:hover { border-color: rgba(85,201,130,.55); box-shadow: var(--shadow-small); }
.content-card-main { min-width: 0; }
.content-card h3 { overflow: hidden; margin: 0 0 8px; font-size: 17px; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.content-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.content-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.meta-tag { padding: 5px 8px; color: var(--muted); border-radius: 7px; background: var(--paper); font-size: 10px; }
.content-card-action { flex: 0 0 auto; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: 18px; }
.activity-filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.activity-filter-tab { min-height: 34px; padding: 0 15px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 12px; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.activity-filter-tab:hover { color: var(--mint-deep); border-color: rgba(0,141,70,.45); transform: translateY(-1px); }
.activity-filter-tab.active { color: #fff; border-color: var(--mint-deep); background: var(--mint-deep); }
.featured-product-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 2px; }
.featured-product-option { display: flex; align-items: flex-start; gap: 10px; min-height: 62px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; }
.featured-product-option:has(input:checked) { border-color: var(--mint-deep); background: #effaf2; box-shadow: 0 0 0 2px rgba(0,141,70,.1); }
.featured-product-option input { margin-top: 3px; accent-color: var(--mint-deep); }
.featured-product-option span { display: grid; gap: 4px; min-width: 0; }
.featured-product-option strong { color: var(--ink); font-size: 13px; }
.featured-product-option small { color: var(--muted); font-size: 11px; }
@media (max-width: 900px) { .featured-product-picker { grid-template-columns: 1fr; } }
.activity-filter-result { margin-bottom: 18px; color: var(--muted); font-size: 11px; }
.activity-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 5px 16px rgba(22,44,30,.03); }
.activity-cover { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.activity-cover-fallback { background: radial-gradient(circle at 78% 20%, rgba(184,240,207,.52), transparent 25%), linear-gradient(135deg, #14231d, #35674d 52%, #111714); }
.activity-card:nth-child(2n) .activity-cover-fallback { background: radial-gradient(circle at 78% 20%, rgba(175,214,255,.55), transparent 25%), linear-gradient(135deg, #162430, #3c6680 52%, #11171c); }
.activity-card:nth-child(3n) .activity-cover-fallback { background: radial-gradient(circle at 78% 20%, rgba(255,210,155,.55), transparent 25%), linear-gradient(135deg, #38231e, #915f47 52%, #191313); }
.activity-card-body { padding: 22px; }
.activity-card-meta, .activity-detail-heading, .activity-detail-time { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.activity-card-meta { color: var(--muted); font-size: 11px; }
.activity-countdown { margin-left: auto; color: var(--mint-deep); font-size: 11px; font-weight: 700; white-space: nowrap; }
.activity-countdown.ongoing { color: #176b45; }
.activity-countdown.upcoming { color: #805b18; }
.activity-status { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.activity-status.upcoming { color: #805b18; background: #fff1c9; }
.activity-status.ongoing { color: #176b45; background: #d9f5e2; }
.activity-status.ended { color: #69736d; background: #edf0ed; }
.activity-card h2 { margin: 16px 0 8px; font-size: 21px; letter-spacing: -.04em; }
.activity-card h2 a:hover { color: var(--mint-deep); }
.activity-card p { min-height: 42px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.activity-time { margin: 18px 0 16px; color: var(--muted); font-size: 11px; }
.activity-detail-cover { display: block; width: 100%; max-height: 520px; margin-top: 30px; object-fit: cover; border-radius: 20px; }
.activity-detail-heading { display: block; align-items: flex-start; margin-top: 24px; }
.activity-detail-heading h1 { margin-top: 0; }
.activity-detail-time { justify-content: flex-start; margin: 24px 0; padding: 16px 18px; border-radius: 12px; background: var(--paper-strong); color: var(--muted); font-size: 12px; }
.activity-detail-time strong { color: var(--ink-soft); }
.activity-detail-state { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.activity-detail-state .activity-countdown { margin-left: 0; }
.empty-state { padding: 58px 22px; text-align: center; color: var(--muted); border: 1px dashed rgba(16,21,18,.18); border-radius: var(--radius-md); background: rgba(255,255,255,.44); font-size: 13px; }

.product-detail-hero { display: grid; grid-template-columns: .86fr 1.14fr; gap: 46px; align-items: center; padding: 55px 0 65px; }
.product-detail-hero h1 { margin: 14px 0 14px; font-size: clamp(42px, 6vw, 70px); letter-spacing: -.08em; line-height: .98; }
.product-detail-hero p { max-width: 520px; color: var(--muted); line-height: 1.8; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.product-detail-intro + .detail-section { padding-top: 24px; }
.product-detail-intro + .detail-section::before { content: "产品参数"; display: block; margin-bottom: 18px; color: var(--ink); font-size: 25px; font-weight: 760; letter-spacing: -.045em; line-height: 1.35; }
.product-detail-intro + .detail-section::after { display: none; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.spec-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.spec-card span { display: block; color: var(--muted); font-size: 13px; font-weight: 650; }
.spec-card strong { display: block; margin-top: 9px; color: var(--ink); font-size: 20px; letter-spacing: -.03em; line-height: 1.35; }
.detail-section { padding: 25px 0 80px; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-panel { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.detail-panel h2 { margin: 0 0 20px; font-size: 22px; letter-spacing: -.04em; }
.detail-panel .content-list { margin-top: 0; }
.product-detail-visual { padding: 24px 0 0; }
.product-detail-visual-art { position: relative; overflow: hidden; border-radius: 24px; background: var(--paper); }
.product-detail-visual-art .product-art { min-height: 0; height: auto; aspect-ratio: 16 / 9; border-radius: 0; box-shadow: none; }
.product-detail-visual-art .product-art.has-image { aspect-ratio: auto; }
.product-detail-visual-art .product-art.has-image img { position: relative; inset: auto; display: block; width: 100%; height: auto; object-fit: contain; }
.product-detail-visual-art .art-label, .product-detail-visual-art .art-model { display: none; }
.product-detail-visual-actions { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 10px; padding: 70px 20px 28px; background: linear-gradient(transparent, rgba(9,16,12,.5)); }
.product-detail-visual-actions .button { min-width: 120px; }
.product-detail-intro { display: flex; flex-direction: column; max-width: 1080px; padding: 55px 0 30px; }
.product-detail-intro .eyebrow { color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: none; }
.product-detail-intro h1 { order: 2; margin: 13px 0 12px; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.075em; line-height: 1; }
.product-detail-intro .eyebrow { order: 1; }
.product-detail-intro p { order: 4; max-width: 1080px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.product-detail-intro .hero-meta { order: 3; margin: 0 0 22px; }
.product-detail-intro .hero-meta .chip { min-height: 34px; padding: 0 13px; border-radius: 8px; background: var(--paper); font-size: 13px; }
.detail-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.product-action-settings { display: grid; gap: 8px; margin-top: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.product-action-settings h3 { margin: 0; font-size: 16px; }
.scene-pills { display: flex; flex-wrap: wrap; gap: 9px; }
.scene-pills .chip { min-height: 38px; padding: 0 15px; color: var(--ink-soft); border: 1px solid rgba(36,88,58,.16); border-radius: 8px; background: var(--paper); font-size: 14px; }
.product-detail-use-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.product-detail-intro + .detail-section { margin-top: 8px; padding: 30px 34px 26px; border-radius: 20px 20px 0 0; background: var(--paper-strong); }
.product-detail-intro + .detail-section + .detail-section { margin-top: 0; padding: 0 34px 34px; border-radius: 0 0 20px 20px; background: var(--paper-strong); }
.product-detail-intro + .detail-section + .detail-section .detail-panel { padding: 0; border: 0; background: transparent; }
.product-detail-intro + .detail-section + .detail-section .detail-panel h2 { margin-bottom: 15px; }
.product-detail-intro + .detail-section + .detail-section + .detail-section { margin-top: 28px; padding-top: 37px; border-top: 1px solid var(--line); }
.product-detail-intro + .detail-section + .detail-section + .detail-section::before { content: "支持中心"; display: block; margin-bottom: 18px; color: var(--ink); font-size: 25px; font-weight: 760; letter-spacing: -.045em; line-height: 1.35; }

/* V19 detail-page refinement: keep the information hierarchy clean and avoid a full-width tinted panel. */
.product-detail-intro { display: block; }
.product-detail-intro .eyebrow { margin-bottom: 8px; }
.product-detail-intro h1 { display: inline; }
.product-detail-intro .hero-meta { display: inline-flex; vertical-align: baseline; margin: 0 0 0 16px; }
.product-detail-intro p { margin-top: 22px; }
.product-detail-intro + .detail-section { margin-top: 0; padding: 34px 0 48px; border-radius: 0; background: transparent; }
.product-detail-intro + .detail-section + .detail-section { margin-top: 0; padding: 34px 0 48px; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.product-detail-intro + .detail-section + .detail-section .detail-panel { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.product-detail-intro + .detail-section + .detail-section .detail-panel h2 { margin-bottom: 18px; }
.product-detail-intro + .detail-section + .detail-section + .detail-section { margin-top: 0; padding: 48px 0 80px; border-top: 1px solid var(--line); }
.detail-columns > .detail-panel { display: flex; flex-direction: column; min-width: 0; }
.detail-columns > .detail-panel > .driver-grid,
.detail-columns > .detail-panel > .content-list { flex: 1; align-content: start; }
.detail-columns > .detail-panel .driver-card,
.detail-columns > .detail-panel .content-card { min-height: 154px; border-radius: 15px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.detail-columns > .detail-panel .driver-card:hover { border-color: rgba(85,201,130,.55); box-shadow: var(--shadow-small); transform: none; }
.detail-columns > .detail-panel .content-card:hover { border-color: rgba(85,201,130,.55); box-shadow: var(--shadow-small); transform: none; }
.product-platform-scene-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0 !important; border: 0 !important; background: transparent !important; }
.product-tag-block { min-width: 0; min-height: 120px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.product-tag-block h2 { margin-bottom: 18px; }
.detail-columns > .detail-panel .driver-card,
.detail-columns > .detail-panel .content-card { min-height: 170px; box-sizing: border-box; }
.detail-columns > .detail-panel .driver-card { align-items: center; }
.detail-columns > .detail-panel .driver-card-main { align-self: center; }
.article { width: min(100%, 1120px); max-width: 1120px; min-width: 0; margin: 0 auto; padding: 35px 0 90px; }
.article h1 { margin: 15px 0; font-size: clamp(36px, 6vw, 66px); letter-spacing: -.08em; line-height: 1; }
.article-lead { color: var(--muted); font-size: 16px; line-height: 1.8; }
.article-body { margin-top: 38px; color: var(--ink-soft); font-size: 16px; line-height: 1.9; }
.article-body p { margin: 0 0 18px; }
.article-body h2, .article-body h3 { margin: 34px 0 13px; color: var(--ink); letter-spacing: -.04em; line-height: 1.2; }
.article-body h2 { font-size: 28px; }
.article-body h3 { font-size: 21px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 1.45em; }
.article-body li { margin: 6px 0; }
.article-body a { color: var(--mint-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { display: block; max-width: 100%; height: auto; margin: 24px 0; border-radius: 16px; box-shadow: var(--shadow-small); }
.article-body video, .article-video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: none; object-fit: contain; margin: 24px 0; border-radius: 16px; background: #0d1512; box-shadow: var(--shadow-small); }
.video-poster-shell { position: relative; display: block; width: 100%; max-width: 100%; overflow: hidden; margin: 24px 0; border-radius: 16px; background: #0d1512; box-shadow: var(--shadow-small); }
.video-poster-shell > video { margin: 0; border-radius: 0; box-shadow: none; }
.video-poster-overlay { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; overflow: hidden; width: 100%; height: 100%; padding: 0; color: #fff; border: 0; border-radius: 0; background: rgba(7,17,13,.16); cursor: pointer; }
.video-poster-overlay img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; border-radius: 0; box-shadow: none; }
.video-poster-overlay span { position: relative; z-index: 1; padding: 11px 15px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(7,17,13,.62); box-shadow: 0 8px 25px rgba(0,0,0,.2); font-size: 12px; font-weight: 750; }
.video-poster-overlay:hover { background: rgba(7,17,13,.28); }
.video-poster-overlay[hidden] { display: none; }
.article-video-block .video-poster-shell { margin: 15px 0 18px; }
.article-body blockquote { margin: 22px 0; padding: 15px 18px; color: var(--muted); border-left: 3px solid var(--mint-strong); border-radius: 0 12px 12px 0; background: #effaf2; }
.content-card-title-link { color: inherit; text-decoration: none; }
.content-card-title-link:hover { color: var(--mint-deep); }
.article-back { color: var(--mint-deep); font-size: 13px; font-weight: 700; }
.article-video-block { margin-top: 34px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.article-video-label { color: var(--mint-deep); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.article-video-block .article-video { margin: 15px 0 18px; }
.article-video-note { margin: 15px 0 18px; padding: 24px; color: var(--muted); border-radius: 12px; background: var(--paper); font-size: 13px; line-height: 1.7; }
.article-video-error { margin: -7px 0 18px; padding: 12px 14px; color: #8f4545; border-left: 3px solid #c97676; border-radius: 8px; background: #fff3f3; font-size: 12px; line-height: 1.6; }
.article-video-error[hidden] { display: none; }
.search-box { display: flex; gap: 10px; max-width: 760px; margin: 25px 0 38px; }
.search-box input { color: var(--ink); border-color: var(--line); background: #fff; }
.search-box input::placeholder { color: #9aa59e; }
.search-box input:focus { border-color: var(--mint-strong); }
.search-group { margin-top: 34px; }
.search-group h2 { margin: 0 0 14px; font-size: 19px; letter-spacing: -.03em; }
.search-count { color: var(--muted); font-size: 12px; font-weight: 500; }

/* Admin */
.admin-body { background: #eef2ee; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 25px 16px; background: #111a17; color: #fff; }
.admin-sidebar .brand { padding: 0 10px 26px; }
.admin-sidebar .brand-mark { background: var(--mint); color: var(--ink); }
.admin-sidebar .brand-logo { width: 188px; max-width: 100%; }
.admin-sidebar .brand-copy small { color: rgba(255,255,255,.42); }
.admin-nav { display: grid; gap: 4px; }
.admin-nav button, .admin-nav a { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 12px; color: rgba(255,255,255,.62); border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 13px; }
.admin-nav button:hover, .admin-nav button.active, .admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(184,240,207,.13); }
.admin-nav button.active, .admin-nav a.active { box-shadow: inset 3px 0 var(--mint); }
.admin-main { min-width: 0; max-width: 100%; overflow-x: clip; padding: 28px 34px 60px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.admin-topbar h1 { margin: 0; font-size: 28px; letter-spacing: -.05em; }
.admin-topbar p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.admin-top-actions { display: flex; align-items: center; gap: 9px; }
.admin-status { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: var(--muted); border-radius: 999px; background: rgba(255,255,255,.64); font-size: 11px; }
.admin-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint-strong); }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.stat-card { padding: 19px; border: 1px solid rgba(16,21,18,.08); border-radius: 17px; background: #fff; }
.stat-card span { color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin-top: 12px; font-size: 32px; letter-spacing: -.06em; }
.admin-section { min-width: 0; max-width: 100%; margin-top: 28px; padding: 23px; border: 1px solid rgba(16,21,18,.08); border-radius: 18px; background: #fff; }
.admin-subsection { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.admin-subsection .admin-section-header { margin-bottom: 12px; }
.admin-subsection .admin-section-header h2 { font-size: 15px; }
.menu-visibility-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-section-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.admin-section-header h2 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.admin-section-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.admin-main[data-admin-view="tutorials"] > .admin-section:not(.group-workspace) > .admin-section-header h2,
.admin-main[data-admin-view="activities"] > .admin-section > .admin-section-header h2,
.admin-main[data-admin-view="drivers"] > .admin-section:not(.group-workspace) > .admin-section-header h2,
.admin-main[data-admin-view="media"] > .admin-section > .admin-section-header h2 { display: none; }
.admin-main[data-admin-view="tutorials"] > .admin-section > .admin-section-header p,
.admin-main[data-admin-view="activities"] > .admin-section > .admin-section-header p,
.admin-main[data-admin-view="drivers"] > .admin-section > .admin-section-header p,
.admin-main[data-admin-view="media"] > .admin-section > .admin-section-header p { margin-top: 0; }
.admin-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 20px; align-items: start; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { padding: 11px 10px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.admin-table td { padding: 14px 10px; border-bottom: 1px solid rgba(16,21,18,.06); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.table-title { font-weight: 680; }
.admin-preview-link { color: var(--ink); text-decoration: none; text-underline-offset: 3px; }
.admin-preview-link:hover { color: var(--mint-deep); text-decoration: underline; }
.table-sub { margin-top: 4px; color: var(--muted); font-size: 10px; }
.row-actions { display: flex; gap: 6px; }
.small-button { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-soft); font-size: 11px; line-height: 1.2; text-align: center; }
.small-button:hover { border-color: var(--mint-strong); color: var(--mint-deep); }
.small-button.is-disabled { color: var(--muted); border-color: var(--line); background: var(--paper); cursor: not-allowed; opacity: .8; }
.small-button.danger:hover { color: #b33d3d; border-color: #e4a4a4; }
.admin-form { display: grid; gap: 13px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; min-width: 0; }
.admin-body .admin-form[data-editor-form="categories"] .form-row { align-items: start; }
.admin-body .admin-form[data-editor-form="categories"] .form-row > .form-group { align-content: start; }
.form-group { display: grid; min-width: 0; gap: 6px; }
.form-group > *, .admin-form > *, .admin-subsection > *, .admin-form-page > * { min-width: 0; max-width: 100%; }
.form-group label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.form-help { color: var(--muted); font-size: 10px; line-height: 1.55; }
.rich-editor-group { gap: 7px; }
.rich-editor-shell { min-width: 0; max-width: 100%; overflow: visible; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rich-editor-shell:focus-within { border-color: var(--mint-strong); box-shadow: 0 0 0 3px rgba(85,201,130,.12); }
.rich-editor-toolbar { display: flex; flex-wrap: nowrap; gap: 5px; width: 100%; max-width: 100%; overflow-x: scroll; overflow-y: hidden; padding: 8px; border-bottom: 1px solid var(--line); background: var(--paper); scrollbar-width: auto; scrollbar-color: var(--mint-deep) var(--paper-strong); overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.rich-editor-toolbar::-webkit-scrollbar { height: 9px; }
.rich-editor-toolbar::-webkit-scrollbar-track { background: var(--paper-strong); }
.rich-editor-toolbar::-webkit-scrollbar-thumb { border: 2px solid var(--paper-strong); border-radius: 9px; background: var(--mint-deep); }
.rich-editor-toolbar::-webkit-scrollbar-thumb:hover { background: var(--mint-strong); }
.rich-editor-toolbar > *, .rich-editor-selection-toolbar > * { flex: 0 0 auto; }
.rich-editor-selection-toolbar { position: fixed; z-index: 1000; display: flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid rgba(16,21,18,.12); border-radius: 11px; background: rgba(255,255,255,.98); box-shadow: 0 14px 38px rgba(16,21,18,.2); }
.rich-editor-selection-toolbar[hidden] { display: none; }
.rich-editor-selection-toolbar .editor-tool { min-width: 52px; min-height: 48px; padding: 4px 6px; }
.editor-tool { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 56px; min-height: 52px; padding: 5px 6px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 11px; }
.editor-tool-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 1.1em; min-height: 28px; font-size: 16px; font-weight: 650; line-height: 1; }
.editor-tool-text { margin-left: 0; font-size: 10px; font-weight: 650; line-height: 1; white-space: nowrap; }
.editor-align-icon { width: 18px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.editor-link-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.editor-color-mark { display: inline-flex; position: relative; align-items: center; justify-content: center; width: 19px; height: 19px; font-size: 16px; line-height: 1; }
.editor-color-mark b { font-weight: 800; }
.editor-color-mark i { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 3px; background: var(--mint-deep); }
.editor-color-mark-bg { font-size: 15px; }
.editor-color-mark-bg i { right: -1px; left: auto; width: 10px; height: 5px; background: #f2cb35; box-shadow: 0 0 0 1px rgba(16,21,18,.16); }
.editor-tool[data-editor-command="bold"] .editor-tool-icon, .editor-tool[data-selection-command="bold"] .editor-tool-icon { font-weight: 850; }
.editor-tool[data-editor-command="italic"] .editor-tool-icon, .editor-tool[data-selection-command="italic"] .editor-tool-icon { font-family: Georgia, serif; font-style: italic; }
.editor-tool[data-editor-command="underline"] .editor-tool-icon, .editor-tool[data-selection-command="underline"] .editor-tool-icon { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.editor-tool:hover { color: var(--mint-deep); border-color: var(--mint-strong); }
.editor-color-tool { position: relative; display: inline-flex; align-items: center; min-height: 30px; color: var(--ink-soft); font-size: 11px; }
.editor-color-tool.is-open .editor-color-trigger, .editor-color-tool.is-pending .editor-color-trigger { color: var(--mint-deep); border-color: var(--mint-strong); background: #f1fbf4; }
.editor-color-popover { position: fixed; z-index: 1200; top: 0; left: 0; display: grid; gap: 10px; width: 190px; padding: 12px; border: 1px solid rgba(16,21,18,.1); border-radius: 13px; background: #fff; box-shadow: 0 18px 42px rgba(16,21,18,.18); }
.editor-color-popover[hidden] { display: none; }
.editor-color-popover-head { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--ink-soft); font-size: 12px; }
.editor-color-popover-head strong, .editor-color-preview { display: none; }
.custom-color-plane { position: relative; width: 100%; height: 190px; overflow: hidden; border-radius: 8px; background: hsl(var(--picker-hue, 145) 100% 50%); cursor: crosshair; }
.custom-color-plane::before, .custom-color-plane::after { position: absolute; inset: 0; content: ''; pointer-events: none; }
.custom-color-plane::before { background: linear-gradient(90deg, #fff, transparent); }
.custom-color-plane::after { background: linear-gradient(0deg, #000, transparent); }
.custom-color-plane > span { position: absolute; z-index: 2; width: 15px; height: 15px; border: 3px solid #fff; border-radius: 50%; background: transparent; box-shadow: 0 0 0 2px #1b251f, 0 2px 7px rgba(0,0,0,.35); transform: translate(-50%, -50%); pointer-events: none; }
.custom-color-hue { width: 100%; height: 18px; margin: 2px 0 1px; appearance: none; border-radius: 99px; background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); cursor: pointer; }
.custom-color-hue::-webkit-slider-thumb { width: 19px; height: 19px; appearance: none; border: 3px solid #fff; border-radius: 50%; background: #55c982; box-shadow: 0 1px 5px rgba(0,0,0,.28); }
.custom-color-hue::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: #55c982; box-shadow: 0 1px 5px rgba(0,0,0,.28); }
.custom-color-values { display: grid; grid-template-columns: 36px repeat(3, 1fr); align-items: center; gap: 6px; }
.custom-color-values > span { width: 32px; height: 32px; border: 1px solid rgba(16,21,18,.12); border-radius: 50%; }
.custom-color-values label { display: grid; gap: 3px; color: var(--muted); font-size: 9px; text-align: center; }
.custom-color-values input { width: 100%; min-width: 0; min-height: 30px; padding: 0 3px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.custom-color-values input::-webkit-inner-spin-button { opacity: 1; }
.editor-color-popover-head input { width: 100%; height: 44px; padding: 1px; overflow: hidden; border: 1px solid rgba(16,21,18,.14); border-radius: 7px; background: transparent; cursor: pointer; }
.editor-color-popover-head input::-webkit-color-swatch-wrapper { padding: 1px; }
.editor-color-popover-head input::-webkit-color-swatch { border: 0; border-radius: 5px; }
.driver-support-section { padding-top: 20px; }
.driver-filter-panel { display: grid; gap: 18px; margin-bottom: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.tutorial-filter-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.05fr) minmax(0, .78fr) minmax(260px, 1.25fr); align-items: end; gap: 12px; margin-bottom: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.product-filter-panel { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.05fr) minmax(260px, 1.25fr); }
.tutorial-filter-field { display: grid; gap: 7px; }
.tutorial-filter-field label { color: var(--muted); font-size: 11px; font-weight: 700; }
.tutorial-keyword-search { display: grid; gap: 7px; }
.tutorial-keyword-search > label { color: var(--muted); font-size: 11px; font-weight: 700; }
.tutorial-keyword-search .driver-keyword-box { padding-right: 6px; }
.tutorial-keyword-search .driver-keyword-box button { flex: 0 0 auto; min-height: 32px; padding: 0 11px; color: #fff; border: 0; border-radius: 999px; background: var(--mint-deep); font-size: 11px; }
.driver-inline-search { flex: 0 0 auto; min-height: 32px; padding: 0 11px; color: #fff; border: 0; border-radius: 999px; background: var(--mint-deep); font-size: 11px; }
.driver-inline-search:hover, .tutorial-keyword-search .driver-keyword-box button:hover { background: var(--mint-strong); }
.tutorial-filter-panel .admin-notice { display:none !important; }
.tutorial-platform-filter-field { grid-column: 1 / -1; display: flex; align-items: center; gap: 15px; }
.tutorial-platform-filter-field label { flex: 0 0 auto; }
.tutorial-platform-options { margin-top: 1px; }
.driver-filter-form { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .9fr) auto; align-items: end; gap: 12px; }
.driver-filter-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.driver-search-field { display: grid; gap: 7px; }
.driver-search-field label, .driver-platform-filter > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.driver-keyword-box { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.driver-keyword-box:focus-within { border-color: var(--mint-strong); background: #fff; box-shadow: 0 0 0 3px rgba(85,201,130,.12); }
.driver-keyword-box > span { color: var(--mint-deep); font-size: 21px; line-height: 1; }
.driver-keyword-box input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 13px; }
.driver-keyword-box input::placeholder { color: #9aa59e; }
.driver-platform-filter { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.driver-platform-options { display: flex; flex-wrap: wrap; gap: 8px; }
.driver-platform-button { min-height: 34px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; }
.driver-platform-button:hover { color: var(--mint-deep); background: #fff; border-color: var(--mint-strong); }
.driver-platform-button.active, .driver-platform-button.active:hover { color: #fff; background: var(--mint-deep); border-color: var(--mint-deep); }
.product-multi-options { display: flex; flex-wrap: wrap; gap: 10px; }
.product-multi-options .driver-platform-button { min-height: 42px; padding: 0 20px; cursor: pointer; font-size: 14px; font-weight: 700; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.product-multi-options .driver-platform-button:hover { transform: translateY(-1px); }
.product-multi-check { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.product-custom-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.product-custom-tag { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px 0 13px; color: #fff; border: 1px solid var(--mint-deep); border-radius: 999px; background: var(--mint-deep); font-size: 12px; font-weight: 700; }
.product-custom-tag button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; color: #fff; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); cursor: pointer; font-size: 16px; line-height: 1; }
.product-custom-tag button:hover { background: rgba(255,255,255,.35); }
.product-choice-feedback { display: block; margin-top: 7px; color: var(--mint-deep); font-size: 11px; line-height: 1.5; }
.driver-results-note { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.search-feedback { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; color: var(--ink-soft); border: 1px solid rgba(0,141,70,.16); background: #effaf2; }
.search-feedback-check { display: grid; place-items: center; width: 20px; height: 20px; color: #fff; border-radius: 50%; background: var(--mint-deep); font-size: 12px; font-weight: 800; }
.driver-groups { display: grid; min-width: 0; gap: 20px; }
.driver-group { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.driver-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.driver-group-head h2 { margin: 0; font-size: 22px; }
.driver-group-head span { color: var(--muted); font-size: 11px; }
.driver-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-columns > .detail-panel:first-child > .driver-grid { grid-template-columns: 1fr; }
.driver-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; min-width: 0; padding: 42px 17px 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.driver-card:hover { border-color: rgba(85,201,130,.55); box-shadow: var(--shadow-small); transform: none; }
.driver-card-main { grid-column: 1; min-width: 0; text-align: left; }
.driver-card .content-meta { justify-content: flex-start; }
.driver-card .content-meta .meta-tag { padding-left: 0; background: transparent; }
.content-card-models { min-width: 0; margin-top: 11px; }
.content-card-models .meta-tag {
  padding: 0;
  background: transparent;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.content-card-models.is-collapsed .meta-tag {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.content-card-models-toggle {
  margin-top: 4px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--mint-deep);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.driver-card-badge { position: absolute; top: 11px; display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 7px; font-size: 10px; font-weight: 800; line-height: 1; }
.driver-card-platform-badge { right: 11px; color: var(--ink-soft); border: 1px solid rgba(36,88,58,.16); background: #eaf6ee; }
.driver-card-recommended-badge { left: 11px; color: #fff; border: 1px solid var(--mint-deep); background: var(--mint-deep); }
.driver-platform { display: inline-flex; margin-bottom: 7px; color: var(--mint-deep); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.driver-card h3 { overflow: hidden; margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.driver-card p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.6; }
.driver-card .driver-card-changelog { display: -webkit-box; overflow: hidden; margin-top: 7px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.driver-card-changelog strong { color: var(--muted); font-weight: 600; }
.driver-recommended { display: inline-block; margin-top: 8px; color: var(--mint-deep); font-size: 10px; }
.driver-card-action { grid-column: 2; align-self: end; }
.driver-history, .driver-more-groups { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 13px; }
.driver-history summary, .driver-more-groups summary { cursor: pointer; color: var(--mint-deep); font-size: 12px; font-weight: 700; }
.driver-history .driver-grid, .driver-more-groups .driver-grid { margin-top: 12px; }
.editor-color-preview { margin: 0; padding: 8px 9px; color: var(--muted); border-radius: 8px; background: var(--paper); font-size: 10px; line-height: 1.5; }
.editor-color-tool input::-webkit-color-swatch-wrapper { padding: 1px; }
.editor-color-tool input::-webkit-color-swatch { border: 0; border-radius: 3px; }
.editor-color-actions { display: inline-flex; gap: 3px; }
.editor-color-action { min-height: 22px; padding: 0 5px; color: var(--mint-deep); border: 1px solid rgba(29,127,83,.2); border-radius: 6px; background: #f2fbf4; font-size: 10px; cursor: pointer; }
.editor-color-action:hover { color: #fff; border-color: var(--mint-deep); background: var(--mint-deep); }
.editor-color-action.is-muted { color: var(--muted); border-color: var(--line); background: #fff; }
.editor-color-action.is-muted:hover { color: var(--ink-soft); border-color: var(--ink-soft); background: #fff; }
.editor-file-tool { cursor: pointer; }
.editor-file-tool input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.rich-editor { min-height: 250px; padding: 15px; outline: none; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.rich-editor p { margin: 0 0 12px; }
.rich-editor h2, .rich-editor h3 { margin: 22px 0 9px; line-height: 1.25; }
.rich-editor ul, .rich-editor ol { margin: 0 0 12px; padding-left: 1.45em; }
.rich-editor img { display: block; max-width: 100%; height: auto; margin: 16px 0; border-radius: 12px; }
.rich-editor video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: none; object-fit: contain; margin: 16px 0; border-radius: 12px; background: #0d1512; }
.rich-editor blockquote { margin: 16px 0; padding: 13px 16px; color: var(--muted); border-left: 3px solid var(--mint-strong); border-radius: 0 10px 10px 0; background: #effaf2; }
.rich-editor [data-editor-media-block] { position: relative; margin: 16px 0; padding: 4px; border: 2px solid transparent; border-radius: 14px; transition: border-color .16s ease, box-shadow .16s ease; }
.rich-editor [data-editor-media-block] video { margin: 0; }
.rich-editor [data-editor-media-block] img { margin: 0; border-radius: 10px; }
.rich-editor [data-editor-media-block].is-editor-selected { border-color: var(--mint-deep); box-shadow: 0 0 0 3px rgba(85,201,130,.2); }
.rich-editor [data-editor-media-block].is-editor-selected::after { content: attr(data-editor-media-label); position: absolute; top: 10px; right: 10px; padding: 5px 8px; color: #fff; border-radius: 999px; background: rgba(29,127,83,.92); font-size: 10px; pointer-events: none; }
.rich-editor pre[data-code-block], .article-body pre[data-code-block] { overflow-x: auto; overflow-y: hidden; margin: 18px 0; padding: 14px 16px; color: #e7f3eb; border-radius: 12px; background: #111a16; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.rich-editor pre[data-code-block] code, .article-body pre[data-code-block] code { display: inline; white-space: inherit; }
.rich-editor-source { display: none; }
.form-actions { display: flex; gap: 8px; padding-top: 3px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.tutorial-product-results { display: none !important; }
.tutorial-product-results.is-open { display: grid !important; }
.product-association-results { display: none !important; }
.product-association-results.is-open { display: grid !important; }
.tutorial-product-results [data-tutorial-product-option][hidden],
.product-option[hidden],
.product-association-results [data-product-option][hidden] { display: none !important; }
.checkbox-item { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px; font-size: 11px; }
.checkbox-item input { accent-color: var(--mint-deep); }
.admin-notice { padding: 12px 14px; color: var(--ink-soft); border-left: 3px solid var(--mint-strong); border-radius: 8px; background: #effaf2; font-size: 11px; line-height: 1.6; }
.admin-toast { position: fixed; z-index: 700; top: 22px; right: 28px; max-width: min(430px, calc(100vw - 40px)); padding: 13px 17px; color: #fff; border-radius: 12px; box-shadow: 0 18px 55px rgba(16,21,18,.2); font-size: 12px; line-height: 1.5; }
.admin-toast[hidden] { display: none; }
.admin-toast.is-success { background: #1d7f53; }
.admin-toast.is-info { color: var(--ink-soft); background: #e9f1eb; border: 1px solid rgba(16,21,18,.08); }
.admin-toast.is-error { background: #a64848; }
.file-input { width: 100%; padding: 9px; border: 1px dashed rgba(16,21,18,.18); border-radius: 12px; background: var(--paper); font-size: 11px; }
.file-actions { display: flex; align-items: center; gap: 8px; }
.file-actions .file-input { min-width: 0; flex: 1; }
.upload-image-preview { position: relative; display: inline-flex; flex: 0 0 auto; width: 32px; height: 32px; margin-left: 2px; vertical-align: middle; }
.upload-image-preview[hidden] { display: none; }
.upload-image-thumb { display: grid; place-items: center; width: 32px; height: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); cursor: zoom-in; }
.upload-image-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.upload-image-popover { position: absolute; z-index: 120; left: 50%; bottom: calc(100% + 9px); display: none; width: 220px; padding: 5px; border: 1px solid rgba(16,21,18,.12); border-radius: 10px; background: #fff; box-shadow: 0 16px 42px rgba(16,21,18,.2); pointer-events: none; transform: translateX(-50%); }
.upload-image-popover::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; border-right: 1px solid rgba(16,21,18,.12); border-bottom: 1px solid rgba(16,21,18,.12); background: #fff; transform: translateX(-50%) rotate(45deg); }
.upload-image-popover img { display: block; width: 100%; max-height: 150px; border-radius: 6px; object-fit: contain; }
.upload-image-preview:hover .upload-image-popover, .upload-image-preview:focus-within .upload-image-popover { display: block; }
.media-upload-button { position: relative; overflow: hidden; cursor: pointer; }
.media-upload-button input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.upload-progress-panel { position: fixed; z-index: 900; top: 92px; right: 24px; width: min(430px, calc(100vw - 32px)); padding: 18px; border: 1px solid rgba(16,21,18,.1); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 22px 65px rgba(16,21,18,.2); opacity: 1; transform: none; }
.upload-progress-panel[hidden] { display: none; }
.upload-progress-panel.open { opacity: 1; transform: none; }
.upload-progress-panel.is-success { border-color: rgba(70,166,103,.35); }
.upload-progress-panel.is-error { border-color: rgba(190,74,74,.35); }
.upload-progress-head, .upload-progress-meta, .upload-progress-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.upload-progress-kicker { display: block; color: var(--mint-deep); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.upload-progress-head h3 { margin: 5px 0 0; font-size: 16px; letter-spacing: -.035em; }
.upload-progress-close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 20px; line-height: 1; }
.upload-progress-close:hover { color: var(--ink); border-color: var(--mint-strong); }
.upload-progress-file { display: flex; align-items: center; gap: 11px; margin: 18px 0 15px; }
.upload-progress-icon { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; color: var(--mint-deep); border-radius: 12px; background: var(--paper); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.upload-progress-file-copy { display: grid; min-width: 0; gap: 5px; }
.upload-progress-file-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.upload-progress-file-copy span, .upload-progress-footer span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.upload-progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e8eee9; }
.upload-progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--mint-deep); transition: width .18s ease; }
.upload-progress-panel.is-success .upload-progress-bar { background: #46a667; }
.upload-progress-panel.is-error .upload-progress-bar { background: #be4a4a; }
.upload-progress-meta { margin-top: 9px; color: var(--muted); font-size: 10px; }
.upload-progress-meta strong { color: var(--ink); font-size: 11px; }
.upload-progress-footer { margin-top: 13px; }
.upload-progress-footer .small-button { flex: 0 0 auto; }
.admin-empty { padding: 35px; color: var(--muted); text-align: center; font-size: 12px; }
.media-grid, .media-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.media-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.media-card.is-selected { border-color: var(--mint-deep); box-shadow: 0 0 0 3px rgba(85,201,130,.18); }
.media-select-control { display: flex; align-items: center; gap: 6px; padding: 10px 14px 0; color: var(--muted); font-size: 11px; cursor: pointer; }
.media-select-control input { accent-color: var(--mint-deep); }
.media-library-tabs { display: flex; gap: 8px; margin: 16px 0 12px; }
.media-library-tabs button { padding: 9px 15px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; }
.media-library-tabs button.active, .media-library-tabs button:hover { color: #fff; border-color: var(--mint-deep); background: var(--mint-deep); }
.media-bulk-toolbar { display: flex; align-items: center; gap: 14px; margin: 12px 0 16px; color: var(--muted); font-size: 11px; }
.media-bulk-toolbar .row-actions { margin-left: auto; }
.media-reference-box { display: grid; gap: 5px; margin: 10px 0 12px; padding: 9px 10px; border-left: 3px solid var(--mint-strong); border-radius: 7px; background: #effaf2; }
.media-reference-box strong { color: var(--mint-deep); font-size: 11px; }
.media-reference-link { overflow: hidden; padding: 0; color: var(--ink-soft); border: 0; background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font-size: 10px; }
.media-reference-link:hover { color: var(--mint-deep); text-decoration: underline; }
.media-reference-help { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.media-unused-badge { margin: 10px 0 12px; color: var(--muted); font-size: 10px; }
.media-card-preview { overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper); }
.media-card-preview img, .media-card-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-preview-file { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); background: linear-gradient(135deg, #e9eee9, #dce7df); font-size: 12px; font-weight: 750; letter-spacing: .15em; }
.media-card-body { padding: 14px; }
.media-card-body h3 { overflow: hidden; margin: 0 0 7px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.media-card-meta { min-height: 18px; margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.media-picker { position: fixed; z-index: 420; inset: 0; }
.media-picker-backdrop { position: absolute; inset: 0; background: rgba(16,21,18,.42); backdrop-filter: blur(5px); }
.media-picker-dialog { position: relative; display: flex; flex-direction: column; width: min(1080px, calc(100% - 32px)); height: min(760px, calc(100vh - 32px)); max-height: min(760px, calc(100vh - 32px)); overflow: hidden; margin: 16px auto; padding: 22px; border-radius: 20px; background: #f8faf8; box-shadow: 0 30px 90px rgba(0,0,0,.24); }
.media-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.media-picker-head h2 { margin: 7px 0 0; font-size: 24px; letter-spacing: -.05em; }
.media-picker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.media-picker-toolbar .form-input { width: min(420px, 100%); }
.media-picker-toolbar span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.media-picker-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; grid-auto-rows: max-content; align-content: start; padding: 2px 2px 10px; }
.media-picker-card { position: relative; display: flex; flex-direction: column; min-height: 250px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.media-picker-card:hover { border-color: var(--mint-strong); box-shadow: var(--shadow-small); }
.media-picker-card, .media-picker-card:hover, .media-picker-card.is-selected { transform: none; }
.media-picker-card.is-selected { border-color: var(--mint-deep); box-shadow: 0 0 0 3px rgba(85,201,130,.22), var(--shadow-small); }
.media-picker-card:focus-visible { outline: 3px solid rgba(85,201,130,.42); outline-offset: 3px; }
.media-picker-check { position: absolute; z-index: 3; top: 10px; right: 10px; display: none; place-items: center; width: 28px; height: 28px; color: #fff; border-radius: 50%; background: var(--mint-deep); box-shadow: 0 5px 12px rgba(16,21,18,.2); font-size: 17px; font-weight: 800; }
.media-picker-card.is-selected .media-picker-check { display: grid; }
.media-picker-preview { overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper); }
.media-picker-preview img, .media-picker-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-picker-info { display: grid; gap: 5px; padding: 12px 12px 0; }
.media-picker-info strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.media-picker-info span { color: var(--muted); font-size: 10px; }
.media-picker-card .button { width: calc(100% - 24px); margin: auto 12px 12px; }
.media-picker-card .button, .media-picker-card .button:hover { transform: none; }
.media-picker-empty { grid-column: 1 / -1; padding: 46px 20px; color: var(--muted); border: 1px dashed rgba(16,21,18,.18); border-radius: 14px; text-align: center; font-size: 12px; }
.media-picker-footer { display: flex; flex: 0 0 auto; position: relative; z-index: 2; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-top: 18px; padding-top: 17px; color: var(--muted); border-top: 1px solid var(--line); background: #f8faf8; font-size: 11px; }
.media-picker-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.media-picker-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-left: auto; }
.media-picker-pagination span { min-width: 72px; text-align: center; }
.media-source-picker, .video-cover-picker { position: fixed; inset: 0; }
.media-source-picker { z-index: 400; }
.video-cover-picker { z-index: 320; }
.media-source-picker[hidden], .video-cover-picker[hidden] { display: none; }
.media-source-backdrop, .video-cover-backdrop { position: absolute; inset: 0; background: rgba(16,21,18,.46); backdrop-filter: blur(6px); }
.media-source-dialog, .video-cover-dialog { position: relative; width: min(650px, calc(100% - 32px)); max-height: min(760px, calc(100% - 32px)); overflow: auto; margin: 80px auto; padding: 24px; border: 1px solid rgba(16,21,18,.08); border-radius: 22px; background: #f8faf8; box-shadow: 0 30px 90px rgba(0,0,0,.24); }
.media-source-intro, .video-cover-intro { margin: -5px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.media-source-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.media-source-option { display: grid; gap: 9px; min-height: 160px; padding: 19px; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.media-source-option:hover { border-color: var(--mint-strong); box-shadow: var(--shadow-small); transform: translateY(-2px); }
.media-source-option-icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--mint-deep); border-radius: 10px; background: #effaf2; font-size: 18px; font-weight: 700; }
.media-source-option strong { font-size: 15px; }
.media-source-option small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.video-cover-dialog { width: min(930px, calc(100% - 32px)); }
.video-cover-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.video-cover-option { position: relative; display: grid; gap: 8px; overflow: hidden; padding: 0 0 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.video-cover-option:hover { border-color: var(--mint-strong); box-shadow: var(--shadow-small); transform: translateY(-2px); }
.video-cover-option.is-selected { border-color: var(--mint-deep); box-shadow: 0 0 0 3px rgba(85,201,130,.22), var(--shadow-small); transform: translateY(-2px); }
.video-cover-option.is-selected::after { content: "✓ 已选中"; position: absolute; top: 10px; right: 10px; padding: 5px 8px; color: #fff; border-radius: 999px; background: var(--mint-deep); font-size: 10px; font-weight: 750; }
.video-cover-option img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-strong); }
.video-cover-option strong, .video-cover-option small { padding: 0 11px; }
.video-cover-option strong { font-size: 12px; }
.video-cover-option small { color: var(--muted); font-size: 10px; }
.video-cover-manual { place-items: center; min-height: 100%; padding: 20px 11px 22px; border-style: dashed; text-align: center; }
.video-cover-manual .video-cover-plus { display: grid; place-items: center; width: 52px; height: 52px; color: var(--mint-deep); border: 1px dashed var(--mint-strong); border-radius: 50%; background: #effaf2; font-size: 28px; font-weight: 400; }
.video-cover-loading { grid-column: 1 / -1; padding: 45px 20px; color: var(--muted); border: 1px dashed rgba(16,21,18,.15); border-radius: 14px; text-align: center; font-size: 12px; }
.video-cover-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; color: var(--muted); font-size: 11px; }
.video-cover-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.button:disabled, .small-button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.admin-shell.is-form-page .admin-main > .admin-section { display: none; }
.admin-form-page { width: min(100%, 1180px); max-width: 100%; min-width: 0; margin: 0 auto; }
.admin-form-page-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 20px; margin: 0 0 18px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.admin-form-page-title, .admin-form-page-state { display:none; }
.admin-form-page-head { display:flex; align-items:center; justify-content:flex-start; }
.admin-form-page-back { align-self: center; padding: 10px 0; color: var(--muted); border: 0; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-form-page-back:hover { color: var(--mint-deep); }
.admin-form-page-title h2 { margin: 7px 0 5px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.055em; }
.admin-form-page-title p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.admin-form-page-state { align-self: center; padding: 8px 11px; color: var(--mint-deep); border: 1px solid rgba(70,166,103,.22); border-radius: 999px; background: #effaf2; font-size: 10px; font-weight: 750; white-space: nowrap; }
.admin-form-page > .admin-section { min-width: 0; max-width: 100%; margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-small); }
.admin-form-page > .admin-section > .admin-section-header { display: none; }
.admin-form-page .rich-editor { min-height: 360px; }

@media (max-width: 900px) {
  .main-nav { gap: 18px; margin-left: 24px; }
  .product-detail-hero { grid-template-columns: 1fr; }
  .product-detail-visual-art .product-art { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .product-detail-visual-actions { padding-bottom: 20px; }
  .hero { height: min(100svh, 780px); min-height: 520px; }
  .product-art { min-height: 360px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; padding: 14px 18px; }
  .admin-sidebar .brand { padding: 0 0 13px; }
  .admin-nav { display: flex; overflow-x: auto; gap: 5px; }
  .admin-nav button, .admin-nav a { width: auto; white-space: nowrap; }
  .admin-main { padding: 24px 18px 50px; }
  .admin-form-page { width: 100%; }
  .admin-form-page-head { grid-template-columns: 1fr; gap: 8px; }
  .admin-form-page-back, .admin-form-page-state { justify-self: start; }
  .admin-form-page > .admin-section { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .media-grid, .media-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .driver-grid { grid-template-columns: 1fr; }
  .driver-card { grid-template-columns: 1fr; align-items: flex-start; }
  .driver-card-action { grid-column: 1; width: 100%; }
  .driver-card-action .button { width: 100%; }
  .tutorial-filter-panel, .product-filter-panel { grid-template-columns: 1fr; }
  .tutorial-filter-panel .admin-notice { grid-column: auto; }
  .activity-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .container { width: calc(100% - 30px); }
  .nav-inner { height: 66px; gap: 10px; }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-trigger { display: grid; }
  .mobile-nav { position: absolute; top: 66px; left: 15px; right: 15px; display: none; gap: 3px; padding: 9px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-small); }
  .mobile-nav.open { display: grid; }
  .mobile-nav a { padding: 12px 13px; border-radius: 10px; color: var(--ink-soft); font-size: 13px; }
  .mobile-nav a:hover { color: var(--mint-deep); background: var(--paper); }
  .site-header-over-hero .mobile-nav { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.96); }
  .hero { height: min(88svh, 720px); min-height: 500px; }
  .hero-slider-bar { bottom: 22px; }
  .hero-dots { width: min(270px, calc(100vw - 120px)); }
  .hero-slider-buttons button { width: 42px; height: 60px; font-size: 44px; }
  .section { padding: 66px 0; }
  .section-header { display: block; }
  .home-products .section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .home-products .section-header > div { flex: 1 1 auto; min-width: 0; }
  .home-products .section-header .text-link { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
  .section-lead { margin-top: 14px; }
  .category-grid, .product-grid, .scene-grid, .detail-columns, .split-filters, .product-platform-scene-panel { grid-template-columns: 1fr; }
  .support-panel { padding: 30px 22px; }
  .support-search, .search-box { flex-direction: column; }
  .support-search .button, .search-box .button { min-height: 48px; }
  .content-card { align-items: flex-start; flex-direction: column; }
  .content-card-action { width: 100%; }
  .content-card-action .button { width: 100%; }
  .spec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { display: block; line-height: 1.8; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .driver-filter-form, .driver-filter-selects { grid-template-columns: 1fr; }
  .tutorial-platform-filter-field { display: grid; grid-template-columns: 1fr; align-items: start; gap: 8px; }
  .tutorial-platform-filter-field label { flex: none; }
  .tutorial-platform-options { width: 100%; margin-top: 0; }
  .driver-filter-form .button { width: 100%; }
  .activity-detail-heading, .activity-detail-time { align-items: flex-start; flex-direction: column; }
  .activity-detail-state { align-items: flex-start; margin-left: 0; }
  .file-actions { align-items: stretch; flex-direction: column; }
  .media-grid, .media-picker-grid { grid-template-columns: 1fr; }
  .media-picker-dialog { width: calc(100% - 20px); height: calc(100vh - 20px); max-height: calc(100vh - 20px); margin: 10px auto; padding: 16px; }
  .media-picker-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .media-picker-toolbar .form-input { width: 100%; }
  .media-source-dialog, .video-cover-dialog { width: calc(100% - 20px); max-height: calc(100% - 20px); margin: 10px auto; padding: 16px; }
  .media-source-options, .video-cover-grid { grid-template-columns: 1fr; }
  .media-picker-footer, .video-cover-footer { align-items: stretch; flex-direction: column; }
  .media-picker-pagination { width: 100%; margin-left: 0; }
  .media-picker-actions, .video-cover-actions { width: 100%; }
  .media-picker-actions > *, .video-cover-actions > * { flex: 1; }
  .admin-form-page-head { grid-template-columns: 1fr; gap: 8px; padding-bottom: 16px; }
  .admin-form-page-back { justify-self: start; }
  .admin-form-page-state { justify-self: start; }
  .admin-form-page > .admin-section { padding: 18px; border-radius: 16px; }
  .upload-progress-panel { top: 78px; right: 15px; width: calc(100vw - 30px); }
  .editor-color-popover { left: auto; right: 0; }
}

/* V1.13: configurable navigation, product detail images and enterprise pages. */
.mobile-nav-group { display: grid; gap: 2px; }
.mobile-nav-children { display: grid; gap: 2px; margin: -2px 0 4px 12px; padding-left: 10px; border-left: 2px solid rgba(39,138,84,.16); }
.mobile-nav-children a { color: var(--muted); font-size: 12px; }
.nav-page-link { border-bottom: 0; }
.product-detail-images-section { padding-top: 22px; }
.detail-section-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.detail-section-heading h2 { margin: 4px 0 0; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.04em; }
.detail-section-heading p { margin: 8px 0 0; color: var(--muted); }
.product-detail-image-stack { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; }
.product-detail-image-item { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 16px 38px rgba(16,21,18,.07); }
.product-detail-image-item img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; background: #fff; }
.product-detail-image-item figcaption { padding: 10px 14px 13px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.history-section, .contact-section, .customer-section, .message-section, .legal-section { padding-top: 22px; }
.history-timeline { position: relative; display: grid; gap: 36px; max-width: 1120px; margin: 0 auto; padding: 10px 0 30px; }
.history-timeline::before { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; content: ''; background: linear-gradient(var(--mint-strong), rgba(39,138,84,.12)); transform: translateX(-50%); }
.history-year { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; min-height: 130px; }
.history-year-label { position: relative; z-index: 1; align-self: start; justify-self: center; min-width: 132px; padding: 13px 18px; border: 1px solid rgba(39,138,84,.26); border-radius: 10px; background: var(--paper); color: var(--mint-deep); font-size: 24px; font-weight: 760; text-align: center; box-shadow: 0 7px 20px rgba(16,21,18,.08); }
.history-year.is-left .history-year-label { grid-column: 1; }
.history-year.is-right .history-year-label { grid-column: 2; }
.history-year-events { display: grid; gap: 16px; }
.history-year.is-left .history-year-events { grid-column: 2; }
.history-year.is-right .history-year-events { grid-column: 1; grid-row: 1; }
.history-event { position: relative; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(16,21,18,.06); }
.history-event::before { position: absolute; top: 28px; width: 12px; height: 12px; border: 3px solid var(--paper); border-radius: 50%; background: var(--mint-deep); content: ''; box-shadow: 0 0 0 1px rgba(39,138,84,.25); }
.history-year.is-left .history-event::before { left: -78px; }
.history-year.is-right .history-event::before { right: -78px; }
.history-event-date { color: var(--mint-deep); font-size: 13px; font-weight: 760; }
.history-event-copy h2 { margin: 6px 0 4px; font-size: 17px; }
.history-event-copy p { margin: 5px 0 0; color: var(--muted); line-height: 1.75; }
.contact-grid, .customer-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; }
.customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.customer-module-grid > .customer-card:only-child { grid-column: 1 / -1; }
.contact-card, .contact-map-card, .customer-card, .message-form, .legal-article { padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 14px 35px rgba(16,21,18,.06); }
.contact-card h2, .contact-map-card h2, .customer-card h2 { margin: 6px 0 18px; font-size: 25px; letter-spacing: -.03em; }
.contact-list { display: grid; gap: 14px; margin: 0 0 24px; }
.contact-list div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(16,21,18,.07); }
.contact-list dt { color: var(--muted); font-size: 13px; }
.contact-list dd { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.contact-map-frame { min-height: 340px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #eef4f0; }
.contact-map-frame iframe { display: block; width: 100%; min-height: 340px; border: 0; }
.contact-map-placeholder { display: grid; place-items: center; min-height: 340px; padding: 24px; border: 1px dashed rgba(39,138,84,.32); border-radius: 10px; background: linear-gradient(135deg, #f4fbf6, #edf5ef); text-align: center; }
.contact-map-placeholder span { color: var(--mint-deep); font-size: 13px; }
.contact-map-placeholder strong { max-width: 340px; margin-top: 10px; font-size: 20px; line-height: 1.5; }
.contact-map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.message-form { max-width: 880px; margin: 0 auto; }
.customer-message-section { padding-top: 8px; }
.customer-message-heading { width: min(880px, 100%); margin: 0 auto 18px; }
.customer-message-heading h2 { margin: 7px 0 8px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; }
.customer-message-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.message-form-intro { margin-bottom: 20px; padding: 13px 15px; border-left: 3px solid var(--mint-deep); border-radius: 6px; background: #eff9f1; color: var(--muted); line-height: 1.7; }
.message-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.customer-service-module-list { display: grid; gap: 16px; }
.customer-service-module-row { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfb; }
.customer-service-module-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.customer-service-module-head .form-group { flex: 1; margin: 0; }
.customer-service-item-list { display: grid; gap: 10px; margin-bottom: 12px; }
.customer-service-item-row { padding: 14px; border: 1px solid rgba(16,21,18,.08); border-radius: 10px; background: #fff; }
.customer-service-item-fields { grid-template-columns: minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.4fr); }
.message-success { color: var(--mint-deep); }
.message-error { color: #b43b3b; }
.legal-section > .container { max-width: 1180px; }
.legal-article { width: 100%; max-width: 1180px; margin: 0 auto; }
.legal-article p { margin: 0 0 1em; color: var(--ink-soft); line-height: 1.9; }
.legal-article h2, .legal-article h3 { margin: 1.3em 0 .55em; }

.menu-sort-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; flex: 1; min-width: 0; }
.menu-visible-toggle { align-self: center; min-width: 66px; }
.menu-custom-fields { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(220px, 1.4fr); gap: 10px; width: 100%; }
.menu-custom-fields .form-group { margin: 0; }
.menu-custom-fields .form-group label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.custom-menu-sort-row .menu-custom-fields { grid-template-columns: minmax(120px, .7fr) minmax(200px, 1.3fr) minmax(130px, .7fr) auto; }
.menu-new-window { align-self: end; padding-bottom: 9px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.menu-add-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.history-entry-list { display: grid; gap: 13px; margin-bottom: 14px; }
.history-entry-row { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb; }
.history-entry-row > .small-button { margin-top: 4px; }
.pages-content-form { gap: 18px; }
.legal-content-input { min-height: 260px; }
.detail-images-field { gap: 10px; }
.detail-image-list { display: grid; gap: 12px; }
.detail-image-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.detail-image-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb; }
.detail-image-row-preview { display: grid; place-items: center; min-height: 112px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #eef3f0; color: var(--muted); font-size: 11px; text-align: center; }
.detail-image-row-preview img { display: block; width: 100%; height: 112px; object-fit: cover; }
.detail-image-row-fields { display: grid; gap: 10px; min-width: 0; }
.detail-image-row-fields .form-group { margin: 0; }
.detail-image-row-actions { display: grid; gap: 7px; align-content: center; }
.message-admin-copy { max-width: 360px; overflow: hidden; color: var(--muted); line-height: 1.55; white-space: pre-wrap; }
.message-status-read { color: #55705f; background: #edf5ef; }
.message-status-unread { color: #8a5f18; background: #fff5d8; }
.message-status-archived { color: #68706b; background: #eef1ef; }
.media-reference-disabled { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 118px; min-height: 34px; text-align: center; line-height: 1.25; }
.media-reference-disabled small { display: block; margin-top: 3px; color: currentColor; font-size: 10px; font-weight: 500; opacity: .78; }

/* V1.19: 产品详情页支持卡片使用同一套高度、内边距和底部操作基线。 */
.detail-columns > .detail-panel .driver-card,
.detail-columns > .detail-panel .content-card { display: flex; align-items: stretch; min-height: 186px; box-sizing: border-box; }
.detail-columns > .detail-panel .driver-card-main,
.detail-columns > .detail-panel .content-card-main { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.detail-columns > .detail-panel .driver-card-main .content-meta,
.detail-columns > .detail-panel .content-card-main .content-meta { margin-top: auto; padding-top: 14px; }
.detail-columns > .detail-panel .driver-card-action,
.detail-columns > .detail-panel .content-card-action { display: flex; align-items: flex-end; align-self: stretch; }
.detail-columns > .detail-panel .driver-card-action .button,
.detail-columns > .detail-panel .content-card-action .button { align-self: flex-end; white-space: nowrap; }

.driver-platform-button[aria-pressed="true"], .product-multi-options .driver-platform-button:has(.product-multi-check:checked) { color: #fff; border-color: var(--mint-deep); background: var(--mint-deep); }
.driver-platform-button[aria-pressed="true"]:hover, .product-multi-options .driver-platform-button:has(.product-multi-check:checked):hover { color: #fff; border-color: var(--mint-deep); background: var(--mint-deep); }

@media (max-width: 760px) {
  .history-timeline::before { left: 17px; transform: none; }
  .history-year, .history-year.is-right { display: grid; grid-template-columns: 1fr; gap: 12px; min-height: 0; padding-left: 42px; }
  .history-year.is-left .history-year-label, .history-year.is-right .history-year-label { grid-column: 1; justify-self: start; min-width: 112px; padding: 9px 13px; font-size: 20px; }
  .history-year.is-left .history-year-events, .history-year.is-right .history-year-events { grid-column: 1; grid-row: auto; }
  .history-year.is-left .history-event::before, .history-year.is-right .history-event::before { left: -34px; right: auto; top: 23px; }
  .contact-grid, .customer-grid { grid-template-columns: 1fr; }
  .customer-service-module-head { align-items: stretch; flex-direction: column; }
  .customer-service-item-fields { grid-template-columns: 1fr; }
  .about-story-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-story-copy { padding: 20px; }
  .detail-columns > .detail-panel .driver-card,
  .detail-columns > .detail-panel .content-card { flex-direction: column; align-items: flex-start; }
  .detail-columns > .detail-panel .driver-card-action,
  .detail-columns > .detail-panel .content-card-action { width: 100%; align-self: stretch; }
  .menu-sort-main, .custom-menu-sort-row .menu-sort-main { grid-template-columns: 1fr; gap: 10px; }
  .menu-custom-fields, .custom-menu-sort-row .menu-custom-fields { grid-template-columns: 1fr; }
  .detail-image-row { grid-template-columns: 92px minmax(0, 1fr); }
  .detail-image-row-preview { min-height: 82px; }
  .detail-image-row-preview img { height: 82px; }
  .detail-image-row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
}

/* V1.9 admin workflow */
.meta-tag.status-published { color: #17663e; border-color: rgba(31,139,84,.25); background: #edf9f1; }
.meta-tag.status-draft { color: #8a5b00; border-color: rgba(194,135,20,.28); background: #fff8e5; }
.meta-tag.status-archived { color: #59615d; border-color: rgba(89,97,93,.22); background: #f1f3f2; }
.meta-tag.status-trashed { color: #9b3333; border-color: rgba(179,65,65,.24); background: #fff0f0; }

.admin-filter-bar { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(140px, .75fr)) auto auto; align-items: end; gap: 10px; margin: 0 0 13px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7faf8; }
.admin-filter-bar label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-filter-bar input, .admin-filter-bar select { min-height: 40px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); font: inherit; font-size: 14px; }
.admin-filter-bar .small-button { min-height: 40px; }

.admin-batch-toolbar { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 11px 13px; border: 1px solid rgba(39,138,84,.18); border-radius: 12px; background: #f1faf4; }
.admin-batch-toolbar > span { margin-right: auto; color: var(--muted); font-size: 13px; }
.admin-batch-toolbar .field-select { width: auto; min-width: 170px; min-height: 38px; }
.batch-check-column { width: 38px; text-align: center !important; }
.batch-check-column input { width: 16px; height: 16px; accent-color: var(--mint-deep); }

.admin-dialog-backdrop { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 20px; background: rgba(7,16,12,.54); backdrop-filter: blur(4px); }
.admin-dialog-backdrop[hidden] { display: none !important; }
.admin-relation-dialog { width: min(680px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 30px 90px rgba(5,20,13,.28); }
.relation-reference-list { display: grid; gap: 8px; margin: 16px 0; }
.relation-reference-item { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); text-align: left; cursor: pointer; }
.relation-reference-item:hover { border-color: var(--mint-strong); background: #f4fbf6; }
.relation-reference-item span { color: var(--mint-deep); white-space: nowrap; }

.admin-form-section { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: clip; }
.admin-form-section > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; background: #f7faf8; }
.admin-form-section > summary::-webkit-details-marker { display: none; }
.admin-form-section > summary strong { font-size: 15px; }
.admin-form-section > summary span { color: var(--muted); font-size: 12px; }
.admin-form-section > summary::after { content: "＋"; color: var(--mint-deep); font-size: 18px; }
.admin-form-section[open] > summary::after { content: "－"; }
.admin-form-section-body { display: grid; gap: 14px; padding: 16px; border-top: 1px solid var(--line); }
.required-mark { margin-left: 4px; color: #c94343; font-weight: 800; }
.generated-name-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.generated-name-reset { white-space: nowrap; }
.form-group.is-publish-error > label { color: #b63131; }
.form-group.is-publish-error .form-input,
.form-group.is-publish-error .field-select,
.form-group.is-publish-error .form-textarea,
.form-group.is-publish-error .rich-editor-shell { border-color: #d95757; box-shadow: 0 0 0 3px rgba(217,87,87,.12); }
.form-group.is-publish-error .product-multi-picker { outline: 2px solid rgba(217,87,87,.55); outline-offset: 3px; border-radius: 12px; }
.admin-form-page .form-actions { position: sticky; bottom: 12px; z-index: 80; flex-wrap: wrap; padding: 12px; border: 1px solid rgba(16,21,18,.1); border-radius: 13px; background: rgba(255,255,255,.94); box-shadow: 0 12px 32px rgba(12,35,23,.12); backdrop-filter: blur(12px); }

.admin-live-preview { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; min-height: 150px; overflow: hidden; border: 1px solid rgba(39,138,84,.2); border-radius: 15px; background: linear-gradient(135deg, #f5fbf7, #fff); }
.admin-live-preview-label { grid-column: 1 / -1; padding: 8px 13px; color: var(--mint-deep); border-bottom: 1px solid rgba(39,138,84,.13); font-size: 12px; font-weight: 750; }
.admin-live-preview-image { display: grid; place-items: center; min-height: 120px; color: var(--muted); background: #eef3f0; font-size: 12px; }
.admin-live-preview-image img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; }
.admin-live-preview-copy { align-self: center; padding: 20px; }
.admin-live-preview-copy span { color: var(--mint-deep); font-size: 12px; font-weight: 750; }
.admin-live-preview-copy h3 { margin: 7px 0; font-size: 20px; }
.admin-live-preview-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.65; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

.static-media-badge { align-self: center; padding: 6px 9px; color: #3c6250; border: 1px solid rgba(60,98,80,.2); border-radius: 8px; background: #edf2ef; font-size: 11px; }
.media-card.is-static-media { border-color: rgba(60,98,80,.18); }
.audit-details summary { color: var(--mint-deep); cursor: pointer; }
.audit-details ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }

@media (max-width: 1100px) {
  .admin-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter-bar .admin-filter-search { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .admin-filter-bar { grid-template-columns: 1fr; }
  .admin-filter-bar .admin-filter-search { grid-column: auto; }
  .admin-batch-toolbar { align-items: stretch; flex-direction: column; }
  .admin-batch-toolbar .field-select { width: 100%; }
  .admin-live-preview { grid-template-columns: 1fr; }
  .admin-live-preview-image { max-height: 190px; }
  .admin-form-page .form-actions { bottom: 6px; }
  .admin-form-page .form-actions .button { flex: 1 1 calc(50% - 8px); }
  .admin-table-wrap { overflow: visible; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table thead { display: none; }
  .admin-table tbody { display: grid; gap: 12px; }
  .admin-table tr { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
  .admin-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(16,21,18,.06); font-size: 13px; }
  .admin-table td:last-child { border-bottom: 0; }
  .admin-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; }
  .admin-table td.batch-check-column { display: flex; justify-content: flex-end; width: 100%; }
  .admin-table td.batch-check-column::before { content: "选择"; margin-right: auto; }
}

/* V28: keep large UI surfaces in the small-corner style used by 最近更新. */
.button, .chip, .filter-button, .front-page-button, .admin-management-tabs a, .meta-tag, .activity-status, .support-links a, .admin-status, .nav-dropdown-panel a,
.field-select, .form-input, .form-textarea, .support-search input, .search-box input, .driver-keyword-box,
.category-card, .product-card, .support-panel, .content-card, .activity-card,
.detail-panel, .product-detail-visual-art, .product-action-settings, .article-video-block, .article-video-note,
.driver-filter-panel, .tutorial-filter-panel, .driver-group, .driver-card, .admin-section, .admin-subsection,
.admin-form-page > .admin-section, .stat-card, .rich-editor-shell, .file-input, .media-card, .media-picker-dialog,
.media-picker-card, .media-source-dialog, .media-source-option, .video-cover-option, .upload-progress-panel {
  border-radius: 10px;
}
.button, .chip, .filter-button, .admin-management-tabs a, .meta-tag, .activity-status, .support-links a, .admin-status, .nav-dropdown-panel a,
.tutorial-keyword-search .driver-keyword-box button, .driver-inline-search, .driver-platform-button, .media-library-tabs button,
.admin-form-page-state { border-radius: 8px; }

/* V32 menu polish: full-width panel with centered vertical content. */
.nav-dropdown-panel {
  left: 0;
  right: 0;
  width: auto;
  max-width: none;
  align-items: center;
  background: linear-gradient(180deg, rgba(16, 35, 25, .98), rgba(24, 53, 37, .98));
  border-top: 1px solid rgba(141, 224, 170, .22);
  border-bottom: 1px solid rgba(141, 224, 170, .22);
  box-shadow: 0 20px 42px rgba(8, 22, 14, .24), 0 1px 0 rgba(255, 255, 255, .05) inset;
}
.nav-dropdown-panel > .nav-category-group,
.nav-dropdown-panel > :not(.nav-category-group) { width: min(100%, 560px); }
.nav-dropdown-panel a { color: rgba(255, 255, 255, .82); }
.nav-dropdown-panel a:hover { color: var(--mint); background: rgba(141, 224, 170, .13); }
.nav-category-group { border-bottom-color: rgba(141, 224, 170, .16); }
.nav-category-parent a { color: #fff; font-size: 14px; }
.nav-category-child a { color: rgba(220, 239, 226, .70); }
.nav-category-child a::before { content: '↳'; display: inline-block; margin-right: 8px; color: var(--mint); opacity: .8; }
.site-header-over-hero .nav-dropdown-panel,
.site-header-over-hero .nav-dropdown-panel a { color: rgba(255, 255, 255, .82); text-shadow: none; }
.site-header-over-hero .nav-dropdown-panel a:hover { color: var(--mint); }

/* V35 menu interaction: text and underline only, without pill backgrounds. */
.main-nav > a, .nav-dropdown > a {
  position: relative;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  transition: color .22s ease;
}
.main-nav > a::after, .nav-dropdown > a::after {
  position: absolute;
  right: 10px;
  bottom: -7px;
  left: 10px;
  height: 2px;
  content: '';
  background: var(--mint-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.22, .8, .22, 1), background-color .22s ease;
}
.main-nav > a:hover, .nav-dropdown > a:hover,
.main-nav > a:focus-visible, .nav-dropdown > a:focus-visible,
.main-nav > a.active { color: var(--mint-deep); background: transparent !important; box-shadow: none !important; }
.main-nav > a:hover::after, .nav-dropdown > a:hover::after,
.main-nav > a:focus-visible::after, .nav-dropdown > a:focus-visible::after,
.main-nav > a.active::after { transform: scaleX(1); }
.site-header-over-hero .main-nav > a:hover, .site-header-over-hero .nav-dropdown > a:hover,
.site-header-over-hero .main-nav > a:focus-visible, .site-header-over-hero .nav-dropdown > a:focus-visible,
.site-header-over-hero .main-nav > a.active { color: var(--mint); }
.site-header-over-hero .main-nav > a::after, .site-header-over-hero .nav-dropdown > a::after { background: var(--mint); }

/* Product dropdown layouts selected in 后台菜单显示与排序. */
.nav-dropdown-panel { transition: opacity .28s ease, transform .38s cubic-bezier(.22, .8, .22, 1), visibility .38s ease; }
.nav-dropdown-panel-horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
}
.nav-dropdown-panel-horizontal > .nav-category-group,
.nav-dropdown-panel-horizontal > :not(.nav-category-group) { width: auto; }
.nav-dropdown-panel-horizontal .nav-category-group { display: flex; align-items: center; gap: 4px; padding: 3px 0; border-bottom: 0; }
.nav-dropdown-panel-horizontal .nav-category-child { padding-left: 9px; border-left: 1px solid rgba(141, 224, 170, .34); }
.nav-dropdown-panel-horizontal .nav-category-child a { min-height: 34px; padding: 6px 10px; }
.nav-dropdown-panel-horizontal .nav-category-child a::before { content: ''; margin: 0; }
.nav-dropdown-panel-horizontal .nav-category-parent a { padding-left: 10px; padding-right: 10px; }

/* The two promotional images below the hero intentionally run edge-to-edge. */
.home-feature-banners .container { width: 100%; }
.home-feature-banner { border-radius: 0; }

/* Homepage card rhythm: the side gutter and every card gap use one shared measure. */
:root { --home-card-gap: clamp(12px, 1.25vw, 18px); }
.home-feature-banners { padding-top: var(--home-card-gap); }
.home-feature-banners .container,
.home-categories .container,
.home-products .container { width: calc(100% - (2 * var(--home-card-gap))); }
.home-feature-banners .container { gap: var(--home-card-gap); }
.home-categories .category-grid,
.home-products .product-grid { gap: var(--home-card-gap); }
.home-section .section-header { margin-bottom: var(--home-card-gap); }
.home-feature-banners .container { width: 100%; }

/* V36: keep the support card in the same horizontal rhythm as the cards above. */
.home-support .container { width: calc(100% - (2 * var(--home-card-gap))); }

/* V36: vertical menus stay attached to their trigger; horizontal menus remain full-width. */
.nav-dropdown-panel-vertical {
  position: absolute;
  top: calc(100% + 10px);
  right: auto;
  left: 50%;
  width: min(340px, calc(100vw - 32px));
  min-width: min(280px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 14px 16px 16px;
  align-items: stretch;
  border: 1px solid rgba(141, 224, 170, .24);
  border-radius: 10px;
  transform: translate(-50%, -14px);
  transition: opacity .28s ease, transform .42s cubic-bezier(.22, .8, .22, 1), visibility .42s ease;
}
.nav-dropdown-panel-vertical::before {
  position: absolute;
  top: -10px;
  right: 0;
  left: 0;
  height: 10px;
  content: '';
}
.nav-dropdown-panel-vertical > .nav-category-group,
.nav-dropdown-panel-vertical > :not(.nav-category-group) { width: 100%; }
.nav-dropdown:hover .nav-dropdown-panel-vertical,
.nav-dropdown:focus-within .nav-dropdown-panel-vertical,
.nav-dropdown.is-open .nav-dropdown-panel-vertical { transform: translate(-50%, 0); }

.nav-dropdown-panel-horizontal {
  position: fixed;
  top: 76px;
  right: 0;
  left: 0;
  width: auto;
  min-width: 0;
  max-width: none;
  border-radius: 0;
  transform: translateY(-14px);
}
.nav-dropdown:hover .nav-dropdown-panel-horizontal,
.nav-dropdown:focus-within .nav-dropdown-panel-horizontal,
.nav-dropdown.is-open .nav-dropdown-panel-horizontal { transform: translateY(0); }

/* V39: the homepage uses the same normal-flow header as the support pages. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .97);
  color: var(--ink-soft);
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.site-header .brand-logo { filter: none; }
.site-header .main-nav > a,
.site-header .nav-dropdown > a { color: var(--ink-soft); text-shadow: none; }
.site-header .main-nav > a:hover,
.site-header .nav-dropdown > a:hover,
.site-header .main-nav > a:focus-visible,
.site-header .nav-dropdown > a:focus-visible,
.site-header .main-nav > a.active { color: var(--mint-deep); }
.site-header .main-nav > a::after,
.site-header .nav-dropdown > a::after { background: var(--mint-deep); }
.site-header .search-trigger,
.site-header .menu-trigger { color: var(--ink-soft); border-color: rgba(16, 32, 22, .18); background: transparent; }
.site-header .search-trigger:hover,
.site-header .menu-trigger:hover { color: var(--mint-deep); background: rgba(141, 224, 170, .12); }

/* V39: dropdowns now share the light header palette while retaining the configured layout and motion. */
.nav-dropdown-panel {
  background: rgba(255, 255, 255, .985);
  border-top: 0;
  border-right: 1px solid rgba(16, 32, 22, .10);
  border-bottom: 1px solid rgba(16, 32, 22, .10);
  border-left: 1px solid rgba(16, 32, 22, .10);
  box-shadow: 0 18px 38px rgba(16, 32, 22, .13), 0 1px 0 rgba(141, 224, 170, .16) inset;
}
.nav-dropdown-panel a { color: var(--ink-soft); }
.nav-dropdown-panel a:hover { color: var(--mint-deep); background: rgba(141, 224, 170, .16); }
.nav-category-group { border-bottom-color: rgba(16, 32, 22, .10); }
.nav-category-parent a { color: var(--ink-soft); }
.nav-category-child a { color: var(--muted); }
.nav-category-child a::before { color: var(--mint-deep); }
.nav-dropdown-panel-vertical {
  position: fixed;
  top: var(--nav-header-bottom, 76px);
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 16px 32px rgba(16, 32, 22, .14);
  width: min(310px, calc(100vw - 24px));
  min-width: 0;
  padding: 10px 12px 12px;
  left: var(--nav-panel-left, 16px);
  transform: translate3d(0, -12px, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.nav-dropdown-panel-vertical::after {
  display: none;
}
.nav-dropdown-panel-vertical .nav-category-group { padding: 4px 0; border-bottom: 0; }
.nav-dropdown-panel-vertical .nav-category-parent a { min-height: 34px; padding: 7px 9px; font-size: 14px; }
.nav-dropdown-panel-vertical .nav-category-child { padding-left: 13px; }
.nav-dropdown-panel-vertical .nav-category-child a { min-height: 30px; padding: 5px 9px; font-size: 12px; }
.nav-dropdown-panel-vertical .nav-category-all a { min-height: 34px; padding: 7px 9px; font-size: 14px; color: var(--mint-deep); font-weight: 700; }
.nav-dropdown-panel-shop.nav-dropdown-panel-vertical { left: var(--nav-panel-left, 16px); right: auto; }
.nav-dropdown:hover .nav-dropdown-panel-vertical,
.nav-dropdown:focus-within .nav-dropdown-panel-vertical,
.nav-dropdown.is-open .nav-dropdown-panel-vertical { transform: translate3d(0, 0, 0); }
.nav-dropdown-panel-horizontal {
  top: var(--nav-header-bottom, 76px);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .985);
  box-shadow: none;
  justify-content: flex-start;
  padding-left: var(--nav-panel-start, clamp(32px, 5vw, 128px));
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: none;
  transition: opacity .24s ease, visibility .24s ease;
}
.nav-dropdown-panel-horizontal,
.nav-dropdown-panel-horizontal a,
.nav-dropdown-panel-horizontal .nav-category-child a { color: var(--ink-soft); }
.nav-dropdown-panel-horizontal a:hover { color: var(--mint-deep); background: transparent; }
.nav-dropdown-panel .nav-category-child a:hover { color: var(--mint-deep); }
.nav-dropdown-panel-horizontal .nav-category-child {
  border-left: 0;
  padding-left: 0;
}
.nav-dropdown-panel-horizontal .nav-category-child a {
  color: var(--muted);
  font-size: 12px;
}
.nav-dropdown:hover .nav-dropdown-panel-horizontal,
.nav-dropdown:focus-within .nav-dropdown-panel-horizontal,
.nav-dropdown.is-open .nav-dropdown-panel-horizontal { transform: none; }

/* V50: 首页默认只保留绿色文字，横杠仅在鼠标悬停或键盘聚焦时出现。 */
.main-nav > a.active::after { opacity: 0; transform: scaleX(0); }
.main-nav > a.active:hover::after, .main-nav > a.active:focus-visible::after { opacity: 1; transform: scaleX(1); }

/* V24: 产品详情页统一信息层级，分类作为面包屑，不再挤在产品大标题上方。 */
.product-detail-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.product-detail-breadcrumb a:first-child { color: var(--ink-soft); }
.product-detail-breadcrumb a:hover { color: var(--mint-deep); }
.product-detail-breadcrumb span { color: rgba(114,130,121,.62); }
.product-detail-intro h1 { display: block; margin: 0 0 16px; }
.product-detail-intro p { max-width: 1000px; margin: 0; font-size: 16px; line-height: 1.8; }
.product-detail-intro .hero-meta { margin-top: 22px; }
.product-detail-intro + .detail-section::before,
.product-detail-intro + .detail-section + .detail-section + .detail-section::before {
  font-size: 26px;
  font-weight: 700;
}
.spec-card { padding: 20px; }
.spec-card span { font-size: 14px; font-weight: 500; }
.spec-card strong { margin-top: 8px; font-size: 20px; font-weight: 600; line-height: 1.35; }
.detail-panel h2 { font-size: 22px; font-weight: 700; }
.detail-columns > .detail-panel > .driver-grid,
.detail-columns > .detail-panel > .content-list { gap: 13px; }
.detail-columns > .detail-panel .driver-card,
.detail-columns > .detail-panel .content-card {
  min-height: 170px;
  background: var(--paper);
}
.detail-columns > .detail-panel .driver-card { padding: 46px 22px 22px; }
.detail-columns > .detail-panel .driver-card h3,
.detail-columns > .detail-panel .content-card h3 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}
.detail-columns > .detail-panel .driver-card p,
.detail-columns > .detail-panel .content-card p { font-size: 13px; line-height: 1.6; }
.detail-columns > .detail-panel .meta-tag { font-size: 11px; }

/* V26: 参数信息降级为辅助信息，明确低于教程/驱动卡片标题的视觉权重。 */
.product-detail-breadcrumb { font-size: 13px; font-weight: 500; }
.product-detail-intro h1 { font-size: clamp(40px, 4.8vw, 60px); font-weight: 700; }
.product-detail-intro p { font-size: 16px; font-weight: 400; }
.product-detail-intro + .detail-section::before,
.product-detail-intro + .detail-section + .detail-section + .detail-section::before { font-size: 26px; font-weight: 700; }
.spec-card span { font-size: 13px; font-weight: 400; line-height: 1.5; }
.spec-card strong {
  margin-top: 7px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}
.detail-panel h2 { font-size: 22px; font-weight: 700; }
.detail-columns > .detail-panel .driver-card h3,
.detail-columns > .detail-panel .content-card h3 { font-size: 17px; font-weight: 600; }
.detail-columns > .detail-panel .driver-card p,
.detail-columns > .detail-panel .content-card p { font-size: 13px; font-weight: 400; }
.detail-columns > .detail-panel .meta-tag { font-size: 11px; font-weight: 400; }
.detail-specs-section { padding-top: 34px; padding-bottom: 48px; }
.detail-specs-section::before {
  content: "产品参数";
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.35;
}
.detail-support-section {
  margin-top: 0;
  padding-top: 48px;
  padding-bottom: 80px;
  border-top: 1px solid var(--line);
}
.detail-support-section::before {
  content: "支持中心";
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.35;
}
.product-detail-back {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.product-detail-back:hover { color: var(--mint-deep); }
.detail-support-section { padding-top: 34px; }
.detail-support-section::before { display: none; }
.detail-specs-section .spec-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.detail-specs-section::before {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.product-detail-intro + .detail-specs-section::before {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.04em;
}

@media (max-width: 1200px) {
  .filter-category-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-specs-section .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 900px) {
  .filter-category-groups { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .detail-specs-section .spec-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* V34: 前台字体可读性与字重统一；不影响后台页面和功能。 */
.site-shell .brand { font-weight: 600; }
.site-shell .main-nav > a,
.site-shell .nav-dropdown > a { font-weight: 600; }
.site-shell .eyebrow { font-size: 12px; font-weight: 600; }
.site-shell .button { font-size: 13px; font-weight: 600; }

/* 页面/区块标题使用稳定的 700，卡片标题使用 600，避免同一页面出现过多字重。 */
.site-shell .hero h1,
.site-shell .page-head h1,
.site-shell .section-title,
.site-shell .product-detail-intro h1,
.site-shell .article h1,
.site-shell .detail-specs-section::before,
.site-shell .detail-panel h2 { font-weight: 700; }
.site-shell .section-kicker,
.site-shell .category-card .card-link,
.site-shell .content-card h3,
.site-shell .product-card-body h3,
.site-shell .driver-card h3,
.site-shell .activity-card h2,
.site-shell .article-back { font-weight: 600; }

/* 产品中心分类与筛选：层级标签不再过小，按钮文字与其它筛选页统一。 */
.site-shell .filter-category-level { font-size: 11px; font-weight: 700; }
.site-shell .filter-category-label { font-size: 12px; font-weight: 500; }
.site-shell .filter-category-no-children { font-size: 12px; }
.site-shell .filter-category-group .filter-button-parent { font-weight: 600; }
.site-shell .filter-category-group .filter-button-child { font-size: 12px; }
.site-shell .filter-level-tag { font-size: 11px; font-weight: 600; }
.site-shell .filter-button { font-size: 13px; }

/* 教程、驱动与内容卡片：辅助信息统一为可读的 12px，正文保持 13px。 */
.site-shell .content-card .meta-tag,
.site-shell .driver-card .meta-tag,
.site-shell .article .meta-tag { font-size: 12px; }
.site-shell .tutorial-filter-field > label,
.site-shell .tutorial-keyword-search > label,
.site-shell .driver-search-field > label,
.site-shell .driver-platform-filter > span { font-size: 12px; font-weight: 600; }
.site-shell .tutorial-keyword-search .driver-keyword-box button,
.site-shell .driver-inline-search { font-size: 13px; font-weight: 600; }
.site-shell .driver-platform-button { font-size: 13px; }
.site-shell .driver-card-badge,
.site-shell .driver-platform { font-size: 11px; font-weight: 700; }
.site-shell .driver-group-head span,
.site-shell .driver-history summary,
.site-shell .driver-more-groups summary { font-size: 12px; }

/* 活动页状态、倒计时和结果提示保持同一辅助信息等级。 */
.site-shell .activity-filter-result,
.site-shell .activity-card-meta,
.site-shell .activity-time,
.site-shell .activity-countdown,
.site-shell .activity-status { font-size: 12px; }
.site-shell .activity-countdown,
.site-shell .activity-status { font-weight: 600; }

/* 页脚属于前台公共信息，避免标题和版权信息过小。 */
.site-shell .footer-title,
.site-shell .footer-bottom { font-size: 12px; }

/* V35: 教程与驱动卡片使用同一套主要操作按钮语言。 */
.site-shell .content-card-action .button,
.site-shell .driver-card-action .button {
  min-height: 46px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
}
.site-shell .content-card-action .button.button-dark,
.site-shell .driver-card-action .button.button-dark {
  color: #fff;
  background: var(--ink);
}
.site-shell .content-card-action .button.button-dark:hover,
.site-shell .driver-card-action .button.button-dark:hover {
  color: #fff;
  background: var(--mint-deep);
}

/* V35: 首页支持区明确“搜索为主、快捷入口为辅”的视觉层级。 */
.site-shell .support-panel h2 { font-weight: 700; }
.site-shell .support-panel p { max-width: 620px; font-size: 15px; }
.site-shell .support-search input { font-size: 15px; }
.site-shell .support-search .button { min-height: 52px; padding: 0 24px; font-size: 15px; font-weight: 600; }
.site-shell .support-links { gap: 14px; margin-top: 18px; }
.site-shell .support-links a { font-size: 13px; font-weight: 500; }

/* V37: 统一前台站内文字链接的悬停、聚焦反馈；外部视频按钮保持原有样式。 */
.site-shell .text-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--mint-deep);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color .18s ease, text-decoration-color .18s ease, transform .18s ease;
}
.site-shell .text-link::after {
  margin-left: 0;
  transition: transform .18s ease;
}
.site-shell .text-link:hover {
  color: var(--mint-strong);
  text-decoration: underline;
  transform: translateX(2px);
}
.site-shell .text-link:hover::after { transform: translate(1px, -1px); }
.site-shell .text-link:focus-visible,
.site-shell .article-back:focus-visible,
.site-shell .product-detail-back:focus-visible {
  outline: 2px solid var(--mint-strong);
  outline-offset: 4px;
  border-radius: 3px;
}
.site-shell .article-back,
.site-shell .product-detail-back {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.site-shell .article-back:hover,
.site-shell .product-detail-back:hover {
  color: var(--mint-deep);
  text-decoration: underline;
}

/* V37: 教程文章页只调整前台壳层的层级，不改变后台编辑的正文内容。 */
.site-shell .article h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
}
.site-shell .article > .eyebrow {
  font-size: 12px;
  font-weight: 600;
}
.site-shell .article > .content-meta .meta-tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 400;
}
.site-shell .article > .form-help {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* V38: 前台卡片统一采用教程中心分类菜单的细绿色边框悬停反馈。 */
.site-shell .category-card,
.site-shell .product-card,
.site-shell .activity-card,
.site-shell .content-card,
.site-shell .driver-card {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.site-shell .category-card:hover,
.site-shell .product-card:hover,
.site-shell .activity-card:hover,
.site-shell .content-card:hover,
.site-shell .driver-card:hover {
  border-color: rgba(85, 201, 130, .55);
  box-shadow: var(--shadow-small);
  transform: none;
}
.site-shell .category-card.has-cover:hover {
  border-color: transparent;
  box-shadow: none;
}
.site-shell .category-card.has-cover::before {
  transition: background .22s ease;
}
.site-shell .category-card.has-cover .category-cover {
  transition: filter .22s ease, transform .35s ease;
}
.site-shell .category-card.has-cover:hover::before {
  background: linear-gradient(120deg, rgba(10, 24, 18, .16), rgba(10, 24, 18, .02));
}
.site-shell .category-card.has-cover:hover .category-cover {
  filter: brightness(1.07);
  transform: scale(1.015);
}

/* V40: 正文里的编辑器媒体不使用卡片阴影；后台编辑器的选中提示不受影响。 */
.site-shell .article-body img,
.site-shell .article-body video,
.site-shell .article-video,
.site-shell .video-poster-shell {
  box-shadow: none;
}

/* V1.15: 接口状态、留言管理和后台模块故障隔离。 */
.admin-runtime { display:inline-flex; align-items:center; min-height:30px; padding:0 10px; border:1px solid #d8e7dd; border-radius:999px; background:#f4faf6; color:#527060; font-size:12px; white-space:nowrap; }
.admin-module-error { display:grid; gap:24px; max-width:760px; border-color:#efd1d1; background:#fffafa; }
.admin-module-error h2 { margin:8px 0 10px; }
.admin-module-error p { color:#8f3d3d; line-height:1.7; }
.admin-inline-error { margin-bottom:18px; padding:14px 16px; border:1px solid #efcaca; border-radius:12px; background:#fff3f3; color:#a03d3d; line-height:1.6; }
.message-summary { display:flex; flex-wrap:wrap; gap:10px; margin:4px 0 20px; }
.settings-filter-button { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 15px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--ink); cursor:pointer; }
.settings-filter-button span { min-width:22px; padding:2px 6px; border-radius:999px; background:#edf3ef; color:var(--muted); font-size:12px; text-align:center; }
.settings-filter-button:hover,.settings-filter-button.active { border-color:#2aa565; background:#eef9f2; color:#08733f; }
.settings-filter-button.active span { background:#0b914e; color:#fff; }
.message-admin-details summary { max-width:360px; color:var(--ink); cursor:pointer; line-height:1.55; }
.message-admin-details p { max-width:520px; margin:12px 0 0; padding:12px 14px; border-radius:10px; background:#f6f8f6; color:#496054; white-space:pre-wrap; line-height:1.7; }
.message-pending { color:#6b776f; }
@media (max-width:760px) {
  .admin-runtime { width:100%; justify-content:center; }
  .message-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .settings-filter-button { justify-content:space-between; }
}

/* V1.16: 后台导航分组与网站管理模块化工作区。 */
.admin-nav-group { display:grid; gap:4px; }
.admin-nav-group + .admin-nav-group { margin-top:18px; padding-top:17px; border-top:1px solid rgba(255,255,255,.08); }
.admin-nav-group-label { padding:0 12px 5px; color:rgba(255,255,255,.34); font-size:10px; font-weight:700; letter-spacing:.16em; }
.settings-workspace { display:grid; grid-template-columns:minmax(210px,240px) minmax(0,1fr); gap:24px; align-items:start; }
.settings-workspace-nav { position:sticky; top:22px; display:grid; gap:8px; padding:20px; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:var(--shadow-small); }
.settings-workspace-nav-head { padding:2px 4px 14px; }
.settings-workspace-nav-head h2 { margin:5px 0 8px; font-size:23px; }
.settings-workspace-nav-head p { margin:0; color:var(--muted); font-size:12px; line-height:1.65; }
.settings-workspace-link { display:grid; gap:3px; padding:13px 14px; border:1px solid transparent; border-radius:13px; color:var(--ink); text-decoration:none; transition:background .18s ease,border-color .18s ease,color .18s ease; }
.settings-workspace-link strong { font-size:14px; }
.settings-workspace-link span { color:var(--muted); font-size:11px; line-height:1.5; }
.settings-workspace-link:hover { border-color:#cbe6d5; background:#f4faf6; }
.settings-workspace-link.active { border-color:#a9dabe; background:#eaf8ef; color:#08733f; box-shadow:inset 3px 0 #0b914e; }
.settings-workspace-content { min-width:0; }
.settings-workspace-mobile { display:none; margin-bottom:16px; }
.settings-module-stack { display:grid; gap:22px; }
.settings-module-section > .admin-section { margin:20px 0; box-shadow:none; background:#f8fbf9; }
.settings-module-section > .admin-section + .admin-form { padding-top:6px; border-top:1px solid var(--line); }
.settings-save-bar { position:sticky; bottom:14px; z-index:5; display:flex; justify-content:flex-end; align-items:center; gap:18px; margin-top:24px; padding:13px 15px; border:1px solid #d7e6dc; border-radius:14px; background:rgba(255,255,255,.95); box-shadow:0 10px 30px rgba(17,40,28,.09); backdrop-filter:blur(10px); }
.settings-save-bar > span { margin-right:auto; color:var(--muted); font-size:12px; line-height:1.5; }
.settings-readonly-value { min-height:48px; padding:11px 13px; border:1px dashed #cbd9d0; border-radius:10px; background:#f6f8f6; color:#53685b; line-height:1.7; }
.settings-service-state { display:flex; justify-content:space-between; gap:18px; margin:0 0 20px; padding:14px 16px; border:1px solid #cbe6d5; border-radius:12px; background:#eff9f3; color:#17663d; }
.settings-service-state span { color:#557064; font-size:12px; }
.settings-service-state.is-error { border-color:#efcaca; background:#fff3f3; color:#9d3434; }
.footer-settings-grid { align-items:start; }
.footer-column-editor { min-width:0; }
.footer-links-editor { min-height:150px; }

@media (max-width:1100px) {
  .settings-workspace { grid-template-columns:200px minmax(0,1fr); gap:16px; }
  .settings-workspace-nav { padding:15px; }
}

/* V1.18: 登录、分类权限与后台工作区统一。 */
.admin-auth-page { min-height:100vh; display:grid; place-items:center; padding:32px 18px; background:radial-gradient(circle at 20% 10%, rgba(26,161,104,.12), transparent 34%), linear-gradient(145deg,#f4faf7,#edf4f1); }
.admin-auth-card { width:min(460px,100%); padding:38px; border:1px solid rgba(19,83,59,.12); border-radius:18px; background:rgba(255,255,255,.96); box-shadow:0 24px 70px rgba(15,56,41,.13); }
.admin-auth-brand { display:inline-flex; margin-bottom:28px; }
.admin-auth-brand img { width:150px; height:auto; }
.admin-auth-card h1 { margin:8px 0 10px; font-size:30px; color:var(--ink); }
.admin-auth-card > p { margin:0 0 24px; color:var(--muted); line-height:1.75; }
.admin-auth-form { display:grid; gap:16px; }
.admin-auth-form label { display:grid; gap:7px; color:var(--ink-soft); font-size:13px; font-weight:700; }
.admin-auth-form .button { width:100%; margin-top:4px; min-height:46px; }
.admin-auth-error { margin:0 0 18px; padding:12px 14px; border-left:4px solid #bb3e3e; border-radius:8px; background:#fff0f0; color:#9e3030; line-height:1.6; }
.admin-auth-version { margin-top:22px; padding-top:16px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; text-align:center; }
.admin-user-card { display:grid; gap:3px; margin:14px 12px 20px; padding:14px; border:1px solid rgba(255,255,255,.14); border-radius:10px; background:rgba(255,255,255,.07); color:#fff; }
.admin-user-card strong { font-size:14px; }
.admin-user-card span { color:#aee8cc; font-size:12px; font-weight:700; }
.admin-user-card small { color:rgba(255,255,255,.62); font-size:11px; line-height:1.5; }
.admin-logout { width:calc(100% - 24px); margin:auto 12px 14px; padding:10px 12px; border:1px solid rgba(255,255,255,.18); border-radius:8px; background:transparent; color:rgba(255,255,255,.78); cursor:pointer; }
.admin-logout:hover { border-color:#aee8cc; color:#fff; background:rgba(255,255,255,.08); }
.admin-permission-banner { display:flex; align-items:flex-start; gap:14px; margin:0 0 18px; padding:14px 16px; border-left:4px solid var(--mint-deep); border-radius:8px; background:#edf9f3; }
.admin-permission-banner strong { white-space:nowrap; color:var(--mint-deep); }
.admin-permission-banner span { color:var(--ink-soft); line-height:1.6; }
.admin-scope-note { margin-bottom:16px; padding:12px 15px; border:1px solid #ccebdd; border-radius:8px; background:#f3fbf7; color:var(--ink-soft); }
.admin-permission-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:280px; overflow:auto; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fafcfb; }
.admin-permission-grid .checkbox-item { min-height:38px; margin:0 !important; padding:8px 10px; border-radius:7px; background:#fff; }
.admin-account-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.admin-user-editor { border-color:rgba(26,161,104,.32); box-shadow:0 16px 44px rgba(15,56,41,.08); }
.admin-user-form { display:grid; gap:22px; }
.admin-user-editor-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr); align-items:start; gap:20px; }
.admin-user-form-panel { min-width:0; padding:18px; border:1px solid #dce9e1; border-radius:12px; background:#fbfdfb; }
.admin-user-permission-panel { display:grid; gap:14px; }
.admin-user-panel-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:14px; }
.admin-user-panel-heading strong { color:var(--ink); font-size:14px; }
.admin-user-panel-heading span { color:var(--muted); font-size:11px; line-height:1.5; text-align:right; }
.admin-user-active { margin-top:4px; }
.admin-permission-picker { display:grid; gap:9px; min-width:0; }
.admin-permission-toolbar { display:flex; align-items:end; justify-content:space-between; gap:12px; }
.admin-permission-search { display:grid; gap:6px; min-width:0; flex:1; color:var(--muted); font-size:11px; font-weight:700; }
.admin-permission-count { flex:0 0 auto; padding:8px 10px; border:1px solid #cfe4d7; border-radius:8px; background:#eff9f3; color:var(--mint-deep); font-size:11px; font-weight:750; white-space:nowrap; }
.admin-permission-grid { grid-template-columns:1fr; gap:6px; max-height:306px; min-height:72px; overscroll-behavior:contain; scrollbar-gutter:stable; }
.admin-permission-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; min-height:40px; margin:0; padding:7px 10px 7px calc(10px + var(--category-depth, 0) * 18px); border:1px solid #e4eee8; border-radius:8px; background:#fff; cursor:pointer; }
.admin-permission-row:hover { border-color:#a9dabe; background:#f5fbf7; }
.admin-permission-row input { margin:0; accent-color:var(--mint-deep); }
.admin-permission-row-name { min-width:0; overflow:hidden; color:var(--ink-soft); font-size:13px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.admin-permission-row small { color:var(--muted); font-size:10px; white-space:nowrap; }
.admin-user-form-actions { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-top:4px; border-top:1px solid #e1ebe4; }
.admin-user-form-actions > .form-help { margin:0; }
.site-data-transfer { border-color:#b9dec6; background:linear-gradient(135deg,#fbfffc,#f1faf4); }
.site-data-transfer-notice { display:flex; align-items:flex-start; gap:12px; margin:0 0 16px; padding:12px 14px; border-left:4px solid #d69b36; border-radius:8px; background:#fff8e8; color:#6e552b; line-height:1.65; }
.site-data-transfer-notice strong { flex:0 0 auto; color:#9a6516; }
.site-data-transfer-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.site-data-file-picker { display:inline-flex; align-items:center; flex-wrap:wrap; gap:8px; min-height:40px; padding:0 11px; border:1px dashed #9bcaae; border-radius:9px; background:#fff; color:var(--ink-soft); cursor:pointer; font-size:12px; font-weight:700; }
.site-data-file-picker input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.site-data-file-picker em { color:var(--muted); font-size:11px; font-style:normal; font-weight:500; }
.history-pagination-controls { margin:13px 0; }
.admin-password-dialog { width:min(680px,calc(100vw - 32px)); }
.admin-topbar { position:static; z-index:auto; backdrop-filter:none; background:transparent; }
.admin-main > .admin-section, .admin-main > .admin-grid, .admin-main > .settings-workspace, .admin-main > .admin-management-tabs, .admin-main > .admin-scope-note { width:100%; }
.admin-section-header { gap:18px; }
.admin-section-header > div:first-child { min-width:0; }
.admin-table .row-actions { justify-content:flex-end; flex-wrap:wrap; }
.admin-dashboard-intro { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:18px; padding:22px 24px; border:1px solid #cfe4d7; border-radius:16px; background:linear-gradient(120deg,#f1faf5,#fff); }
.admin-dashboard-intro h2 { margin:5px 0 7px; font-size:23px; }
.admin-dashboard-intro p { margin:0; color:var(--muted); line-height:1.65; }
.admin-dashboard-quick { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.admin-pagination-gap { display:inline-flex; align-items:center; justify-content:center; min-width:24px; color:var(--muted); }

/* V1.19: settings editors remain understandable when the number of products grows. */
.featured-product-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.featured-product-toolbar .form-input { min-width:240px; }
.featured-product-selected { display:flex; align-items:center; flex-wrap:wrap; gap:7px; min-height:32px; margin-bottom:13px; padding:8px 10px; border:1px dashed #b8d9c2; border-radius:10px; background:#f3fbf5; }
.featured-product-selected-label { color:var(--muted); font-size:11px; }
.featured-product-chip { display:inline-flex; align-items:center; min-height:25px; padding:0 9px; border-radius:999px; color:#17663e; background:#dff3e6; font-size:11px; }
.featured-product-option[hidden] { display:none; }
.menu-hierarchy-badge { display:inline-flex; align-items:center; min-height:22px; margin-right:6px; padding:0 7px; border-radius:999px; color:#557064; background:#edf4ef; font-size:10px; white-space:nowrap; }
.menu-sort-row.menu-level-child { margin-left:28px; border-left:3px solid #b9e4c8; }
.menu-default-reset { flex:0 0 auto; }
.menu-editor-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:12px; padding:11px 12px; border:1px solid #cfe5d6; border-radius:12px; background:#f2faf5; }
.menu-editor-toolbar .row-actions { display:flex; flex-wrap:wrap; gap:7px; }
.menu-editor-note { color:var(--muted); font-size:11px; line-height:1.55; }
.about-story { background:#f7faf8; }
.about-story-grid { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:30px; align-items:center; }
.about-story-media { overflow:hidden; border-radius:22px; background:#eaf3ed; box-shadow:var(--shadow-small); }
.about-story-media img { display:block; width:100%; max-height:520px; object-fit:cover; }
.about-story-copy { min-width:0; padding:28px; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:var(--shadow-small); }
.about-story-copy.is-wide { grid-column:1 / -1; }
.about-story-copy h2 { margin:6px 0 18px; font-size:clamp(25px,3vw,38px); letter-spacing:-.05em; }
.about-story-copy .article-body { margin-top:0; }

@media (max-width: 760px) {
  .admin-auth-card { padding:26px 20px; }
  .admin-auth-card h1 { font-size:25px; }
  .admin-permission-banner { display:grid; gap:4px; }
  .admin-permission-grid, .admin-account-stats { grid-template-columns:1fr; }
  .admin-user-editor-grid { grid-template-columns:1fr; }
  .admin-user-panel-heading, .admin-user-form-actions, .site-data-transfer-notice { display:grid; gap:8px; }
  .admin-user-panel-heading span { text-align:left; }
  .admin-user-form-actions .row-actions, .site-data-transfer-actions > * { width:100%; }
  .site-data-transfer-actions .button, .site-data-file-picker { justify-content:center; }
  .admin-top-actions { width:100%; justify-content:flex-start; }
  .admin-dashboard-intro { display:grid; padding:18px; }
  .admin-dashboard-quick { justify-content:flex-start; }
}
@media (max-width:900px) {
  .settings-workspace { display:block; }
  .settings-workspace-nav { display:none; }
  .settings-workspace-mobile { display:block; }
  .settings-workspace-mobile label { display:grid; gap:7px; color:var(--muted); font-size:12px; font-weight:600; }
  .settings-save-bar { bottom:8px; flex-wrap:wrap; }
  .settings-save-bar > span { flex:1 1 100%; }
  .admin-nav-group { display:flex; gap:5px; }
  .admin-nav-group + .admin-nav-group { margin:0; padding:0; border:0; }
  .admin-nav-group-label { display:none; }
}

/* V1.20: product detail media is full-bleed; support cards and timeline spacing stay aligned. */
.product-detail-images-full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
}
.product-detail-images-full-bleed .product-detail-image-stack {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}
.product-detail-images-full-bleed .product-detail-image-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.product-detail-images-full-bleed .product-detail-image-item + .product-detail-image-item { margin-top: 0; }
.product-detail-images-full-bleed .product-detail-image-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: initial;
  background: transparent;
}
.product-detail-images-full-bleed .product-detail-image-item figcaption {
  position: absolute;
  left: clamp(14px, 3vw, 44px);
  bottom: clamp(12px, 2vw, 26px);
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  font-size: 12px;
}
.detail-columns > .detail-panel > .driver-grid,
.detail-columns > .detail-panel > .content-list { row-gap: 13px; }
.detail-columns > .detail-panel .driver-card,
.detail-columns > .detail-panel .content-card {
  height: 186px;
  min-height: 186px;
  box-sizing: border-box;
  overflow: hidden;
}
.history-year { gap: 70px; }
.history-year.is-left .history-event::before { left: -78px; }
.history-year.is-right .history-event::before { right: -78px; }
.history-year.is-left .history-year-label { justify-self: end; transform: none; }
.history-year.is-right .history-year-label { justify-self: start; transform: none; }

/* V1.23: 顶部操作改为轻量文字入口，避免每个页面右上角堆叠方框。 */
.admin-top-actions .admin-runtime,
.admin-top-actions .admin-status,
.admin-top-actions .small-button { min-height: 0; padding: 3px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.admin-top-actions .small-button { color: var(--ink-soft); border-bottom: 1px solid transparent; }
.admin-top-actions .small-button:hover { color: var(--mint-deep); border-bottom-color: currentColor; }

@media (max-width: 760px) {
  .product-detail-images-full-bleed { width: 100vw; }
  .detail-columns > .detail-panel .driver-card,
  .detail-columns > .detail-panel .content-card {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .history-year, .history-year.is-right { gap: 12px; padding-left: 42px; }
  .history-year.is-left .history-year-label,
  .history-year.is-right .history-year-label { transform: none; }
  .history-year.is-left .history-event::before,
  .history-year.is-right .history-event::before { left: -34px; right: auto; }
}

/* V1.26: 网站管理信息层级、导航树、客户服务和时间轴整理。 */
.history-year.is-left .history-event::before { left: -44px; }
.history-year.is-right .history-event::before { right: -44px; }

.customer-page-content { max-width: 1280px; }
.customer-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.customer-module-grid > .customer-card:only-child {
  grid-column: 1 / -1;
  width: min(720px, 100%);
  justify-self: center;
}
.customer-card { min-height: 0; padding: 30px 34px; }
.customer-card .contact-list { margin-bottom: 0; }
.customer-message-card {
  display: grid;
  grid-template-columns: minmax(220px, .38fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  margin-top: 42px;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(16,21,18,.06);
}
.customer-message-heading { width: auto; margin: 0; padding-top: 5px; }
.customer-message-heading h2 { margin: 8px 0 10px; font-size: clamp(27px, 3vw, 38px); }
.customer-message-card .message-form {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.customer-message-card .message-form-intro { margin-bottom: 18px; }

.admin-body .admin-main { padding-top: 30px; }
.admin-body .admin-topbar { margin-bottom: 24px; }
.admin-body .admin-topbar h1 { font-size: 32px; line-height: 1.2; }
.admin-body .admin-topbar p { margin-top: 7px; font-size: 14px; line-height: 1.6; }
.admin-body .admin-nav { gap: 6px; }
.admin-body .admin-nav button,
.admin-body .admin-nav a { min-height: 44px; padding: 0 14px; font-size: 15px; }
.admin-body .admin-nav-group-label { padding: 4px 14px 7px; font-size: 12px; letter-spacing: .1em; }
.admin-body .admin-user-card strong { font-size: 16px; }
.admin-body .admin-user-card span { font-size: 14px; }
.admin-body .admin-user-card small { font-size: 13px; }
.admin-body .admin-section { padding: 24px; }
.admin-body .admin-subsection { margin-top: 20px; padding: 20px; background: #fbfcfb; }
.admin-body .admin-section-header { align-items: flex-start; margin-bottom: 20px; }
.admin-body .admin-section-header h2 { font-size: 20px; line-height: 1.35; }
.admin-body .admin-subsection .admin-section-header h2 { font-size: 17px; }
.admin-body .admin-section-header p { max-width: 760px; margin-top: 6px; font-size: 14px; line-height: 1.65; }
.admin-body .form-group { gap: 8px; }
.admin-body .form-group label { font-size: 13px; font-weight: 650; letter-spacing: 0; line-height: 1.45; }
.admin-body .form-help { font-size: 13px; line-height: 1.6; }
.admin-body .form-input,
.admin-body .field-select { min-height: 46px; padding: 10px 13px; font-size: 15px; }
.admin-body .form-textarea { min-height: 104px; padding: 12px 13px; font-size: 15px; line-height: 1.65; }
.admin-body .button { min-height: 42px; padding: 0 16px; font-size: 14px; }
.admin-body .small-button { min-height: 36px; padding: 0 11px; font-size: 13px; }
.admin-body .settings-workspace { grid-template-columns: 238px minmax(0, 1fr); gap: 24px; }
.admin-body .settings-workspace-nav { top: 22px; gap: 5px; padding: 18px; border-radius: 14px; box-shadow: 0 10px 28px rgba(16,32,22,.06); }
.admin-body .settings-workspace-nav-head { padding: 3px 6px 12px; }
.admin-body .settings-workspace-nav-head strong { font-size: 17px; }
.admin-body .settings-workspace-link { gap: 5px; padding: 13px 14px; border-radius: 10px; }
.admin-body .settings-workspace-link strong { font-size: 15px; line-height: 1.35; }
.admin-body .settings-workspace-link span { font-size: 13px; line-height: 1.5; }
.admin-body .settings-module-stack { gap: 24px; }
.admin-body .settings-save-bar {
  position: static;
  bottom: auto;
  z-index: auto;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.admin-body .settings-save-bar > span { font-size: 13px; }
.footer-brand-description { max-width: 780px; }

.admin-body .menu-settings-section > .admin-section-header { margin-bottom: 12px; }
.admin-body .menu-editor-toolbar {
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.admin-body .menu-editor-note { max-width: 680px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.admin-body .menu-sort-list { gap: 10px; }
.admin-body .menu-sort-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
  align-items: center;
  gap: 16px;
  padding: 15px 16px;
}
.admin-body .menu-sort-main {
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.admin-body .menu-visible-toggle { min-width: 0; font-size: 14px; }
.admin-body .menu-custom-fields { grid-template-columns: minmax(160px, .8fr) minmax(260px, 1.4fr); gap: 14px; }
.admin-body .custom-menu-sort-row .menu-custom-fields { grid-template-columns: minmax(150px, .75fr) minmax(230px, 1.25fr) minmax(160px, .75fr) auto; }
.admin-body .menu-custom-fields .form-group label { margin-bottom: 6px; font-size: 13px; }
.admin-body .menu-hierarchy-badge { margin-right: 7px; font-size: 12px; }
.admin-body .menu-new-window { align-self: end; min-height: 46px; padding-bottom: 11px; font-size: 13px; white-space: nowrap; }
.admin-body .menu-sort-actions { align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.admin-body .menu-level-child { margin-left: 28px; background: #fbfdfb; border-left-color: #91d7aa; }

.admin-body .customer-service-module-list { gap: 20px; }
.admin-body .customer-service-module-row { padding: 20px; border-radius: 12px; background: #fbfcfb; }
.admin-body .customer-service-module-head { align-items: center; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-body .customer-service-module-head .form-group { max-width: 720px; }
.admin-body .customer-service-item-table-head,
.admin-body .customer-service-item-fields {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(180px, .8fr) minmax(230px, 1.25fr) 64px;
  gap: 12px;
  align-items: center;
}
.admin-body .customer-service-item-table-head {
  padding: 0 12px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.admin-body .customer-service-item-row { padding: 12px; }
.admin-body .customer-service-item-row .form-group { margin: 0; }
.admin-body .customer-service-item-row .form-group > label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.admin-body .customer-source-preview {
  display: grid;
  gap: 3px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #cfe4d6;
  border-radius: 8px;
  background: #f1f8f3;
}
.admin-body .customer-source-preview[hidden],
.admin-body .customer-custom-value[hidden] { display: none; }
.admin-body .customer-source-preview span { color: var(--muted); font-size: 12px; }
.admin-body .customer-source-preview strong { overflow-wrap: anywhere; color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.admin-body .customer-item-remove { justify-self: end; }
.admin-body .customer-add-item { margin-top: 4px; }
.admin-body .settings-service-state { align-items: center; margin-bottom: 18px; font-size: 14px; }
.admin-body .settings-service-state span { font-size: 13px; }
.admin-body .rich-editor-group .rich-editor { min-height: 420px; font-size: 16px; line-height: 1.8; }

@media (max-width: 1280px) {
  .admin-body .custom-menu-sort-row .menu-custom-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .customer-module-grid { grid-template-columns: 1fr; }
  .customer-message-card { grid-template-columns: 1fr; gap: 24px; }
  .admin-body .menu-sort-row { grid-template-columns: 1fr; }
  .admin-body .menu-sort-actions { justify-content: flex-start; }
  .admin-body .customer-service-item-table-head { display: none; }
  .admin-body .customer-service-item-fields { grid-template-columns: 1fr; }
  .admin-body .customer-service-item-row .form-group > label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  .admin-body .customer-item-remove { justify-self: start; }
}

@media (max-width: 760px) {
  .history-year.is-left .history-event::before,
  .history-year.is-right .history-event::before { left: -34px; right: auto; }
  .customer-card { padding: 24px 22px; }
  .customer-message-card { margin-top: 26px; padding: 24px 20px; }
  .admin-body .admin-topbar h1 { font-size: 27px; }
  .admin-body .admin-section { padding: 18px; }
  .admin-body .admin-subsection { padding: 16px; }
  .admin-body .menu-sort-main,
  .admin-body .custom-menu-sort-row .menu-sort-main { grid-template-columns: 1fr; }
  .admin-body .menu-custom-fields,
  .admin-body .custom-menu-sort-row .menu-custom-fields { grid-template-columns: 1fr; }
  .admin-body .menu-level-child { margin-left: 12px; }
}

/* V1.27: 紧凑后台导航、素材选择器与网站管理工作区。 */
@media (min-width: 901px) {
  .admin-sidebar {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }
  .admin-sidebar .brand { flex: 0 0 auto; padding-bottom: 18px; }
  .admin-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 5px 14px 0;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(174,232,204,.48) transparent;
  }
  .admin-nav::-webkit-scrollbar { width: 7px; }
  .admin-nav::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(174,232,204,.42); }
  .admin-logout { flex: 0 0 auto; margin-top: 10px; margin-bottom: 0; }
}

.admin-body .admin-user-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 4px 10px 14px;
  padding: 10px 12px;
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.045);
}
.admin-body .admin-user-card strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.admin-body .admin-user-card span { display: none; }
.admin-body .admin-user-card small { display: none; }

.media-picker-dialog { width: min(1180px, calc(100% - 32px)); }
.media-picker-toolbar > div { display: grid; gap: 6px; width: min(430px, 100%); }
.media-picker-toolbar > div .form-input { width: 100%; }
.media-picker-toolbar small { color: var(--muted); font-size: 12px; }
.media-picker-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.media-picker-card { min-height: 0; border-radius: 10px; }
.media-picker-preview { aspect-ratio: 4 / 3; }
.media-picker-info { gap: 3px; padding: 9px 10px 4px; }
.media-picker-info strong { font-size: 12px; }
.media-picker-info span { font-size: 11px; }
.media-picker-card-action {
  display: block;
  margin: auto 10px 9px;
  padding-top: 5px;
  color: var(--mint-deep);
  font-size: 11px;
  font-weight: 700;
}
.media-picker-card.is-selected .media-picker-card-action { color: #08733f; }
.media-picker-check { top: 7px; right: 7px; width: 24px; height: 24px; font-size: 14px; }

.admin-body .settings-workspace { display: block; }
.admin-body .settings-workspace-nav {
  position: static;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  overflow-x: auto;
  margin-bottom: 18px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16,32,22,.045);
  scrollbar-width: thin;
}
.admin-body .settings-workspace-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  white-space: nowrap;
}
.admin-body .settings-workspace-link strong { font-size: 14px; }
.admin-body .settings-workspace-link.active { border-color: #b8dfc6; background: #eaf8ef; box-shadow: inset 0 -3px #0b914e; }
.admin-body .settings-workspace-content > .admin-section:first-child,
.admin-body .settings-workspace-content > .settings-module-stack > .admin-section:first-child { margin-top: 0; }
.settings-workspace-mobile, .settings-workspace-nav-head { display: none; }

.admin-body .menu-tree-subsection { padding: 16px; }
.admin-body .menu-sort-row,
.admin-body .custom-menu-sort-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  padding: 14px;
}
.admin-body .menu-row-head { display:flex; align-items:center; gap:12px; }
.admin-body .menu-row-head .menu-row-identity { flex:1 1 auto; }
.admin-body .menu-row-head .menu-sort-actions { margin-left:auto; }
.admin-body .menu-row-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-body .menu-hierarchy-badge { margin: 0; }
.admin-body .menu-visible-toggle { min-width: auto; font-size: 13px; white-space: nowrap; }
.admin-body .menu-custom-fields { grid-template-columns: minmax(170px, .7fr) minmax(260px, 1.3fr); gap: 12px; }
.admin-body .custom-menu-sort-row .menu-custom-fields { grid-template-columns: minmax(150px, .7fr) minmax(220px, 1.2fr) minmax(160px, .75fr) auto; }
.admin-body .menu-new-window { align-self: end; min-height: 46px; padding: 0 4px 11px; }
.admin-body .menu-sort-actions { flex-wrap: wrap; }
.admin-body .menu-level-child { margin-left: 22px; }
.menu-tree-columns { display: none; }

@media (max-width: 1180px) {
  .media-picker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-body .custom-menu-sort-row .menu-custom-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .admin-sidebar { overflow: visible; }
  .admin-body .admin-user-card { width: fit-content; max-width: 100%; margin: 2px 0 10px; }
  .admin-body .settings-workspace-nav { display: flex; }
  .media-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-body .menu-row-head { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:10px 12px; }
  .admin-body .menu-row-head .menu-sort-actions { grid-column:1 / -1; margin-left:28px; justify-content:flex-start; }
  .admin-body .menu-custom-fields,
  .admin-body .custom-menu-sort-row .menu-custom-fields { grid-template-columns: 1fr; }
  .admin-body .menu-new-window { align-self: start; min-height: auto; padding: 4px 0; }
}

@media (max-width: 650px) {
  .media-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-picker-toolbar > div { width: 100%; }
  .media-picker-card-action { font-size: 10px; }
}

/* V1.28: 素材库、产品标签、页脚编辑、客户服务与栏目保存区。 */
.admin-body .media-header-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.admin-body .media-header-actions .button { min-width:118px; }
.admin-body .media-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.admin-body .media-card-preview { aspect-ratio:4 / 3; }
.admin-body .media-card-body { padding:12px; }
.admin-body .media-card-dates { display:grid; gap:3px; margin:-4px 0 10px; color:var(--muted); font-size:11px; line-height:1.45; }
.admin-body .media-reference-box { margin-top:8px; }

.admin-body .product-management-tabs { position:static; width:100%; margin:0 0 18px; }
.admin-body .product-management-tabs .settings-workspace-link { appearance:none; cursor:pointer; font-family:inherit; }

.footer-brand-editor { display:grid; grid-template-columns:minmax(180px,.38fr) minmax(0,1fr); gap:24px; align-items:start; margin-bottom:18px; padding:18px; border:1px solid #dce9e1; border-radius:10px; background:#f5faf7; }
.footer-brand-editor h3 { margin:6px 0; font-size:18px; }
.footer-brand-editor p { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
.footer-brand-editor .form-group { margin:0; }
.footer-settings-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:stretch; }
.footer-column-editor { display:grid; align-content:start; gap:14px; min-width:0; padding:18px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.footer-column-editor-head { display:flex; align-items:center; gap:9px; }
.footer-column-editor-head span { color:var(--mint-deep); font-size:11px; font-weight:800; letter-spacing:.12em; }
.footer-column-editor-head strong { color:var(--ink); font-size:15px; }
.footer-column-editor .form-group { margin:0; }
.footer-column-editor .footer-links-editor { min-height:180px; }

.customer-module-grid[data-module-count="1"] { grid-template-columns:minmax(0,1fr); }
.customer-module-grid[data-module-count="1"] > .customer-card { width:100%; justify-self:stretch; }
.customer-module-grid > .customer-card:last-child:nth-child(odd) { grid-column:1 / -1; }

.admin-main[data-admin-view="settings"] .settings-save-bar { position:sticky; bottom:14px; z-index:30; padding:13px 15px; border:1px solid #d2e3d8; border-radius:10px; background:rgba(255,255,255,.96); box-shadow:0 12px 34px rgba(17,40,28,.12); backdrop-filter:blur(10px); }

@media (max-width:1180px) {
  .admin-body .media-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .footer-settings-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-column-editor:last-child { grid-column:1 / -1; }
}
@media (max-width:980px) {
  .admin-body .media-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-brand-editor,.footer-settings-grid { grid-template-columns:1fr; }
  .footer-column-editor:last-child { grid-column:auto; }
}
@media (max-width:650px) {
  .admin-body .media-grid { grid-template-columns:1fr; }
  .admin-body .media-header-actions { width:100%; }
  .admin-body .media-header-actions .button { flex:1 1 auto; }
  .admin-main[data-admin-view="settings"] .settings-save-bar { bottom:8px; }
}

/* V1.30: 清晰的账号安全弹窗与可持续扩展的留言管理。 */
.admin-dialog { width:min(560px,calc(100vw - 32px)); max-height:calc(100vh - 32px); overflow:auto; padding:28px; border:1px solid #dce9e1; border-radius:20px; background:#fff; box-shadow:0 30px 90px rgba(5,20,13,.28); }
.admin-dialog-header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:20px; }
.admin-dialog-header h2 { margin:7px 0 8px; font-size:26px; letter-spacing:-.04em; }
.admin-dialog-header p { max-width:420px; margin:0; color:var(--muted); font-size:13px; line-height:1.7; }
.password-dialog-intro { margin-bottom:20px; padding:12px 14px; border-left:3px solid var(--mint-deep); border-radius:8px; background:#eff9f3; color:#496054; font-size:13px; line-height:1.65; }
.password-dialog-field { display:grid; gap:7px; }
.password-dialog-field label { color:var(--ink); font-size:13px; font-weight:750; }
.password-dialog-field .form-help { margin-top:-2px; }
.admin-password-dialog .admin-form { gap:17px; }
.admin-password-dialog .form-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:3px; padding-top:18px; border-top:1px solid var(--line); }

.message-stats-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:18px; }
.message-filter-bar { grid-template-columns:minmax(260px,1.5fr) minmax(180px,.75fr) auto; align-items:end; }
.message-filter-actions { display:flex; align-items:center; gap:8px; }
.message-filter-actions .button { white-space:nowrap; }
.message-category-summary { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 16px; padding:13px 15px; border:1px solid #dce9e1; border-radius:12px; background:#f7faf8; }
.message-category-summary > div:first-child { display:grid; gap:3px; min-width:125px; }
.message-category-summary strong { color:var(--ink); font-size:13px; }
.message-category-summary > div:first-child span { color:var(--muted); font-size:11px; }
.message-category-chips { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.message-category-chip { display:inline-flex; align-items:center; gap:7px; padding:6px 9px; border:1px solid #cfe5d6; border-radius:999px; background:#fff; color:#557064; font-size:12px; }
.message-category-chip strong { color:var(--mint-deep); font-size:12px; }
.message-category-empty { color:var(--muted); font-size:12px; }
.message-pagination-controls { margin:0 0 14px; }
.message-pagination-controls .admin-list-total { margin-right:auto; }
.message-admin-table .row-actions { justify-content:flex-start; }

.message-card-list { display:grid; gap:10px; }
.message-card { background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 8px 22px rgba(13, 31, 23, 0.035); overflow:hidden; }
.message-card summary { list-style:none; }
.message-card summary::-webkit-details-marker { display:none; }
.message-list-summary { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:15px 18px; cursor:pointer; user-select:none; transition:background .18s ease, border-color .18s ease; }
.message-list-summary:hover { background:#f8fbf9; }
.message-card[open] .message-list-summary { background:#f8fbf9; border-bottom:1px solid var(--line-soft); }
.message-list-main { min-width:0; display:grid; gap:5px; flex:1 1 auto; }
.message-list-title-row { display:flex; align-items:center; gap:10px; min-width:0; }
.message-list-title-row .table-title { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.message-list-contact { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.message-list-preview { color:#536b5e; font-size:13px; line-height:1.45; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.message-list-meta { flex:0 0 auto; display:flex; align-items:center; gap:12px; color:var(--muted); }
.message-card-time { color:var(--muted); font-size:13px; white-space:nowrap; }
.message-list-toggle { width:28px; height:28px; border:1px solid var(--line); border-radius:999px; display:inline-flex; align-items:center; justify-content:center; color:var(--mint-deep); font-size:18px; line-height:1; transition:transform .18s ease, background .18s ease; }
.message-card[open] .message-list-toggle { transform:rotate(180deg); background:#eef8f2; }
.message-card-body { display:grid; gap:14px; }
.message-card-body-expanded { padding:18px; }
.message-card-block { display:grid; gap:8px; }
.message-card-label { font-size:13px; font-weight:700; color:var(--ink); }
.message-card-message { padding:14px 16px; border-radius:14px; background:#f6f8f6; color:#385144; white-space:pre-wrap; line-height:1.75; }
.message-card-actions { justify-content:flex-end; gap:8px; }
.message-card-footer { display:flex; justify-content:flex-end; margin-top:2px; padding-top:14px; border-top:1px solid var(--line-soft); }
.message-note-panel { border:1px solid var(--line-soft); border-radius:14px; background:#fbfcfb; overflow:hidden; }
.message-note-panel summary { cursor:pointer; padding:12px 14px; }
.message-note-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.message-note-summary-title { font-size:13px; font-weight:700; color:var(--ink); }
.message-note-summary-text { color:var(--muted); font-size:13px; text-align:right; }
.message-note-panel[open] summary { border-bottom:1px solid var(--line-soft); background:#fff; }
.message-note-panel-body { padding:14px; display:grid; gap:10px; }
.message-admin-note-label { margin-top:0; }
.message-note-actions { margin-top:0; }
.admin-empty-panel { padding:32px 24px; border:1px dashed var(--line); border-radius:18px; background:#fff; }
@media (max-width: 900px) {
  .message-list-summary { align-items:flex-start; padding:14px 15px; }
  .message-list-meta { gap:8px; }
  .message-list-preview { max-width:70vw; }
  .message-card-body-expanded { padding:15px; }
  .message-card-footer { justify-content:flex-start; }
  .message-card-actions { justify-content:flex-start; }
  .message-note-summary { align-items:flex-start; flex-direction:column; }
  .message-note-summary-text { text-align:left; }
}
@media (max-width: 620px) {
  .message-list-summary { display:grid; grid-template-columns:1fr auto; }
  .message-list-contact { white-space:normal; }
  .message-list-preview { max-width:none; }
  .message-list-meta { align-self:start; }
  .message-card-time { display:none; }
}

@media (max-width:760px) {
  .admin-dialog { padding:22px 18px; }
  .admin-dialog-header { gap:10px; }
  .admin-dialog-header h2 { font-size:23px; }
  .message-stats-grid { grid-template-columns:1fr; }
  .message-filter-bar { grid-template-columns:1fr; }
  .message-filter-actions { justify-content:flex-start; }
  .message-category-summary { align-items:flex-start; flex-direction:column; }
  .message-category-chips { justify-content:flex-start; }
  .message-pagination-controls { align-items:flex-start; }
  .message-pagination-controls .admin-list-total { flex:1 1 100%; }
}

/* V1.31: 精选产品筛选区、企业介绍图片和客户服务页面统一层级。 */
.admin-body .featured-product-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #dce9e1;
  border-radius: 12px;
  background: #f7faf8;
}
.admin-body .featured-product-toolbar .admin-filter-search { display: grid; gap: 7px; min-width: 0; }
.admin-body .featured-product-toolbar .admin-filter-search > span { color: var(--ink); font-size: 13px; font-weight: 750; }
.admin-body .featured-product-limit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #cfe5d6;
  border-radius: 9px;
  color: #4f6c5b;
  background: #fff;
  font-size: 12px;
  white-space: nowrap;
}
.admin-body .featured-product-selected {
  display: grid;
  gap: 9px;
  margin-bottom: 13px;
  padding: 12px 14px;
  border: 1px solid #dce9e1;
  border-radius: 12px;
  background: #fff;
}
.admin-body .featured-product-selected-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-body .featured-product-selected-head > strong { color: var(--ink); font-size: 13px; }
.admin-body .featured-product-count { color: var(--muted); font-size: 12px; font-weight: 650; }
.admin-body .featured-product-count strong { color: var(--mint-deep); font-size: 14px; }
.admin-body .featured-product-selected-items { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 25px; color: var(--muted); font-size: 12px; }

.about-story-stack { display: grid; gap: 28px; max-width: 1180px; margin: 0 auto; }
.about-story-stack .about-story-media { width: 100%; max-width: 1180px; margin: 0 auto; }
.about-story-stack .about-story-media img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.about-story-stack .about-story-copy { width: 100%; }

/* V1.33：联系页面去掉无实际信息的英文小标题，法律正文与企业介绍统一内容宽度。 */

.customer-module-grid { align-items: stretch; }
.customer-module-grid > .customer-card:last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; }
.customer-module-grid[data-module-count="1"] > .customer-card { grid-column: 1 / -1; width: 100%; justify-self: stretch; }
.customer-card,
.customer-message-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 14px 35px rgba(16,21,18,.06); }
.customer-card h2,
.customer-message-heading h2 { margin: 6px 0 18px; font-size: 25px; line-height: 1.25; }
.customer-message-card { display: block; margin-top: 24px; padding: 30px 34px; }
.customer-message-heading { width: 100%; margin: 0 0 24px; padding: 0; }
.customer-message-heading p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.customer-message-card .message-form { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.customer-message-card .message-form-intro { display: none; }

@media (max-width: 900px) {
  .admin-body .featured-product-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .admin-body .featured-product-limit { justify-content: center; }
  .customer-module-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .customer-card { padding: 24px 22px; }
  .customer-message-card { margin-top: 26px; padding: 24px 20px; }
}

/* V1.32: 企业介绍页底部的继续了解入口。 */
.about-next-section { padding-top: 18px; }
.about-next-panel { padding: clamp(26px, 4vw, 42px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 14px 35px rgba(16,21,18,.05); }
.about-next-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.about-next-heading h2 { margin: 0; color: var(--ink); font-size: clamp(25px, 3vw, 34px); line-height: 1.25; }
.about-next-heading p { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.about-next-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.about-next-link { display: grid; gap: 8px; min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: inherit; background: #fbfcfb; text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.about-next-link:hover { border-color: #91d7aa; background: #f3fbf5; transform: translateY(-2px); }
.about-next-link strong { color: var(--ink); font-size: 18px; line-height: 1.35; }
.about-next-link span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.about-next-link em { align-self: end; color: var(--mint-deep); font-size: 13px; font-style: normal; font-weight: 700; }
@media (max-width: 760px) {
  .about-next-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .about-next-links { grid-template-columns: 1fr; }
  .about-next-link { min-height: 0; }
}

/* V1.36：正文随页面宽度伸缩；页面容器保留安全边距，避免客户服务卡片贴边。 */
.product-detail-image-stack,
.history-timeline,
.about-story-stack,
.about-story-stack .about-story-media,
.legal-article,
.article {
  width: 100%;
  max-width: none;
}
.legal-section > .container,
.customer-page-content {
  width: calc(100% - clamp(32px, 5vw, 128px));
  max-width: none;
}
.product-detail-intro { max-width: none; }
.product-detail-intro p,
.article-lead,
.article-body p,
.article-body h2,
.article-body h3,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre,
.legal-article p,
.legal-article h2,
.legal-article h3,
.legal-article ul,
.legal-article ol,
.legal-article blockquote,
.legal-article pre {
  max-width: none;
}
.history-year-events {
  width: min(100%, 860px);
}
.history-year.is-left .history-year-events { justify-self: start; }
.history-year.is-right .history-year-events { justify-self: end; }
.message-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* V1.36：移动端导航、图片比例、正文流式宽度和编辑器字号。 */
.site-shell .article,
.site-shell .article-body,
.site-shell .article-body > * {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.site-shell .article-body,
.site-shell .article-body > * {
  overflow-wrap: anywhere;
}
.category-card.has-cover { min-height: clamp(220px, 22vw, 420px); aspect-ratio: 16 / 9; }
.category-card.has-cover .category-cover {
  object-fit: cover;
  object-position: center;
}
.detail-columns > .detail-panel .driver-card,
.detail-columns > .detail-panel .content-card {
  height: auto;
  min-height: 0;
  overflow: visible;
}
.detail-columns > .detail-panel .driver-card h3,
.detail-columns > .detail-panel .content-card h3 {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.detail-columns > .detail-panel .driver-card p,
.detail-columns > .detail-panel .content-card p,
.detail-columns > .detail-panel .content-meta {
  min-width: 0;
  overflow-wrap: anywhere;
}
.editor-font-size {
  min-width: 112px;
  min-height: 52px;
  padding: 0 10px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 12px;
}
.editor-font-size-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .detail-columns {
    grid-template-columns: 1fr;
  }
  .detail-columns > .detail-panel .driver-card,
  .detail-columns > .detail-panel .content-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .detail-columns > .detail-panel .driver-card-action,
  .detail-columns > .detail-panel .content-card-action {
    width: 100%;
    align-self: stretch;
  }
  .detail-columns > .detail-panel .driver-card-action .button,
  .detail-columns > .detail-panel .content-card-action .button {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 650px) {
  .mobile-nav {
    position: fixed;
    top: 66px;
    right: 15px;
    bottom: auto;
    left: 15px;
    z-index: 60;
    max-height: calc(100vh - 82px);
    max-height: calc(100dvh - 82px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }
  .mobile-nav-row {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .mobile-nav-row > a {
    flex: 1 1 auto;
    min-width: 0;
  }
  .mobile-nav-toggle {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    min-height: 42px;
    padding: 0;
    color: var(--muted);
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 20px;
    line-height: 1;
  }
  .mobile-nav-toggle:hover,
  .mobile-nav-toggle.is-open {
    color: var(--mint-deep);
    background: var(--paper);
  }
  .mobile-nav-children[hidden] {
    display: none;
  }
  .mobile-nav-children {
    margin: 0 0 4px 12px;
    padding-left: 10px;
  }
  .mobile-nav-children a {
    min-height: 38px;
    padding: 9px 13px;
  }
  .support-search input,
  .search-box input {
    height: auto;
    min-height: 56px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.4;
  }
  .hero-slide-picture.desktop-fallback .hero-slide-image {
    object-fit: contain;
    object-position: center;
  }
  .product-detail-visual-art .product-art.has-image {
    height: auto;
    min-height: 0;
  }
  .product-detail-visual-art .product-art.has-image img {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .product-detail-visual-art .product-art.no-image {
    height: min(430px, 100vw);
    min-height: 260px;
  }
  .product-detail-visual-actions {
    flex-wrap: wrap;
    padding: 52px 14px 18px;
  }
  .editor-font-size {
    min-height: 48px;
  }
  .editor-font-size-label {
    min-height: 48px;
  }
}

@media (min-width: 1600px) {
  .site-shell .container { width: calc(100% - clamp(128px, 8vw, 240px)); }
  .site-shell .category-grid,
  .site-shell .product-grid,
  .site-shell .activity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 宽屏产品网格切换为三列时，图片区域必须跟随卡片宽度按比例缩放，不能继续按视口宽度定高。 */
  .site-shell .product-card .product-art { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .site-shell .scene-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-shell .content-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 产品详情页右侧教程仍是一列；宽屏规则不能把它误拆成窄双列。 */
  .site-shell .detail-columns > .detail-panel > .content-list { grid-template-columns: 1fr; }
}

/* V1.46.6：响应式网格使用可收缩轨道，类目长标题受控，图片始终按卡片比例缩放。 */
.site-shell .category-grid,
.site-shell .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.site-shell .category-card,
.site-shell .product-card {
  min-width: 0;
  width: 100%;
}
.site-shell .category-card {
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
}
.site-shell .category-card.has-cover {
  padding-top: max(34px, 11%);
}
.site-shell .category-card h3 {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-shell .category-card p {
  display: -webkit-box;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  line-height: 1.55;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.site-shell .category-card.has-cover::before {
  background: linear-gradient(180deg, rgba(10,24,18,.58), rgba(10,24,18,.18) 68%, rgba(10,24,18,.08));
}
.site-shell .product-card .product-art {
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
}

@media (min-width: 1600px) {
  .site-shell .category-grid,
  .site-shell .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-shell .category-grid,
  .site-shell .product-grid { grid-template-columns: 1fr; }
}

/* V1.45：产品详情页驱动与教程卡片恢复统一桌面高度和内部裁切。 */
@media (min-width: 901px) {
  .detail-columns > .detail-panel .driver-card,
  .detail-columns > .detail-panel .content-card {
    height: 186px;
    min-height: 186px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .detail-columns > .detail-panel .driver-card-main,
  .detail-columns > .detail-panel .content-card-main {
    min-height: 0;
    overflow: hidden;
  }
  .detail-columns > .detail-panel .driver-card h3,
  .detail-columns > .detail-panel .content-card h3,
  .detail-columns > .detail-panel .content-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
  }
  .detail-columns > .detail-panel .driver-card h3,
  .detail-columns > .detail-panel .content-card h3 { -webkit-line-clamp: 2; }
  .detail-columns > .detail-panel .content-card p { -webkit-line-clamp: 2; }
  .detail-columns > .detail-panel .content-card h3 {
    white-space: normal;
    line-height: 1.35;
  }
  .detail-columns > .detail-panel .content-card p {
    line-height: 1.55;
  }
  .detail-columns > .detail-panel .content-card-main .content-meta {
    overflow: hidden;
    max-height: 31px;
    padding-top: 8px;
  }
}

/* V1.46.6：产品详情页的驱动与教程使用统一信息骨架，避免窄列时元数据换行错位。 */
.detail-support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 18px;
  min-width: 0;
  min-height: 186px;
  padding: 18px 20px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.detail-support-card:hover { border-color: rgba(85,201,130,.55); box-shadow: var(--shadow-small); transform: none; }
.detail-support-card-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.detail-support-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.detail-support-card h3 a { color: inherit; }
.detail-support-card h3 a:hover { color: var(--mint-deep); }
.detail-support-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  margin-top: 8px;
}
.detail-support-card-meta > span {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-support-card-summary {
  display: -webkit-box;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.detail-support-card-model {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}
.detail-support-card-model > span,
.detail-support-card-model > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-support-card-action { display: flex; align-items: flex-end; align-self: stretch; }
.detail-support-card-action .button { align-self: flex-end; min-width: 116px; white-space: nowrap; }

@media (max-width: 900px) {
  .detail-support-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .detail-support-card-action,
  .detail-support-card-action .button { width: 100%; }
}
@media (max-width: 650px) {
  .detail-support-card-meta { gap: 5px 6px; }
}

@media (max-width: 900px) {
  .history-year-events { width: 100%; }
}

/* V1.42：手机横屏和 7–10 英寸平板改用可滚动菜单，避免桌面导航挤压或换行。 */
@media (min-width: 651px) and (max-width: 900px) {
  .site-shell .nav-inner { height: 66px; gap: 12px; }
  .site-shell .main-nav { display: none; }
  .site-shell .header-actions { margin-left: auto; }
  .site-shell .menu-trigger { display: grid; }
  .site-shell .mobile-nav {
    position: fixed;
    top: 74px;
    right: clamp(20px, 4vw, 38px);
    bottom: auto;
    left: auto;
    z-index: 60;
    display: none;
    width: min(420px, calc(100vw - 40px));
    max-height: calc(100vh - 94px);
    max-height: calc(100dvh - 94px);
    gap: 3px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow-small);
  }
  .site-shell .mobile-nav.open { display: grid; }
  .site-shell .mobile-nav-row { display: flex; align-items: center; gap: 4px; }
  .site-shell .mobile-nav-row > a { flex: 1 1 auto; min-width: 0; }
  .site-shell .mobile-nav a { min-height: 42px; padding: 11px 13px; border-radius: 10px; color: var(--ink-soft); font-size: 13px; }
  .site-shell .mobile-nav a:hover { color: var(--mint-deep); background: var(--paper); }
  .site-shell .mobile-nav-toggle {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    min-height: 42px;
    padding: 0;
    color: var(--muted);
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 20px;
    line-height: 1;
  }
  .site-shell .mobile-nav-toggle:hover,
  .site-shell .mobile-nav-toggle.is-open { color: var(--mint-deep); background: var(--paper); }
  .site-shell .mobile-nav-children[hidden] { display: none; }
  .site-shell .mobile-nav-children { margin: 0 0 4px 12px; padding-left: 10px; }
  .site-shell .mobile-nav-children a { min-height: 38px; padding: 9px 13px; }
}

/* V1.37：移动端首页幻灯片按当前图片原比例计算高度，避免 contain 产生异常深色上下宽边。 */
@media (max-width: 650px) {
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: var(--hero-ratio, 16 / 9);
  }
  .hero-slide-picture .hero-slide-image {
    object-fit: contain;
    object-position: center;
  }
}

/* V1.46.6：首屏始终跟随当前幻灯片原始比例，完整显示图片，避免窗口比例变化时裁掉顶部文字。 */
.hero.hero-slider {
  height: auto;
  min-height: 0;
  aspect-ratio: var(--hero-ratio, 16 / 9);
}
.hero.hero-slider .hero-slide-image {
  object-fit: contain;
  object-position: center;
  background: var(--dark);
}

/* V1.46.6：产品详情页驱动与教程卡片共用固定信息槽位和固定高度。 */
.detail-support-card {
  --detail-support-card-height: 186px;
  height: var(--detail-support-card-height);
  min-height: var(--detail-support-card-height);
  max-height: var(--detail-support-card-height);
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr);
}
.detail-support-card-main {
  grid-template-rows: 24px 32px minmax(0, 1fr) 20px;
}
.detail-support-card h3 {
  display: block;
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  line-height: 24px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.detail-support-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  height: 32px;
  min-height: 32px;
  margin-top: 0;
  overflow: hidden;
}
.detail-support-card-meta > span {
  width: 100%;
  height: 32px;
  min-height: 32px;
  max-width: none;
  min-width: 0;
  white-space: nowrap;
}
.detail-support-card-summary {
  height: 100%;
  max-height: 100%;
  margin: 0;
  line-height: 1.5;
}
.detail-support-card-model {
  height: 20px;
  min-height: 20px;
  margin-top: 0;
}

@media (max-width: 900px) {
  .detail-support-card {
    --detail-support-card-height: 214px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .detail-support-card-action,
  .detail-support-card-action .button {
    width: 100%;
    min-height: 44px;
  }
}

/* V1.46.6：详情页驱动与教程的元数据改为同一行纯文本，不再使用分散的标签框。 */
.detail-support-card {
  overflow: hidden;
}
.detail-support-card-main {
  grid-template-rows: 24px 24px minmax(0, 1fr) 20px;
}
.detail-support-card h3 {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-support-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  height: 24px;
  min-height: 24px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
}
.detail-support-card-meta > span {
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: 24px;
  min-width: 0;
  min-height: 24px;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-support-card-meta > span + span::before {
  content: '·';
  display: inline-block;
  margin: 0 8px;
  color: var(--muted);
}
.detail-support-card-summary {
  display: -webkit-box;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  overflow: hidden;
  line-height: 1.5;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.detail-support-card-model {
  min-width: 0;
  height: 20px;
  min-height: 20px;
  margin-top: 0;
  overflow: hidden;
}
.detail-support-card-model > span,
.detail-support-card-model > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* V1.46.6：后台列表筛选栏在窄宽度下允许收缩换行，重置按钮始终留在容器内。 */
.admin-filter-bar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .75fr)) auto;
}
.admin-filter-bar > *,
.admin-filter-bar label,
.admin-filter-bar .admin-filter-search {
  min-width: 0;
  max-width: 100%;
}
.admin-filter-bar .small-button {
  justify-self: start;
  max-width: 100%;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .admin-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-filter-bar .admin-filter-search {
    grid-column: 1 / -1;
  }
}
@media (max-width: 650px) {
  .admin-filter-bar {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-filter-bar .admin-filter-search {
    grid-column: auto;
  }
  .admin-filter-bar .small-button {
    justify-self: start;
  }
}

/* V1.46.7：新增型号的图片设置两列顶部对齐，说明文字各自收在字段内；筛选栏控件按容器宽度收缩。 */
.product-image-settings {
  align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 18px 20px;
}
.product-image-settings > .form-group {
  min-width: 0;
  align-content: start;
  align-self: start;
  margin: 0;
}
.product-image-settings > .form-group .form-input,
.product-image-settings > .form-group .field-select,
.product-image-settings > .form-group .file-actions,
.product-image-settings > .form-group .form-help {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.product-image-settings > .form-group .form-help {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
}
.admin-filter-bar input,
.admin-filter-bar select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.admin-filter-bar .small-button {
  width: max-content;
  min-width: 64px;
  align-self: end;
}
@media (max-width: 1100px) {
  .product-image-settings {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-filter-bar .small-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* V1.47：统一前台图片比例、素材响应式、访问统计与悬浮工具栏。 */
.site-shell .activity-cover { aspect-ratio: 16 / 9; }
.site-shell .footer-bottom { justify-content:flex-start; }
.site-shell .footer-legal { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; }
.site-shell .footer-legal a { color:inherit; text-decoration:none; }
.site-shell .footer-legal a:hover { color:var(--ink); text-decoration:underline; }

.site-shell .tutorial-article {
  max-width: 760px;
  padding-top: clamp(28px, 4vw, 56px);
  overflow-wrap: anywhere;
}
.site-shell .tutorial-article h1 {
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.tutorial-article .article-body img { margin-inline: auto; }
.tutorial-article .article-body pre { overflow-x: auto; }

/* 教程中心在真正窄屏前保持两列，避免中等宽度过早变成单列。 */
.site-shell .tutorial-content-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media (max-width:760px) { .site-shell .tutorial-content-list { grid-template-columns:1fr; } }

/* 素材卡片采用稳定宽度的自动排列，缩窄窗口时不再因为断点切列而突然放大。 */
.admin-body .media-grid { grid-template-columns:repeat(auto-fill,minmax(220px,260px)); justify-content:start; align-items:start; gap:14px; }
.admin-body .media-card { width:100%; }
.admin-body .media-card-preview { aspect-ratio:4 / 3; background:#f2f5f3; }
.admin-body .media-card-preview img { object-fit:contain; }
.admin-body .media-card-preview video { object-fit:contain; background:#111; }
@media (max-width:620px) {
  .admin-body .media-grid { grid-template-columns:1fr; }
}

/* 后台主内容统一起点与宽度。 */
.admin-body .admin-main > .admin-section,
.admin-body .admin-main > .admin-grid,
.admin-body .admin-main > .settings-workspace,
.admin-body .admin-main > .admin-management-tabs,
.admin-body .admin-main > .admin-scope-note { width:100%; max-width:none; margin-left:0; margin-right:0; box-sizing:border-box; }
.admin-body .settings-workspace-content,
.admin-body .settings-module-stack { width:100%; min-width:0; }

/* 悬浮工具栏后台编辑。 */
.floating-tool-editor-list { display:grid; gap:14px; }
.floating-tool-editor { padding:18px; border:1px solid var(--line); border-radius:14px; background:#fff; transition:border-color .18s ease,opacity .18s ease,transform .18s ease; }
.floating-tool-editor.is-dragging { opacity:.55; }
.floating-tool-editor.is-drag-over { border-color:var(--mint-deep); }
.floating-tool-editor-head { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.floating-tool-editor-head strong { font-size:15px; }
.floating-tool-editor-head .row-actions { margin-left:auto; }
.floating-drag-handle,.menu-drag-handle { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; min-width:24px; height:28px; padding:0 3px; border-radius:7px; color:var(--muted); font-size:20px; font-weight:800; line-height:1; letter-spacing:-3px; cursor:grab; user-select:none; }
.floating-drag-handle:hover,.menu-drag-handle:hover { color:var(--mint-deep); background:#eef7f1; }
.floating-drag-handle:active,.menu-drag-handle:active { cursor:grabbing; }
.floating-tool-editor[draggable="true"],.menu-sort-row[draggable="true"] { cursor:grab; }
.floating-tool-editor[draggable="true"] input,.floating-tool-editor[draggable="true"] textarea,.floating-tool-editor[draggable="true"] select,.floating-tool-editor[draggable="true"] button,.floating-tool-editor[draggable="true"] a,.floating-tool-editor[draggable="true"] label,.menu-sort-row[draggable="true"] input,.menu-sort-row[draggable="true"] textarea,.menu-sort-row[draggable="true"] select,.menu-sort-row[draggable="true"] button,.menu-sort-row[draggable="true"] a,.menu-sort-row[draggable="true"] label { cursor:auto; }
.floating-tool-options { align-items:center; }
.floating-date-pair { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.media-field-actions { display:flex; gap:8px; align-items:center; }
.media-field-actions .form-input { flex:1 1 auto; }
@media (max-width:760px) { .floating-date-pair,.media-field-actions { grid-template-columns:1fr; display:grid; } }

/* 前台悬浮工具栏。 */
.floating-toolbar { --floating-footer-lift:0px; position:fixed; z-index:180; display:flex; flex-direction:column; align-items:center; gap:10px; pointer-events:none; transition:bottom .2s ease,transform .2s ease,opacity .2s ease; }
.floating-toolbar.floating-right-bottom { right:clamp(14px,2vw,28px); bottom:calc(28px + var(--floating-footer-lift)); }
.floating-toolbar.floating-left-bottom { left:clamp(14px,2vw,28px); bottom:calc(28px + var(--floating-footer-lift)); }
.floating-toolbar.floating-right-middle { right:clamp(14px,2vw,28px); top:50%; transform:translateY(-50%); }
.floating-tool-list { display:flex; flex-direction:column; align-items:center; gap:10px; pointer-events:auto; }
.floating-tool-button,.floating-mobile-toggle { position:relative; appearance:none; display:flex; align-items:center; justify-content:center; width:48px; min-width:48px; height:48px; padding:0; color:var(--ink); border:1px solid rgba(16,21,18,.12); border-radius:50%; background:rgba(255,255,255,.97); box-shadow:0 9px 28px rgba(16,21,18,.13); backdrop-filter:blur(12px); cursor:pointer; text-decoration:none; font:inherit; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.floating-tool-button:hover { transform:translateY(-2px) scale(1.03); border-color:var(--mint-deep); background:#fff; box-shadow:0 13px 32px rgba(16,21,18,.17); }
.floating-tool-button > span,.floating-mobile-toggle > span { display:grid; place-items:center; min-width:22px; font-size:14px; font-weight:800; line-height:1; }
.floating-tool-button > em { position:absolute; right:58px; top:50%; opacity:0; pointer-events:none; padding:7px 10px; color:#fff; border-radius:8px; background:rgba(16,21,18,.92); font-size:12px; font-style:normal; white-space:nowrap; transform:translate(6px,-50%); transition:opacity .16s ease,transform .16s ease; }
.floating-left-bottom .floating-tool-button > em { right:auto; left:58px; transform:translate(-6px,-50%); }
.floating-tool-button:hover > em { opacity:1; transform:translate(0,-50%); }
.floating-tool-button.has-qr-preview > em { display:none; }
.floating-qr-hover-preview { position:absolute; right:62px; top:50%; width:176px; max-width:calc(100vw - 90px); padding:5px; border:1px solid rgba(16,21,18,.12); border-radius:12px; background:#fff; box-shadow:0 18px 48px rgba(16,21,18,.18); opacity:0; visibility:hidden; pointer-events:none; transform:translate(10px,-50%) scale(.96); transform-origin:right center; transition:opacity .16s ease,transform .16s ease,visibility .16s ease; }
.floating-qr-hover-preview img { display:block; width:100%; aspect-ratio:1; object-fit:contain; border-radius:8px; background:#fff; }
.floating-tool-button.has-qr-preview:hover .floating-qr-hover-preview, .floating-tool-button.has-qr-preview:focus-visible .floating-qr-hover-preview { opacity:1; visibility:visible; transform:translate(0,-50%) scale(1); }
.floating-left-bottom .floating-qr-hover-preview { right:auto; left:62px; transform:translate(-10px,-50%) scale(.96); transform-origin:left center; }
.floating-left-bottom .floating-tool-button.has-qr-preview:hover .floating-qr-hover-preview, .floating-left-bottom .floating-tool-button.has-qr-preview:focus-visible .floating-qr-hover-preview { transform:translate(0,-50%) scale(1); }
.floating-toolbar.floating-right-bottom .floating-qr-hover-preview,.floating-toolbar.floating-left-bottom .floating-qr-hover-preview { top:auto; bottom:0; transform:translate(10px,0) scale(.96); transform-origin:right bottom; }
.floating-toolbar.floating-right-bottom .floating-tool-button.has-qr-preview:hover .floating-qr-hover-preview,.floating-toolbar.floating-right-bottom .floating-tool-button.has-qr-preview:focus-visible .floating-qr-hover-preview { transform:translate(0,0) scale(1); }
.floating-toolbar.floating-left-bottom .floating-qr-hover-preview { transform:translate(-10px,0) scale(.96); transform-origin:left bottom; }
.floating-toolbar.floating-left-bottom .floating-tool-button.has-qr-preview:hover .floating-qr-hover-preview,.floating-toolbar.floating-left-bottom .floating-tool-button.has-qr-preview:focus-visible .floating-qr-hover-preview { transform:translate(0,0) scale(1); }
.agent-local-test-row { display:flex; align-items:center; gap:10px; margin-top:10px; color:var(--muted); font-size:12px; line-height:1.5; }
.agent-local-test-row .small-button { flex:0 0 auto; }
.floating-tool-badge { position:absolute; top:-4px; right:-5px; display:grid; place-items:center; min-width:18px; height:18px; padding:0 5px; border:2px solid #fff; border-radius:999px; background:#d73a49; color:#fff; font-size:10px; font-weight:800; line-height:1; box-shadow:0 3px 8px rgba(0,0,0,.12); }
.floating-tool-badge.is-dot { min-width:10px; width:10px; height:10px; padding:0; top:1px; right:1px; }
.floating-mobile-toggle { display:none; pointer-events:auto; width:52px; min-width:52px; height:52px; background:var(--mint-deep); border-color:var(--mint-deep); color:#fff; box-shadow:0 12px 34px rgba(20,109,73,.28); }
.floating-modal[hidden] { display:none; }
.floating-modal { position:fixed; z-index:250; inset:0; display:grid; place-items:center; padding:20px; }
.floating-modal-backdrop { position:absolute; inset:0; background:rgba(12,17,14,.4); backdrop-filter:blur(5px); }
.floating-modal-card { position:relative; width:min(520px,100%); max-height:min(720px,calc(100vh - 40px)); overflow:auto; padding:28px; border:1px solid rgba(255,255,255,.5); border-radius:22px; background:#fff; box-shadow:0 28px 80px rgba(0,0,0,.26); }
.floating-modal-close { position:absolute; top:14px; right:14px; width:34px; height:34px; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--muted); font-size:22px; cursor:pointer; }
.floating-modal-heading { padding-right:38px; margin-bottom:18px; }
.floating-modal-heading h2 { margin:0 0 7px; font-size:24px; }
.floating-modal-heading p { margin:0; color:var(--muted); line-height:1.7; }
.floating-qr-image { display:block; width:min(300px,100%); aspect-ratio:1; object-fit:contain; margin:10px auto 0; padding:10px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.floating-panel-image { display:block; width:100%; max-height:320px; object-fit:contain; margin:12px 0 18px; border-radius:14px; background:var(--paper); }
.floating-placeholder,.floating-ai-message { padding:20px; border:1px dashed var(--line); border-radius:14px; background:var(--paper); color:var(--muted); line-height:1.7; }
.floating-ai-shell { display:grid; gap:14px; }
body.floating-modal-open { overflow:hidden; }
body.floating-modal-open .floating-toolbar.avoid-overlays { opacity:0; pointer-events:none; }
.floating-module-note { margin-top:10px; padding:10px 12px; border-radius:10px; background:var(--paper); color:var(--muted); font-size:12px; line-height:1.6; }

@media (max-width:760px) {
  .floating-toolbar { right:14px!important; left:auto!important; top:auto!important; bottom:calc(18px + var(--floating-footer-lift))!important; transform:none!important; }
  .floating-qr-hover-preview { display:none!important; }
  .floating-toolbar.mobile-collapsed .floating-mobile-toggle { display:flex; order:2; }
  .floating-toolbar.mobile-collapsed .floating-tool-list { display:none; order:1; }
  .floating-toolbar.mobile-collapsed.is-mobile-open .floating-tool-list { display:flex; animation:floatingToolsIn .18s ease-out; }
  .floating-toolbar.mobile-stack .floating-tool-list { order:1; }
  .floating-tool-button[data-floating-device-mobile="false"] { display:none!important; }
  .floating-tool-button > em { display:none; }
  .floating-modal { padding:12px; align-items:end; }
  .floating-modal-card { width:100%; max-height:82vh; padding:24px 18px 20px; border-radius:20px 20px 12px 12px; }
}
@media (min-width:761px) { .floating-tool-button[data-floating-device-desktop="false"] { display:none!important; } }
@keyframes floatingToolsIn { from { opacity:0; transform:translateY(10px) scale(.96); } to { opacity:1; transform:none; } }

/* 访问统计后台。 */
.analytics-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:18px; }
.analytics-toolbar .field-select { width:auto; min-width:120px; }
.analytics-presets,.analytics-tabs { display:flex; gap:7px; flex-wrap:wrap; }
.analytics-presets button,.analytics-tabs button { padding:8px 12px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--muted); cursor:pointer; }
.analytics-presets button.active,.analytics-tabs button.active { border-color:var(--mint-deep); background:var(--mint-deep); color:#fff; }
.analytics-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:16px 0 20px; }
.analytics-stat-card { min-width:0; padding:18px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.analytics-stat-card span { color:var(--muted); font-size:12px; }
.analytics-stat-card strong { display:block; margin:7px 0 5px; font-size:26px; letter-spacing:-.04em; }
.analytics-delta { color:var(--muted); font-size:11px; }
.analytics-delta.is-up { color:#16824b; }
.analytics-delta.is-down { color:#b14949; }
.analytics-grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.analytics-panel { min-width:0; padding:18px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.analytics-panel h3 { margin:0 0 14px; font-size:16px; }
.analytics-table-wrap { width:100%; overflow:auto; }
.analytics-table { width:100%; border-collapse:collapse; font-size:12px; }
.analytics-table th,.analytics-table td { padding:10px 9px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
.analytics-table th { color:var(--muted); font-weight:650; }
.analytics-bars { display:grid; gap:10px; }
.analytics-bar-row { display:grid; grid-template-columns:minmax(80px,150px) 1fr auto; gap:10px; align-items:center; font-size:12px; }
.analytics-bar-track { height:8px; overflow:hidden; border-radius:99px; background:#edf1ee; }
.analytics-bar-fill { height:100%; border-radius:inherit; background:var(--mint-deep); }
.analytics-trend-svg { display:block; width:100%; height:auto; min-height:220px; }
.analytics-settings { margin-top:18px; }
.analytics-settings summary { display:flex; justify-content:space-between; gap:12px; cursor:pointer; }
.analytics-settings summary span { color:var(--muted); font-size:12px; }
@media (max-width:1100px) { .analytics-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .analytics-stat-grid,.analytics-grid-2 { grid-template-columns:1fr; } .analytics-toolbar { align-items:stretch; } .analytics-toolbar .field-select { width:100%; } }
/* V1.47 analytics markup compatibility */
.analytics-stats-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.analytics-stat small { display:block; margin-top:5px; color:var(--muted); font-size:11px; }
.analytics-control-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.analytics-control-row > label { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:12px; }
.analytics-control-row .field-select { min-width:100px; width:auto; }
.analytics-custom-range,.analytics-export { display:flex; align-items:center; gap:7px; }
.analytics-custom-range .form-input { width:150px; }
.analytics-tabs { margin:16px 0; }
.analytics-panel-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.analytics-panel-grid > .admin-section { margin-top:0; }
.analytics-span-2 { grid-column:1 / -1; }
.analytics-bars .analytics-bar-row > div { height:8px; overflow:hidden; border-radius:999px; background:#edf1ee; }
.analytics-bars .analytics-bar-row > div > i { display:block; height:100%; border-radius:inherit; background:var(--mint-deep); }
.analytics-line-chart { min-width:0; overflow:hidden; }
.analytics-line-chart svg { display:block; width:100%; height:auto; min-height:220px; }
.analytics-line-chart polyline { stroke:var(--mint-deep); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.analytics-line-labels { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:11px; }
.analytics-chart-empty { padding:48px 18px; color:var(--muted); text-align:center; }
@media (max-width:1100px) { .analytics-stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .analytics-stats-grid,.analytics-panel-grid { grid-template-columns:1fr; } .analytics-span-2 { grid-column:auto; } .analytics-control-row,.analytics-custom-range,.analytics-export { align-items:stretch; } .analytics-control-row > label { width:100%; justify-content:space-between; } .analytics-control-row .field-select,.analytics-custom-range .form-input { width:100%; } }
.analytics-visitor-search { display:flex; gap:8px; align-items:center; width:min(620px,100%); }
.analytics-visitor-search .form-input { min-width:0; flex:1 1 auto; }
.analytics-session-dialog { width:min(920px,calc(100vw - 32px)); }
.analytics-session-summary { display:flex; flex-wrap:wrap; gap:8px 16px; margin:0 0 18px; padding:12px 14px; border-radius:10px; background:var(--paper); color:var(--muted); font-size:12px; }
@media(max-width:760px){.analytics-visitor-search{display:grid;grid-template-columns:1fr auto}.analytics-session-dialog{width:calc(100vw - 20px)}}

.analytics-presets button.is-current { border-color:var(--mint-deep); color:var(--mint-deep); background:rgba(25,169,116,.08); }

.message-detail-meta { display:flex; flex-wrap:wrap; gap:8px 16px; margin:10px 0; color:var(--muted); font-size:12px; }
.message-admin-note-label { display:grid; gap:6px; margin-top:10px; color:var(--ink); font-size:12px; font-weight:700; }
.message-admin-note-label .form-textarea { font-weight:400; }

/* V1.47.1：驱动下载字段严格顶部对齐，避免两列因内容行数不同被 grid 拉伸后错位。 */
.admin-body .driver-download-fields { align-items:start; }
.admin-body .driver-download-fields > .form-group { align-content:start; align-self:start; }

/* V1.47.3 · 素材状态操作即时反馈 */
.admin-action-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 7600;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7,16,12,.5);
  backdrop-filter: blur(4px);
}
.admin-action-confirm {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  gap: 14px 16px;
  width: min(460px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(16,21,18,.09);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(5,20,13,.28);
}
.admin-action-confirm-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eaf6ef;
  color: #1d7f53;
  font-size: 20px;
  font-weight: 800;
}
.admin-action-confirm-icon.is-danger {
  background: #fff0f0;
  color: #a64848;
}
.admin-action-confirm h2 { margin: 1px 0 8px; font-size: 20px; letter-spacing: -.03em; }
.admin-action-confirm p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.admin-action-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}
.button-danger { color: #fff; background: #a64848; border-color: #a64848; }
.button-danger:hover { background: #933c3c; border-color: #933c3c; }
@media (max-width: 640px) {
  .admin-action-confirm { grid-template-columns: 38px minmax(0,1fr); padding: 18px; }
  .admin-action-confirm-icon { width: 38px; height: 38px; }
  .admin-action-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

/* V1.47.4 · 悬浮工具栏后台重新整理：独立模块卡片 + 按类型新增。 */
.floating-tools-settings .admin-form { display:grid; gap:20px; }
.floating-toolbar-global { display:grid; grid-template-columns:minmax(180px,1.1fr) minmax(150px,.8fr) minmax(190px,1fr) auto auto; gap:14px; align-items:end; padding:18px 20px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.floating-toolbar-global .form-group { margin:0; }
.floating-toolbar-master { align-self:center; min-height:44px; font-weight:700; }
.floating-module-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:4px 2px 0; }
.floating-module-toolbar > div:first-child { display:grid; gap:4px; }
.floating-module-toolbar strong { font-size:17px; }
.floating-module-toolbar span { color:var(--muted); font-size:12px; }
.floating-add-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.floating-add-actions .button { padding:9px 13px; min-height:38px; }
.floating-tool-editor-list { display:grid; gap:16px; }
.floating-tool-editor { padding:0; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 5px 18px rgba(22,44,34,.035); transition:border-color .18s ease,opacity .18s ease,transform .18s ease,box-shadow .18s ease; }
.floating-tool-editor:hover { border-color:rgba(20,109,73,.28); box-shadow:0 8px 24px rgba(22,44,34,.055); }
.floating-tool-editor.is-dragging { opacity:.55; }
.floating-tool-editor.is-drag-over { border-color:var(--mint-deep); }
.floating-tool-editor-head { display:flex; align-items:center; gap:12px; min-height:58px; margin:0; padding:12px 16px; border-bottom:1px solid var(--line); background:#fbfcfb; }
.floating-tool-editor-head .row-actions { margin-left:auto; }
.floating-tool-heading { display:flex; align-items:center; gap:10px; min-width:0; }
.floating-tool-heading strong { overflow:hidden; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.floating-tool-type-badge { display:inline-flex; align-items:center; min-height:26px; padding:3px 9px; border-radius:999px; background:#eaf4ef; color:var(--mint-deep); font-size:11px; font-weight:750; white-space:nowrap; }

.floating-tool-editor-body { display:grid; gap:16px; padding:18px; }
.floating-tool-basic-grid,.floating-tool-specific-grid,.floating-tool-advanced-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:start; }
.floating-tool-basic-grid .form-group,.floating-tool-specific-grid .form-group,.floating-tool-advanced-grid .form-group { margin:0; }
.floating-specific-wide,.floating-advanced-wide { grid-column:1 / -1; }
.floating-tool-quick-options { display:flex; flex-wrap:wrap; gap:18px; align-items:center; padding-top:2px; }
.floating-tool-advanced { border-top:1px dashed var(--line); padding-top:12px; }
.floating-tool-advanced > summary { width:max-content; color:var(--mint-deep); font-size:12px; font-weight:700; cursor:pointer; user-select:none; }
.floating-tool-advanced[open] > summary { margin-bottom:14px; }
.floating-inline-check { align-self:end; min-height:44px; }
.floating-agent-intro { display:flex; align-items:flex-start; gap:12px; padding:13px 15px; border-radius:12px; background:#f2f7f4; }
.floating-agent-intro strong { flex:0 0 auto; color:var(--mint-deep); font-size:13px; }
.floating-agent-intro span { color:var(--muted); font-size:12px; line-height:1.65; }
.floating-module-note.is-success { border:1px solid #d6e9df; background:#f4faf7; color:#49695a; }

/* Agent 客服前台统一聊天面板。 */
.floating-agent-chat { display:grid; gap:14px; }
.floating-agent-log { display:grid; gap:10px; min-height:180px; max-height:360px; overflow:auto; padding:14px; border:1px solid var(--line); border-radius:14px; background:#f7f9f8; }
.floating-agent-message { width:fit-content; max-width:88%; padding:10px 12px; border-radius:13px; line-height:1.65; white-space:pre-wrap; word-break:break-word; }
.floating-agent-message.is-user { margin-left:auto; background:var(--mint-deep); color:#fff; border-bottom-right-radius:5px; }
.floating-agent-message.is-assistant { margin-right:auto; border:1px solid var(--line); background:#fff; color:var(--ink); border-bottom-left-radius:5px; }
.floating-agent-message.is-pending { color:var(--muted); }
.floating-agent-message.is-error { border-color:#eed6d6; background:#fff4f4; color:#a13b3b; }
.floating-agent-form { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:end; }
.floating-agent-form textarea { width:100%; min-height:48px; max-height:120px; resize:vertical; padding:11px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); font:inherit; line-height:1.55; }
.floating-agent-form .button { min-height:48px; }
.floating-agent-fallback { width:max-content; color:var(--mint-deep); font-size:12px; text-decoration:none; }
.floating-agent-fallback:hover { text-decoration:underline; }

@media (max-width:1100px) {
  .floating-toolbar-global { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; }
  .floating-module-toolbar { align-items:flex-start; flex-direction:column; }
  .floating-add-actions { justify-content:flex-start; }
}
@media (max-width:760px) {
  .floating-toolbar-global,.floating-tool-basic-grid,.floating-tool-specific-grid,.floating-tool-advanced-grid { grid-template-columns:1fr; }
  .floating-specific-wide,.floating-advanced-wide { grid-column:auto; }
  .floating-tool-editor-head { align-items:flex-start; }
  .floating-tool-editor-head .row-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; }
  .floating-tool-heading { align-items:flex-start; flex-direction:column; gap:4px; }
  .floating-add-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .floating-add-actions .button { width:100%; }
  .floating-agent-intro { flex-direction:column; gap:5px; }
  .floating-agent-form { grid-template-columns:1fr; }
  .floating-agent-form .button { width:100%; }
}
@media (max-width:760px) {
  .floating-toolbar.mobile-collapsed.is-single-tool .floating-mobile-toggle { display:none; }
  .floating-toolbar.mobile-collapsed.is-single-tool .floating-tool-list { display:flex; }
}
\n\n/* V1.47.5 · 访问统计标签与网站管理标签保持一致。 */
.admin-body .analytics-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 18px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16,32,22,.045);
  scrollbar-width: thin;
}
.admin-body .analytics-tabs .settings-workspace-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  white-space: nowrap;
}
.admin-body .analytics-tabs .settings-workspace-link:hover {
  color: var(--ink);
  border-color: #cbe6d5;
  background: #f4faf6;
}
.admin-body .analytics-tabs .settings-workspace-link.active {
  color: #08733f;
  border-color: #b8dfc6;
  background: #eaf8ef;
  box-shadow: inset 0 -3px #0b914e;
}

/* V1.47.5 · 首页全屏图必须真正铺满浏览器宽度，并按原图比例完整显示。 */
.site-shell .home-feature-banners {
  width: 100%;
  max-width: none;
  overflow: hidden;
}
.site-shell .home-feature-banners .container {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}
.site-shell .home-feature-banner {
  width: 100%;
  max-width: none;
  border-radius: 0;
}
.site-shell .home-feature-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* V1.47.5 · 素材状态操作给出明显且可继续操作的即时反馈。 */
.admin-toast {
  top: auto;
  right: auto;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(360px, calc(100vw - 32px));
  max-width: min(620px, calc(100vw - 32px));
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 13px;
  transform: translateX(-50%);
}
.admin-toast-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  font-weight: 800;
}
.admin-toast-message { flex: 1 1 auto; min-width: 0; }
.admin-toast-action {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}
.admin-toast.is-info .admin-toast-icon { border-color: rgba(16,40,26,.18); }
@media (max-width:650px) {
  .admin-toast { bottom: 14px; min-width: 0; width: calc(100vw - 24px); }
}


/* V1.47.7 · 访问统计菜单字体、UTM说明与IP屏蔽列表。 */
.admin-body .analytics-tabs .settings-workspace-link { font-family:inherit; font-size:14px; font-weight:700; line-height:1.35; letter-spacing:0; }
.analytics-panel-help { margin:-4px 0 14px; color:var(--muted); font-size:12px; line-height:1.65; }
.analytics-blocked-ips { margin-top:16px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.analytics-blocked-ips .admin-section-header { margin-bottom:10px; }
.analytics-blocked-ip-list { display:grid; gap:8px; }
.analytics-blocked-ip-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.analytics-blocked-ip-row div { min-width:0; display:grid; gap:3px; }
.analytics-blocked-ip-row span { color:var(--muted); font-size:11px; }
.message-visitor-actions { margin:10px 0 4px; }
@media(max-width:650px){.analytics-blocked-ip-row{align-items:flex-start;flex-direction:column}.analytics-blocked-ip-row .small-button{width:100%}}

.analytics-block-ip-manual { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; margin-bottom:10px; }
@media(max-width:650px){.analytics-block-ip-manual{grid-template-columns:1fr}.analytics-block-ip-manual .small-button{width:100%}}

/* Analytics refinement V1.48.1 */
.analytics-health-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:4px 0 14px; }
.analytics-health-grid > div { display:grid; gap:5px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.analytics-health-grid span { color:var(--muted); font-size:11px; }
.analytics-health-grid strong { font-size:14px; font-weight:750; color:var(--ink); }
.analytics-funnel { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.analytics-funnel > div { position:relative; display:grid; gap:5px; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
.analytics-funnel > div:not(:last-child)::after { content:'›'; position:absolute; right:-9px; top:50%; transform:translate(50%,-50%); z-index:2; color:var(--mint-deep); font-size:24px; font-weight:800; }
.analytics-funnel span,.analytics-funnel small { color:var(--muted); font-size:11px; }
.analytics-funnel strong { font-size:24px; color:var(--ink); }
.analytics-timeline { display:grid; gap:0; max-height:58vh; overflow:auto; padding-right:6px; }
.analytics-timeline-item { display:grid; grid-template-columns:145px 18px minmax(0,1fr); gap:10px; min-height:64px; }
.analytics-timeline-item time { padding-top:2px; color:var(--muted); font-size:11px; white-space:nowrap; }
.analytics-timeline-item > i { position:relative; width:10px; height:10px; margin-top:4px; border:2px solid var(--mint-deep); border-radius:50%; background:#fff; }
.analytics-timeline-item > i::after { content:''; position:absolute; left:3px; top:10px; width:2px; height:54px; background:var(--line); }
.analytics-timeline-item:last-child > i::after { display:none; }
.analytics-timeline-item > div { display:grid; align-content:start; gap:3px; padding-bottom:15px; }
.analytics-timeline-item strong { font-size:13px; color:var(--ink); }
.analytics-timeline-item span { color:#385144; font-size:12px; word-break:break-word; }
.analytics-timeline-item small { color:var(--muted); font-size:11px; }
.analytics-visitor-profile-dialog { width:min(1080px,calc(100vw - 32px)); }
.analytics-profile-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:20px; }
.analytics-profile-stats > div { display:grid; gap:5px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.analytics-profile-stats span { color:var(--muted); font-size:11px; }
.analytics-profile-stats strong { font-size:13px; color:var(--ink); }
.analytics-live-dot { display:inline-flex; align-items:center; gap:6px; color:var(--mint-deep); font-weight:700; }
.analytics-live-dot::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--mint-deep); box-shadow:0 0 0 4px rgba(0,145,85,.10); }
.analytics-risk { display:inline-flex; align-items:center; justify-content:center; min-width:42px; padding:5px 9px; border-radius:999px; font-size:11px; font-weight:800; }
.analytics-risk.is-low { color:#33705a; background:#edf7f2; }
.analytics-risk.is-medium { color:#8c6416; background:#fff5d8; }
.analytics-risk.is-high { color:#a13b3b; background:#ffe8e8; }
.analytics-visitor-pagination { margin:8px 0 14px; }
.analytics-block-ip-manual { grid-template-columns:minmax(0,1fr) minmax(110px,150px) auto; }
@media(max-width:1000px){.analytics-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-funnel{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-funnel>div::after{display:none}.analytics-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.analytics-health-grid,.analytics-funnel,.analytics-profile-stats{grid-template-columns:1fr}.analytics-timeline-item{grid-template-columns:1fr 16px minmax(0,1fr)}.analytics-timeline-item time{grid-column:1 / -1}.analytics-block-ip-manual{grid-template-columns:1fr}.analytics-visitor-profile-dialog{width:calc(100vw - 20px)}}

/* V1.48.2 · 后台去程序员化 + 悬浮工具栏细化 */
.technical-advanced { margin-top:10px; border:1px solid var(--line-soft); border-radius:12px; background:#fbfcfb; overflow:hidden; }
.technical-advanced > summary { cursor:pointer; list-style:none; padding:11px 13px; color:#53685d; font-size:12px; font-weight:700; user-select:none; }
.technical-advanced > summary::-webkit-details-marker { display:none; }
.technical-advanced > summary::after { content:'展开'; float:right; color:var(--muted); font-weight:500; }
.technical-advanced[open] > summary::after { content:'收起'; }
.technical-advanced[open] > summary { border-bottom:1px solid var(--line-soft); background:#fff; }
.technical-advanced > :not(summary) { margin:12px 13px 13px; }
.human-link-field { min-width:0; }
.human-link-control { display:grid; grid-template-columns:minmax(160px,1fr) auto auto; gap:8px; align-items:center; }
.human-link-display { color:#385144; background:#f8faf9; cursor:default; text-overflow:ellipsis; }
.admin-link-picker { width:min(860px,calc(100vw - 32px)); max-height:min(760px,calc(100vh - 40px)); overflow:auto; padding:22px; border-radius:18px; background:#fff; box-shadow:0 24px 72px rgba(12,31,22,.22); }
.link-picker-dialog { z-index:1200; align-items:center; justify-content:center; }
.link-picker-section { display:grid; gap:10px; padding:15px 0; border-top:1px solid var(--line-soft); }
.link-picker-section:first-of-type { border-top:0; }
.link-picker-pages { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.link-picker-page,.link-picker-result { min-height:42px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; }
.link-picker-page:hover,.link-picker-result:hover { border-color:#a8d8ba; background:#f2faf5; }
.link-picker-search-row,.link-picker-external { display:grid; grid-template-columns:minmax(160px,.6fr) minmax(240px,1.4fr); gap:8px; }
.link-picker-external { grid-template-columns:minmax(0,1fr) auto; }
.link-picker-results { display:grid; gap:7px; max-height:260px; overflow:auto; }
.link-picker-result { display:grid; gap:3px; }
.link-picker-result span { color:var(--muted); font-size:11px; }
.page-choice-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:8px 0 14px; }
.page-choice-item { display:flex; align-items:center; gap:8px; min-height:38px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer; }
.page-choice-item:has(input:checked) { border-color:#b4ddc3; background:#eef9f2; color:#08733f; }
.footer-column-editor { display:grid; gap:12px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.footer-column-editor-head { display:flex; align-items:center; gap:8px; color:var(--muted); }
.footer-column-editor-head span { display:grid; place-items:center; width:28px; height:28px; border-radius:8px; background:#eef6f1; color:var(--mint-deep); font-size:11px; font-weight:800; }
.footer-link-list { display:grid; gap:10px; }
.footer-link-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:12px; border:1px solid var(--line-soft); border-radius:12px; background:#fafcfb; }
.footer-link-main { display:grid; grid-template-columns:minmax(150px,.65fr) minmax(260px,1.35fr); gap:12px; }
.footer-link-main .form-group { margin:0; }
.footer-link-actions { align-self:end; padding-bottom:2px; }
.floating-config-status { display:inline-flex; align-items:center; min-height:26px; padding:3px 9px; border-radius:999px; font-size:11px; font-weight:750; white-space:nowrap; }
.floating-config-status.is-ready { color:#176a48; background:#eaf7ef; }
.floating-config-status.is-warning { color:#8c6416; background:#fff4d6; }
.floating-config-status.is-error { color:#a13b3b; background:#ffeaea; }
.floating-icon-control { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,.6fr); gap:8px; }
.floating-agent-technical { margin-top:2px; }
.agent-context-options { display:flex; flex-wrap:wrap; gap:16px; }
.floating-page-section { padding:12px 0 0; }

@media (max-width:900px) {
  .link-picker-pages,.page-choice-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-link-main { grid-template-columns:1fr; }
  .footer-link-row { grid-template-columns:1fr; }
  .footer-link-actions { justify-content:flex-start; }
}
@media (max-width:650px) {
  .human-link-control,.link-picker-search-row,.link-picker-external { grid-template-columns:1fr; }
  .link-picker-pages,.page-choice-grid { grid-template-columns:1fr; }
  .admin-link-picker { width:calc(100vw - 20px); padding:16px; }
}

/* V1.48.2 · 前台悬浮工具栏尺寸、二维码预览和手机安全区 */
.floating-toolbar.size-small .floating-tool-button { width:42px; min-width:42px; height:42px; }
.floating-toolbar.size-large .floating-tool-button { width:54px; min-width:54px; height:54px; }
.floating-toolbar.gap-compact .floating-tool-list { gap:6px; }
.floating-toolbar.gap-loose .floating-tool-list { gap:14px; }
.floating-toolbar.edge-close.floating-right-bottom,.floating-toolbar.edge-close.floating-right-middle { right:12px; }
.floating-toolbar.edge-far.floating-right-bottom,.floating-toolbar.edge-far.floating-right-middle { right:38px; }
.floating-toolbar.edge-close.floating-left-bottom { left:12px; }
.floating-toolbar.edge-far.floating-left-bottom { left:38px; }
.floating-qr-hover-preview.qr-size-small { width:136px; }
.floating-qr-hover-preview.qr-size-medium { width:176px; }
.floating-qr-hover-preview.qr-size-large { width:220px; }
.floating-qr-error { display:none; min-height:112px; padding:16px; place-items:center; color:var(--muted); font-size:12px; text-align:center; }
.floating-qr-hover-preview.is-image-error img { display:none; }
.floating-qr-hover-preview.is-image-error .floating-qr-error { display:grid; }
.floating-qr-hover-preview { transition-delay:.16s; }
.floating-tool-button.has-qr-preview:not(:hover):not(:focus-visible) .floating-qr-hover-preview { transition-delay:.08s; }
.floating-agent-fallback { appearance:none; padding:0; border:0; background:none; cursor:pointer; }
@media (max-width:760px) {
  .floating-toolbar { bottom:calc(18px + env(safe-area-inset-bottom,0px) + var(--floating-footer-lift))!important; }
  .floating-toolbar.edge-close,.floating-toolbar.edge-standard,.floating-toolbar.edge-far { right:max(14px,env(safe-area-inset-right,0px))!important; }
}
@media (prefers-reduced-motion:reduce) {
  .floating-toolbar,.floating-tool-button,.floating-qr-hover-preview,.floating-tool-list { transition:none!important; animation:none!important; scroll-behavior:auto!important; }
}

/* V1.48.4 · 后台跳转选择器相关表单统一对齐 */
.product-action-row,
.home-slide-relation-row {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
  min-width:0;
}
.product-action-row > .form-group,
.home-slide-relation-row > .form-group { margin:0; min-width:0; align-self:start; }
.product-action-settings .product-action-row + .product-action-row { margin-top:8px; }
.product-action-settings .form-group > label,
.home-slide-relation-row .form-group > label,
.admin-body .menu-custom-fields .form-group > label,
.footer-link-main .form-group > label { min-height:20px; line-height:20px; }

/* 所有“选择跳转目标”控件统一同高，避免输入框、主按钮、清除按钮上下错位。 */
.admin-body .human-link-control { align-items:stretch; }
.admin-body .human-link-control > .form-input,
.admin-body .human-link-control > .button,
.admin-body .human-link-control > .small-button {
  min-height:46px;
  height:46px;
  align-self:stretch;
}
.admin-body .human-link-control > .button,
.admin-body .human-link-control > .small-button { white-space:nowrap; }

/* 顶部导航：顶级菜单与子菜单共用稳定栅格，子菜单不再额外塞第四列。 */
.admin-body .menu-custom-fields {
  grid-template-columns:minmax(190px,.72fr) minmax(420px,1.28fr);
  gap:16px;
  align-items:start;
}
.admin-body .custom-menu-sort-row .menu-custom-fields {
  grid-template-columns:minmax(180px,.62fr) minmax(420px,1.18fr) minmax(210px,.7fr);
  gap:16px;
  align-items:start;
}
.admin-body .menu-custom-fields > .form-group { min-width:0; align-self:start; }
.admin-body .menu-row-identity { flex-wrap:wrap; }
.admin-body .menu-new-window {
  align-self:center;
  min-height:0;
  padding:0;
  font-size:13px;
  white-space:nowrap;
}
.admin-body .menu-level-child { margin-left:22px; }

/* 页脚导航：三组改为纵向独立卡片，组内每一项横向排布，减少小框套小框和拥挤。 */
.admin-body .footer-settings-grid {
  grid-template-columns:1fr;
  gap:18px;
}
.admin-body .footer-column-editor:last-child { grid-column:auto; }
.admin-body .footer-column-editor { padding:20px 22px; gap:16px; }
.admin-body .footer-column-editor-head { padding-bottom:4px; }
.admin-body .footer-link-list { gap:0; }
.admin-body .footer-link-row {
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:16px 0;
  border:0;
  border-top:1px solid var(--line-soft);
  border-radius:0;
  background:transparent;
}
.admin-body .footer-link-main {
  grid-template-columns:minmax(180px,.62fr) minmax(360px,1.38fr);
  gap:16px;
  align-items:start;
}
.admin-body .footer-link-actions {
  align-self:center;
  padding:20px 0 0;
  flex-wrap:nowrap;
}
.admin-body .footer-column-editor > .button[data-footer-link-add] { justify-self:start; }

/* Agent：常用配置展开后改为两列，技术字段不再三列挤在一起。 */
.admin-body .floating-tool-type-agent .floating-tool-specific-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.admin-body .floating-tool-type-agent .floating-specific-wide { grid-column:1 / -1; }
.admin-body .floating-tool-type-agent .floating-agent-technical { margin-top:8px; }
.admin-body .floating-tool-type-agent .floating-agent-technical > summary,
.admin-body .floating-tool-type-agent .floating-tool-advanced > summary {
  font-size:13px;
  color:var(--ink-soft);
}

@media (max-width:1280px) {
  .admin-body .custom-menu-sort-row .menu-custom-fields {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .admin-body .custom-menu-sort-row .menu-custom-fields > .form-group:last-child { grid-column:1 / -1; }
}
@media (max-width:980px) {
  .admin-body .menu-custom-fields,
  .admin-body .custom-menu-sort-row .menu-custom-fields,
  .admin-body .footer-link-main,
  .product-action-row,
  .home-slide-relation-row,
  .admin-body .floating-tool-type-agent .floating-tool-specific-grid {
    grid-template-columns:1fr;
  }
  .admin-body .custom-menu-sort-row .menu-custom-fields > .form-group:last-child,
  .admin-body .floating-tool-type-agent .floating-specific-wide { grid-column:auto; }
  .admin-body .footer-link-row { grid-template-columns:1fr; }
  .admin-body .footer-link-actions { justify-content:flex-start; padding-top:0; }
}

/* V1.48.6: clearer link picker and analytics settings */
.link-picker-header { position:sticky; top:-22px; z-index:4; margin:-22px -22px 4px; padding:20px 22px 16px; background:rgba(255,255,255,.98); border-bottom:1px solid var(--line-soft); }
.link-picker-close { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-width:94px; min-height:46px; padding:8px 14px; border:1px solid #b8c9bf; border-radius:12px; background:#f7faf8; color:var(--ink); cursor:pointer; font:inherit; font-weight:700; box-shadow:0 4px 14px rgba(10,36,24,.06); }
.link-picker-close span { font-size:24px; line-height:1; }
.link-picker-close:hover { border-color:var(--green); background:#eef8f2; color:var(--green); }
.link-picker-section-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.link-picker-section-head span { color:var(--muted); font-size:12px; }
.link-picker-page strong { display:block; }
.link-picker-page span { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.analytics-settings .admin-form { display:grid; gap:20px; padding-top:6px; }
.analytics-settings .form-group > label { font-weight:700; color:var(--ink); }
.analytics-setting-help { margin-top:-8px; }
.analytics-setting-toggle-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px 18px; padding:14px 16px; border:1px solid var(--line-soft); border-radius:14px; background:#fbfcfb; }
.analytics-setting-main-grid { display:grid; grid-template-columns:minmax(220px,.36fr) minmax(340px,.64fr); gap:16px; align-items:start; }
.analytics-wide-field { grid-column:1 / -1; }
.analytics-excluded-pages { min-width:0; }
.analytics-excluded-pages .page-choice-grid { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); }
.analytics-blocked-ips { padding:20px; border-radius:16px; }
.analytics-block-ip-manual { grid-template-columns:minmax(300px,1fr) minmax(140px,180px) auto; align-items:start; gap:12px; }
.analytics-block-ip-input { display:grid; gap:6px; min-width:0; }
.analytics-block-ip-manual .field-select,.analytics-block-ip-manual .small-button { min-height:48px; }
.analytics-blocked-ip-row { padding:13px 14px; }
@media(max-width:900px){
  .analytics-setting-main-grid { grid-template-columns:1fr; }
  .analytics-block-ip-manual { grid-template-columns:1fr; }
  .link-picker-section-head { align-items:flex-start; flex-direction:column; gap:4px; }
}
@media(max-width:650px){
  .link-picker-header { top:-16px; margin:-16px -16px 4px; padding:14px 16px; }
  .link-picker-close { min-width:48px; }
  .link-picker-close b { display:none; }
}


/* V1.49.0 后台表单与新组件统一 */
.message-copy-button{border:1px solid var(--line);background:#fff;border-radius:7px;padding:2px 8px;font-size:12px;cursor:pointer;margin-left:7px;vertical-align:middle;color:var(--text)}
.message-copy-button:hover{border-color:var(--green);color:var(--green)}
.message-contact-value{user-select:text;cursor:text}
.message-category-other[hidden],[data-message-category-other][hidden]{display:none!important}
.message-card[open] .message-list-preview{display:none}
.message-detail-sections{display:grid;gap:14px;margin-top:2px}
.message-detail-section,.message-visitor-details,.message-note-section{border:1px solid var(--line-soft);border-radius:14px;background:#fbfcfb}
.message-detail-section,.message-note-section{padding:14px 16px}
.message-detail-section h3,.message-note-section-heading h3{margin:0;font-size:14px;color:var(--ink)}
.message-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin-top:12px}
.message-detail-grid>div{display:grid;gap:4px;min-width:0}
.message-detail-grid span{font-size:12px;color:var(--muted)}
.message-detail-grid strong{font-size:13px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.message-visitor-details{overflow:hidden}
.message-visitor-details>summary{display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;list-style:none;font-size:14px;font-weight:700;color:var(--ink)}
.message-visitor-details>summary::-webkit-details-marker{display:none}
.message-visitor-details>summary em{margin-left:auto;color:var(--muted);font-size:12px;font-style:normal;font-weight:400;text-align:right}
.message-visitor-grid{padding:0 16px 14px;margin-top:0}
.message-visitor-details[open]>summary{border-bottom:1px solid var(--line-soft);background:#fff}
.message-visitor-details .message-visitor-actions{padding:0 16px 14px}
.message-note-section{background:#fff}
.message-note-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.message-note-section-heading span{color:var(--muted);font-size:12px;text-align:right}
.message-note-section .message-note-panel{margin-top:10px}
.message-card-footer{margin-top:0}
.message-card-actions{justify-content:flex-end}
.floating-icon-current{display:flex;align-items:center;gap:12px;min-height:54px;padding:10px 12px;border:1px solid var(--line-soft);border-radius:12px;background:#fbfcfb}
.floating-icon-current-preview{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:var(--green-soft);color:var(--green);flex:0 0 auto}
.floating-icon-current-preview svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.floating-icon-current-copy{display:grid;gap:3px;min-width:0}
.floating-icon-current-copy strong{font-size:14px;color:var(--ink)}
.floating-icon-current-copy small{color:var(--muted);font-size:11px;line-height:1.4}
.floating-icon-picker-details{margin-top:9px;border:1px solid var(--line-soft);border-radius:12px;background:#fff;overflow:hidden}
.floating-icon-picker-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;cursor:pointer;list-style:none;color:var(--green);font-size:13px;font-weight:700}
.floating-icon-picker-details>summary::-webkit-details-marker{display:none}
.floating-icon-picker-details>summary em{color:var(--muted);font-size:11px;font-style:normal;font-weight:400}
.floating-icon-picker-panel{padding:0 12px 12px;border-top:1px solid var(--line-soft)}
.floating-icon-toolbar{display:grid;gap:8px;padding-top:12px}
.floating-icon-picker{max-height:300px;overflow:auto;padding-right:3px}
.floating-icon-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));align-items:stretch;gap:10px;padding:4px 0}.floating-icon-option{min-height:74px;border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:pointer;color:var(--ink);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,transform .16s ease}.floating-icon-option:hover{border-color:var(--green);background:#f7fcf8;transform:translateY(-1px)}.floating-icon-option svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.floating-icon-option span{font-size:12px;line-height:1.25;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;padding:0 5px}.floating-icon-option.is-selected{border-color:var(--green);box-shadow:0 0 0 2px rgba(29,127,83,.16),0 4px 12px rgba(29,127,83,.1);background:var(--green-soft);color:var(--green)}.floating-icon-categories{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.floating-icon-categories .small-button.is-active{border-color:var(--green);background:var(--green-soft);color:var(--green);box-shadow:0 0 0 1px var(--green) inset}
.menu-custom-fields,.footer-link-main,.home-slide-relation-row{align-items:flex-start!important}.menu-custom-fields>.form-group,.footer-link-main>.form-group,.home-slide-relation-row>.form-group{min-width:0}.human-link-control{align-items:stretch!important}.human-link-control .form-input,.human-link-control .small-button,.menu-custom-fields .form-input,.menu-custom-fields .field-select,.footer-link-main .form-input,.footer-link-main .small-button{min-height:42px;box-sizing:border-box}.human-link-control .row-actions{align-items:center;min-height:42px}.form-help{line-height:1.55}
.featured-product-picker{max-height:none!important;overflow:visible!important}.featured-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}.featured-product-selected{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fafcfb}.featured-product-selected-items{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.analytics-geo-manager{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.analytics-geo-manager>[data-geo-update-status]{grid-column:1/-1}
@media(max-width:760px){.analytics-geo-manager{grid-template-columns:1fr}.floating-icon-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.message-detail-grid{grid-template-columns:1fr}.message-visitor-details>summary{align-items:flex-start;flex-wrap:wrap}.message-visitor-details>summary em{width:100%;margin-left:0;text-align:left}.message-note-section-heading{align-items:flex-start;flex-direction:column}.message-note-section-heading span{text-align:left}}

/* V1.53.0：前台在线留言表单统一字号、间距与字段层级。 */
.customer-message-card {
  width: min(1080px, 100%);
  margin: 32px auto 0;
  padding: 34px 38px;
}
.customer-message-heading { margin-bottom: 26px; }
.customer-message-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -.035em;
}
.customer-message-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.customer-message-card .message-form {
  display: grid;
  gap: 19px;
}
.customer-message-card .message-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}
.customer-message-card .message-form-group {
  display: grid;
  gap: 7px;
  margin: 0;
}
.customer-message-card .message-form-group > label {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.45;
}
.customer-message-card .message-form-full { grid-column: 1 / -1; }
.customer-message-card .form-input,
.customer-message-card .field-select,
.customer-message-card .form-textarea {
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.45;
  box-sizing: border-box;
}
.customer-message-card .form-textarea {
  min-height: 164px;
  line-height: 1.65;
}
.customer-message-card .form-input::placeholder,
.customer-message-card .form-textarea::placeholder { color: #89928d; }
.customer-message-card .message-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1px;
}
.customer-message-card .message-form-actions .button { min-height: 44px; }
.customer-message-card .message-form-actions .form-help {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.customer-message-card .message-honeypot { display: none; }
.customer-message-card [data-message-category-other][hidden],
.customer-message-card .message-category-other[hidden] { display: none !important; }

/* V1.53.0：后台留言详情、状态列和悬浮工具设置的对齐。 */
.message-detail-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dce9e1;
  border-radius: 10px;
  background: #f7faf8;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}
.message-detail-inline span + span {
  padding-left: 12px;
  border-left: 1px solid #cfe0d5;
  color: var(--muted);
}
.message-note-display {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfcfb;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message-note-display.is-empty { color: var(--muted); }
.message-note-editor { display: grid; gap: 10px; margin-top: 10px; }
.message-note-editor[hidden] { display: none !important; }
.message-note-actions { justify-content: flex-end; }
.message-card-highlight {
  border-color: var(--mint-deep) !important;
  box-shadow: 0 0 0 3px rgba(29,127,83,.13), 0 10px 28px rgba(29,127,83,.12) !important;
}
.admin-table .admin-status-cell {
  width: 112px;
  white-space: nowrap;
  vertical-align: middle;
}
.admin-table .admin-status-cell .meta-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 30px;
  white-space: nowrap;
}
.admin-table .admin-actions-cell {
  width: 1%;
  min-width: 150px;
  white-space: nowrap;
  vertical-align: middle;
}
.admin-table .admin-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
}
.floating-tools-settings .floating-toolbar-global {
  position: relative;
  padding: 20px;
  border-color: #cfe2d6;
  background: #f7fbf8;
}
.floating-tools-settings .floating-toolbar-global::before {
  grid-column: 1 / -1;
  content: '全局显示设置';
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
}
.floating-tools-settings .floating-module-toolbar {
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.floating-tools-settings .floating-tool-editor-list {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #f7faf8;
}
.floating-icon-option[hidden] { display: none !important; }
.floating-icon-picker-panel {
  display: grid;
  grid-template-columns: minmax(160px, .34fr) minmax(0, 1fr);
  gap: 16px;
}
.floating-icon-toolbar { align-content: start; }
.floating-icon-categories { align-content: start; }
@media (max-width: 900px) {
  .customer-message-card { width: 100%; }
  .floating-icon-picker-panel { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .customer-message-card { margin-top: 26px; padding: 26px 20px; }
  .customer-message-card .message-form-row { grid-template-columns: 1fr; gap: 19px; }
  .customer-message-card .message-form-full { grid-column: auto; }
  .customer-message-card .message-form-actions { align-items: flex-start; flex-direction: column; }
  .admin-table .admin-actions-cell { min-width: 0; }
  .admin-table .admin-row-actions { flex-wrap: wrap; }
}

/* V1.54.0：表单、留言详情与后台设置统一为同一套栅格。 */
.customer-message-card {
  width: 100%;
  max-width: none;
  margin: 32px 0 0;
}
.customer-message-heading { margin-bottom: 22px; }
.customer-message-heading h2 {
  font-size: clamp(26px, 2.4vw, 32px);
  letter-spacing: -.028em;
}
.customer-message-heading p { font-size: 15px; }
.customer-message-card .message-form-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}
.customer-message-card .message-form-meta-grid > .message-form-group { min-width: 0; }
.customer-message-card .message-form-group > label { font-size: 13px; }
.customer-message-card .form-input,
.customer-message-card .field-select,
.customer-message-card .form-textarea {
  min-height: 46px;
  padding: 10px 13px;
  font-size: 14px;
}
.customer-message-card .form-textarea { min-height: 148px; }
.customer-message-card .message-form-full { min-width: 0; }

.message-detail-sections { gap: 12px; }
.message-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.message-detail-inline {
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  padding: 10px 13px;
}
.message-detail-muted { color: var(--muted); }
.message-note-widget {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 0;
}
.message-note-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.message-note-trigger:hover,
.message-note-trigger:focus-visible {
  border-color: var(--mint-deep);
  background: #f4faf6;
  color: var(--mint-deep);
}
.message-note-trigger.is-filled {
  border-color: #b8dcc5;
  background: #eef9f2;
  color: var(--mint-deep);
}
.message-note-icon { font-size: 17px; line-height: 1; }
.message-note-trigger::after {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 64px));
  padding: 10px 12px;
  border: 1px solid rgba(11, 47, 30, .16);
  border-radius: 10px;
  background: #163c2a;
  color: #fff;
  content: attr(data-note-preview);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
  white-space: pre-wrap;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-3px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.message-note-trigger:hover::after,
.message-note-trigger:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.message-note-editor {
  width: min(420px, calc(100vw - 64px));
  margin: 0;
  padding: 12px;
  border: 1px solid #cfe2d6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 43, 29, .10);
}
.message-note-editor[hidden] { display: none !important; }
.message-note-editor .form-textarea { min-height: 92px; }
.message-note-widget.is-editing { width: min(420px, 100%); }
.message-note-widget.is-editing .message-note-editor { width: auto; }
.message-visitor-details > summary {
  min-height: 58px;
  box-sizing: border-box;
  padding: 12px 16px;
}
.message-visitor-summary-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.message-visitor-summary-main > span:last-child { display: grid; gap: 3px; }
.message-visitor-summary-main strong { font-size: 14px; }
.message-visitor-summary-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.message-visitor-summary-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #cfe2d6;
  border-radius: 50%;
  color: var(--mint-deep);
  font-size: 17px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .16s ease;
}
.message-visitor-details[open] .message-visitor-summary-icon { transform: rotate(180deg); }

/* 页脚链接：固定标签高度、输入高度和操作按钮基线。 */
.admin-body .footer-link-row { align-items: start; }
.admin-body .footer-link-main {
  align-items: start;
  min-width: 0;
}
.admin-body .footer-link-main > .form-group { align-self: start; min-width: 0; }
.admin-body .footer-link-main > .form-group > label {
  min-height: 20px;
  line-height: 20px;
}
.admin-body .footer-link-main .human-link-control { align-items: stretch !important; }
.admin-body .footer-link-main .human-link-control > .form-input,
.admin-body .footer-link-main .human-link-control > .button,
.admin-body .footer-link-main .human-link-control > .small-button {
  height: 46px;
  min-height: 46px;
  align-self: stretch;
}
.admin-body .footer-link-actions {
  align-self: start;
  height: 46px;
  padding: 28px 0 0;
  box-sizing: content-box;
  flex-wrap: nowrap;
}
.admin-body .footer-link-actions .small-button {
  height: 46px;
  min-height: 46px;
  white-space: nowrap;
}

/* 悬浮工具栏：以“基础信息 → 显示状态 → 高级设置”建立阅读顺序。 */
.floating-tools-settings .floating-toolbar-global {
  grid-template-columns: minmax(210px, 1.2fr) repeat(2, minmax(170px, .8fr)) repeat(2, minmax(150px, auto));
  align-items: end;
  gap: 14px 16px;
}
.floating-tools-settings .floating-toolbar-master {
  min-height: 46px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #d4e8da;
  border-radius: 10px;
  background: #fff;
}
.floating-tools-settings .floating-module-toolbar {
  align-items: flex-end;
  padding: 18px 0 2px;
  border-top: 1px solid var(--line-soft);
}
.floating-tools-settings .floating-module-toolbar > div:first-child { gap: 5px; }
.floating-tools-settings .floating-module-toolbar strong { font-size: 16px; }
.floating-tools-settings .floating-tool-editor-list { gap: 14px; }
.floating-tool-editor-body {
  gap: 12px;
  padding: 16px;
}
.floating-settings-block {
  display: grid;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fff;
}
.floating-settings-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.floating-settings-block-head > div { display: grid; gap: 3px; }
.floating-settings-block-head strong { color: var(--ink); font-size: 14px; }
.floating-settings-block-head > span { color: var(--muted); font-size: 12px; text-align: right; }
.floating-settings-eyebrow {
  display: inline-block;
  margin-right: 7px;
  color: var(--mint-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.floating-tool-basic-grid {
  grid-template-columns: minmax(220px, .72fr) minmax(360px, 1.28fr);
  gap: 14px 18px;
}
.floating-tool-basic-grid > .floating-icon-field {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.floating-tool-quick-options {
  gap: 10px 24px;
  padding: 0;
}
.floating-tool-quick-options .checkbox-item {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfcfb;
}
.floating-tool-advanced {
  margin-top: 0;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fbfcfb;
  overflow: hidden;
}
.floating-tool-advanced > summary {
  display: block;
  width: auto;
  padding: 13px 16px;
  color: var(--mint-deep);
  font-size: 13px;
}
.floating-tool-advanced[open] > summary {
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.floating-tool-advanced > summary .floating-settings-eyebrow { margin-right: 8px; }
.floating-tool-advanced-stack { padding: 14px 16px 16px; }
.floating-icon-field { min-width: 0; }
.floating-icon-picker-details[open] { background: #fbfcfb; }
.floating-icon-picker-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 12px 12px;
}
.floating-icon-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 10px;
  padding-top: 12px;
}
.floating-icon-categories {
  align-content: center;
  margin-top: 0;
}
.floating-icon-categories .small-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.floating-icon-picker {
  max-height: 280px;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 9px;
  padding: 4px 2px 3px 0;
}
.floating-icon-option {
  min-height: 82px;
  gap: 6px;
  border-radius: 11px;
}
.floating-icon-option svg { width: 24px; height: 24px; }
.floating-icon-option span { font-size: 11px; }

@media (max-width: 1180px) {
  .customer-message-card .message-form-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floating-tools-settings .floating-toolbar-global { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floating-tool-basic-grid { grid-template-columns: minmax(180px, .7fr) minmax(300px, 1.3fr); }
}
@media (max-width: 980px) {
  .admin-body .footer-link-actions { padding-top: 0; }
  .floating-tool-basic-grid { grid-template-columns: 1fr; }
  .floating-tool-basic-grid > .floating-icon-field { grid-column: auto; grid-row: auto; }
  .floating-icon-toolbar { grid-template-columns: 1fr; }
  .floating-settings-block-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .floating-settings-block-head > span { text-align: left; }
}
@media (max-width: 760px) {
  .customer-message-card .message-form-meta-grid { grid-template-columns: 1fr; gap: 14px; }
  .message-detail-header { grid-template-columns: 1fr; }
  .message-note-widget,
  .message-note-widget.is-editing { justify-items: stretch; width: 100%; }
  .message-note-trigger { width: 100%; }
  .message-note-editor { width: auto; }
  .floating-tools-settings .floating-toolbar-global { grid-template-columns: 1fr; }
  .floating-tool-quick-options { display: grid; grid-template-columns: 1fr; }
  .admin-body .footer-link-actions { height: auto; flex-wrap: wrap; }
}


/* Reserve the same badge area on both detail columns without changing card heights. */
.detail-support-card {
  position: relative;
  padding-top: 36px;
}
.detail-support-card-badge {
  top: 6px;
  right: 12px;
  display: block;
  max-width: calc(100% - 24px);
  overflow: hidden;
  line-height: 23px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 正文图片随所在段落或媒体块的对齐样式排列。 */
:is(.rich-editor, .article-body) [style*="text-align:"] img {
  display: inline-block;
  margin-inline: 0;
  vertical-align: middle;
}

/* 行内旧素材被选中后和新素材使用相同的对齐规则。 */
:is(.rich-editor, .article-body) [data-editor-media-block] {
  display: block;
}
:is(.rich-editor, .article-body) [data-editor-media-block][style*="text-align:"] > :is(img, video, .video-poster-shell) {
  display: inline-block;
  max-width: 90%;
  margin-inline: 0;
  vertical-align: middle;
}

/* 后台型号组 */
.group-workspace-header { align-items: flex-end; }
.group-workspace-back { margin-bottom: 12px; }
.group-workspace-header h2 { font-size: clamp(20px, 2.5vw, 26px); }
.group-workspace-header p { font-size: 13px; }
.group-workspace-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 14px;
}
.group-workspace-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.group-workspace-card > div { min-width: 0; }
.group-workspace-card h3 { margin: 0; overflow-wrap: anywhere; }
.group-workspace-card p { margin: 5px 0 0; }
.group-workspace-models { color: var(--ink-soft); font-size: 13px; overflow-wrap: anywhere; }
.group-workspace-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.group-workspace-nav [aria-pressed="true"] {
  border-color: var(--mint-deep);
  color: var(--mint-deep);
  background: #edf9f1;
}
.group-workspace-name { max-width: 420px; }
.group-workspace-tools {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.group-workspace-tools > label:first-child {
  display: grid;
  gap: 6px;
  width: min(100%, 420px);
  font-size: 13px;
  font-weight: 600;
}
.group-workspace-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}
.group-workspace-products .checkbox-item {
  align-items: flex-start;
  padding: 10px 12px;
  min-height: 58px;
}
.group-workspace-products .checkbox-item > span, .group-assignment-options .checkbox-item > span { min-width: 0; overflow-wrap: anywhere; }
.group-workspace-products small, .group-assignment-options small { display: block; color: var(--muted); font-size: 11px; }
.group-workspace-table td { overflow-wrap: anywhere; }
.group-workspace-table td .small-button { white-space: nowrap; }
.group-workspace [data-group-filter-row][hidden],
.group-workspace [data-group-no-results][hidden] { display: none; }
.group-workspace-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.group-workspace-actions > span { margin-right: auto; color: var(--muted); font-size: 13px; }
@media (max-width: 620px) {
  .group-workspace-header { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .admin-shell:has(.group-workspace) { grid-template-columns: minmax(0, 1fr); }
  .admin-shell:has(.group-workspace) > .admin-sidebar { min-width: 0; }
  .admin-shell:has(.group-workspace) .admin-topbar { flex-wrap: wrap; }
}
