/* 京华橡胶官网 —— 纯静态版样式
   来源：yudao-ui-jh/src/views/website/{styles.scss, Home, Products, Factory, Cases, News, Contact, ChatWidget}
   已剔除与后台 SPA 相关的部分（#app 嵌套、website-open 滚动解锁、element-plus 下拉、member 登录态）。 */

:root {
  --site-ink: #1a2226;
  --site-ink-2: #2b383d;
  --site-brand: #e8590c;
  --site-brand-dark: #c7450a;
  --site-mist: #f5f2ec;
  --site-line: #e4e0d8;
  --site-muted: #6b6f6a;
  --site-white: #ffffff;
}

/* ============ 基础重置（替代 SPA 里 element-plus + 全局样式提供的那部分） ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--site-mist);
  color: var(--site-ink);
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  border: 0;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
button {
  font-family: inherit;
}
a {
  color: inherit;
}

/* ============ 布局骨架 ============ */
.site-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--site-mist);
  color: var(--site-ink);
  overflow-x: hidden;
}

.site-container {
  width: 1180px;
  max-width: 94vw;
  margin: 0 auto;
}

.site-main {
  flex: 1;
}

/* ============ 顶栏 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 34, 38, 0.96);
  backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo-img {
  height: 40px;
  width: auto;
  /* 深色版厂标放在深色页头上：加白色衬底保证清晰 */
  background: #fff;
  padding: 3px 9px;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--site-brand);
  transition: width 0.25s;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a.site-nav-active {
  color: #fff;
}

.site-nav a.site-nav-active::after {
  width: 100%;
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-tel {
  font-size: 15px;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.site-tel .site-tel-ico {
  color: var(--site-brand);
}

/* ============ 语言切换器（下拉单选，details/summary 零 JS 可开合） ============ */
.site-lang {
  position: relative;
}

.site-lang-dd > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-lang-dd > summary::-webkit-details-marker {
  display: none;
}

.site-lang-dd > summary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.site-lang-globe { font-size: 14px; line-height: 1; }
.site-lang-current { min-width: 42px; text-align: left; }
.site-lang-caret { font-size: 10px; opacity: 0.8; transition: transform 0.15s ease; }
.site-lang-dd[open] .site-lang-caret { transform: rotate(180deg); }

.site-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #1b262c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 1000;
}

.site-lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  white-space: nowrap;
}

.site-lang-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-lang-menu a.site-lang-on {
  color: var(--site-brand);
  font-weight: 600;
}

.site-lang-check { font-size: 12px; }

/* ============ CTA / 页脚 ============ */
.site-cta {
  background: linear-gradient(120deg, #141c1f, #223036);
  color: #fff;
  padding: 56px 0;
}

.site-cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.site-cta h3 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 10px;
}

.site-cta p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 24px;
  font-size: 15px;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.site-btn-brand {
  background: var(--site-brand);
  color: #fff;
}

.site-btn-brand:hover {
  background: var(--site-brand-dark);
}

.site-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.site-btn-ghost:hover {
  border-color: #fff;
}

.site-footer {
  background: #111719;
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0 26px;
  font-size: 13px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 14px;
}

.site-footer p {
  line-height: 1.8;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer-bottom {
  padding-top: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

/* ============ 通用区块 ============ */
.site-section {
  padding: 72px 0;
}

.site-section-alt {
  background: var(--site-white);
}

.site-section-title {
  text-align: center;
}

.site-section-title h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 12px;
}

.site-section-title p {
  color: var(--site-muted);
  font-size: 15px;
  margin: 0 auto 40px;
  max-width: 720px;
  line-height: 1.7;
}

.site-eyebrow {
  display: inline-block;
  color: var(--site-brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* ============ 内页通用 Hero ============ */
.site-page {
  background: var(--site-mist);
}

.sp-hero {
  background: var(--site-ink);
  color: #fff;
  padding: 64px 0;
}

.sp-hero h1 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 10px;
}

.sp-hero p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 680px;
  line-height: 1.7;
}

/* ============ 内页面包屑（可用性 + SEO 内链，见 build.py crumb()） ============ */
.sp-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.sp-crumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.sp-crumb a:hover {
  color: #fff;
}

.sp-crumb-sep {
  opacity: 0.45;
}

.sp-crumb-cur {
  color: rgba(255, 255, 255, 0.85);
  max-width: 62vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ 内页 hero 左右两栏 + 右侧数据卡（信任状） ============ */
.sp-hero-flex {
  display: flex;
  align-items: center;
  gap: 56px;
}

.sp-hero-main {
  flex: 1 1 auto;
  min-width: 0;
}

.sp-hero-side {
  flex: 0 0 auto;
  display: flex;
  gap: 14px;
}

.sp-stat {
  min-width: 116px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

/* hover：上浮 + 品牌橙描边 + 数字点亮。卡片不可点，cursor 保持 default 不误导 */
.sp-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 89, 12, 0.65);
  background: rgba(255, 255, 255, 0.09);
}

.sp-stat:hover .sp-stat-val {
  color: #f0a86a;
}

.sp-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.sp-stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

/* 减弱动效偏好：去掉上浮，仅保留颜色反馈 */
@media (prefers-reduced-motion: reduce) {
  .sp-stat {
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }
  .sp-stat:hover {
    transform: none;
  }
}

/* ============ 首页 Hero ============ */
.sh-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
}

.sh-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/hero.jpg');
  background-size: cover;
  background-position: center;
}

.sh-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 22, 25, 0.92) 0%, rgba(16, 22, 25, 0.55) 55%, rgba(16, 22, 25, 0.25) 100%);
}

.sh-hero-inner {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  max-width: 680px;
  margin-left: max(0px, calc((100% - 1180px) / 2));
}

.sh-hero-eyebrow {
  display: inline-block;
  color: #f0a86a;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding: 5px 12px;
  border: 1px solid rgba(240, 168, 106, 0.5);
  border-radius: 4px;
}

.sh-hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 18px;
}

.sh-hero-title span {
  color: #ff7f3a;
}

.sh-hero-sub {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 30px;
}

.sh-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============ 数据栏 ============ */
.sh-stats {
  background: var(--site-ink);
  color: #fff;
}

.sh-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 36px 0;
}

.sh-stat {
  text-align: center;
  padding: 10px;
}

.sh-stat-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--site-brand);
}

.sh-stat-label {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ============ 客户墙 ============ */
.sh-clients,
.sc-clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.sh-client,
.sc-client {
  padding: 14px 24px;
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--site-ink);
  min-width: 160px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ============ 首页 产品中心 ============ */
.sh-products {
  background: var(--site-mist);
}

.sh-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.sh-product-card {
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.sh-product-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.sh-product-img {
  height: 220px;
  overflow: hidden;
}

.sh-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-product-body {
  padding: 24px;
}

.sh-product-body h3 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 6px;
}

.sh-product-tag {
  color: var(--site-muted);
  font-size: 13px;
  margin: 0 0 14px;
  line-height: 1.6;
}

.sh-product-items {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sh-product-items li {
  background: var(--site-mist);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--site-ink-2);
}

.sh-product-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--site-mist);
  border-radius: 6px;
  margin-bottom: 14px;
}

.sh-product-feature-val {
  font-weight: 700;
  color: var(--site-brand);
  font-size: 14px;
}

.sh-product-feature-label {
  font-size: 13px;
  color: var(--site-muted);
}

.sh-product-link {
  background: none;
  border: none;
  color: var(--site-brand);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

/* ============ 参数表 ============ */
.sh-param,
.sp-param {
  max-width: 860px;
  margin: 0 auto;
}

.sh-param-table,
.sp-param-table {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--site-line);
}

.sh-param-table tr,
.sp-param-table tr {
  border-bottom: 1px solid var(--site-line);
}

.sh-param-table tr:last-child,
.sp-param-table tr:last-child {
  border-bottom: none;
}

.sh-param-label,
.sp-param-label {
  width: 180px;
  padding: 16px 20px;
  background: var(--site-mist);
  font-weight: 600;
  font-size: 14px;
  color: var(--site-ink-2);
  text-align: left;
  vertical-align: top;
}

.sp-param-label {
  width: 200px;
}

.sh-param-value,
.sp-param-table td:last-child {
  padding: 16px 20px;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

/* ============ 首页 工厂实力（深底） ============ */
.sh-factory {
  background: var(--site-ink);
  color: #fff;
}

.sh-factory .site-section-title h2 {
  color: #fff;
}

.sh-factory .site-section-title p {
  color: rgba(255, 255, 255, 0.6);
}

.sh-factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.sh-factory-img {
  border-radius: 10px;
  overflow: hidden;
}

.sh-factory-img img {
  width: 100%;
}

.sh-factory-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sh-factory-item:last-child {
  border-bottom: none;
}

.sh-factory-item h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #fff;
}

.sh-factory-item p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  font-size: 14px;
  margin: 0;
}

/* ============ 发展历程 ============ */
.sh-timeline,
.sf-timeline {
  max-width: 760px;
  margin: 0 auto;
}

.sh-timeline-item,
.sf-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  padding-bottom: 30px;
}

.sh-timeline-item::before,
.sf-timeline-item::before {
  content: '';
  position: absolute;
  left: 74px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--site-line);
}

.sh-timeline-item:last-child::before,
.sf-timeline-item:last-child::before {
  display: none;
}

.sh-timeline-year,
.sf-timeline-year {
  width: 64px;
  font-size: 22px;
  font-weight: 800;
  color: var(--site-brand);
  flex-shrink: 0;
  text-align: right;
  padding-top: 2px;
}

.sh-timeline-dot,
.sf-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--site-brand);
  flex-shrink: 0;
  margin-top: 7px;
  z-index: 1;
  position: relative;
}

.sh-timeline-text,
.sf-timeline-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--site-ink-2);
  padding-top: 1px;
}

/* ============ 首页 案例 / 文章 ============ */
.sh-cases {
  background: var(--site-mist);
}

.sh-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sh-case-card {
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.sh-case-card:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.sh-case-img {
  height: 180px;
  overflow: hidden;
}

.sh-case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-case-body {
  padding: 20px;
}

.sh-case-type {
  display: inline-block;
  color: var(--site-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.sh-case-body h3 {
  font-size: 17px;
  margin: 0 0 10px;
}

.sh-case-body p {
  font-size: 14px;
  color: var(--site-muted);
  line-height: 1.7;
  margin: 0 0 12px;
}

.sh-case-extra {
  font-size: 12px;
  color: var(--site-ink-2);
  background: var(--site-mist);
  padding: 8px 12px;
  border-radius: 4px;
}

.sh-article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sh-article-item {
  display: block;
  text-decoration: none;
  color: var(--site-ink);
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  padding: 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sh-article-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.sh-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.sh-article-cat {
  color: var(--site-brand);
  font-size: 13px;
  font-weight: 600;
}

.sh-article-new {
  background: var(--site-brand);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.sh-article-item h3 {
  font-size: 17px;
  margin: 0 0 8px;
  line-height: 1.5;
}

.sh-article-item p {
  color: var(--site-muted);
  font-size: 13px;
  margin: 0;
}

/* ============ 首页 联系 ============ */
.sh-contact {
  background: #fff;
}

.sh-contact-box {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(120deg, #141c1f, #223036);
  border-radius: 12px;
  color: #fff;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.sh-contact-info h2 {
  font-size: 26px;
  margin: 0 0 8px;
}

.sh-contact-info p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.7;
  max-width: 420px;
}

.sh-contact-line {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sh-contact-line:first-child {
  border-top: none;
}

/* ============ 产品中心页 ============ */
.sp-list {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.sp-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  padding: 30px;
}

.sp-block-img {
  border-radius: 10px;
  overflow: hidden;
}

.sp-block-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.sp-block-body {
  position: relative;
}

.sp-block-index {
  position: absolute;
  top: -8px;
  right: 0;
  font-size: 60px;
  font-weight: 800;
  color: rgba(26, 34, 38, 0.08);
}

.sp-block-body h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
}

.sp-block-tag {
  color: var(--site-brand);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
}

.sp-block-intro {
  color: var(--site-muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

.sp-block-items {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-block-items li {
  background: var(--site-mist);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 13px;
}

.sp-block-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--site-mist);
  border-radius: 6px;
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--site-brand);
  font-size: 14px;
}

.sp-block-feature-label {
  color: var(--site-muted);
  font-weight: 400;
  font-size: 13px;
}

/* ============ 工厂实力页 ============ */
.sf-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.sf-block:last-child {
  margin-bottom: 0;
}

.sf-block-reverse {
  direction: rtl;
}

.sf-block-reverse > * {
  direction: ltr;
}

.sf-block-img {
  border-radius: 12px;
  overflow: hidden;
}

.sf-block-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.sf-block-body h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 16px;
}

.sf-block-body p {
  color: var(--site-muted);
  line-height: 1.85;
  font-size: 15px;
  margin: 0;
}

.sf-certs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sf-cert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
}

.sf-cert-check {
  color: var(--site-brand);
  font-size: 20px;
}

/* ============ 客户案例页 ============ */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.sc-card {
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s;
}

.sc-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.sc-img {
  height: 200px;
  overflow: hidden;
}

.sc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sc-type {
  display: inline-block;
  color: var(--site-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.sc-body h2 {
  font-size: 19px;
  margin: 0 0 16px;
  line-height: 1.4;
}

.sc-problem,
.sc-result {
  margin-bottom: 14px;
}

.sc-label {
  display: inline-block;
  background: var(--site-mist);
  color: var(--site-ink-2);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.sc-problem p,
.sc-result p {
  font-size: 14px;
  color: var(--site-muted);
  line-height: 1.7;
  margin: 0;
}

.sc-result p {
  color: var(--site-ink);
}

.sc-extra {
  margin-top: auto;
  font-size: 12px;
  color: var(--site-ink-2);
  background: var(--site-mist);
  padding: 10px 12px;
  border-radius: 6px;
}

/* ============ 新闻资讯页 ============ */
.sn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sn-card {
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.sn-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.sn-cat {
  color: var(--site-brand);
  font-size: 13px;
  font-weight: 700;
}

.sn-new {
  background: var(--site-brand);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.sn-note {
  color: var(--site-muted);
  font-size: 12px;
}

.sn-card h2 {
  font-size: 19px;
  margin: 0 0 14px;
  line-height: 1.5;
}

.sn-body {
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 18px;
  flex: 1;
}

.sn-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--site-line);
  font-size: 13px;
  color: var(--site-muted);
  gap: 12px;
  flex-wrap: wrap;
}

.sn-link {
  color: var(--site-brand);
  text-decoration: none;
  font-weight: 600;
}

/* ============ 联系我们页 ============ */
.sct-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.sct-info h2 {
  font-size: 24px;
  margin: 0 0 10px;
}

.sct-desc {
  color: var(--site-muted);
  line-height: 1.7;
  margin: 0 0 24px;
}

.sct-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--site-line);
}

.sct-label {
  width: 48px;
  color: var(--site-muted);
  font-size: 14px;
  flex-shrink: 0;
}

.sct-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--site-ink);
  word-break: break-all;
}

.sct-value a {
  text-decoration: none;
  color: inherit;
}

.sct-note {
  margin-top: 20px;
  color: var(--site-muted);
  font-size: 13px;
}

.sct-form {
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  padding: 30px;
}

.sct-form h3 {
  font-size: 20px;
  margin: 0 0 22px;
}

.sct-field {
  margin-bottom: 18px;
}

.sct-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.sct-field input,
.sct-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid var(--site-line);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--site-mist);
  color: var(--site-ink);
  outline: none;
  transition: border-color 0.2s;
}

.sct-field input:focus,
.sct-field textarea:focus {
  border-color: var(--site-brand);
  background: #fff;
}

.sct-submit {
  width: 100%;
  margin-top: 4px;
}

.sct-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.sct-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--site-muted);
  text-align: center;
}

.sct-msg {
  display: none;
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.sct-msg.is-error {
  display: block;
  background: #fdf0ef;
  border: 1px solid #f3c9c4;
  color: #a32d2d;
}

/* ---- 图纸/照片上传 + OCR 识别提示 ---- */
.sct-upload {
  position: relative;
}

/* input 透明铺满整个上传区：点击即打开文件选择器（含手机拍照入口），无需 JS 转发 */
.sct-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.sct-upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 14px;
  border: 1.5px dashed var(--site-line);
  border-radius: 8px;
  color: var(--site-muted);
  font-size: 14px;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
}

.sct-upload:hover .sct-upload-box {
  border-color: var(--site-brand);
  background: #fff;
}

.sct-upload-ico {
  font-size: 18px;
  line-height: 1;
}

.sct-upload-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  background: #fafafa;
}

.sct-upload-preview img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--site-line);
  background: #fff;
  flex: none;
}

.sct-upload-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--site-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sct-upload-remove {
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--site-line);
  border-radius: 50%;
  background: #fff;
  color: var(--site-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.sct-upload-remove:hover {
  border-color: #d98080;
  color: #a32d2d;
}

.sct-ocr {
  display: none;
  margin: 10px 0 0;
  padding: 9px 13px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.sct-ocr.is-busy {
  display: block;
  background: #f2f5f9;
  border: 1px solid #d7dfe8;
  color: #4a5b6d;
}

.sct-ocr.is-ok {
  display: block;
  background: #f0f7f1;
  border: 1px solid #cfe3d2;
  color: #2f6b3a;
}

.sct-ocr.is-error {
  display: block;
  background: #fdf0ef;
  border: 1px solid #f3c9c4;
  color: #a32d2d;
}

.sct-success {
  background: #f0f7f1;
  border: 1px solid #cfe3d2;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  font-size: 16px;
  color: var(--site-ink);
}

.sct-success-sub {
  margin-top: 8px;
  color: var(--site-muted);
  font-size: 14px;
}


/* ============ 响应式 ============ */
@media (max-width: 900px) {
  /* 数据卡折到标题下方，避免挤压左栏文字 */
  .sp-hero-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .site-header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 8px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    overflow-x: auto;
  }
  .site-nav a {
    font-size: 14px;
    white-space: nowrap;
  }
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .sh-hero-title {
    font-size: 34px;
  }
  .sh-hero-inner {
    margin-left: 3vw;
    max-width: 94vw;
  }
  .sh-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sh-product-grid,
  .sh-factory-grid,
  .sh-article-list {
    grid-template-columns: 1fr;
  }
  .sh-case-grid,
  .sc-grid,
  .sn-grid,
  .sf-certs {
    grid-template-columns: 1fr;
  }
  .sp-block,
  .sf-block,
  .sct-grid {
    grid-template-columns: 1fr;
  }
  .sp-block-img img {
    height: 220px;
  }
  .sf-block-img img {
    height: 220px;
  }
  .sf-block-reverse {
    direction: ltr;
  }
  .sh-contact-box {
    padding: 28px;
  }
  }

/* ============ SSG 生成器新增：卡片封面 / 空态 / 新闻详情页 ============ */
.sn-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.sn-card-link:hover h2 {
  color: var(--site-brand);
}
.sn-cover {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
}
.sn-empty {
  grid-column: 1 / -1;
  color: var(--site-muted);
  line-height: 1.9;
}

.snd-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.snd-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--site-muted);
  font-size: 14px;
}
.snd-article {
  font-size: 16px;
  line-height: 1.95;
  color: var(--site-ink-2);
}
.snd-article h2 {
  font-size: 20px;
  color: var(--site-ink);
  margin: 32px 0 12px;
}
.snd-article h3 {
  font-size: 17px;
  color: var(--site-ink);
  margin: 26px 0 10px;
}
.snd-article p {
  margin: 0 0 16px;
}
.snd-article ul,
.snd-article ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.snd-article li {
  margin-bottom: 8px;
}
.snd-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.snd-article strong {
  color: var(--site-ink);
}
.snd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--site-line);
}

@media (max-width: 720px) {
  /* 移动端内页头区收紧：64px 上下 padding + 34px 标题在小屏占首屏 ~44%，压到 ~28% */
  .sp-hero {
    padding: 36px 0;
  }
  .sp-hero h1 {
    font-size: 26px;
  }
  .sp-hero p {
    font-size: 14px;
  }
  .sp-crumb {
    margin-bottom: 12px;
  }
  .sp-hero-side {
    flex-wrap: wrap;
  }
  .sp-stat {
    min-width: 96px;
    padding: 12px 14px;
  }
  .sp-stat-val {
    font-size: 19px;
  }
  .sn-cover {
    height: 148px;
  }
  .snd-foot {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- 接口为空时的区块占位（SSG 生成，见 site-gen/build.py） ---------- */
.site-empty {
  grid-column: 1 / -1;
  flex-basis: 100%;
  width: 100%;
  margin: 0;
  color: var(--site-muted);
  line-height: 1.9;
}
.sp-empty {
  margin: 0 0 14px;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.7;
}
