/* ==================================================================
   ymg.css — 缘木阁实木家具 全新整站样式（ymg- 前缀，独立设计系统）
   布局：现代编辑风 · 暖木色 · 大留白 · 宋体标题
   ================================================================== */

:root {
  --wood: #8B5E3C;
  --wood-dark: #6F4A2E;
  --wood-light: #C19A6B;
  --wood-soft: #F0E7DC;
  --cream: #FAF8F5;
  --paper: #FFFFFF;
  --line: #E8E1D6;
  --ink: #2C2C2A;
  --ink-2: #6B6862;
  --ink-3: #98948C;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 10px 30px rgba(60, 45, 30, 0.10);
  --r-lg: 14px;
  --r-md: 10px;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--wood); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--wood-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; }
p { margin: 0 0 1em; }
.ymg-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ymg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--wood); outline-offset: 2px;
}

/* ---------- 顶部信息条 ---------- */
.ymg-topbar {
  background: var(--ink);
  color: #B8B4AC;
  font-size: 12.5px;
  line-height: 1;
}
.ymg-topbar .ymg-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 36px;
}
.ymg-topbar a { color: #D8D3C9; }
.ymg-topbar a:hover { color: #fff; }
.ymg-topbar-sep { margin: 0 10px; opacity: 0.4; }

/* ---------- 主头部 ---------- */
.ymg-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 90;
}
.ymg-header-in {
  display: flex; align-items: center; gap: 28px;
  height: 76px;
}
.ymg-logo {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.ymg-logo img { max-height: 52px; width: auto; }
.ymg-logo-txt {
  font-family: var(--serif);
  font-size: 21px; font-weight: 500; color: var(--ink);
  letter-spacing: 0.12em; white-space: nowrap;
}
.ymg-nav { flex: 1; min-width: 0; }
.ymg-nav > ul { display: flex; justify-content: flex-end; flex-wrap: wrap; }
.ymg-nav > ul > li { position: relative; }
.ymg-nav > ul > li > a {
  display: block;
  padding: 27px 16px;
  color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
}
.ymg-nav > ul > li > a:hover,
.ymg-nav > ul > li.ymg-on > a {
  color: var(--wood);
  border-bottom-color: var(--wood-light);
}
.ymg-sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow);
  min-width: 168px; padding: 8px 0;
  opacity: 0; visibility: hidden; transition: all 0.25s ease;
}
.ymg-nav > ul > li:hover .ymg-sub { opacity: 1; visibility: visible; }
.ymg-sub a {
  display: block; padding: 9px 22px;
  color: var(--ink-2); font-size: 13.5px; white-space: nowrap;
}
.ymg-sub a:hover { background: var(--wood-soft); color: var(--wood); }

.ymg-search { flex-shrink: 0; }
.ymg-search form {
  display: flex;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--cream); overflow: hidden;
}
.ymg-search input {
  border: 0; background: transparent; outline: none;
  padding: 8px 4px 8px 16px; width: 140px;
  font-size: 13px; color: var(--ink); font-family: var(--sans);
}
.ymg-search input::placeholder { color: var(--ink-3); }
.ymg-search button {
  border: 0; cursor: pointer;
  background: var(--wood); color: #fff;
  font-size: 13px; padding: 8px 16px;
  transition: background 0.25s ease; font-family: var(--sans);
}
.ymg-search button:hover { background: var(--wood-dark); }

.ymg-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; flex-shrink: 0;
}
.ymg-burger span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.ymg-burger.ymg-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ymg-burger.ymg-open span:nth-child(2) { opacity: 0; }
.ymg-burger.ymg-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首页轮播 ---------- */
.ymg-hero { position: relative; background: #E9DFD2; }
.ymg-hero .swiper-slide img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.ymg-hero .swiper-pagination-bullet { background: #fff; opacity: 0.5; }
.ymg-hero .swiper-pagination-bullet-active { background: var(--wood-light); opacity: 1; }

/* ---------- 通用区块 ---------- */
.ymg-section { padding: 72px 0 56px; }
.ymg-section.ymg-white { background: var(--paper); }
.ymg-sec-head { text-align: center; margin-bottom: 40px; }
.ymg-sec-kicker {
  font-size: 12px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--wood-light); margin-bottom: 10px;
}
.ymg-sec-title {
  font-family: var(--serif); font-size: 30px; font-weight: 500;
  color: var(--ink); letter-spacing: 0.1em; line-height: 1.4;
}
.ymg-sec-title::after {
  content: ""; display: block; width: 44px; height: 2px;
  background: var(--wood-light); margin: 16px auto 0;
}
.ymg-sec-sub { color: var(--ink-3); font-size: 14px; margin-top: 12px; }

/* 品类选项卡 */
.ymg-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.ymg-tabs a {
  display: inline-block; padding: 8px 20px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-2); font-size: 13.5px; background: var(--paper);
  transition: all 0.25s ease;
}
.ymg-tabs a:hover, .ymg-tabs a.ymg-on {
  background: var(--wood); border-color: var(--wood); color: #fff;
}

/* ---------- 产品卡片网格 ---------- */
.ymg-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ymg-grid.ymg-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ymg-card {
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.ymg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--wood-light);
}
.ymg-card-img {
  position: relative; display: block; overflow: hidden;
  background: #F2EDE5; aspect-ratio: 4 / 3;
}
.ymg-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.ymg-card:hover .ymg-card-img img { transform: scale(1.05); }
.ymg-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--wood); color: #fff;
  font-size: 11px; letter-spacing: 0.08em;
  padding: 3px 12px; border-radius: 999px;
}
.ymg-card-body { padding: 16px 18px 18px; text-align: center; flex: 1; }
.ymg-card-title {
  font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.5;
  display: block; margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ymg-card-title:hover { color: var(--wood); }
.ymg-price { color: var(--wood); font-size: 17px; font-weight: 500; }

/* ---------- 特色条 ---------- */
.ymg-feats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 40px 0 8px;
}
.ymg-feat { display: flex; gap: 14px; align-items: flex-start; }
.ymg-feat-ico {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%; background: var(--wood-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--wood); font-family: var(--serif); font-size: 20px; font-weight: 500;
}
.ymg-feat h4 { font-size: 15px; margin-bottom: 4px; }
.ymg-feat p { font-size: 13px; color: var(--ink-3); margin: 0; }

/* ---------- 品牌介绍 ---------- */
.ymg-brand { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.ymg-brand-txt .ymg-sec-title { text-align: left; }
.ymg-brand-txt .ymg-sec-title::after { margin: 16px 0 0; }
.ymg-brand-txt p { margin-top: 22px; font-size: 15px; }
.ymg-brand-img { border-radius: var(--r-lg); overflow: hidden; }
.ymg-brand-img img { display: block; width: 100%; }
.ymg-more {
  display: inline-block; margin-top: 10px;
  padding: 11px 32px; border-radius: 999px;
  background: var(--wood); color: #fff; font-size: 14px; letter-spacing: 0.1em;
  transition: background 0.25s ease;
}
.ymg-more:hover { background: var(--wood-dark); color: #fff; }

/* ---------- 页面头（内页） ---------- */
.ymg-pagehead {
  background:
    linear-gradient(rgba(58, 44, 30, 0.72), rgba(58, 44, 30, 0.72)),
    url() center center / cover no-repeat, #6B5138;
  color: #F1EDE5; padding: 68px 0 56px; text-align: center;
}
.ymg-pagehead h1 {
  font-family: var(--serif); font-size: 34px; font-weight: 500;
  color: #fff; letter-spacing: 0.14em;
}
.ymg-crumb { margin-top: 14px; font-size: 13px; color: #CFC8BB; }
.ymg-crumb a { color: #E7DFD4; }
.ymg-crumb a:hover { color: #fff; }

/* ---------- 列表页布局 ---------- */
.ymg-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 36px;
  padding: 56px 0;
  align-items: start;
}
.ymg-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.ymg-widget {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 24px;
}
.ymg-widget h4 {
  font-family: var(--serif); font-size: 17px; letter-spacing: 0.1em;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.ymg-cat li { margin: 2px 0; }
.ymg-cat li > a, .ymg-cat li > span {
  display: block; padding: 8px 10px; border-radius: var(--r-md);
  color: var(--ink-2); font-size: 14px;
}
.ymg-cat li > a:hover { background: var(--wood-soft); color: var(--wood); }
.ymg-cat li.ymg-on > a, .ymg-cat li.ymg-on > span {
  background: var(--wood-soft); color: var(--wood); font-weight: 500;
}
.ymg-cat .ymg-cat-sub { padding-left: 14px; }
.ymg-cat .ymg-cat-sub a { font-size: 13.5px; color: var(--ink-3); }

.ymg-side-search form { display: flex; }
.ymg-side-search input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-right: 0;
  border-radius: var(--r-md) 0 0 var(--r-md);
  padding: 9px 12px; font-size: 13px; outline: none; font-family: var(--sans);
  background: var(--cream); color: var(--ink);
}
.ymg-side-search button {
  border: 0; cursor: pointer; background: var(--wood); color: #fff;
  padding: 9px 16px; border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 13px; font-family: var(--sans);
}
.ymg-side-search button:hover { background: var(--wood-dark); }

.ymg-mini-list a {
  display: block; padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5;
}
.ymg-mini-list a:last-child { border-bottom: 0; }
.ymg-mini-list a:hover { color: var(--wood); }

/* ---------- 分页 ---------- */
.ymg-page { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.ymg-page a, .ymg-page span {
  display: inline-block; min-width: 38px; padding: 8px 12px;
  text-align: center; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); color: var(--ink-2); font-size: 13.5px;
}
.ymg-page a:hover { border-color: var(--wood-light); color: var(--wood); }
.ymg-empty { text-align: center; color: var(--ink-3); padding: 60px 0; }

/* ---------- 产品详情 ---------- */
.ymg-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ymg-gallery-main {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: #F2EDE5; aspect-ratio: 1 / 1;
}
.ymg-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ymg-gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.ymg-gallery-thumbs a {
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 1 / 1; background: #F2EDE5; display: block;
}
.ymg-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ymg-info h1 { font-family: var(--serif); font-size: 26px; letter-spacing: 0.06em; line-height: 1.5; }
.ymg-info .ymg-price { font-size: 26px; display: block; margin: 14px 0 18px; }
.ymg-info-desc { font-size: 14.5px; }
.ymg-specs { margin: 22px 0; border-top: 1px solid var(--line); }
.ymg-specs li {
  display: flex; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.ymg-specs li b {
  flex: 0 0 88px; font-weight: 500; color: var(--ink-3);
}
.ymg-detail-body {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 40px; margin-top: 44px;
}
.ymg-detail-body h3 {
  font-family: var(--serif); font-size: 20px; letter-spacing: 0.08em;
  padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.ymg-detail-body img { border-radius: var(--r-md); }
.ymg-detail-body p { font-size: 15px; }
.ymg-detail-body table { max-width: 100%; }

/* ---------- 新闻卡片 ---------- */
.ymg-news-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex; flex-direction: column;
}
.ymg-news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ymg-news-img { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #F2EDE5; }
.ymg-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ymg-news-card:hover .ymg-news-img img { transform: scale(1.05); }
.ymg-news-body { padding: 20px 22px 24px; flex: 1; }
.ymg-news-date { font-size: 12.5px; color: var(--wood-light); letter-spacing: 0.08em; }
.ymg-news-body h3 { font-size: 16.5px; line-height: 1.55; margin: 8px 0 10px; }
.ymg-news-body h3 a { color: var(--ink); }
.ymg-news-body h3 a:hover { color: var(--wood); }
.ymg-news-body p { font-size: 13.5px; color: var(--ink-3); margin: 0; }

/* ---------- 文章详情 ---------- */
.ymg-article {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 38px 44px;
}
.ymg-article h1 {
  font-family: var(--serif); font-size: 25px; line-height: 1.5;
  letter-spacing: 0.04em; margin-bottom: 14px;
}
.ymg-article-meta {
  display: flex; gap: 18px; font-size: 12.5px; color: var(--ink-3);
  padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.ymg-article-cover { border-radius: var(--r-md); margin-bottom: 24px; overflow: hidden; }
/* 封面图限高，避免超大原图撑破版面 */
.ymg-article-cover img { display: block; width: 100%; max-height: 440px; object-fit: cover; }
.ymg-article-content img { border-radius: var(--r-md); }
.ymg-article-content p { font-size: 15px; }
.ymg-article-content h2, .ymg-article-content h3 { margin: 1.2em 0 0.5em; }

/* ---------- 关于页选项卡 ---------- */
.ymg-ele-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.ymg-ele-tabs a {
  padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink-2); font-size: 13.5px;
}
.ymg-ele-tabs a:hover, .ymg-ele-tabs a.ymg-on {
  background: var(--wood); border-color: var(--wood); color: #fff;
}
.ymg-panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 40px;
}
.ymg-panel h2 {
  font-family: var(--serif); font-size: 21px; letter-spacing: 0.08em;
  padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}

/* ---------- 联系页 ---------- */
.ymg-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.ymg-contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 24px; text-align: center;
}
.ymg-contact-card h4 { font-size: 15px; margin: 10px 0 6px; }
.ymg-contact-card p { font-size: 14px; margin: 0; }
.ymg-contact-ico {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 50%;
  background: var(--wood-soft); color: var(--wood);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; font-weight: 500;
}
.ymg-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 40px;
}
.ymg-form h2 {
  font-family: var(--serif); font-size: 21px; letter-spacing: 0.08em;
  padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.ymg-form input, .ymg-form textarea {
  display: block; width: 100%; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--cream); padding: 12px 16px;
  font-size: 14px; font-family: var(--sans); color: var(--ink); outline: none;
}
.ymg-form textarea { min-height: 130px; resize: vertical; }
.ymg-form input:focus, .ymg-form textarea:focus { border-color: var(--wood-light); }
.ymg-btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--wood); color: #fff; font-size: 14px;
  letter-spacing: 0.12em; padding: 12px 40px; border-radius: 999px;
  font-family: var(--sans); transition: background 0.25s ease;
}
.ymg-btn:hover { background: var(--wood-dark); color: #fff; }

/* ---------- 页脚 ---------- */
.ymg-footer { background: #38332E; color: #B9B4AA; margin-top: 24px; }
.ymg-footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding: 60px 0 40px;
}
.ymg-footer-brand {
  font-family: var(--serif); font-size: 22px; color: #F1EDE5;
  letter-spacing: 0.14em; margin-bottom: 14px;
}
.ymg-footer-desc { font-size: 13.5px; line-height: 1.9; max-width: 340px; }
.ymg-footer-contact { font-size: 13.5px; line-height: 2; margin-top: 14px; }
.ymg-footer-contact b { color: var(--wood-light); font-weight: 500; margin-right: 6px; }
.ymg-footer h4 {
  font-family: var(--serif); color: #F1EDE5; font-size: 16px;
  letter-spacing: 0.12em; margin-bottom: 18px;
}
.ymg-footer-menu li { margin: 7px 0; }
.ymg-footer-menu a { color: #B9B4AA; font-size: 13.5px; }
.ymg-footer-menu a:hover { color: #F1EDE5; }
.ymg-copyright { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ymg-copyright .ymg-container {
  padding: 18px 20px; text-align: center;
  font-size: 12.5px; color: #8F8A81;
}
.ymg-copyright a { color: var(--wood-light); }
.ymg-copyright a:hover { color: #F1EDE5; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .ymg-grid { grid-template-columns: repeat(3, 1fr); }
  .ymg-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 991px) {
  .ymg-burger { display: flex; }
  .ymg-search { display: none; }
  .ymg-header-in { height: 64px; }
  .ymg-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); max-height: 70vh; overflow: auto;
  }
  .ymg-nav.ymg-open { display: block; }
  .ymg-nav > ul { display: block; padding: 8px 0; }
  .ymg-nav > ul > li > a { padding: 13px 24px; border-bottom: 0; }
  .ymg-sub {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-left: 2px solid var(--wood-light);
    border-radius: 0; min-width: 0; margin: 0 0 6px 24px; padding: 0;
    background: var(--cream);
  }
  .ymg-sub a { padding: 10px 22px; }
  .ymg-layout { grid-template-columns: 1fr; }
  .ymg-side { position: static; }
  .ymg-detail { grid-template-columns: 1fr; }
  .ymg-brand { grid-template-columns: 1fr; gap: 32px; }
  .ymg-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .ymg-grid, .ymg-grid.ymg-g3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ymg-section { padding: 48px 0 36px; }
  .ymg-sec-title { font-size: 24px; }
  .ymg-pagehead { padding: 46px 0 38px; }
  .ymg-pagehead h1 { font-size: 26px; }
  .ymg-feats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .ymg-article, .ymg-panel, .ymg-form, .ymg-detail-body { padding: 24px 20px; }
  .ymg-footer-grid { grid-template-columns: 1fr; padding: 44px 0 28px; }
  .ymg-hero .swiper-slide img { max-height: 320px; }
  .ymg-logo-txt { font-size: 18px; }
  .ymg-article-cover img { max-height: 220px; }
  .ymg-panel { padding: 22px 18px; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .ymg-card:hover, .ymg-news-card:hover { transform: none; }
  .ymg-card:hover .ymg-card-img img,
  .ymg-news-card:hover .ymg-news-img img { transform: none; }
}

/* ===== 产品详情正文（报价表格） ===== */
.ymg-detail-body p { line-height: 2; color: #4A4844; margin: 12px 0; }
.ymg-detail-body p b { color: #8B5E3C; }
.ymg-detail-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.ymg-detail-body table th {
  background: #8B5E3C; color: #fff; padding: 10px 14px;
  text-align: left; font-weight: 500; letter-spacing: 1px;
}
.ymg-detail-body table td { border: 1px solid #E0D6C8; padding: 9px 14px; color: #2C2C2A; }
.ymg-detail-body table tbody tr:nth-child(even) td { background: #FAF8F5; }
.ymg-detail-body table td + td { text-align: right; color: #8B5E3C; font-weight: 600; white-space: nowrap; }

/* ===== 富文本防溢出（2026-11-03 修复：图片超框 + 文字 nowrap 溢出） ===== */
/* 正文内图片一律自适应容器，禁止撑破边框 */
.ymg-article-content img,
.ymg-panel img,
.ymg-detail-body img,
#maximg img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 14px auto;
  border-radius: var(--r-md);
}
/* 强制正常换行，屏蔽编辑器残留的 text-wrap-mode: nowrap / white-space: nowrap */
.ymg-panel, .ymg-panel p, .ymg-panel span, .ymg-panel div, .ymg-panel li,
.ymg-article-content, .ymg-article-content p, .ymg-article-content span, .ymg-article-content div,
.ymg-detail-body p, .ymg-detail-body span, .ymg-detail-body div {
  white-space: normal !important;
  text-wrap-mode: wrap !important;
  overflow-wrap: break-word;
  word-break: normal;
}
/* 表格允许横向滚动，避免宽表格溢出容器 */
.ymg-detail-body, .ymg-panel, .ymg-article-content { overflow-x: auto; }
