/* 极简统一样式系统（重写版） */
:root {
  /* 主题色与灰阶 */
  --primary-50: #eff6ff;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* 背景与文本 */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --surface: #ffffff;
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-tertiary: #9ca3af;

  /* 形状与阴影 */
  --radius-md: 0.5rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.10);

  /* 间距系统 */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* 视觉高度（随视口自适应） */
  --hero-visual-height: clamp(200px, 28vw, 320px);
}

/* 基础重置与排版 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: clamp(15px, 1.6vw, 18px); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }

/* 顶部导航（简化版） */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #e5e7eb; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: var(--space-md); }
.logo img { height: 40px; width: auto; }
.logo strong { color: var(--gray-900); font-weight: 800; font-size: 1.1rem; }
/* 站点标题：标签+分隔符+副标题，水平排布 */
.logo .site-title { display: inline-flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
.logo .site-title .brand-tag { display: inline-block; padding: 0.125rem 0.375rem; border-radius: var(--radius-md); border: 1px solid rgba(37,99,235,0.25); background: transparent; color: var(--primary-700); font-weight: 700; line-height: 1; }
.logo .site-title .sep { color: var(--text-tertiary); font-weight: 700; }
.logo .site-title .subtitle { color: var(--text-secondary); font-weight: 500; }
.nav { display: flex; gap: var(--space-lg); }
.nav a { color: var(--gray-800); text-decoration: none; font-weight: 600; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-md); }
.nav a:hover { color: var(--primary-700); background: var(--primary-50); }

/* 移动端导航适配（汉堡按钮 + 下拉菜单） */
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; gap: 4px; border: 1px solid #e5e7eb; border-radius: var(--radius-md); background: #fff; cursor: pointer; }
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: var(--gray-700); }
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .header .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e5e7eb; padding: var(--space-md) var(--space-xl); flex-direction: column; gap: var(--space-sm); }
  body.nav-open .header .nav { display: flex; }
}

/* 区块与通用文案 */
.section { padding: calc(var(--space-3xl) / 2) 0; }
.section:nth-child(even) { background: #fff; }
.section h2 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; color: var(--gray-900); text-align: center; margin-bottom: var(--space-md); }
.section .desc { color: var(--text-secondary); font-size: clamp(1rem, 1.8vw, 1.125rem); text-align: center; max-width: 700px; margin: 0 auto var(--space-2xl); }
@media (max-width: 768px) { #services .desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } }
@media (max-width: 768px) { #services .desc.expanded { -webkit-line-clamp: unset; overflow: visible; } }
@media (max-width: 768px) { #services .desc-toggle { display: inline-flex; margin-top: var(--space-sm); } }

/* 无上下间距的 Section（仅用于服务横幅） */
.section--no-spacing { padding-top: 0; padding-bottom: 0; }

/* 英雄区（重写） */
.hero { position: relative; padding: calc(var(--space-3xl) / 2) 0; background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%); }
.hero .container { text-align: center; max-width: 1200px; padding: 0 var(--space-2xl); }
.hero h1, #hero-title, #hero-title-guardian { font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; margin-bottom: var(--space-lg); }
#hero-title { font-size: clamp(1.8rem, 3.0vw, 2.4rem); line-height: 1.14; }
#hero-title-guardian { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; }
.hero p, .hero-subtitle, #hero-subtitle, #hero-subtitle-guardian { font-size: clamp(0.95rem, 1.7vw, 1.125rem); color: var(--text-secondary); max-width: 640px; margin: 0 auto var(--space-xl); }
.hero .badge { display: inline-block; padding: 0.375rem 0.75rem; border-radius: var(--radius-xl); background: rgba(17, 24, 39, 0.08); color: var(--text-primary); font-weight: 600; margin-bottom: var(--space-md); }

.hero .hero-grid { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.hero .hero-copy { text-align: left; max-width: 680px; }
.hero .hero-copy p { margin: 0 0 var(--space-lg); }
.hero .hero-visual { margin: 0; text-align: center; }
.hero .hero-visual img { width: auto; height: var(--hero-visual-height); display: block; object-fit: contain; margin-left: auto; margin-right: auto; }
.hero .hero-visual figcaption { margin-top: var(--space-sm); color: var(--text-secondary); font-size: 0.95rem; text-align: center; }

/* 管家式服务（第2屏）文案与CTA居中对齐 */
#hero-slide-2 .hero-copy { text-align: center; margin-left: auto; margin-right: auto; }
#hero-slide-2 .hero-copy p { margin-left: auto; margin-right: auto; }
#hero-slide-2 .hero-copy .cta { justify-content: center; margin-left: auto; margin-right: auto; }
/* 管家式服务（第2屏）文案行距与间距统一 */
#hero-slide-2 .hero-copy h2 { margin-bottom: var(--space-md); }

/* 案例模板页面布局与排版优化 */
.case-hero { padding: var(--space-3xl) 0; background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%); }
.case-hero .container { max-width: 1000px; text-align: center; padding: 0 var(--space-2xl); border: 1px solid #e5e7eb; border-radius: var(--radius-2xl); }
.case-hero h1 { font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.2; margin-bottom: var(--space-md); }
.case-hero .desc { color: var(--text-secondary); font-size: 1.0625rem; max-width: 720px; margin: 0 auto var(--space-xl); }
.kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); align-items: stretch; margin-top: var(--space-lg); }
.kpi .item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-md); border: 1px solid #e5e7eb; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.kpi .num { font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.75rem); color: var(--primary-700); margin-bottom: var(--space-xs); }

.case-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-2xl); align-items: start; margin-top: var(--space-2xl); }
.case-body article { display: grid; gap: var(--space-2xl); }
.case-body .aside { position: sticky; top: 96px; border-left: 1px solid #e5e7eb; padding-left: var(--space-lg); }
.case-body .aside h3 { font-size: 1.125rem; margin-bottom: var(--space-md); }
.case-body .aside ul { display: grid; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.case-body .aside a.btn { width: 100%; text-align: center; }
.case-body .section-list { margin-left: var(--space-md); line-height: 1.8; }
.case-body .section-content { line-height: 1.8; }

.case-gallery .media-grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-gallery .media-grid > * { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.case-gallery .media-grid > *:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

@media (max-width: 1024px) {
  .case-body { grid-template-columns: 1fr; }
  .case-body .aside { position: static; border-left: 0; padding-left: 0; }
  .kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-gallery .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kpi { grid-template-columns: 1fr; }
  .case-gallery .media-grid { grid-template-columns: 1fr; }
}
#hero-slide-2 .hero-copy .hero-subtitle { margin: 0 auto var(--space-md); }
#hero-slide-2 .hero-copy .hero-note p { margin: 0 auto var(--space-md); line-height: 1.7; }
#hero-slide-2 .hero-copy .cta { margin-top: var(--space-lg); }

@media (max-width: 768px) {
  .hero .hero-grid { flex-direction: row; flex-wrap: nowrap; }
  .hero .hero-copy { text-align: left; }
}

/* 英雄轮播（保持现有结构兼容） */
.hero .hero-carousel { position: relative; overflow: hidden; min-height: var(--hero-visual-height); }
.hero .hero-track { display: flex; transition: transform 0.6s ease; will-change: transform; }
.hero .hero-slide { min-width: 100%; }
.hero .hero-dots { position: absolute; left: 50%; bottom: var(--space-md); transform: translateX(-50%); display: flex; gap: 6px; padding: 0; border-radius: var(--radius-xl); background: transparent; }
.hero .hero-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; border: 1px solid var(--gray-300); opacity: 0.8; cursor: pointer; transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.hero .hero-dots .dot.is-active,
.hero .hero-dots .dot[aria-selected="true"] { background: var(--gray-700); border-color: var(--gray-700); opacity: 0.7; }
.hero .hero-dots .dot:hover { opacity: 1; border-color: var(--gray-500); }
.hero .hero-dots .dot:focus-visible { outline: 2px solid rgba(37,99,235,0.30); outline-offset: 2px; }
/* 入场动效 */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
/* 统一 section 外框与左右留白（含 hero） */
.section > .container, .hero > .container { background: var(--surface); border: 1px solid #e5e7eb; border-radius: var(--radius-2xl); padding: var(--space-2xl); box-shadow: var(--shadow-sm); }

/* 服务横幅（重写） */
.section-banner { padding: 0; }
.section-banner .banner { position: relative; border-radius: var(--radius-2xl); overflow: hidden; background: transparent; height: var(--hero-visual-height); }
.section-banner .banner { touch-action: pan-y; cursor: grab; }
.banner-track { position: relative; height: 100%; }
.banner-slide { position: absolute; inset: 0; background-color: #ffffff; background-size: contain; background-repeat: no-repeat; background-position: center; opacity: 0; transition: opacity 0.6s ease; }
.banner-slide.active { opacity: 1; }
.banner-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-primary); padding: var(--space-lg); background: transparent; }
/* 横幅文案字号优化 */
.section-banner .banner-overlay h3 { font-weight: 800; letter-spacing: -0.01em; font-size: clamp(1.25rem, 2.8vw, 2rem); }
.section-banner .banner-overlay p { color: var(--text-secondary); font-size: clamp(1rem, 2.2vw, 1.5rem); }
.banner-dots { position: absolute; bottom: var(--space-xl); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; opacity: 0.6; }
.banner-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.14); cursor: pointer; transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease; }
.banner-dots .dot.active { background: rgba(0,0,0,0.28); opacity: 0.85; transform: none; }

/* 服务介绍（与英雄区对齐） */
.services-box { width: 100%; border-radius: var(--radius-2xl); background: transparent; padding: 0; }

/* Services banner section overrides: match outer section/container height to inner banner and remove outer rounding */
#services-banner { padding: 0 !important; }
#services-banner > .container { padding: 0; background: transparent; border: none; border-radius: 0; box-shadow: none; }
#services-banner .banner { height: var(--hero-visual-height); }
/* Remove all inner paddings for the services banner block */
#services-banner .banner { padding: 0; }
#services-banner .banner-overlay { padding: 0; }
/* 大屏幕下进一步增大横幅文字字号 */
@media (min-width: 1024px) {
  #services-banner .banner-overlay h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
  #services-banner .banner-overlay p { font-size: clamp(1.125rem, 2.4vw, 1.6rem); }
}

/* 全局间距统一至 .section/.hero，移除局部冗余覆盖 */
.services-grid { display: grid; gap: var(--space-lg); align-items: center; justify-items: center; }
@media (min-width: 769px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; text-align: center; } }
.services-visual { margin: 0; justify-self: center; }
.services-visual img { width: auto; height: var(--hero-visual-height); display: block; max-width: 520px; object-fit: contain; }
@media (max-width: 768px) { .services-visual img { width: 100%; max-width: 100%; height: auto; } }
.services-copy { max-width: 720px; }
.services-copy h2 { font-weight: 800; color: var(--text-primary); }
.services-copy p { color: var(--text-secondary); }

/* 服务保障（图片与布局对齐到 Hero/Services） */
#assurance { background: #ffffff; }
.assurance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.assurance-visual { margin: 0; justify-self: center; }
.assurance-visual img { width: auto; height: var(--hero-visual-height); display: block; max-width: 520px; object-fit: contain; }
.assurance-copy { max-width: 720px; }
.assurance-copy h2 { font-weight: 800; color: var(--text-primary); }
.assurance-copy p { color: var(--text-secondary); }

/* 服务保障：桌面端规则已合并入基础定义，移除冗余媒体覆盖 */

/* 保障区漫画（恢复栅格与卡片，防止大图溢出） */
#assurance .assurance-comic { margin-top: var(--space-2xl); }
#assurance .comic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-xl); }
#assurance .comic-item { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius-2xl); padding: var(--space-lg); box-shadow: var(--shadow-sm); }
#assurance .comic-item img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); object-fit: contain; }
#assurance .comic-item figcaption { margin-top: var(--space-sm); color: var(--text-secondary); font-size: 0.9rem; text-align: center; }

/* 漫画标题与说明文本居中 */
.assurance-comic .comic-title,
.assurance-comic .comic-desc { text-align: center; }

/* 服务保障与卡片 */
#assurance { background: #ffffff; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); margin-top: var(--space-2xl); }
.card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--surface); border: 1px solid #e5e7eb; border-radius: var(--radius-2xl); padding: var(--space-xl); box-shadow: var(--shadow-sm); height: 100%; }
.card h3 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-md); }
.card p { color: var(--text-secondary); line-height: 1.7; }

/* 品牌展示 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-md); margin-top: var(--space-lg); background: #fff; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-sm); background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius-xl); height: 140px; padding: var(--space-md); text-decoration: none; color: inherit; }
.partner img { width: auto; height: 60px; max-width: 80%; object-fit: contain; transition: transform 0.25s ease, filter 0.25s ease; }
.partner { transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.2s ease; }
.partner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d5d9e2; }
.partner:hover img { transform: scale(1.06); filter: saturate(1.05) contrast(1.02); }
.partner-name { font-size: 0.875rem; color: var(--text-secondary); text-align: center; font-weight: 500; }
/* 已移除卡片类别标签，避免影响布局 */
/* 合作品牌栅格自适应列数与尺寸 */
@media (max-width: 1200px) { .partner-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1024px) {
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .partner { height: 130px; }
  .partner img { height: 56px; }
}
@media (max-width: 768px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .partner { height: 120px; }
  .partner img { height: 52px; }
}
@media (max-width: 640px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .partner { height: 110px; }
  .partner img { height: 48px; }
}
@media (max-width: 420px) {
  .partner-grid { grid-template-columns: 1fr; }
  .partner { height: auto; padding: var(--space-lg); }
  .partner img { height: 44px; }
}

/* 品牌区工具栏：按钮居中 */
.brand-toolbar { display: flex; justify-content: center; margin-top: var(--space-md); }

/* 行业类别切换（tabs/pills） */
.category-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; margin: var(--space-md) 0 var(--space-md); }
.category-toolbar .tab { display: inline-flex; align-items: center; justify-content: center; padding: 0.375rem 0.75rem; border-radius: var(--radius-xl); border: 1px solid #e5e7eb; background: #fff; color: var(--gray-800); font-weight: 500; font-size: 0.95rem; cursor: pointer; }
.category-toolbar .tab:hover { box-shadow: var(--shadow-sm); }
.category-toolbar .tab.active { background: var(--primary-50); color: var(--primary-700); border-color: rgba(37,99,235,0.35); }
.category-toolbar .tab .count { margin-left: 6px; color: var(--text-tertiary); font-weight: 600; font-size: 0.85em; }

/* 按钮 */
.cta { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: clamp(0.6rem, 1.6vw, 0.9rem) clamp(1rem, 2.6vw, 1.75rem); border-radius: var(--radius-xl); font-weight: 600; font-size: clamp(0.95rem, 1.6vw, 1.05rem); text-decoration: none; border: none; cursor: pointer; min-width: clamp(120px, 22vw, 160px); }
.btn-primary { background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%); color: #fff; }
.btn-secondary { background: #fff; color: var(--gray-900); border: 1px solid #e5e7eb; }
/* 按钮动效与悬停反馈 */
.btn { transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { box-shadow: 0 6px 14px rgba(37,99,235,0.18); }
.btn-primary:hover { box-shadow: 0 8px 18px rgba(29,78,216,0.28); }
.btn-secondary { box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); }

/* 联系我们：动作按钮居中 */
.contact-actions { display: flex; justify-content: center; gap: var(--space-md); margin-top: var(--space-md); }

/* 联系我们：微信二维码卡片 */
.contact-card--wechat .qr { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.contact-card--wechat img { width: 140px; height: 140px; border: 1px solid #e5e7eb; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); background: #fff; object-fit: contain; }
.contact-card--wechat .qr-caption { color: var(--text-secondary); font-size: 0.85rem; }

/* 细节优化 */
.hero .hero-grid.hero-slide--text-only { flex-direction: column; align-items: center; justify-content: center; min-height: var(--hero-visual-height); }
.hero .hero-grid.hero-slide--text-only .hero-copy { max-width: 720px; text-align: center; }
.hero .hero-grid.hero-slide--text-only .hero-copy p { margin-left: auto; margin-right: auto; }

/* 对比说明：增强视觉冲击与强调 */
.comparison { margin-top: var(--space-2xl); }
.comparison h3 { text-align: center; margin-bottom: var(--space-lg); }
.compare-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
@media (min-width: 769px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.card.compare { background: #ffffff; border: 2px solid #e5e7eb; border-radius: var(--radius-2xl); padding: var(--space-2xl); box-shadow: var(--shadow-md); }
.card.compare h4 { font-size: 1.25rem; font-weight: 800; text-align: center; margin-bottom: var(--space-md); }
.card.compare ul { color: var(--text-secondary); line-height: 1.8; margin-left: 1.25rem; }
.card.compare.positive { border-color: var(--primary-600); background: linear-gradient(180deg, #ffffff 0%, rgba(37,99,235,0.06) 100%); }
.card.compare.negative { border-color: #fecaca; background: linear-gradient(180deg, #ffffff 0%, rgba(254,202,202,0.12) 100%); }
/* 卡片动效与悬停反馈 */
.card, .card.compare { transition: transform 0.2s ease, box-shadow 0.3s ease; }

/* Logo 显隐逻辑：有图显示图片，无图仅显示文字 */
.logo.has-logo .site-title { display: none; }
.logo.has-logo img { display: inline; }
.logo.no-logo img { display: none; }
.logo.no-logo .site-title { display: inline-flex; }
.card:hover, .card.compare:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* 底部 Footer：增强显示并居中 */
.footer { background: var(--bg-secondary); border-top: 1px solid #e5e7eb; padding: var(--space-xl) 0; text-align: center; }
.footer small { color: var(--text-secondary); }

/* 联系我们弹窗样式 */
.dialog[hidden] { display: none; }
.dialog { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.dialog-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.dialog-content { position: relative; width: min(680px, calc(100% - 2rem)); background: #fff; border-radius: var(--radius-2xl); box-shadow: var(--shadow-md); padding: var(--space-2xl); z-index: 1; }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 1px solid #e5e7eb; border-radius: 50%; background: #fff; color: var(--gray-700); cursor: pointer; }
.dialog-close:hover { box-shadow: var(--shadow-md); }

#contact-form { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-md); }
.form-row label { font-weight: 600; color: var(--text-primary); }
.form-row input,
.form-row select,
.form-row textarea { padding: 0.75rem 0.875rem; border: 1px solid #e5e7eb; border-radius: var(--radius-md); font-size: 1rem; }
.form-actions { display: flex; gap: var(--space-md); justify-content: flex-end; margin-top: var(--space-lg); }
.form-hint { margin-top: var(--space-md); color: var(--text-secondary); font-size: 0.95rem; }

@media (max-width: 480px) {
  .dialog-content { padding: var(--space-xl); }
}

/* 大屏幕下仅针对明确段落进行单行显示，服务介绍保持换行 */
@media (min-width: 1024px) {
  /* 首页横幅两段说明强制单行 */
  #hero-subtitle,
  #hero-subtitle-guardian,
  .hero-note p {
    white-space: nowrap;
    max-width: none;
  }
  /* 合作案例说明单行 */
  #cases .desc { white-space: nowrap; max-width: none; }
  /* 解除英雄区文案容器宽度限制，便于单行展示 */
  .hero .hero-copy { max-width: none; }
}
