/* ═══════════════════════════════════════════════════════════════
   页面级样式碎片收敛（2026-09-03 MUS · P3-16）
   原 support / solution / BrandPage 页面 body 内联 <style>（每响应带数百行 CSS）
   统一收敛到本静态文件走浏览器长缓存，减 HTML 体积与 SSR 负担。
   类名均为页面私有，全局加载无副作用；置于 layout head 末尾保证覆盖顺序。
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. support 列表页（原 src/app/support/page.tsx 内联）── */

/* 左侧分类树 */
.support-sidebar {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}
.support-cat-tree {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.support-cat-tree > li {
  margin: 0;
}
.support-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 20px;
  color: #444;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.support-cat-link:hover {
  background: #f5f9f6;
  color: #006838;
  text-decoration: none;
}
.support-cat-link.active {
  color: #006838;
  font-weight: 600;
  background: #e8f3ec;
  border-left-color: #006838;
}
.support-cat-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-cat-badge {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  margin-left: 8px;
  font-size: 12px;
  color: #888;
  background: #f0f0f0;
  border-radius: 10px;
  text-align: center;
  line-height: 1.4;
  flex-shrink: 0;
}
.support-cat-link.active .support-cat-badge {
  color: #006838;
  background: #c8e6cc;
}

/* 折叠分类 */
.support-cat-details {
  margin: 0;
}
.support-cat-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}
.support-cat-details > summary::-webkit-details-marker {
  display: none;
}
.support-cat-details > summary::before {
  content: '▶';
  display: inline-block;
  font-size: 10px;
  color: #999;
  transition: transform 0.2s;
  position: absolute;
  margin-left: 6px;
  margin-top: 8px;
}
.support-cat-details[open] > summary::before {
  transform: rotate(90deg);
}
.support-cat-summary .support-cat-link {
  padding-left: 28px;
}
.support-cat-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}
.support-cat-sub li {
  margin: 0;
}
.support-cat-sub-link {
  padding-left: 40px !important;
  font-size: 13px !important;
}
.support-cat-empty {
  padding: 16px 20px;
  color: #999;
  font-size: 14px;
  text-align: center;
}

/* 右侧文章列表 */
.support-article-list {
  margin-bottom: 24px;
}
.article-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-card {
  display: block;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 18px 24px;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.article-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-color: #c0d8c8;
  text-decoration: none;
}
.article-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px;
}
.article-card-summary {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  margin: 0 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.article-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.article-card-date {
  color: #aaa;
}
.article-card-read {
  color: #006838;
  font-size: 13px;
}
.support-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

/* 分页 */
.support-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #555;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s;
}
.page-btn:hover {
  border-color: #006838;
  color: #006838;
  text-decoration: none;
}
.page-btn-active {
  background: #006838;
  color: #fff;
  border-color: #006838;
}
.page-ellipsis {
  color: #999;
  padding: 0 4px;
}

/* 页面标题 */
.page-header {
  text-align: center;
  padding: 20px 0 10px;
}
.page-header h1 {
  font-size: 28px;
  color: #333;
  margin: 0 0 5px;
}
.page-header p {
  font-size: 14px;
  color: #999;
  margin: 0;
}

/* 响应式 */
@media (max-width: 767px) {
  .support-sidebar {
    margin-bottom: 20px;
  }
  .article-card {
    padding: 14px 16px;
  }
  .article-card-title {
    font-size: 15px;
  }
}

/* ── 2. 文章详情页通用（原 support/[id] 与 solution/[id] 内联，两页规则一致，保留一份）── */
.st-article-page {
  max-width: 900px !important;
  margin: 0 auto 40px !important;
  border: none !important;
  padding: 0 !important;
}
.st-article-wrapper {
  background: #fff;
  padding: 0 20px;
}
.st-article-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.st-article-title {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #222 !important;
  line-height: 1.4 !important;
  margin: 0 0 12px !important;
}
.st-article-meta {
  font-size: 14px;
  color: #999;
}
.st-article-cover {
  margin: 0 0 32px;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7;
}
.st-article-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.st-article-body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: #333 !important;
}
.st-article-body h2 {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #222 !important;
  margin: 40px 0 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid #006838 !important;
  line-height: 1.4 !important;
}
.st-article-body h2:first-child {
  margin-top: 0 !important;
}
.st-article-body h3 {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin: 32px 0 12px !important;
  line-height: 1.4 !important;
}
.st-article-body h4 {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #444 !important;
  margin: 24px 0 10px !important;
  line-height: 1.4 !important;
}
.st-article-body p {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 16px !important;
  margin: 0 0 16px !important;
  word-break: break-word;
  line-height: 1.85 !important;
}
.st-article-body ul,
.st-article-body ol {
  margin: 0 0 16px 20px !important;
  padding: 0 !important;
}
.st-article-body li {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 16px !important;
  margin-bottom: 8px !important;
  line-height: 1.7 !important;
}
.st-article-body table {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 15px !important;
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 16px 0 24px !important;
}
.st-article-body th,
.st-article-body td {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 15px !important;
  border: 1px solid #e5e5e5 !important;
  padding: 10px 14px !important;
  text-align: left !important;
  font-weight: normal !important;
}
.st-article-body th {
  background: #f7f7f7 !important;
  font-weight: 600 !important;
  color: #333 !important;
}
.st-article-body tr:nth-child(even) td {
  background: #fafafa !important;
}
.st-article-body img {
  max-width: 100% !important;
  height: auto !important;
  margin: 16px 0 !important;
  border-radius: 4px !important;
}
.st-article-body strong {
  color: #222 !important;
}
.st-article-body a {
  color: #006838;
  text-decoration: underline;
}
.st-article-body a:hover {
  color: #004d2a;
}
.st-article-back {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.st-article-back a {
  display: inline-block;
  font-size: 15px;
  color: #006838;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #006838;
  border-radius: 4px;
  transition: all 0.2s;
}
.st-article-back a:hover {
  background: #006838;
  color: #fff;
}

/* ── 3. 品牌详情正文（原 src/components/BrandPage.tsx 内联）── */
.brand-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 8px 0;
}
.brand-article-body p {
  margin: 0 0 12px;
}
.brand-article-body h2,
.brand-article-body h3,
.brand-article-body h4 {
  color: #1a1a1a;
  margin: 18px 0 10px;
  font-weight: 600;
}
.brand-article-body h2 {
  font-size: 18px;
}
.brand-article-body h3 {
  font-size: 16px;
}
.brand-article-body ul,
.brand-article-body ol {
  padding-left: 22px;
  margin: 0 0 12px;
}
.brand-article-body a {
  color: #2a6bb0;
}
.brand-article-body strong {
  color: #333;
}
.brand-article-body br {
  display: block;
  content: "";
  margin: 6px 0;
}

/* ── 4. 品牌列表页卡片（原 src/app/BrandPage/page.tsx 内联）── */
.mroer-brand-card {
  display: block;
  width: 200px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  background: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.mroer-brand-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-color: #c8c8c8;
}
.mroer-brand-list-intro p {
  margin: 0 0 10px;
}
.mroer-brand-list-intro p:last-child {
  margin: 0;
}
