/* The brand engine: a calm brand-store look over the market stylesheet (themes/market/style.css is loaded
   first and drives every shop component; this file restyles them and adds the home page sections).
   Square edges, thin lines, deep green, Montserrat, lots of white space. Light only: a brand page keeps its
   own colours whatever the visitor's system theme. A theme's colours and fonts arrive as custom properties
   (#nexus-theme-style, written after this file). */

:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F5F6F4;
  --image-bg: #F5F6F4;
  --text: #343A3F;
  --text-soft: #5B6369;
  --text-faint: #8E959B;
  --border: #E3E6E2;
  --border-strong: #C9CFC9;
  --primary: #2D5849;
  --primary-hover: #234638;
  --primary-tint: #E7EFEA;
  --primary-ink: #FFFFFF;
  --secondary: #EDF3EF;
  --secondary-ink: #2D5849;
  --accent: #B8563E;
  --link: color-mix(in srgb, var(--primary) 72%, #fff);
  --muted-tint: #EEF0EE;
  --shadow-card: none;
  --radius: 0px;
  --radius-md: 0px;
  --page-max: 1280px;
  --media-radius: 0px; /* corners of pictures and cards: the theme's 圆角 (theme_css) */
  --hover-zoom: 1.05; /* pictures under the mouse: 1 turns it off */
  --font-heading: 'Montserrat', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Montserrat', 'Noto Sans SC', system-ui, sans-serif;
}

body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 500; letter-spacing: 0; }
.btn { border-radius: 0; font-weight: 500; letter-spacing: 0.03em; }
.btn-lg { border-radius: 0; }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------------------------------------------------------------- announcement + utility bar */

.announce { background: var(--primary); color: #fff; text-align: center; font-size: 0.8rem; letter-spacing: 0.04em; padding: 7px 16px; }
.utility-bar { border-bottom: none; background: var(--surface-2); font-size: 0.75rem; }
.utility-bar-inner { max-width: var(--page-max); }

/* ---------------------------------------------------------------- header */

.site-header { box-shadow: none; border-bottom: 1px solid var(--border); transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 30, 25, 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 28px 12px; max-width: var(--page-max); }
.brand { color: var(--brand-color, var(--primary)); font-family: var(--font-heading); font-weight: 600; font-size: calc(1.45rem * var(--brand-scale, 1)); letter-spacing: 0.14em; }
.brand-mark { display: none; }
.brand-logo { height: 34px; max-width: 200px; }
.header-search { display: none; flex: 1; max-width: 520px; height: 40px; border: 1px solid var(--border-strong); border-radius: 0; }
.site-header.search-open .header-search { display: flex; }
.search-submit { background: transparent; color: var(--primary); width: 44px; }
.search-submit:hover { background: var(--primary-tint); }
.header-actions { gap: 4px; }
.nav-action { min-width: 40px; padding: 6px; border-radius: 0; }
/* the icons say what they are: their label as a small hint under the mouse (or keyboard focus) */
.nav-action { position: relative; }
.nav-action .nav-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 70;
  padding: 4px 9px;
  border-radius: 4px;
  background: #1F2A24;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -3px);
  transition: opacity 0.15s, transform 0.15s;
}
.nav-action:hover .nav-label, .nav-action:focus-visible .nav-label { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .nav-action:hover .nav-label { opacity: 0; } } /* a tap opens the panel; no stuck hint */
.nav-action svg { width: 22px; height: 22px; color: var(--primary); }
.nav-badge { background: var(--primary); }
.search-toggle[aria-expanded="true"] svg { color: var(--accent); }

.category-bar { border-top: none; }
/* Every category in view on a wider screen, over two lines when there are many (a centred single line that
   overflows would push its first links out of reach); one scrolling line on a phone. */
.category-bar-inner { flex-wrap: wrap; justify-content: center; column-gap: 12px; row-gap: 0; padding: 0 16px; overflow: visible; }
.cat-link { font-size: 0.88rem; color: var(--primary); padding: 8px 10px 12px; letter-spacing: 0.02em; }
.cat-link svg { display: none; }
.cat-link:hover { color: var(--primary-hover); }
.cat-link.on { font-weight: 600; }

/* ---------------------------------------------------------------- shop pages in the brand look */

.card { border: 1px solid transparent; transition: border-color 0.2s; }
.card:hover { box-shadow: none; border-color: var(--border); }
.card-media { background: var(--image-bg); }
.card-title { font-size: 0.9rem; }
.price { font-weight: 600; font-size: 1.1rem; }
.card-cta .btn { height: 36px; background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.card-cta .btn:hover { background: var(--primary); color: #fff; }
.card-cta .btn.btn-muted, .card-cta .btn:disabled { background: var(--muted-tint); color: var(--text-faint); border-color: transparent; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--primary); color: rgba(255, 255, 255, 0.82); border-top: none; padding: 56px 28px 64px; font-size: 0.86rem; }
.footer-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px 56px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 8px; }
.footer-name { color: #fff; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.12em; }
.footer-about { margin: 6px 0 0; max-width: 30em; line-height: 1.7; white-space: pre-line; }
.footer-contact { white-space: pre-line; }
.footer-link { color: #fff; font-weight: 500; text-align: left; }
.footer-link:hover { color: #fff; text-decoration: underline; }
.footer-social .social-link { background: rgba(255, 255, 255, 0.12); color: #fff; }
.footer-social .social-link:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- home page sections (shop/sections.js) */

.view:has(> .home) { max-width: none; padding: 0; }
.sec { padding: 72px 28px; }
.sec[data-bg="soft"] { background: var(--surface-2); }
.sec[data-bg="primary"] { background: var(--primary); color: #fff; }
.sec[data-bg="primary"] .sec-title, .sec[data-bg="primary"] .sec-sub, .sec[data-bg="primary"] .text-body p,
.sec[data-bg="primary"] .it-text p, .sec[data-bg="primary"] .feature-title, .sec[data-bg="primary"] .feature-text,
.sec[data-bg="primary"] .feature-icon, .sec[data-bg="primary"] .sec-more { color: #fff; }
.sec[data-bg="primary"] .btn-line { border-color: #fff; color: #fff; }
.sec[data-bg="primary"] .btn-line:hover { background: #fff; color: var(--primary); }
.sec-inner { max-width: var(--page-max); margin: 0 auto; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-title { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.2; color: var(--text); white-space: pre-line; }
.sec-title-center { text-align: center; margin-bottom: 36px; }
.sec-sub { margin: -12px 0 28px; color: var(--text-soft); font-size: 1rem; max-width: 46em; }
.sec-sub-center { margin: 20px auto 0; text-align: center; }
.sec-more { color: var(--link); font-size: 0.9rem; white-space: nowrap; }
.sec-more:hover { color: var(--primary); }
.btn-line {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 34px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}
.btn-line:hover { background: var(--primary); color: #fff; }
.sec-media { display: block; width: 100%; }
.it-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  height: 100%;
  border: 2px dashed var(--border-strong);
  background: var(--surface-2);
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* hero: a picture or video across the page, the words where the theme puts them */
.sec-hero { padding: 0; }
.hero { position: relative; overflow: hidden; background: var(--primary); color: #fff; min-height: 70vh; }
.hero-medium { min-height: 48vh; }
.hero-large { min-height: 70vh; }
.hero-full { min-height: calc(100vh - 120px); }
.hero-bg, .hero-shade { position: absolute; inset: 0; }
.hero-bg .sec-media { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { background: rgba(0, 0, 0, var(--hero-shade, 0.35)); }
.hero-plain .hero-shade { background: linear-gradient(125deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 62%, #000) 100%); }
.hero-text-dark { color: var(--text); }
.hero-text-dark .hero-shade { background: rgba(255, 255, 255, var(--hero-shade, 0.35)); }
.hero-text-dark.hero-plain .hero-shade { background: linear-gradient(125deg, var(--surface-2) 0%, var(--primary-tint) 100%); }
.hero-content {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  max-width: var(--page-max);
  min-height: inherit;
  margin: 0 auto;
  padding: 56px 40px;
  text-align: left;
}
.hero[class*="hero-pos-top"] .hero-content { justify-content: flex-start; }
.hero[class*="hero-pos-bottom"] .hero-content { justify-content: flex-end; }
.hero-pos-top-center .hero-content, .hero-pos-center .hero-content, .hero-pos-bottom-center .hero-content { align-items: center; text-align: center; }
.hero-pos-top-right .hero-content, .hero-pos-middle-right .hero-content, .hero-pos-bottom-right .hero-content { align-items: flex-end; text-align: right; }
.hero-title { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 600; line-height: 1.15; max-width: 14em; white-space: pre-line; }
.hero-text { margin: 0; font-size: 1.08rem; max-width: 34em; opacity: 0.94; white-space: pre-line; }
.hero-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 13px 40px;
  background: #fff;
  color: var(--primary);
  border: 1px solid #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}
.hero-btn:hover { background: transparent; color: #fff; }
.hero-text-dark .hero-btn { background: var(--primary); color: #fff; border-color: var(--primary); }
.hero-text-dark .hero-btn:hover { background: transparent; color: var(--primary); }

/* products: a carousel (arrows on wide screens, swipe on phones) or a grid of the shop's own cards */
.sec-track-wrap { position: relative; }
.sec-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 16px) / 4);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.sec-carousel::-webkit-scrollbar { display: none; }
.sec-carousel > * { scroll-snap-align: start; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sec-nav {
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
}
.sec-nav.prev { left: -22px; }
.sec-nav.next { right: -22px; }
.sec-nav:hover { background: var(--primary); color: #fff; }

/* categories: a tile per category, its first product's picture */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.cat-tile { display: grid; gap: 12px; text-align: center; color: var(--text); }
.cat-tile-media { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: var(--media-radius); background: var(--surface-2); color: var(--primary); }
.cat-tile-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s; }
.cat-tile-media svg { width: 40%; height: 40%; }
.cat-tile:hover .cat-tile-media img { transform: scale(var(--hover-zoom)); }
.cat-tile-name { font-size: 0.95rem; font-weight: 500; }

/* image + text: the brand story blocks */
.it { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.it-media-right .it-media { order: 2; }
.it-media .sec-media { aspect-ratio: 4 / 3; object-fit: cover; }
.it-text { margin-top: 18px; color: var(--text-soft); font-size: 1rem; line-height: 1.85; }
.it-text p { margin: 0 0 12px; }

/* features: short promises with icons */
.features { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 36px; text-align: center; }
.feature-icon { display: block; width: 46px; height: 46px; margin: 0 auto 14px; color: var(--primary); }
.feature-icon svg { width: 100%; height: 100%; }
.feature-title { font-size: 1.05rem; font-weight: 600; }
.feature-text { margin: 6px 0 0; color: var(--text-soft); font-size: 0.9rem; }

/* text */
.sec-text-center { max-width: 820px; text-align: center; }
.sec-text-left { max-width: 900px; margin-left: max(0px, calc((100% - var(--page-max)) / 2)); }
.text-body { margin-top: 20px; color: var(--text-soft); font-size: 1.02rem; line-height: 1.9; }
.text-body p { margin: 0 0 12px; }

/* banner: a picture, GIF or video across the page, optionally with a line of text */
.sec-banner { padding: 0; }
.banner { position: relative; display: block; overflow: hidden; }
.banner-media .sec-media { width: 100%; height: auto; }
.banner-short .banner-media .sec-media { height: 260px; object-fit: cover; }
.banner-tall .banner-media .sec-media { height: 520px; object-fit: cover; }
.banner-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 40px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.45)); }
.banner-text:empty { display: none; }
.banner-title { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 600; }
.banner-sub { margin: 6px 0 0; font-size: 0.98rem; }

/* video */
.video-frame { max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-frame .sec-media { width: 100%; height: 100%; object-fit: cover; }
.video-frame .it-placeholder { height: 100%; }

/* ---------------------------------------------------------------- the theme's own buttons, corners and motion */

/* a button's own look (theme link .style; sections.js sectionButtonLook): only what is set replaces the default */
.btn-c-bg { background: var(--btn-bg) !important; }
.btn-c-fg { color: var(--btn-fg) !important; }
.btn-c-bd, .btn-c-bg { border-color: var(--btn-bd, var(--btn-bg)) !important; }
.btn-c-bg:hover, .btn-c-fg:hover, .btn-c-bd:hover { filter: brightness(0.92); }
.btn-shape-square { border-radius: 0 !important; }
.btn-shape-rounded { border-radius: 10px !important; }
.btn-shape-pill { border-radius: 999px !important; }
.btn-size-small { padding: 8px 22px !important; font-size: 0.78rem !important; }
.btn-size-medium { padding: 13px 40px !important; font-size: 0.85rem !important; }
.btn-size-large { padding: 17px 54px !important; font-size: 1rem !important; }
.btn-align-left { display: table; margin-left: 0; margin-right: auto; align-self: flex-start; }
.btn-align-center { display: table; margin-left: auto; margin-right: auto; align-self: center; }
.btn-align-right { display: table; margin-left: auto; margin-right: 0; align-self: flex-end; }

/* the hero: a button anywhere on the picture, the whole picture as a link, the picture whole at its own shape,
   a phone version of it */
/* A thing placed on the hero is anchored at its own x% / y% (its left edge at 0%, its middle at 50%, its right edge at
   100%) and kept 10px off the edges: dragged to a corner it stays on the picture (2026-10-28: a button at 0% / 100%
   hung half off a phone's screen). --ex / --ey: the place in use - the phone's own one on phones. */
.hero-btn-free, .hero-ft { --ex: var(--px); --ey: var(--py); }
.hero-btn-free { position: absolute; left: clamp(10px, var(--ex), calc(100% - 10px)); top: clamp(10px, var(--ey), calc(100% - 10px)); z-index: 3; margin: 0;
  transform: translate(calc(var(--ex) * -1), calc(var(--ey) * -1)); white-space: nowrap; }
.nexus-editing .hero-btn-free { cursor: grab; touch-action: none; user-select: none; }
.nexus-editing .hero-btn-free.is-dragging { cursor: grabbing; opacity: 0.85; }
.hero-link { position: absolute; inset: 0; z-index: 1; }
.hero-link ~ .hero-content { pointer-events: none; z-index: 2; }
.hero-link ~ .hero-content .hero-btn { pointer-events: auto; }
.nexus-editing .hero-link { display: none; }
/* texts placed anywhere on the picture (settings.texts): anchored at their place, sized to the screen */
.hero-texts { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-ft { position: absolute; left: clamp(10px, var(--ex), calc(100% - 10px)); top: clamp(10px, var(--ey), calc(100% - 10px)); max-width: calc(100% - 20px); margin: 0;
  transform: translate(calc(var(--ex) * -1), calc(var(--ey) * -1));
  font-family: var(--font-heading); font-weight: 400; line-height: 1.2; text-align: center; white-space: pre-line; overflow-wrap: anywhere; }
.hero-ft-left { left: clamp(10px, var(--ex), 70%); max-width: calc(100% - clamp(10px, var(--ex), 70%) - 10px);
  transform: translate(0, calc(var(--ey) * -1)); text-align: left; }
.hero-ft-right { left: clamp(30%, var(--ex), calc(100% - 10px)); max-width: calc(clamp(30%, var(--ex), calc(100% - 10px)) - 10px);
  transform: translate(-100%, calc(var(--ey) * -1)); text-align: right; }
.hero-ft.is-bold { font-weight: 700; }
.hero-ft.is-body { font-family: var(--font-body); }
.hero-ft.has-shadow { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.hero-ft-s { font-size: clamp(12px, 1.2vw, 17px); }
.hero-ft-m { font-size: clamp(14px, 1.8vw, 24px); }
.hero-ft-l { font-size: clamp(18px, 2.8vw, 40px); }
.hero-ft-xl { font-size: clamp(22px, 4.2vw, 60px); }
.hero-ft-xxl { font-size: clamp(26px, 6vw, 88px); }
.nexus-editing .hero-texts .hero-ft { pointer-events: auto; cursor: grab; touch-action: none; user-select: none; }
.nexus-editing .hero-ft.is-dragging { cursor: grabbing; opacity: 0.85; }
.nexus-editing .hero-ft.nexus-editing-text { cursor: text; user-select: text; }
.hero-fit-contain { min-height: 0 !important; aspect-ratio: var(--hero-ar); }
.hero-fit-contain .hero-content { position: absolute; inset: 0; min-height: 0; }
.hero-bg picture, .hero-desktop, .hero-mobile { display: block; width: 100%; height: 100%; }
.hero-mobile { display: none; }

/* products beside their title (RIMAN's 精选热销), and the calm cards */
.sec-side { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 3.2fr); gap: 48px; align-items: center; }
.sec-side-head .sec-sub { margin: 14px 0 0; }
.sec-more-line { display: inline-block; margin-top: 22px; color: var(--primary); font-weight: 500; text-decoration: underline; text-underline-offset: 6px; }
.sec-more-line:hover { color: var(--primary-hover); }
.sec-side .sec-carousel { grid-auto-columns: calc((100% - 3 * 20px) / 3.4); gap: 20px; }
.card-simple, .card-simple:hover { border: none; background: transparent; }
.card-simple .card-media { aspect-ratio: 1; background: transparent; }
.card-simple .card-media img { object-fit: contain; }
.card-simple .card-body { display: grid; gap: 8px; padding: 16px 2px 0; }
.card-simple .card-title { font-size: 1rem; line-height: 1.45; color: var(--text); }
.card-simple .price { font-size: 1rem; }
.card-shop { width: fit-content; color: var(--primary); font-weight: 600; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 5px; }
.card-shop:hover { color: var(--primary-hover); }
.cat-tiles-big { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cat-tiles-big .cat-tile-name { font-size: 1.1rem; }

/* corners of pictures and cards (the theme's 圆角), and pictures growing a little under the mouse */
.it-media, .video-frame, .card-media, .card, .banner-short, .banner-tall { border-radius: var(--media-radius); }
.it-media { overflow: hidden; }
.it-media .sec-media, .card-media img, .banner-media .sec-media { transition: transform 0.5s ease; }
.it-media:hover .sec-media, .card:hover .card-media img, .banner:hover .banner-media .sec-media { transform: scale(var(--hover-zoom)); }
@media (prefers-reduced-motion: reduce) {
  .it-media:hover .sec-media, .card:hover .card-media img, .banner:hover .banner-media .sec-media,
  .cat-tile:hover .cat-tile-media img { transform: none; }
}

/* the big groups in the header: each drops its categories down under it */
.cat-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 40;
  min-width: 210px;
  padding: 8px 0;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--media-radius);
  box-shadow: 0 14px 34px rgba(20, 30, 25, 0.1);
}
.cat-dept:hover .cat-drop, .cat-dept:focus-within .cat-drop { display: block; }
.cat-drop-link { display: block; padding: 9px 20px; color: var(--text); font-size: 0.88rem; white-space: nowrap; }
.cat-drop-link svg { display: none; }
.cat-drop-link:hover, .cat-drop-link.on { background: var(--primary-tint); color: var(--primary); }
@media (hover: none) { .cat-drop { display: none !important; } }
.subcat { border-radius: var(--media-radius); }

@media (max-width: 1100px) {
  .sec-carousel { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .sec-nav.prev { left: 4px; }
  .sec-nav.next { right: 4px; }
}
@media (max-width: 760px) {
  .header-inner { padding: 12px 12px 8px 16px; gap: 8px; }
  .brand { flex: 1 1 auto; min-width: 0; font-size: calc(1.05rem * var(--brand-scale, 1)); letter-spacing: 0.06em; }
  .brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-logo { max-width: 140px; }
  .header-actions { flex: none; gap: 0; }
  .nav-action { min-width: 34px; padding: 4px; }
  .site-header.search-open .header-inner { flex-wrap: wrap; }
  .site-header.search-open .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .category-bar-inner { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
  .sec { padding: 48px 16px; }
  .hero-content { padding: 36px 20px; }
  .hero-large { min-height: 60vh; }
  .sec-carousel { grid-auto-columns: 62%; }
  .sec-nav { display: none; }
  .it { grid-template-columns: 1fr; gap: 28px; }
  .it-media-right .it-media { order: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .banner-text { padding: 18px 20px; }
}
@media (max-width: 1100px) {
  .sec-side { grid-template-columns: 1fr; gap: 24px; }
  .sec-side .sec-carousel { grid-auto-columns: calc((100% - 2 * 20px) / 2.6); }
}
@media (max-width: 760px) {
  .hero-btn-free, .hero-ft { --ex: var(--pxm, var(--px)); --ey: var(--pym, var(--py)); }
  .hero-fit-contain { aspect-ratio: var(--hero-ar-m, var(--hero-ar)); }
  .hero-has-mobile .hero-desktop { display: none; }
  .hero-has-mobile .hero-mobile { display: block; }
  .sec-side .sec-carousel { grid-auto-columns: 62%; }
  .cat-drop { display: none !important; }
  .category-bar-inner .cat-dept { flex-shrink: 0; }
  /* 手机排版 (site editor, "手机上"): only on phones */
  .hero-m-medium { min-height: 48vh; }
  .hero-m-large { min-height: 70vh; }
  .hero-m-full { min-height: calc(100vh - 120px); }
  .hero-m-picture { min-height: 0; aspect-ratio: var(--hero-ar-pic, 4 / 5); } /* the picture's own shape (the phone picture's) */
  .hero-bg .sec-media { object-position: var(--hero-focus-m, 50% 50%); }       /* the part of the picture that stays in sight */
  .sec-hide-m { display: none; }
  .sec-cols-m1 .sec-carousel { grid-auto-columns: calc(100% - 44px); }
  .sec-cols-m2 .sec-carousel { grid-auto-columns: calc((100% - 12px - 32px) / 2); gap: 12px; }
  .sec-cols-m1 .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-cols-m2 .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
