/* ===== info56 模板全局样式 ===== */
/* 主题色变量 */
:root {
  --primary: #365267;
  --primary-hover: #333333;
  --secondary: #666666;
  --accent: #C9A227;
  --bg-color: #FFFFFF;
  --surface-color: #FFFFFF;
  --text-color: #466577;
  --text-muted: #888888;
  --border-color: #E5E5E5;
  --header-bg: #365267;
  --footer-bg: #3f5f70;
  --footer-text: #B0B0B0;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.container { max-width: 1200px; }


/* ===== 模板自定义样式 ===== */

/* ===== 墨金极简二版 模板专属样式 ===== */
/* 重置 root 变量 */
:root {
  --pico-form-element-spacing-vertical: 0.5rem;
}
/* 中文站点字号适配 */
@media (min-width: 1024px) { :root { --pico-font-size: 112.5%; } }
@media (min-width: 1280px) { :root { --pico-font-size: 112.5%; } }
@media (min-width: 1536px) { :root { --pico-font-size: 112.5%; } }
pre {
  white-space: pre-wrap;
}


/* 极简留白布局：窄容器居中 */
.container-narrow {
  max-width: 860px;
  margin: 0 auto;
}
.container-narrow .detail-layout {
  grid-template-columns: 1fr !important;
}
.page-content { padding: 3.5rem 0; }



/* Hero 大字排版 */
.hero-banner {
  padding: 4rem 0 3rem;
  text-align: center;
  background: var(--surface-color);
}
.hero-banner h1 {
  color: var(--primary);
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 1.25rem;
}
.hero-banner p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 2rem;
  font-weight: 300;
}


/* 通用卡片 */
.card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.06); }

/* 特色网格 */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card { text-align: center; padding: 2rem 1rem; }
.feature-card .feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* 时间线 */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 2px; background: var(--border-color); }
.timeline-item { position: relative; padding: 0 0 1.5rem 1.5rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.7rem; top: 0.3rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface-color); border: 2px solid var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year { font-weight: 700; color: var(--primary); font-size: 1.1rem; }

/* 详情页内容 */
.article-content img, .product-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }

/* 联系信息 */
.contact-info-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.contact-info-card:last-child { border-bottom: none; }
.contact-icon {
  font-size: 1.3rem; flex-shrink: 0; width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border-radius: 50%;
}

/* 产品详情 */
.product-meta { display: grid; grid-template-columns: 1fr; gap: 0.5rem; margin: 1.5rem 0; }
@media (min-width: 640px) { .product-meta { grid-template-columns: repeat(2, 1fr); } }
.product-meta-item { display: flex; gap: 0.5rem; padding: 0.75rem; background: var(--bg-color); border-radius: 8px; }
.product-meta-label { font-weight: 600; color: var(--text-muted); min-width: 5rem; }

/* 详情布局 */
.detail-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .detail-layout { grid-template-columns: 1fr 300px; } }

/* section间距 */
main section, .content-section { margin-bottom: 2.5rem; }
main section:last-child { margin-bottom: 0; }

/* ===== GEO 内容块样式 ===== */

/* 摘要框样式 */
.geo-tldr {
  background: var(--bg-color);
  border-left: 4px solid var(--accent, var(--primary));
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.geo-tldr-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent, var(--primary));
  margin-bottom: 0.35rem;
}
.geo-tldr-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-color);
}

/* 关键要点清单 */
.geo-keyfacts {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.geo-block-title {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}
.geo-keyfacts ul {
  margin: 0;
  padding-left: 1.25rem;
}
.geo-keyfacts li {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* 规格参数表 */
.geo-specs { margin: 1.5rem 0; }
.geo-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.geo-specs-table th,
.geo-specs-table td {
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.9rem;
  text-align: left;
}
.geo-specs-table th {
  background: var(--bg-color);
  font-weight: 600;
  width: 40%;
  color: var(--text-color);
}

/* 客户评价 */
.geo-reviews { margin: 1.5rem 0; }
.geo-rating {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.geo-rating-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent, var(--primary));
}
.geo-rating-count { font-size: 0.85rem; color: var(--text-muted); }
.geo-review-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--surface-color);
}
.geo-review-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.geo-review-stars { color: var(--accent, var(--primary)); letter-spacing: 1px; }
.geo-review-date { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); }
.geo-review-body { margin: 0; font-size: 0.9rem; line-height: 1.7; color: var(--text-color); }

/* FAQ 折叠区 */
.geo-faq { margin: 1.5rem 0; }
.geo-faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
  background: var(--surface-color);
}
.geo-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
}
.geo-faq-item p {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* 作者信息块 */
.geo-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-color);
}
.geo-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.geo-author-name { display: block; font-size: 1rem; color: var(--text-color); }
.geo-author-title { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.15rem; }
.geo-author-bio { margin: 0.4rem 0 0; font-size: 0.88rem; line-height: 1.6; color: var(--text-muted); }

/* 首页 GEO：核心数据条 */
.geo-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 768px) {
  .geo-stats { grid-template-columns: repeat(4, 1fr); }
}
.geo-stat-item {
  text-align: center;
  background: var(--bg-color);
  border-radius: 8px;
  padding: 1.25rem 0.75rem;
}
.geo-stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}
.geo-stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* 首页 GEO：资质荣誉徽章 */
.geo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.geo-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--primary);
}

/* 友情链接 */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  padding: 1rem;
  background: var(--bg-color);
  border-radius: 8px;
}
.friend-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.friend-link:hover {
  color: var(--primary);
  text-decoration: underline;
}


/* ===== 组件提取样式 ===== */

/* ===== header/header_6.html ===== */

/* ===== header_6 - 黑白极简窄通栏 ===== */
.site-header-6 {
  background: #365267;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner-6 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1rem;
}
.site-logo-6 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.site-logo-6 img {
  width: 28px;
  height: 28px;
  filter: grayscale(100%);
  object-fit: cover;
}
.site-logo-6:hover { color: #ccc; }
.nav-menu-6 {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu-6 > li { position: relative; display: block; }
.nav-menu-6 a {
  display: block;
  padding: 0.4rem 0.8rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.nav-menu-6 a:hover, .nav-menu-6 a.active { color: #fff; }
.nav-menu-6 a.active { border-bottom: 2px solid #fff; }
.nav-menu-6 li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #3f5f70;
  border: 1px solid #333;
  padding: 0.4rem 0;
  z-index: 200;
  list-style: none;
}
.nav-menu-6 li:hover > ul { display: block; }
.nav-menu-6 li ul a { padding: 0.45rem 1.1rem; white-space: nowrap; }
.mobile-toggle-6 {
  display: none;
  background: none;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
}

/* 搜索框（黑白极简适配） */
.header-search-6 {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 0.75rem;
  margin-bottom: 0;
  width: 220px;
}
.header-search-6 input {
  width: 100%;
  padding: 0.35rem 0.6rem;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 0.85rem;
  background: #3f5f70;
  color: #fff;
  transition: border-color 0.2s, width 0.2s;
}
.header-search-6 input::placeholder {
  color: #666;
}
.header-search-6 input:focus {
  outline: none;
  border-color: #fff;
}
.header-search-6 button {
  padding: 0.35rem 1rem;
  height: calc(1rem * var(--pico-line-height) + var(--pico-form-element-spacing-vertical) * 2 + var(--pico-border-width) * 2);
  background: #fff;
  color: #365267;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1.4;
}
.header-search-6 button:hover {
  background: #ccc;
}

@media (max-width: 767px) {
  .mobile-toggle-6 { display: block; }
  .nav-menu-6 {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #365267;
    padding: 0.5rem 0;
  }
  .nav-menu-6.open { display: flex; }
  .nav-menu-6 li ul { position: static; border: none; padding-left: 1.5rem; }
  .header-search-6 {
    margin-left: 0;
    order: 3;
    width: 100%;
  }
  .header-search-6 input {
    flex: 1;
    width: auto;
  }
  .header-search-6 input:focus {
    width: auto;
  }
  .header-inner-6 { flex-wrap: wrap; position: relative; }
}

/* ===== footer/footer_6.html ===== */

/* ===== footer_6 - 黑白极简单列页脚 ===== */
.site-footer-6 {
  background: #3f5f70;
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
  margin-top: 3rem;
}
.footer-inner-6 {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.footer-inner-6 h4 {
  color: #fff;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
}
.footer-inner-6 p, .footer-inner-6 a { color: rgba(255,255,255,0.55); font-size: 0.85rem; line-height: 1.9; }
.footer-inner-6 a { text-decoration: none; }
.footer-inner-6 a:hover { color: #fff; }
.footer-links-6 {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}
.footer-links-6 li { display: inline; list-style: none; }
.footer-bottom-6 {
  border-top: 1px solid #333;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ===== sidebar/sidebar_6.html ===== */

/* ===== sidebar_6 - 黑白极简侧边栏 ===== */
.sidebar-section-6 { margin-bottom: 2rem; }
.sidebar-section-6 h3 {
  font-size: 0.85rem;
  color: #365267;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #365267;
}
.sidebar-cat-list-6 { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-list-6 li { border-bottom: 1px solid #eee; }
.sidebar-cat-list-6 li:last-child { border-bottom: none; }
.sidebar-cat-list-6 a {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  color: #333;
  text-decoration: none;
  font-size: 0.85rem;
}
.sidebar-cat-list-6 a:hover { color: #365267; font-weight: 500; }
.post-list-6 { list-style: none; padding: 0; margin: 0; }
.post-list-6 li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.post-list-6 li:last-child { border-bottom: none; }
.post-list-6 a { font-size: 0.85rem; color: #333; text-decoration: none; line-height: 1.4; display: block; }
.post-list-6 a:hover { color: #365267; }
.post-list-6 .date { font-size: 0.72rem; color: #999; margin-top: 0.15rem; letter-spacing: 1px; }

/* ===== tag_cloud/tag_cloud_6.html ===== */

/* ===== tag_cloud_6 - 黑白极简标签 ===== */
.tag-cloud-6 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.tag-cloud-6 a {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid #ccc;
  font-size: 0.76rem;
  color: #666;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.tag-cloud-6 a:hover { background: #365267; color: #fff; border-color: #365267; }

/* ===== breadcrumb/breadcrumb_6.html ===== */

/* ===== breadcrumb_6 - 黑白极简面包屑 ===== */
.breadcrumb-bar-6 {
  padding: 0.7rem 0;
  border-bottom: 1px solid #ddd;
}
.breadcrumb-list-6 {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.breadcrumb-list-6 li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb-list-6 li + li::before { content: '/'; color: #bbb; }
.breadcrumb-list-6 a { color: #888; text-decoration: none; }
.breadcrumb-list-6 a:hover { color: #365267; }
.breadcrumb-list-6 li:last-child { color: #365267; font-weight: 600; }

/* ===== article_item/article_item_10.html ===== */

/* ===== article_item_10 - 石墨金紧凑行式 ===== */
.article-card-10 {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #E5E0D0;
}
.article-card-10:last-child { border-bottom: none; }
.article-card-10-date {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: #9A9A8A;
  letter-spacing: 1px;
  min-width: 5.5rem;
}
.article-card-10-title {
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0;
}
.article-card-10-title a { color: #3A3A3A; text-decoration: none; }
.article-card-10-title a:hover { color: #C9A227; }

/* ===== product_item/product_item_10.html ===== */

/* ===== product_item_10 - 石墨金紧凑行式 ===== */
.product-card-10 {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--surface-color, #fff);
  border: 1px solid #E0DCC8;
  border-left: 4px solid #C9A227;
  margin-bottom: 1rem;
  transition: all 0.2s;
}
.product-card-10:hover { border-left-color: #8A6A10; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.product-card-10-image-link {
  display: block;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.product-card-10-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-10-body { flex: 1; min-width: 0; }
.product-card-10-name { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.2rem; }
.product-card-10-name a { color: #3A3A3A; text-decoration: none; }
.product-card-10-name a:hover { color: #C9A227; }
.product-card-10-subtitle { font-size: 0.78rem; color: #9A9A8A; margin-bottom: 0.4rem; }
.product-card-10-summary {
  font-size: 0.85rem;
  color: #6A6A5A;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.product-card-10-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card-10-price { font-weight: 700; color: #C9A227; }
.product-card-10-link { font-size: 0.8rem; color: #3A3A3A; text-decoration: none; }
.product-card-10-link:hover { color: #C9A227; }
@media (max-width: 639px) {
  .product-card-10 { flex-direction: column; }
  .product-card-10-image-link { width: 100%; height: 160px; }
}

/* ===== pagination/pagination_6.html ===== */

/* ===== pagination_6 - 黑白极简分页 ===== */
.pagination-nav-6 {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
}
.pagination-nav-6 a,
.pagination-nav-6 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  font-size: 0.82rem;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}
.pagination-nav-6 a:hover { background: #365267; color: #fff; }
.pagination-nav-6 .active { background: #365267; color: #fff; font-weight: 600; }
.pagination-nav-6 .disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== tag_cloud/tag_cloud_10.html ===== */

/* ===== tag_cloud_10 - 石墨金线框标签 ===== */
.tag-cloud-10 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag-cloud-10 a {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px solid #D0CCB8;
  font-size: 0.76rem;
  color: #6A6A5A;
  text-decoration: none;
  transition: all 0.2s;
}
.tag-cloud-10 a:hover { border-color: #C9A227; color: #C9A227; }

/* ===== contact_form/contact_form_6.html ===== */

/* ===== contact_form_6 - 黑白极简表单 ===== */
.contact-form-6 {
  background: #fff;
  border: 1px solid #ddd;
  padding: 2rem;
}
.contact-form-6 h3 { color: #365267; margin-bottom: 0.5rem; font-weight: 500; letter-spacing: 1px; }
.contact-form-6 .form-desc { color: #888; margin-bottom: 1.5rem; font-size: 0.9rem; }
.contact-form-6 .form-group { margin-bottom: 1.25rem; }
.contact-form-6 .form-group label { display: block; margin-bottom: 0.3rem; font-size: 0.82rem; color: #333; letter-spacing: 1px; }
.contact-form-6 .form-group input,
.contact-form-6 .form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  font-size: 0.9rem;
  color: #365267;
}
.contact-form-6 .form-group input:focus,
.contact-form-6 .form-group textarea:focus {
  border-color: #365267;
  outline: none;
}
.contact-form-6 .form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .contact-form-6 .form-row { grid-template-columns: 1fr 1fr; } }
.contact-form-6 .submit-btn {
  background: #365267;
  color: #fff;
  border: none;
  padding: 0.65rem 2.5rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}
.contact-form-6 .submit-btn:hover { background: #333; }
/* Chengli visual overrides */
.site-logo img, [class*=site-logo] img { max-width: 220px; max-height: 64px; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 640px) { .site-logo img, [class*=site-logo] img { max-width: 160px; max-height: 52px; } }

/* Chengli layout normalization */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; }
.container { width: min(100% - 2rem, 1200px); margin-inline: auto; }
main, section, article, aside, header, footer { max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }
.detail-layout, .page-layout, .content-layout, .footer-grid, .features-grid, .product-grid, .article-grid { min-width: 0; }
.card, .article-card, .product-card { min-width: 0; overflow-wrap: anywhere; }
.card img, .product-card img, .article-card img { object-fit: contain; }
table { width: 100%; display: block; overflow-x: auto; }
/* Links remain visually integrated with surrounding text. */
a, a:visited { color: inherit !important; text-decoration: none !important; }
a:hover { text-decoration: none !important; color: inherit !important; }
a:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 2px; }
input, textarea, select, button { max-width: 100%; }
@media (max-width: 640px) {
  .container { width: min(100% - 1.25rem, 1200px); }
  .page-layout, .detail-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) !important; }
  h1 { overflow-wrap: anywhere; }
}

/* Footer alignment: right-side contact panel */
.footer-grid { align-items:start; }
.footer-contact-panel { grid-column: -2 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem 1rem; min-width:0; align-content:start; }
.footer-contact-panel h4 { grid-column:1 / -1; margin:0; }
.footer-contact-panel .footer-contact-item { display:flex; align-items:flex-start; gap:.45rem; min-width:0; overflow-wrap:anywhere; }
.footer-bottom, [class*=footer-bottom] { text-align:center; }
.footer-bottom p, [class*=footer-bottom] p { margin:0; display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:.35rem; }
@media (max-width:900px) { .footer-contact-panel { grid-column:1 / -1; } }
@media (max-width:640px) { .footer-contact-panel { grid-template-columns:minmax(0,1fr); } }
/* Unified four-column footer */
.footer-grid-unified { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:2rem; align-items:start; }
.footer-grid-unified .footer-contact-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem .9rem; min-width:0; }
.footer-grid-unified .footer-contact-panel h4 { grid-column:1 / -1; }
.footer-grid-unified .footer-contact-item { display:flex; gap:.45rem; min-width:0; overflow-wrap:anywhere; }
@media (max-width:960px) { .footer-grid-unified { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media (max-width:640px) { .footer-grid-unified { grid-template-columns:minmax(0,1fr) !important; } .footer-grid-unified .footer-contact-panel { grid-template-columns:minmax(0,1fr); } }
/* Footer contact no-wrap refinement */
.footer-grid-unified { grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,2fr) !important; }
.footer-grid-unified .footer-contact-panel .footer-contact-item { white-space:nowrap; align-items:center; }
.footer-grid-unified .footer-contact-panel .footer-contact-item > span:last-child { white-space:nowrap; font-size:clamp(.72rem, .9vw, .95rem); }
.footer-grid-unified .footer-contact-panel .footer-contact-item:nth-of-type(4) { grid-column:1 / -1; }
@media (max-width:960px) { .footer-grid-unified { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media (max-width:640px) { .footer-grid-unified { grid-template-columns:minmax(0,1fr) !important; } .footer-grid-unified .footer-contact-panel { grid-template-columns:minmax(0,1fr); } .footer-grid-unified .footer-contact-panel .footer-contact-item:nth-of-type(4) { grid-column:auto; } }
/* Latest requirement: contact details in one vertical column */
.footer-grid-unified .footer-contact-panel { grid-template-columns:minmax(0,1fr) !important; }
.footer-grid-unified .footer-contact-panel h4 { grid-column:auto; }
.footer-grid-unified .footer-contact-panel .footer-contact-item,
.footer-grid-unified .footer-contact-panel .footer-contact-item > span:last-child { white-space:nowrap; }
/* Industry icon refresh */
/* Empty footer lists: no stray bullets or dots */
.footer-grid-unified .footer-links { list-style:none !important; padding:0 !important; margin:0 !important; }
.footer-grid-unified .footer-links li:has(a:empty), .footer-grid-unified .footer-links li:empty { display:none !important; }
.footer-grid-unified .footer-links li { list-style:none !important; }
/* Mobile-first overflow protection on every page */
html, body { max-width:100%; overflow-x:hidden; }
@media (max-width:767px) {
  .container { width:calc(100% - 1.25rem) !important; max-width:100% !important; }
  .footer-grid-unified, .footer-grid-unified .footer-contact-panel { grid-template-columns:minmax(0,1fr) !important; }
  .footer-grid-unified .footer-contact-item { white-space:normal; }
  .footer-grid-unified .footer-contact-item > span:last-child { white-space:normal; overflow-wrap:anywhere; }
  .nav-menu, [class*=nav-menu] { max-width:100%; }
  input, textarea, select, button { max-width:100%; }
}
/* Footer copyright separation: keep备案行 visually detached from contact details across every theme. */
.footer-grid-unified + .footer-bottom, .footer-grid-unified + [class*="footer-bottom"] { margin-top: 3rem !important; }
.footer-bottom, [class*="footer-bottom"] { padding-top: 1.5rem !important; clear: both; padding-bottom: 2rem !important; }
@media (max-width: 640px) { .footer-grid-unified + .footer-bottom, .footer-grid-unified + [class*="footer-bottom"] { margin-top: 2rem !important; } }
.footer-bottom, [class*="footer-bottom"] { padding-bottom: 1.5rem !important; }

/* Global logo and navigation normalization across all themes. */
[class*="site-logo"] { display:flex; align-items:center; flex:0 0 auto; min-width:0; max-width:220px; overflow:visible; }
[class*="site-logo"] img { display:block; width:auto; height:auto; max-width:220px; max-height:64px; object-fit:contain; border-radius:0 !important; }
[class*="header-inner"] { min-width:0; align-items:center; gap:1rem; }
[class*="header-inner"] nav { min-width:0; flex:1 1 auto; }
[class*="nav-menu"] { min-width:0; max-width:100%; }
[class*="nav-menu"] > li { min-width:0; }
[class*="nav-menu"] a { max-width:100%; overflow-wrap:anywhere; }
@media (max-width: 767px) {
  [class*="site-logo"] { max-width:180px; }
  [class*="site-logo"] img { max-width:180px; max-height:56px; }
  [class*="header-inner"] { gap:.75rem; }
  [class*="header-inner"] nav { flex-basis:100%; }
  [class*="nav-menu"] { width:100%; }
}

/* Header baseline normalization: Logo | navigation | search on desktop; preserve collapsed menu on mobile. */
@media (min-width: 768px) {
  [class*="header-inner"] { display:flex !important; flex-direction:row !important; align-items:center !important; justify-content:space-between !important; flex-wrap:nowrap !important; min-width:0; }
  [class*="header-inner"] nav { display:flex; align-items:center; justify-content:center; flex:1 1 auto; min-width:0; }
  [class*="nav-menu"] { display:flex; align-items:center; justify-content:center; flex-wrap:nowrap; min-width:0; max-width:100%; }
  [class*="header-search"] { flex:0 1 220px; width:220px; min-width:150px; margin:0 0 0 1rem; }
  [class*="site-logo"] { margin:0 !important; }
}
@media (max-width: 767px) {
  [class*="header-inner"] { display:flex !important; flex-direction:row !important; flex-wrap:wrap !important; align-items:center !important; }
  [class*="header-inner"] nav { flex-basis:100%; }
  [class*="header-search"] { width:100%; margin-left:0; }
}

/* Final navigation contrast: white navigation with each theme's primary color. */
[class*="site-header"] {
  background: #fff !important;
  color: var(--primary, #1E3A5F) !important;
  border-bottom: 1px solid color-mix(in srgb, var(--primary, #1E3A5F) 18%, #fff) !important;
}
[class*="site-header"] nav {
  background: #fff !important;
}
[class*="mobile-toggle"] {
  color: var(--primary, #1E3A5F) !important;
  background: #fff !important;
  border-color: color-mix(in srgb, var(--primary, #1E3A5F) 25%, #fff) !important;
}
[class*="nav-menu"] {
  background: #fff !important;
  color: var(--primary, #1E3A5F) !important;
}
[class*="nav-menu"] > li > a,
[class*="nav-menu"] > li > a:visited {
  color: var(--primary, #1E3A5F) !important;
  background: transparent !important;
  text-decoration: none !important;
}
[class*="nav-menu"] > li > a:hover,
[class*="nav-menu"] > li > a:focus-visible,
[class*="nav-menu"] > li > a.active,
[class*="nav-menu"] > li > a[aria-current="page"] {
  color: var(--primary-hover, var(--primary, #1E3A5F)) !important;
  background: color-mix(in srgb, var(--primary, #1E3A5F) 9%, #fff) !important;
}
[class*="nav-menu"] li ul,
[class*="nav-menu"] li ul a,
[class*="nav-menu"] li ul a:visited {
  background: #fff !important;
  color: var(--primary, #1E3A5F) !important;
}
[class*="nav-menu"] li ul a:hover,
[class*="nav-menu"] li ul a:focus-visible {
  background: color-mix(in srgb, var(--primary, #1E3A5F) 9%, #fff) !important;
  color: var(--primary-hover, var(--primary, #1E3A5F)) !important;
}
@supports not (background: color-mix(in srgb, white 10%, #466577)) {
  [class*="site-header"] { border-bottom-color: #d8dee6 !important; }
  [class*="nav-menu"] > li > a:hover,
  [class*="nav-menu"] > li > a:focus-visible,
  [class*="nav-menu"] > li > a.active,
  [class*="nav-menu"] > li > a[aria-current="page"],
  [class*="nav-menu"] li ul a:hover,
  [class*="nav-menu"] li ul a:focus-visible {
    background: #f2f5f8 !important;
  }
}
@media (max-width: 767px) {
  [class*="nav-menu"],
  [class*="nav-menu"].open,
  [class*="site-header"] nav {
    background: #fff !important;
  }
}

/* Font Awesome local icon alignment. */
.feature-icon > .fa-solid, .contact-icon > .fa-solid { font-size: 1.35em; line-height: 1; }
.footer-contact-item > .fa-solid { flex: 0 0 1.05em; margin-top: .15em; text-align: center; }
.article-card-meta .fa-solid, .article-meta .fa-solid, .meta .fa-solid { margin-right: .25rem; }
.mobile-toggle .fa-solid, [class*="mobile-toggle"] .fa-solid, .header-search button .fa-solid, [class*="header-search"] button .fa-solid { line-height: 1; }
