/* GemKnowledge 前台样式 - 干净专业阅读风 */
:root {
  --accent: #1B4332;
  --accent-light: #2D6A4F;
  --accent-bg: #F0F4F1;
  --text: #2D2D2D;
  --text-light: #6B6B6B;
  --text-muted: #707070;
  --border: #E5E5E5;
  --bg: #FFFFFF;
  --bg-soft: #F8F9FA;
  --radius: 6px;
  --content-width: 720px;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Source Serif Pro", "Noto Serif SC", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; display: block; }

/* 顶部导航 */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--text); font-weight: 400; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-search input {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 14px;
  width: 200px;
  outline: none;
  transition: border-color .2s;
}
.header-search input:focus { border-color: var(--accent); }
.header-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
}

/* 阅读进度条 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 200;
  width: 0;
  transition: width .1s;
}

/* Hero 区 */
.hero {
  position: relative;
  background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.95)), url('/uploads/shared/jwwsl_p61_23.jpg') center/cover no-repeat;
  padding: 80px 24px 70px;
  text-align: center;
}
.hero h1 {
  font-size: 38px;
  margin-bottom: 12px;
  color: var(--accent);
}
.hero p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 28px;
}
.hero-search {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}
.hero-search input {
  flex: 1;
  border: 2px solid var(--accent);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 14px 20px;
  font-size: 16px;
  outline: none;
}
.hero-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
}
.hero-search button:hover { background: var(--accent-light); }

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* 区块标题 */
.section-title {
  font-size: 24px;
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* 精选文章 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.featured-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.featured-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.featured-card .cover {
  height: 180px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.featured-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.featured-card .body { padding: 20px; }
.featured-card .cat-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.featured-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.featured-card h3 a { color: var(--text); }
.featured-card h3 a:hover { color: var(--accent); }
.featured-card .meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* 文章列表 */
.article-list { display: flex; flex-direction: column; gap: 28px; }
.article-item {
  display: flex;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.article-item .thumb {
  width: 220px;
  min-width: 220px;
  height: 140px;
  background: var(--accent-bg);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-item .info { flex: 1; }
.article-item .cat-tag {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-block;
}
.article-item h2 {
  font-size: 20px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.article-item h2 a { color: var(--text); }
.article-item h2 a:hover { color: var(--accent); }
.article-item .excerpt {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-item .meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

/* 分类入口 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.category-card {
  text-align: center;
  padding: 24px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.category-card:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.category-card .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  color: var(--accent);
}
.category-card .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.category-card .count {
  font-size: 12px;
  color: var(--text-muted);
}

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.tag-cloud a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-soft);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-light);
  transition: all .2s;
}
.tag-cloud a:hover {
  background: var(--accent);
  color: #fff;
}

/* 侧边栏 */
.sidebar { width: 300px; min-width: 300px; }
.sidebar-widget {
  margin-bottom: 32px;
}
.sidebar-widget h4 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-family: inherit;
}
.sidebar-popular li {
  list-style: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.sidebar-popular li:last-child { border-bottom: none; }
.sidebar-popular .num {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  min-width: 28px;
  font-family: Georgia, serif;
}
.sidebar-popular a {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.sidebar-popular a:hover { color: var(--accent); }

/* 带侧边栏布局 */
.layout-with-sidebar {
  display: flex;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
}
.layout-with-sidebar .main-content { flex: 1; min-width: 0; }

/* 面包屑 */
.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 16px 0;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { margin: 0 8px; }

/* 文章详情 */
.article-header {
  margin-bottom: 32px;
}
.article-header h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.article-meta .author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-meta .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}
.article-cover {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
  background: var(--accent-bg);
}

/* TOC */
.toc-box {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 32px;
}
.toc-box .toc-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toc-box ul { list-style: none; }
.toc-box ul ul { padding-left: 20px; }
.toc-box li { margin: 6px 0; }
.toc-box a {
  font-size: 14px;
  color: var(--text-light);
  display: block;
  padding: 2px 0;
}
.toc-box a:hover { color: var(--accent); }

/* 正文 */
.article-body {
  font-size: 17px;
  line-height: 1.9;
}
.article-body h2 {
  font-size: 26px;
  margin: 40px 0 16px;
  padding-top: 20px;
  scroll-margin-top: 80px;
}
.article-body h3 {
  font-size: 21px;
  margin: 28px 0 12px;
  scroll-margin-top: 80px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol {
  margin: 0 0 18px 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--bg-soft);
  color: var(--text-light);
  font-style: italic;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.article-body th {
  background: var(--accent-bg);
  font-weight: 600;
  color: var(--accent);
}
.article-body img {
  border-radius: var(--radius);
  margin: 20px 0;
}
.article-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* FAQ */
.faq-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.faq-section h3 {
  font-size: 22px;
  margin-bottom: 20px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer {
  padding: 0 20px 16px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
}

/* 文章标签 */
.article-tags {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-tags a {
  padding: 5px 14px;
  background: var(--bg-soft);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-light);
}
.article-tags a:hover { background: var(--accent); color: #fff; }

/* 作者卡片 */
.author-card {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.author-card .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  flex-shrink: 0;
}
.author-card .info h4 { font-size: 17px; margin-bottom: 4px; font-family: inherit; }
.author-card .info .expertise { font-size: 13px; color: var(--accent); margin-bottom: 8px; }
.author-card .info p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* CTA */
.cta-box {
  margin-top: 40px;
  padding: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
}
.cta-box h4 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}
.cta-box p {
  font-size: 15px;
  opacity: .9;
  margin-bottom: 16px;
}
.cta-box a {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  padding: 10px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
}
.cta-box a:hover { background: var(--accent-bg); }

/* 相关文章 */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-section h3 { font-size: 22px; margin-bottom: 20px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.related-card .thumb {
  height: 120px;
  background: var(--accent-bg);
}
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card .body { padding: 14px; }
.related-card h4 { font-size: 15px; line-height: 1.4; font-family: inherit; }
.related-card h4 a { color: var(--text); }
.related-card h4 a:hover { color: var(--accent); }

/* 上一篇下一篇 */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 20px;
}
.post-nav a {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.post-nav a:hover { border-color: var(--accent); background: var(--accent-bg); }
.post-nav .label { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.post-nav .next { text-align: right; }

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-light);
}
.pagination .page-current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

/* 页脚 */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 0 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h2, .footer-col h5 {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--text);
  font-family: inherit;
}
.footer-col p, .footer-col a {
  font-size: 14px;
  color: var(--text-light);
  line-height: 2;
  display: block;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* 404 */
.error-page {
  text-align: center;
  padding: 80px 24px;
}
.error-page h1 { font-size: 72px; color: var(--accent); margin-bottom: 16px; }
.error-page p { font-size: 18px; color: var(--text-light); margin-bottom: 24px; }
.error-page a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 500;
}

/* 搜索高亮 */
.search-highlight { background: #FFF3CD; padding: 1px 3px; border-radius: 2px; }

/* 关于页 */
.about-section { margin-bottom: 40px; }
.about-section h2 { font-size: 26px; margin-bottom: 16px; color: var(--accent); }
.about-section p { margin-bottom: 14px; color: var(--text-light); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.team-card {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.team-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  margin: 0 auto 16px;
}
.team-card h4 { font-size: 18px; margin-bottom: 4px; font-family: inherit; }
.team-card .role { font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.team-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* 联系表单 */
.contact-form { max-width: 600px; }
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 20px;
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: var(--radius);
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
}
.contact-form button:hover { background: var(--accent-light); }
.form-success {
  background: #D4EDDA;
  color: #155724;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* 分类页头部 */
.category-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.category-header h1 { font-size: 30px; margin-bottom: 8px; }
.category-header p { color: var(--text-light); font-size: 16px; }

/* 响应式 */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .layout-with-sidebar { flex-direction: column; }
  .sidebar { width: 100%; min-width: unset; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .article-item { flex-direction: column; }
  .article-item .thumb { width: 100%; min-width: unset; height: 180px; }
  .main-nav { display: none; }
  .hero h1 { font-size: 28px; }
  .article-header h1 { font-size: 26px; }
}

/* 分类较多（13 个）在 1440px 下放不进一行：
   第一行 品牌 + 搜索框，第二行 导航，避免搜索框单独占一行或撑出横向滚动条 */
@media (max-width: 1700px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
    row-gap: 8px;
  }
  .main-nav {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .main-nav a { font-size: 14px; }
  .header-search { order: 2; margin-left: auto; }
  .header-search input { width: 220px; }
}

/* Mobile Hamburger Menu */
.nav-close { display: none; }
.hamburger {
    display: none;
    background: #1B4332;
    border: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    position: relative;
    z-index: 200;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    margin: 2px 0;
    transition: .3s;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
    .hamburger {
        display: flex !important;
    }
    /* 移动端头部：只留 品牌 + 汉堡按钮（搜索框由 JS 移进抽屉，首页顶部本来就有搜索框，避免重复） */
    .header-inner {
        height: auto !important;
        min-height: 60px;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 16px;
    }
    .site-logo {
        font-size: 19px;
        white-space: nowrap;
    }
    .header-inner .hamburger {
        margin-left: auto;
        order: 2;
    }
    /* 头部不再显示搜索框；抽屉内的那个由下面的规则恢复显示 */
    .header-search { display: none !important; }
    .main-nav .header-search {
        display: flex !important;
        order: 0 !important;
        flex-basis: auto !important;
        width: 100% !important;
        padding: 0 20px 16px !important;
        margin: 0 0 8px !important;
        border-bottom: 1px solid var(--border);
    }
    .header-search input {
        width: 100%;
        min-width: 0;
        flex: 1;
    }
    .nav-close {
        display: flex !important;
        position: absolute;
        top: 14px;
        right: 16px;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: #f4f1ea;
        border: 0;
        border-radius: 50%;
        color: #1B4332;
        cursor: pointer;
        z-index: 5;
    }
    .main-nav {
        display: block !important;
        position: relative;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 300px !important;
        max-width: 85vw !important;
        background: #fff !important;
        padding: 60px 0 24px !important;
        transform: translateX(100%) !important;
        transition: transform .3s ease !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        z-index: 150 !important;
        height: 100vh !important;
        height: 100dvh !important;
        box-shadow: -2px 0 10px rgba(0,0,0,0.15) !important;
        -webkit-tap-highlight-color: transparent;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .main-nav.open {
        transform: translateX(0) !important;
    }
    /* 移动端抽屉：加大每一项的触控高度（原先每项仅约 20px） */
    .main-nav > a,
    .main-nav > .nav-dd,
    .main-nav > .header-search {
        display: block !important;
        min-height: 48px;
    }
    .main-nav > a {
        padding: 12px 24px !important;
        border-bottom: 1px solid var(--border);
        font-size: 16px !important;
        text-decoration: none;
        color: #333 !important;
        display: block !important;
        align-items: center;
    }
    .main-nav .nav-dd > .dd-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 12px 24px !important;
        border-bottom: 1px solid var(--border);
        font-size: 16px !important;
        color: #333 !important;
        text-decoration: none;
    }
    .main-nav .dd-panel {
        display: none !important;
        background: #f8f6f2;
        padding: 0 0 8px 0 !important;
        border: none;
        box-shadow: none;
        position: static !important;
    }
    .main-nav .nav-dd:hover > .dd-panel { display: none !important; }
    .main-nav .nav-dd.open > .dd-panel { display: block !important; }
    .main-nav .dd-panel a {
        display: block !important;
        padding: 10px 24px 10px 36px !important;
        font-size: 14px !important;
        min-height: 0;
        border-bottom: none;
        color: #555 !important;
    }
    .main-nav .dd-panel a small { color: #999; }
    .main-nav .dd-cols { display: block !important; }
    .main-nav .dd-col { min-width: 0 !important; }
    .main-nav .dd-all { padding: 10px 24px 10px 36px !important; display: block !important; }
    .main-nav .header-search {
        display: block !important;
        padding: 12px 16px !important;
        border-bottom: 1px solid var(--border);
    }
    .main-nav .header-search input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 15px;
    }
}
/* ============================================================
   PRODUCTS / SHOP MODULE (2026-11) — gemwco 改造
   ============================================================ */

/* ---------- 导航下拉 ---------- */
.main-nav .nav-dd { position: relative; }
.main-nav .dd-toggle { display: inline-flex; align-items: center; gap: 4px; }
.main-nav .dd-caret { font-size: 10px; opacity: .7; }
.main-nav .dd-panel {
    display: none; position: absolute; top: 100%; left: 0; z-index: 300;
    min-width: 240px; background: #fff; border: 1px solid #e8e2d9;
    border-radius: 8px; box-shadow: 0 12px 32px rgba(20,40,30,.12);
    padding: 10px 0; margin-top: 4px;
}
.main-nav .nav-dd:hover > .dd-panel { display: block; }
.main-nav .dd-panel a {
    display: block; padding: 8px 16px; font-size: 14px; color: #3a3a3a; text-decoration: none;
}
.main-nav .dd-panel a:hover { background: #f4f1ea; color: #1B4332; }
.main-nav .dd-panel a small { color: #9a9a9a; font-size: 12px; }
.main-nav .dd-all { font-weight: 600; border-bottom: 1px solid #eee; margin-bottom: 6px; }
.main-nav .dd-cols { display: flex; gap: 0 12px; }
.main-nav .dd-col { min-width: 190px; flex: 1; }

/* 移动端：抽屉内展开二级菜单（已合并到上方抽屉媒体查询，此处删除重复） */

/* ---------- 信任条（首页） ---------- */
.trust-strip { background: #1B4332; color: #fff; padding: 14px 0; }
.trust-strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.trust-item { display: flex; flex-direction: column; gap: 2px; }
.trust-item strong { font-size: 16px; letter-spacing: .3px; }
.trust-item span { font-size: 12.5px; opacity: .8; }

/* ---------- 产品分类卡片（首页） ---------- */
.home-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 32px; }
.home-cat-card { position: relative; display: block; border-radius: 10px; overflow: hidden; text-decoration: none; background: #fff; border: 1px solid #ece7df; }
.home-cat-card .media { display: block; aspect-ratio: 1/1; overflow: hidden; background: #f6f3ee; }
.home-cat-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.home-cat-card:hover .media img { transform: scale(1.05); }
.home-cat-card .body { display: block; padding: 10px 12px; }
.home-cat-card .name { display: block; font-weight: 600; font-size: 14.5px; color: #1c1c1c; }
.home-cat-card .count { display: block; font-size: 12.5px; color: #8a8a8a; margin-top: 2px; }

/* ---------- 产品网格（通用） ---------- */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 16px 0 28px; }
.p-card { background: #fff; border: 1px solid #ece7df; border-radius: 10px; overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.p-card:hover { box-shadow: 0 8px 24px rgba(20,40,30,.10); transform: translateY(-2px); }
.p-card-media { display: block; aspect-ratio: 1/1; background: #f6f3ee; overflow: hidden; }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; }
.p-card-media:hover img { transform: scale(1.04); }
.p-card-body { padding: 10px 12px 12px; }
.p-card-cat { display: inline-block; font-size: 12px; color: #7a6a55; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; text-decoration: none; }
.p-card-body h3 { margin: 0 0 4px; font-size: 14.5px; line-height: 1.35; font-weight: 600; }
.p-card-body h3 a { color: #1c1c1c; text-decoration: none; }
.p-card-body h3 a:hover { color: #1B4332; }
.p-card-sku { font-size: 12px; color: #9a9a9a; margin-bottom: 6px; }
.p-card-price { font-size: 14px; font-weight: 600; color: #b3541e; }
.p-card-price .price-was { text-decoration: line-through; color: #b8b8b8; font-weight: 400; margin-left: 6px; }
.p-img-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 160px; background: linear-gradient(135deg,#1B4332,#2D6A4F); color: #fff; font-size: 13px; letter-spacing: .5px; }
.p-img-fallback.big { min-height: 320px; font-size: 18px; }

/* ---------- 产品列表页 ---------- */
.shop-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; }
.shop-head h1 { font-size: 28px; margin: 0 0 8px; color: #1c1c1c; }
.shop-head-intro { color: #555; max-width: 760px; line-height: 1.65; }
.shop-meta { font-size: 13.5px; color: #8a8a8a; margin: 10px 0 18px; }
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-block; padding: 7px 14px; border: 1px solid #dcd4c8; border-radius: 20px; font-size: 13px; color: #555; text-decoration: none; background: #fff; }
.chip:hover { border-color: #1B4332; color: #1B4332; }
.chip.active { background: #1B4332; border-color: #1B4332; color: #fff; }
.chip small { opacity: .75; }
.shop-sort { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #777; margin-bottom: 14px; }
.shop-sort a { color: #555; text-decoration: none; padding: 3px 8px; border-radius: 4px; }
.shop-sort a.active { background: #f0ece4; color: #1B4332; font-weight: 600; }
.shop-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #f4f1ea; border: 1px solid #e8e2d9; border-radius: 12px; padding: 24px 28px; margin: 28px 0 8px; }
.shop-cta h3 { margin: 0 0 6px; font-size: 18px; color: #1c1c1c; }
.shop-cta p { margin: 0; color: #555; font-size: 14px; line-height: 1.6; max-width: 640px; }
.btn-cta { display: inline-block; background: #b3541e; color: #fff; padding: 12px 22px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.btn-cta:hover { background: #9c471a; }
.btn-ghost { display: inline-block; border: 1.5px solid rgba(255,255,255,.85); color: #fff; padding: 11px 22px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 18px; }
.btn-block { width: 100%; border: none; cursor: pointer; }
.section-more { float: right; font-size: 13.5px; color: #1B4332; text-decoration: none; font-weight: 600; }

/* ---------- 产品详情页（淘宝式 PDP） ---------- */
.pdp { max-width: 1200px; margin: 0 auto; padding: 16px 20px 56px; }
.pdp-bc { padding: 0 0 14px; }
.pdp-bc a { color: #8a8a8a; text-decoration: none; }
.pdp-bc a:hover { color: #1B4332; }
.pdp-bc strong { color: #333; }
.pdp-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-bottom: 36px; }
.pdp-gallery { position: sticky; top: 20px; }
.pdp-stage { position: relative; background: #fff; border: 1px solid #ece7df; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; }
.pdp-stage img { width: 100%; height: 100%; object-fit: contain; }
.pdp-badge { position: absolute; top: 12px; left: 12px; background: #b3541e; color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 5px; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.pdp-thumbs img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; background: #f6f3ee; flex: 0 0 auto; }
.pdp-thumbs img.active { border-color: #1B4332; }
.pdp-info h1.pdp-title { font-size: 24px; line-height: 1.3; margin: 0 0 8px; color: #1c1c1c; }
.pdp-sku { font-size: 13px; color: #8a8a8a; margin-bottom: 14px; }
.pdp-sku a { color: #1B4332; text-decoration: none; }
.pdp-price { font-size: 26px; font-weight: 700; color: #b3541e; margin-bottom: 4px; }
.pdp-price .price-was { text-decoration: line-through; color: #b8b8b8; font-weight: 400; margin-left: 10px; font-size: 20px; }
.pdp-price .price-wholesale { font-size: 19px; }
.pdp-price-note { font-size: 12.5px; color: #8a8a8a; margin-bottom: 14px; }
.pdp-summary { background: #f8f6f1; border-left: 3px solid #1B4332; padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: 14px; color: #444; line-height: 1.6; margin-bottom: 14px; }
.pdp-quick { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.pdp-quick td { padding: 7px 10px; border-bottom: 1px dashed #e8e2d9; }
.pdp-quick td:first-child { color: #8a8a8a; width: 130px; }
.pdp-inquiry { background: #f4f1ea; border: 1px solid #e8e2d9; border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.pdp-inquiry h3 { margin: 0 0 12px; font-size: 16px; color: #1c1c1c; }
.inq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pdp-inquiry input, .pdp-inquiry textarea { width: 100%; box-sizing: border-box; border: 1px solid #dcd4c8; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; background: #fff; }
.pdp-inquiry textarea { resize: vertical; margin-bottom: 10px; }
.pdp-inquiry .btn-cta { margin-top: 4px; }
.inq-or { margin-top: 10px; font-size: 13px; color: #666; }
.inq-or a { color: #1B4332; font-weight: 600; text-decoration: none; }
.inq-ok { background: #e7f2e9; border: 1px solid #c4ddc9; color: #1c4d2a; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.pdp-trust { list-style: none; margin: 0; padding: 0; font-size: 13px; color: #555; line-height: 1.9; }
.pdp-program { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(135deg, #1B4332, #2D6A4F); color: #fff; border-radius: 10px; padding: 14px 16px; flex-wrap: wrap; }
.pdp-program .pp-text { display: flex; flex-direction: column; gap: 2px; }
.pdp-program .pp-text strong { font-size: 14.5px; }
.pdp-program .pp-text span { font-size: 12.5px; color: #d9eadf; }
.pdp-program .btn-cta { margin: 0; white-space: nowrap; }

/* PDP 下方 */
.pdp-detail { margin-bottom: 36px; }
.pdp-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e8e2d9; margin-bottom: 18px; }
.pdp-tabs button { background: none; border: none; padding: 10px 18px; font-size: 15px; font-weight: 600; color: #888; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit; }
.pdp-tabs button.active { color: #1B4332; border-bottom-color: #1B4332; }
.pdp-pane { display: none; }
.pdp-pane.active { display: block; }
.pdp-pane p { line-height: 1.75; color: #444; }
.pdp-pane h2, .pdp-pane h3 { color: #1c1c1c; }
.pdp-pane img { max-width: 100%; height: auto; border-radius: 8px; }
.pdp-spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pdp-spec-table td { padding: 9px 12px; border-bottom: 1px solid #ece7df; }
.pdp-spec-table td:first-child { color: #8a8a8a; width: 220px; }
.ship-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ship-grid h4 { margin: 0 0 6px; color: #1c1c1c; font-size: 15px; }
.ship-grid p { margin: 0; font-size: 14px; line-height: 1.65; color: #555; }

/* PDP EEAT 信任区 */
.pdp-eeat { background: #faf8f5; border: 1px solid #ece7df; border-radius: 12px; padding: 22px 24px; margin-bottom: 36px; }
.eeat-lead { font-size: 14px; line-height: 1.7; color: #444; margin-bottom: 16px; }
.eeat-lead strong { color: #1c1c1c; }
.eeat-lead a { color: #1B4332; }
.eeat-certs { display: flex; flex-wrap: wrap; gap: 14px; }
.eeat-certs .cert { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1px solid #ece7df; border-radius: 10px; padding: 12px 14px; min-width: 120px; }
.eeat-certs .cert img { width: 64px; height: 64px; object-fit: contain; }
.eeat-certs .cert span { font-size: 12px; color: #666; text-align: center; }

/* 页脚证书条 */
.footer-certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; padding: 16px 20px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.cert-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-light); }
.cert-mini img { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }

/* PDP 相关产品 */
.pdp-related h2 { font-size: 20px; margin: 0 0 16px; color: #1c1c1c; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .p-grid { grid-template-columns: repeat(3, 1fr); }
    .home-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .pdp-top { grid-template-columns: 1fr; gap: 20px; }
    .pdp-gallery { position: static; }
    .p-grid { grid-template-columns: repeat(2, 1fr); }
    .home-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-cta { flex-direction: column; align-items: flex-start; }
    .ship-grid { grid-template-columns: 1fr; }
    .inq-row { grid-template-columns: 1fr; }
    .pdp-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pdp-tabs button { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 560px) {
    .p-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .home-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pdp-info h1.pdp-title { font-size: 20px; }
    .trust-strip-inner { justify-content: flex-start; }
}

/* icon SVG upgrade: sizing & alignment */
.feature-icon svg,.feature-ico svg,.stars svg,.quote-stars svg,.testi-stars svg,.rating svg,
.brand-mark svg,.brand svg,.logo svg,.footer-logo svg,.footer-brand svg,.caret svg,.arrow svg,
.hamburger svg,.nav-toggle svg,.cat-icon svg,.cover-icon svg,.related-icon svg,.ar svg,.ic svg,
.qs-title svg,.tags-label svg,.inquiry-float svg,.cta-box svg{vertical-align:middle}
.stars svg,.quote-stars svg,.testi-stars svg,.rating svg{width:1em;height:1em}
.cat-icon svg{width:1.15em;height:1.15em}
.cover-icon svg,.related-icon svg{width:1em;height:1em}

.pricing-note{background:var(--accent-bg);border:1px solid var(--border);border-radius:var(--radius);padding:24px 28px;margin:28px 0 8px}
.pricing-note h3{margin:0 0 8px;font-size:17px;color:var(--accent)}
.pricing-note p{margin:0;color:var(--text);font-size:14px;line-height:1.7;max-width:760px}

/* ---------- in-article figures (SEO image support) ---------- */
.article-figure{margin:32px 0; max-width:100%;}
.article-figure img{width:100%; height:auto; display:block; border:1px solid #e7eaee;}
.article-figure figcaption{margin-top:10px; font-size:12.5px; line-height:1.6; color:#6b7280;}
.article-body .article-figure:first-child{margin-top:0;}

/* ---------- SEO blocks: related products + home guides ---------- */
.seo-related{margin:40px 0 8px;padding-top:24px;border-top:1px solid #e7eaee;}
.seo-related h2{font-size:18px;margin:0 0 12px;}
.seo-related ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:10px 24px;}
.seo-related li{margin:0;}
.seo-related a{text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:1px;}
.seo-guides{padding:52px 0;border-top:1px solid #e7eaee;}
.seo-guides h2{font-size:22px;margin:0 0 16px;}
.seo-guides ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px 24px;}
.seo-guides li{margin:0;}
.seo-guides a{text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:1px;line-height:1.5;display:inline-block;}

/* Mobile: enforce minimum 12px text (class added by JS) */
@media (max-width: 768px) { html body .fs-fix.fs-fix { font-size: 12px !important; } }

/* ---------- mobile: 40px minimum touch targets ---------- */
@media (max-width: 768px){
  .faq-item summary,.home-faq summary{min-height:40px;box-sizing:border-box}
  button[aria-label="Search"]{min-width:40px;min-height:40px;box-sizing:border-box}
}

/* ---------- GemWCO deep mobile layout (2026-11) ---------- */
/* Keep desktop unchanged. !important is used only where page templates carry
   inline <style> blocks after this stylesheet (hero, home steps, article). */
@media (max-width:768px){
  html{scroll-padding-top:72px;}
  body{font-size:16px;line-height:1.65;padding-bottom:calc(58px + env(safe-area-inset-bottom));}
  .container{padding-left:16px;padding-right:16px;}
  .content-narrow{padding-left:18px;padding-right:18px;}
  .header-inner{padding:10px 16px;min-height:60px;}
  .site-logo{font-size:19px;}
  .hamburger{width:44px;height:44px;}
  .main-nav>a,.main-nav>.nav-dd,.main-nav>.header-search{min-height:48px;}
  .main-nav .dd-panel a{min-height:40px;display:flex!important;align-items:center;}
  .section-title{font-size:22px;line-height:1.35;margin:36px 0 18px;padding-bottom:10px;gap:8px;}
  .section-more{min-height:40px;display:inline-flex;align-items:center;}
  .breadcrumb{padding:12px 16px 0;font-size:12px;line-height:1.55;gap:5px;margin-bottom:18px;}
  .breadcrumb span{margin:0 3px;}
  .btn-cta,.btn-ghost{min-height:44px;line-height:1.4;}

  /* A shorter, more focused mobile hero without removing any search or CTA. */
  .hero{padding:62px 20px 54px!important;}
  .hero h1{font-size:30px!important;line-height:1.25!important;margin-bottom:14px!important;}
  .hero p{font-size:15px!important;line-height:1.65!important;margin-bottom:18px!important;}
  .hero-search{width:100%;max-width:520px;}
  .hero-search input{min-width:0;padding:12px 14px;font-size:16px;}
  .hero-search button{padding:12px 18px;min-height:48px;}
  .hero-cta{gap:10px;margin-top:16px;}
  .hero-cta .btn-cta,.hero-cta .btn-ghost{max-width:360px;min-height:46px;}
  .trust-strip-inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:0 20px;}
  .trust-item:last-child{grid-column:1/-1;}
  .trust-item strong{font-size:15px;}
  .trust-item span{font-size:11.5px;line-height:1.45;}

  /* Compact two-column product and category cards. */
  .home-cat-grid,.p-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 24px;}
  .home-cat-card,.p-card{min-width:0;}
  .home-cat-card .media{aspect-ratio:4/3;}
  .home-cat-card .body{padding:10px 11px;}
  .home-cat-card .name{font-size:14px;line-height:1.4;overflow-wrap:break-word;}
  .home-cat-card .count{font-size:11.5px;}
  .p-card-media{aspect-ratio:4/3;}
  .p-card-body{padding:10px;}
  .p-card-cat{font-size:10.5px;line-height:1.4;margin-bottom:4px;letter-spacing:.2px;}
  .p-card-body h3{font-size:14px;line-height:1.42;margin-bottom:5px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
  .p-card-sku{font-size:11px;line-height:1.4;margin-bottom:5px;overflow-wrap:anywhere;}
  .p-card-price{font-size:12.5px;line-height:1.45;overflow-wrap:anywhere;}

  /* Six OEM steps become readable cards rather than three narrow columns. */
  .oem-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:12px 0 24px!important;}
  .oem-step{padding:14px 12px!important;}
  .oem-step h4{font-size:14px!important;line-height:1.4;}
  .oem-step p{font-size:12px!important;line-height:1.5;}
  .home-factory{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:12px 0 24px!important;}
  .shop-cta{padding:20px;margin:24px 0 8px;gap:16px;}
  .shop-cta .btn-cta{width:100%;text-align:center;white-space:normal;}
  .pricing-note{padding:18px 20px;margin:24px 0 8px;}
  .pricing-note p{font-size:13.5px;line-height:1.65;}
  .why-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 24px;}
  .why-item{padding:14px;}
  .why-item h4{font-size:14px;line-height:1.45;}
  .why-item p{font-size:12.5px;line-height:1.6;}
  .review-grid{gap:12px;margin:12px 0 24px;}
  .review-card{padding:18px 16px;}
  .review-card blockquote{font-size:13.5px;line-height:1.65;}
  .home-faq{margin:12px auto 24px;}
  .home-faq details{padding:12px 14px;margin-bottom:8px;}
  .home-faq summary{min-height:44px;display:flex;align-items:center;font-size:14px;line-height:1.5;}

  /* Featured articles: two cards per row instead of full-width stacked cards. */
  .featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:28px;}
  .featured-card{min-width:0;}
  .featured-card .cover{height:130px;}
  .featured-card .body{padding:12px;}
  .featured-card .cat-tag{font-size:10.5px;line-height:1.4;margin-bottom:5px;}
  .featured-card h3{font-size:14px;line-height:1.45;margin-bottom:6px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
  .featured-card .meta{font-size:11px;line-height:1.5;}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:28px;}
  .category-card{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:10px;align-items:center;text-align:left;padding:13px 12px;}
  .category-card .icon{width:28px;height:28px;margin:0;grid-row:1/3;}
  .category-card .name{font-size:13.5px;line-height:1.4;margin:0;}
  .category-card .count{font-size:11px;line-height:1.4;}

  /* Latest/category article lists keep the thumbnail but drop mobile excerpts. */
  .article-list{gap:16px;}
  .article-item{flex-direction:row;gap:14px;padding-bottom:16px;align-items:flex-start;}
  .article-item .thumb{width:128px;min-width:128px;height:104px;border-radius:6px;}
  .article-item .info{min-width:0;}
  .article-item .cat-tag{font-size:10.5px;line-height:1.4;margin-bottom:4px;}
  .article-item h2{font-size:15px;line-height:1.45;margin-bottom:6px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
  .article-item .excerpt{display:none;}
  .article-item .meta{font-size:11px;line-height:1.45;gap:5px 10px;flex-wrap:wrap;}
  .article-item .meta span:first-child{display:none;}
  .tag-cloud{gap:8px;margin-bottom:28px;}
  .tag-cloud a{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;font-size:12.5px;}

  /* Catalog: one-line swipeable filters put products back above the fold. */
  .shop-wrap{padding:18px 16px 36px;}
  .shop-head h1{font-size:26px;line-height:1.3;}
  .shop-head-intro{font-size:15px;line-height:1.65;}
  .shop-meta{margin:8px 0 12px;font-size:12.5px;}
  .shop-filters{flex-wrap:nowrap;overflow-x:auto;gap:8px;margin-bottom:8px;padding:4px 0 10px;-webkit-overflow-scrolling:touch;scrollbar-width:thin;}
  .shop-filters .chip{flex:0 0 auto;display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;white-space:nowrap;font-size:12.5px;}
  .shop-sort{overflow-x:auto;gap:7px;margin-bottom:10px;padding-bottom:6px;white-space:nowrap;-webkit-overflow-scrolling:touch;}
  .shop-sort>span,.shop-sort>a{flex:0 0 auto;}
  .shop-sort a{display:inline-flex;align-items:center;min-height:38px;padding:6px 9px;}
  .pagination .page-link,.pagination .page-current{min-width:42px;min-height:44px;}

  /* PDP: title/SKU, gallery, then price/specs/inquiry. */
  .pdp{padding:12px 16px 40px;}
  .pdp-top{display:flex;flex-direction:column;align-items:stretch;gap:0;margin-bottom:28px;}
  .pdp-gallery,.pdp-info{display:contents;}
  .pdp-info h1.pdp-title{order:1;font-size:23px;line-height:1.32;margin:0 0 7px;overflow-wrap:anywhere;}
  .pdp-sku{order:2;margin-bottom:0;font-size:12px;}
  .pdp-gallery>.pdp-stage{order:3;aspect-ratio:4/3;max-height:340px;margin-top:16px;}
  .pdp-gallery>.pdp-thumbs{order:4;margin-top:10px;gap:8px;padding-bottom:3px;scrollbar-width:none;}
  .pdp-thumbs::-webkit-scrollbar{display:none;}
  .pdp-thumbs img{width:64px;height:64px;}
  .pdp-info>:not(.pdp-title):not(.pdp-sku){order:5;}
  .pdp-price{font-size:21px;line-height:1.4;margin-top:18px;}
  .pdp-price .price-wholesale{font-size:17px;}
  .pdp-price-note{font-size:12px;line-height:1.55;}
  .pdp-summary{font-size:13.5px;line-height:1.65;padding:12px;}
  .pdp-quick{font-size:13px;}
  .pdp-quick td,.pdp-quick th{padding:8px;line-height:1.45;}
  .pdp-inquiry{padding:16px 14px;}
  .pdp-inquiry input,.pdp-inquiry textarea{min-height:46px;font-size:16px;}
  .pdp-inquiry .btn-cta{min-height:48px;}
  .pdp-trust{font-size:12.5px;line-height:1.8;}
  .pdp-program{padding:14px;}
  .pdp-program .btn-cta{width:100%;text-align:center;white-space:normal;}
  .pdp-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;margin-bottom:14px;}
  .pdp-tabs button{min-width:0;min-height:44px;padding:10px 8px;font-size:14px;line-height:1.35;white-space:normal;}
  .pdp-eeat{padding:18px 16px;margin-bottom:28px;}
  .eeat-lead{font-size:13px;line-height:1.65;}
  .eeat-certs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .eeat-certs .cert{min-width:0;padding:10px 8px;}
  .eeat-certs .cert img{width:56px;height:56px;}
  .pdp-related h2{font-size:20px;}

  /* Article reading: real side gutters, tighter leading and compact TOC. */
  .layout-with-sidebar{padding:24px 16px;gap:28px;}
  .article-header{margin-bottom:20px;}
  .article-header h1{font-size:27px;line-height:1.32;margin-bottom:14px;}
  .article-meta{gap:8px 12px;font-size:12px;line-height:1.5;}
  .article-meta .avatar{width:32px;height:32px;font-size:12px;}
  .article-cover{height:auto;aspect-ratio:16/10;max-height:300px;margin-bottom:20px;border-radius:8px;}
  .toc-box{padding:16px 18px;margin-bottom:20px;}
  .toc-box .toc-title{min-height:32px;margin-bottom:6px;}
  .toc-box a{display:flex;align-items:center;min-height:32px;padding:3px 0;font-size:13px;line-height:1.45;}
  .quick-summary{padding:14px 16px!important;margin:16px 0!important;}
  .quick-summary p{font-size:13.5px!important;line-height:1.65!important;}
  .article-body{font-size:16px;line-height:1.75;overflow-wrap:break-word;}
  .article-body p,.article-body li{line-height:1.75!important;}
  .article-body p{margin-bottom:16px!important;}
  .article-body h2{font-size:23px!important;line-height:1.35;margin:30px 0 14px!important;padding-top:12px!important;}
  .article-body h3{font-size:19px!important;line-height:1.4;margin:24px 0 10px!important;}
  .article-body ul,.article-body ol{margin-left:20px;padding-left:18px!important;}
  .article-body img{max-width:100%!important;height:auto!important;margin:16px 0;}
  .article-body .article-figure{margin:24px 0;}
  .article-body .table-wrap,.pdp-pane .table-wrap{max-width:100%;overflow-x:auto;margin:16px 0;-webkit-overflow-scrolling:touch;}
  .article-body .table-wrap table,.pdp-pane .table-wrap table{width:max-content;min-width:100%;margin:0;font-size:13px;}
  .article-body .table-wrap th,.article-body .table-wrap td{min-width:96px;max-width:260px;padding:9px 10px;line-height:1.5;}
  .faq-item summary{min-height:44px;padding:13px 16px;font-size:14px;line-height:1.5;}
  .article-tags a{min-height:34px;display:inline-flex;align-items:center;}
  .author-card{padding:16px;gap:12px;}
  .author-card p{font-size:13px;line-height:1.6;}
  .cta-box{padding:20px!important;margin:24px 0!important;}
  .cta-box h4{font-size:18px!important;line-height:1.4;}
  .cta-box p{font-size:13.5px!important;line-height:1.65!important;}
  .cta-box a{display:block!important;margin:8px 0 0!important;min-height:44px;padding:10px 16px!important;line-height:1.5;}
  .related-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
  .related-card .thumb{height:110px!important;}
  .related-card .body{padding:10px!important;}
  .related-card h4{font-size:13px!important;line-height:1.45!important;}
  .post-nav{gap:10px!important;margin:24px 0!important;padding-top:18px!important;}
  .post-nav a{padding:12px!important;font-size:12.5px!important;line-height:1.5;}

  .seo-related{margin:28px 0 8px;padding-top:20px;}
  .seo-guides{padding:32px 0;}
  .seo-guides h2{font-size:20px;}
  .seo-guides ul{grid-template-columns:1fr;gap:0;}
  .seo-guides a{display:flex;align-items:center;min-height:46px;padding:8px 0;border-bottom:1px solid var(--border);font-size:14px;}

  /* Footer remains scannable without ten long single-column lists. */
  .site-footer{margin-top:36px;padding:30px 0 20px;}
  .footer-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px;padding:0 18px;}
  .footer-col:first-child{grid-column:1/-1;}
  .footer-col h2,.footer-col h5{font-size:14px;margin-bottom:10px;}
  .footer-col p{font-size:12.5px;line-height:1.6;display:block;}
  .footer-col a{display:flex;align-items:center;min-height:32px;padding:4px 0;font-size:12.5px;line-height:1.45;}
  .footer-certs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px;padding:16px 18px 4px;}
  .cert-mini{font-size:10.5px;gap:4px;line-height:1.35;}
  .cert-mini img{width:24px;height:24px;flex:0 0 24px;}
  .footer-bottom{margin-top:24px;padding:18px 18px 0;font-size:12px;line-height:1.6;}

  /* Replace content-covering circles with a labelled bottom action bar. */
  a[aria-label="Email Us"],a[aria-label="WhatsApp Chat"]{
    position:fixed!important;bottom:0!important;right:auto!important;width:50%!important;
    height:calc(54px + env(safe-area-inset-bottom))!important;padding:0 12px env(safe-area-inset-bottom)!important;
    border-radius:0!important;display:flex!important;align-items:center!important;justify-content:center!important;
    gap:8px!important;box-shadow:0 -2px 12px rgba(0,0,0,.16)!important;z-index:999999!important;
  }
  a[aria-label="Email Us"]{left:0!important;}
  a[aria-label="WhatsApp Chat"]{left:50%!important;}
  a[aria-label="Email Us"] svg,a[aria-label="WhatsApp Chat"] svg{width:24px!important;height:24px!important;flex:0 0 24px;}
  a[aria-label="Email Us"]::after{content:"Email";color:#fff;font-size:14px;font-weight:700;}
  a[aria-label="WhatsApp Chat"]::after{content:"WhatsApp";color:#fff;font-size:14px;font-weight:700;}
}
@media (max-width:480px){
  .hero{padding:54px 18px 48px!important;}
  .hero h1{font-size:28px!important;}
  .why-grid{grid-template-columns:1fr;}
  .oem-steps{grid-template-columns:1fr!important;}
  .oem-step{text-align:left!important;padding:14px 14px 14px 56px!important;position:relative;}
  .oem-step .n{position:absolute;left:14px;top:14px;margin:0!important;}
  .article-item .thumb{width:112px;min-width:112px;height:98px;}
  .article-item h2{font-size:14px;}
  .post-nav{flex-direction:column!important;}
  .post-nav .next{text-align:left!important;}
}
@media (max-width:380px){
  .home-cat-grid,.p-grid{gap:10px;}
  .p-card-body{padding:9px 8px;}
  .p-card-body h3{font-size:13px;}
  .p-card-price{font-size:12px;}
  .featured-card .cover{height:112px;}
  .featured-card .body{padding:10px;}
  .article-item{gap:10px;}
  .article-item .thumb{width:100px;min-width:100px;height:94px;}
  .pdp-info h1.pdp-title{font-size:21px;}
}


/* gemwco-specific mobile sourcing desk and collection density */
@media (max-width:768px){
  .gemwco-home .gemwco-hero-inner{grid-template-columns:minmax(0,1fr)!important;gap:24px!important;padding-top:42px!important;padding-bottom:42px!important;}
  .gemwco-home .gemwco-hero-copy,.gemwco-home .gemwco-sourcing-card{min-width:0;}
  .gemwco-home .gemwco-kicker{font-size:10px;letter-spacing:1.5px;margin-bottom:12px;}
  .gemwco-home .gemwco-hero h1{font-size:30px!important;line-height:1.2!important;letter-spacing:-.4px!important;margin-bottom:14px!important;}
  .gemwco-home .gemwco-hero p{font-size:15px!important;line-height:1.65!important;margin-bottom:16px!important;}
  .gemwco-home .gemwco-hero .hero-search{margin:18px 0 14px;}
  .gemwco-home .gemwco-hero .hero-cta{justify-content:flex-start;gap:10px;}
  .gemwco-home .gemwco-sourcing-card{padding:18px!important;}
  .gemwco-home .gemwco-sourcing-card h2{font-size:20px;line-height:1.3;margin:8px 0 12px;}
  .gemwco-source-row{gap:12px;padding:10px 0;}
  .gemwco-source-row strong{font-size:13.5px;line-height:1.4;}
  .gemwco-source-row p{font-size:12px!important;line-height:1.45!important;}
  .gemwco-home .gemwco-sourcing-card>a{display:inline-flex;align-items:center;min-height:40px;margin-top:8px;}
  .gemwco-home .home-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
  .gemwco-home .home-cat-card .media{aspect-ratio:4/3;}
  .gemwco-home .why-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
  .gemwco-home .gemwco-materials{grid-template-columns:1fr;gap:12px;margin:12px 0 24px;}
  .gemwco-home .gemwco-material{padding:16px;}
  .gemwco-home .gemwco-material h3{font-size:15px;}
  .gemwco-home .gemwco-material p{font-size:13px;line-height:1.6;}
}
@media (max-width:480px){
  .gemwco-home .gemwco-hero-inner{padding-top:36px!important;padding-bottom:36px!important;}
  .gemwco-home .gemwco-hero h1{font-size:28px!important;}
  .gemwco-home .gemwco-hero .hero-cta{flex-direction:column;align-items:stretch;}
  .gemwco-home .gemwco-hero .hero-cta a{width:100%;max-width:360px;box-sizing:border-box;text-align:center;}
  .gemwco-home .why-grid{grid-template-columns:1fr!important;}
}

/* gemwco PDP horizontal-scroll guard */
@media (max-width:768px){
  html,body{max-width:100%;overflow-x:clip;}
  .pdp,.pdp-top,.pdp-gallery,.pdp-info,.pdp-detail,.pdp-pane,.pdp-eeat,.pdp-related{min-width:0;max-width:100%;}
  .pdp-pane{overflow-wrap:anywhere;}
  .pdp-pane .table-wrap{max-width:100%;overflow-x:auto;scrollbar-width:none;}
  .pdp-pane .table-wrap::-webkit-scrollbar{display:none;}
  .pdp-pane .table-wrap table{width:100%;min-width:0;table-layout:fixed;}
  .pdp-pane .table-wrap th,.pdp-pane .table-wrap td{min-width:0;max-width:none;overflow-wrap:anywhere;}
  .pdp-spec-table td:first-child{width:38%;}
}
@media (max-width:380px){
  .footer-certs{grid-template-columns:repeat(2,minmax(0,1fr));}
  .cert-mini{min-width:0;overflow-wrap:anywhere;}
}



/* GWCO_LAYOUT_ROUND2_20261119A — remaining mobile type and touch geometry */
@media(max-width:768px){
  input:not([type=hidden]):not(.hp-field),select,textarea{font-size:16px}
  button,.btn{min-height:44px}
  button[aria-label="Search"],#navClose{width:44px;min-width:44px;height:44px;min-height:44px}
  #content{font-size:16px}
  #inq-captcha{font-size:16px!important}
}
