/* ===== 多维宇科技 官网样式 ===== */

:root {
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-primary-light: #14b8a6;
  --color-primary-lighter: #5eead4;
  --color-primary-lightest: #f0fdfa;
  --color-accent: #2dd4bf;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-white: #ffffff;
  --color-dark: #0f172a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  --radius: 12px;
  --max-width: 1200px;
  --header-height: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

p { margin-bottom: 1.2em; }
h1, h2, h3, h4, h5, h6 { margin-bottom: 0.5em; line-height: 1.3; }
h1 + p, h2 + p, h3 + p, h4 + p { margin-top: 0.4em; }

::selection { background: var(--color-primary); color: white; }
::-moz-selection { background: var(--color-primary); color: white; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; height: auto; display: block; transition: transform 0.3s ease; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
}
.logo-text { letter-spacing: -0.5px; }
.logo-img {
  height: 26px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .logo-img { height: 24px; }
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: all .25s;
  margin-left: 8px;
}
.header-phone svg { width: 15px; height: 15px; flex-shrink: 0; }
.header-phone:hover { background: var(--color-primary); color: #fff; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 13px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav a:hover { background: var(--color-primary-lightest); color: var(--color-primary-dark); }
.nav a.active { color: var(--color-primary); font-weight: 600; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--color-text); margin: 5px 0; transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 50%, #f8fafc 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(20,184,166,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--color-dark);
}
.hero h1 .accent { color: var(--color-primary); }
.hero p {
  font-size: 20px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
}
.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary:active { filter: brightness(0.9); transform: translateY(0) scale(0.98); box-shadow: var(--shadow-sm); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline:active { background: var(--color-primary-dark); color: white; transform: translateY(0) scale(0.98); }
.btn-outline:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.btn-large { padding: 16px 40px; font-size: 17px; }

/* ===== Section ===== */
.section { padding: 80px 0; }
.section + .section { margin-top: 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-bg-dark); color: #e2e8f0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-dark .section-header h2 { color: white; }
.section-header p { font-size: 18px; color: var(--color-text-muted); }
.section-dark .section-header p { color: #94a3b8; }

/* ===== Service Cards ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
  gap: 24px;
  justify-content: center;
}
.service-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: var(--color-primary-lighter);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--color-primary-lightest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; color: var(--color-primary); }
.service-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--color-dark); }
.service-card .summary { font-size: 14px; color: var(--color-text-muted); margin-bottom: 16px; }
.service-card ul { margin-top: 12px; }
.service-card ul li {
  font-size: 14px; color: var(--color-text-muted); padding: 4px 0;
  padding-left: 20px; position: relative;
}
.service-card ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary-light);
}
.service-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--color-primary);
}

/* Point title + desc for consulting detail */
.point-title { font-weight: 600; color: var(--color-dark); margin-bottom: 2px; }
.point-desc { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }

/* ===== Feature Blocks (alternating) ===== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-block:last-child { margin-bottom: 0; }
.feature-block.reverse .feature-text { order: 2; }
.feature-text h3 { font-size: 28px; font-weight: 700; margin-bottom: 16px; color: var(--color-dark); }
.feature-text p { font-size: 16px; color: var(--color-text-muted); margin-bottom: 20px; line-height: 1.8; }
.feature-text ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
}
.feature-text ul li::before {
  content: '\2713'; position: absolute; left: 0; top: 8px;
  color: var(--color-primary); font-weight: 700;
}
.feature-visual {
  background: linear-gradient(135deg, var(--color-primary-lightest), #ffffff);
  border-radius: 16px;
  padding: 48px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}
.feature-visual svg { width: 100%; max-width: 280px; }

/* ===== Cards Grid (cases, articles) ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary-lightest), var(--color-primary-lighter));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-image svg { width: 48px; height: 48px; color: var(--color-primary); opacity: 0.6; }
.card-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(13,148,136,0.9);
  color: white; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 6px;
}
.card-body { padding: 24px; }
.card-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--color-dark); }
.card-body p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }
.card-meta { font-size: 13px; color: var(--color-text-light); margin-top: 12px; }

/* ===== Process Steps ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.process-item { text-align: center; position: relative; }
.process-step {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--color-primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px; font-weight: 700;
  color: var(--color-primary);
  margin: 0 auto 16px;
  transition: all 0.3s;
}
.process-item:hover .process-step { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.process-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.process-item p { font-size: 13px; color: var(--color-text-muted); }

/* ===== Capabilities ===== */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cap-item {
  display: flex; gap: 20px;
  padding: 28px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.cap-item:hover { border-color: var(--color-primary-lighter); box-shadow: 0 8px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.cap-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--color-primary-lightest);
  display: flex; align-items: center; justify-content: center;
}
.cap-icon svg { width: 24px; height: 24px; color: var(--color-primary); }
.cap-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.cap-item p { font-size: 14px; color: var(--color-text-muted); }

/* ===== About / Values ===== */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
  text-align: center;
  padding: 32px 20px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.value-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.value-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-primary-lightest);
  display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 28px; height: 28px; color: var(--color-primary); }
.value-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--color-text-muted); }

/* ===== Contact Form ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: var(--color-text-muted); margin-bottom: 24px; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.contact-detail svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }
.contact-detail span { font-size: 15px; color: var(--color-text); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--color-text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.form-message { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; display: none; }
.form-message.success { background: #f0fdf4; color: #15803d; display: block; }
.form-message.error { background: #fef2f2; color: #dc2626; display: block; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-dark);
  color: #94a3b8;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand h3 { color: white; font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(var(--links-cols, 3), 1fr); gap: 24px; }
.footer-links h4 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 14px; padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--color-primary-light); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 13px;
}

/* ===== Page Banner ===== */
.page-banner {
  padding: calc(var(--header-height) + 60px) 0 60px;
  background: linear-gradient(135deg, var(--color-primary-lightest) 0%, #ffffff 100%);
  text-align: center;
}
.page-banner h1 { font-size: 40px; font-weight: 800; color: var(--color-dark); margin-bottom: 12px; }
.page-banner p { font-size: 18px; color: var(--color-text-muted); max-width: 640px; margin: 0 auto; }

/* ===== Article Detail ===== */
.article-detail { max-width: 800px; margin: 0 auto; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--color-text-light); margin-bottom: 24px; }
.article-content { font-size: 17px; line-height: 1.9; color: var(--color-text); }
.article-content p { margin-bottom: 20px; }
.article-content h2 { font-size: 24px; margin: 32px 0 16px; }
.article-content h3 { font-size: 20px; margin: 24px 0 12px; }


/* ===== Nav Dropdown ===== */
.nav-dropdown { position: relative; }
.nav-has-children { cursor: pointer; }
.dropdown-arrow { font-size: 10px; margin-left: 2px; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  z-index: 110;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--color-text);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--color-primary-lightest); color: var(--color-primary-dark); }

/* ===== Footer Social ===== */
.footer-social-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 12px;
}

/* ===== Responsive ===== */
/* 导航项较多（含品牌 LOGO 图片），窄屏先收起电话按钮腾出空间，更窄时导航收进汉堡菜单 */
@media (max-width: 1100px) {
  .header-phone { display: none; }
}
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: white; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .mobile-toggle { display: block; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section-header h2 { font-size: 28px; }
  .cards-grid { grid-template-columns: 1fr; }
  .feature-block { grid-template-columns: 1fr; gap: 32px; }
  .feature-block.reverse .feature-text { order: 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .page-banner h1 { font-size: 30px; }
  .section { padding: 56px 0; }
}

/* ===== Case Detail Modal ===== */
.case-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.case-modal-overlay.active { display: flex; }
.case-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.case-modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.case-modal-header h2 { font-size: 22px; font-weight: 700; color: var(--color-text); }
.case-modal-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 0 32px 16px;
  font-size: 14px; color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.case-modal-meta span {
  display: inline-flex; align-items: center; gap: 4px;
}
.case-modal-close {
  background: none; border: none; font-size: 28px;
  cursor: pointer; color: var(--color-text-muted);
  padding: 0 4px; line-height: 1; flex-shrink: 0;
  transition: color 0.2s;
}
.case-modal-close:hover { color: var(--color-text); }
.case-modal-body {
  padding: 32px;
  font-size: 15px; line-height: 1.8; color: var(--color-text);
}
.case-modal-body h1, .case-modal-body h2, .case-modal-body h3, .case-modal-body h4 { margin-top: 1.5em; margin-bottom: 0.5em; }
.case-modal-body h1 { font-size: 22px; color: var(--color-primary-dark); padding-bottom: 6px; border-bottom: 2px solid var(--color-primary-dark); }
.case-modal-body h2 { font-size: 18px; color: var(--color-primary); border-left: 3px solid var(--color-primary); padding-left: 10px; }
.case-modal-body h3 { font-size: 16px; color: var(--color-primary-light); }
.case-modal-body h4 { font-size: 15px; color: var(--color-accent); }
.case-modal-body p { margin-bottom: 1em; }
.case-modal-body a { color: var(--color-primary); text-decoration: underline; }
.case-modal-body blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 8px 16px; margin: 16px 0;
  background: var(--color-primary-lightest);
  border-radius: 0 8px 8px 0;
  color: var(--color-primary-dark);
}
.case-modal-body hr { border: none; border-top: 1px solid var(--color-border); margin: 24px 0; }
.case-modal-body img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.case-modal-body ul { list-style: disc; padding-left: 26px; margin: 12px 0; }
.case-modal-body ol { list-style: decimal; padding-left: 26px; margin: 12px 0; }
.case-modal-body li { margin: 4px 0; }
.case-modal-body pre {
  background: #f1f5f9; padding: 12px 16px; border-radius: 6px;
  font-family: 'Courier New', monospace; font-size: 14px; overflow-x: auto; margin: 12px 0;
}
.case-modal-body strong { font-weight: 600; }
.case-modal-body em { font-style: italic; }
.case-modal-body u { text-decoration: underline; }
.case-modal-body s { text-decoration: line-through; }
/* Article body (insights modal) */
.article-body img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.article-body h1 { font-size: 26px; margin: 20px 0 12px; line-height: 1.3; color: var(--color-primary-dark); padding-bottom: 8px; border-bottom: 2px solid var(--color-primary-dark); }
.article-body h2 { font-size: 22px; margin: 18px 0 10px; line-height: 1.35; color: var(--color-primary); border-left: 4px solid var(--color-primary); padding-left: 12px; }
.article-body h3 { font-size: 18px; margin: 14px 0 8px; line-height: 1.4; color: var(--color-primary-light); }
.article-body h4 { font-size: 15px; margin: 12px 0 6px; line-height: 1.4; color: var(--color-accent); }
.article-body p { margin: 10px 0; }
.article-body ul { list-style: disc; padding-left: 26px; margin: 10px 0; }
.article-body ol { list-style: decimal; padding-left: 26px; margin: 10px 0; }
.article-body li { margin: 4px 0; }
.article-body blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 6px 16px; margin: 14px 0;
  background: var(--color-primary-lightest);
  border-radius: 0 8px 8px 0;
  color: var(--color-primary-dark);
}
.article-body pre {
  background: #f1f5f9; padding: 12px 16px; border-radius: 6px;
  font-family: 'Courier New', monospace; font-size: 14px; overflow-x: auto; margin: 12px 0;
}
.article-body a { color: var(--color-primary); text-decoration: underline; }
.article-body hr { border: none; border-top: 1px solid var(--color-border); margin: 20px 0; }
.article-body strong { font-weight: 600; }
.article-body em { font-style: italic; }
.card { cursor: pointer; }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.back-to-top:active {
  transform: translateY(0) scale(0.95);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ===== Button / Clickable Focus ===== */
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== 品牌及资质（资质认证 + 合作客户） ===== */
/* 品牌两行分屏：每屏 2 行，卡片宽度固定（资质 180px、客户 280px）不压缩；超过一屏则两行整组从右往左无缝轮播 */
.qual-grid, .client-grid { max-width:1200px; margin:0 auto; }
.brand-screen { display:grid; gap:16px; flex-shrink:0; }
/* 多屏/单屏：列数与卡片宽度由 SSR/JS 行内设置（1fr 等比缩放），行数自动 */
.qual-carousel .brand-screen { gap:16px; }
.client-carousel .brand-screen { gap:20px; }
.brand-grid .brand-screen { justify-content:center; }

.qual-card { background:#fff; border:1px solid var(--color-border); border-radius:10px; overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .3s, box-shadow .3s; }
.qual-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.qual-card-img { padding:10px; background:#fff; }
.qual-card-img img { display:block; width:100%; height:auto; object-fit:cover; border-radius:6px; }
.qual-card-text { padding:10px 12px; font-size:13px; font-weight:600; color:var(--color-dark); border-top:1px solid var(--color-border); text-align:center; background:var(--color-primary-lightest); }

.client-card { background:#fff; border:1px solid var(--color-border); border-radius:10px; overflow:hidden; box-shadow:var(--shadow-sm); }
.client-card img { display:block; width:100%; height:auto; object-fit:cover; }
.client-card-text { padding:10px 12px; font-size:13px; font-weight:600; color:var(--color-dark); text-align:center; border-top:1px solid var(--color-border); }

/* 无缝轮播：两行整组从右往左平移（--scroll-speed 控制速度），悬停暂停 */
.brand-carousel { overflow:hidden; position:relative; padding:6px 0; }
.brand-carousel:hover .brand-track { animation-play-state: paused; }
.brand-track { display:flex; width:max-content; animation: brandScroll var(--scroll-speed,30s) linear infinite; }
@keyframes brandScroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }

@media (max-width:768px) {
  /* 移动端：每屏强制两列多行，轮播屏占满视口宽 */
  .brand-screen { grid-template-columns:repeat(2,1fr) !important; grid-template-rows:none; gap:12px; }
  .brand-carousel .brand-screen { width:100vw; }
  .qual-grid, .client-grid, .qual-carousel, .client-carousel { max-width:100%; }
}

/* ===== 管理咨询页：服务卡片（3×3） ===== */
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs-item { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 28px; transition: all .3s; }
.cs-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--color-primary-lighter); }
.cs-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--color-primary-lightest); color: var(--color-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cs-icon svg { width: 28px; height: 28px; }
.cs-item h3 { font-size: 19px; font-weight: 700; color: var(--color-dark); margin-bottom: 10px; }
.cs-item p { font-size: 14px; color: var(--color-text); line-height: 1.7; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cs-more { font-size: 14px; color: var(--color-primary); font-weight: 600; }
@media (max-width: 900px) { .cs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cs-grid { grid-template-columns: 1fr; } }

/* ===== 富文本内容表格（后台编辑器插入的 .rich-table） ===== */
table.rich-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}
table.rich-table td,
table.rich-table th {
  border: 1px solid #d1d5db;
  padding: 10px 14px;
  vertical-align: top;
  text-align: left;
}
table.rich-table th { background: #f1f5f9; font-weight: 600; }
@media (max-width: 640px) {
  table.rich-table { display: block; overflow-x: auto; white-space: nowrap; }
}


/* v2.2.19 金字塔富文本 & 阶段详情富文本排版 */
.pyramid-rich { width: 100%; text-align: left; font-size: 15px; line-height: 1.8; color: var(--color-text); }
.pyramid-rich h2, .pyramid-rich h3, .pyramid-rich h4 { margin: 18px 0 10px; color: var(--color-dark); line-height: 1.4; }
.pyramid-rich h2 { font-size: 22px; font-weight: 700; color: #0d9488; }
.pyramid-rich h3 { font-size: 18px; font-weight: 700; }
.pyramid-rich h4 { font-size: 16px; font-weight: 700; }
.pyramid-rich p { margin: 8px 0; }
.pyramid-rich ul, .pyramid-rich ol { margin: 8px 0 8px 22px; }
.pyramid-rich ul { list-style: disc; }
.pyramid-rich ol { list-style: decimal; }
.pyramid-rich li { margin: 4px 0; }
.pyramid-rich img { max-width: 100%; height: auto; border-radius: 8px; }
.pyramid-rich a { color: var(--color-primary); text-decoration: underline; }
.pyramid-rich table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.pyramid-rich table th, .pyramid-rich table td { border: 1px solid #e2e8f0; padding: 8px 12px; }
.pyramid-rich blockquote { border-left: 4px solid #0d9488; margin: 12px 0; padding: 8px 16px; background: #f0fdfa; color: var(--color-text-muted); }

.stage-rich-content { font-size: 15px; line-height: 1.9; color: var(--color-text); }
.stage-rich-content h2, .stage-rich-content h3, .stage-rich-content h4 { margin: 24px 0 12px; color: var(--color-dark); line-height: 1.4; }
.stage-rich-content h2 { font-size: 24px; font-weight: 700; color: #0f766e; margin: 32px 0 16px; padding-bottom: 0; border-bottom: none; }
.stage-rich-content h3 { font-size: 19px; font-weight: 700; color: #0d9488; }
.stage-rich-content h4 { font-size: 17px; font-weight: 700; }
.stage-rich-content p { margin: 10px 0; }
.stage-rich-content ul, .stage-rich-content ol { margin: 10px 0 10px 24px; }
.stage-rich-content ul { list-style: disc; }
.stage-rich-content ol { list-style: decimal; }
.stage-rich-content li { margin: 6px 0; }
.stage-rich-content img { max-width: 100%; height: auto; border-radius: 8px; }
.stage-rich-content a { color: var(--color-primary); text-decoration: underline; }
.stage-rich-content table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.stage-rich-content table th, .stage-rich-content table td { border: 1px solid #e2e8f0; padding: 10px 14px; }
.stage-rich-content blockquote { border-left: 4px solid #0d9488; margin: 14px 0; padding: 10px 18px; background: #f0fdfa; color: var(--color-text-muted); }

/* ===== v2.3.0 动效系统 ===== */

/* Hero 进场动画：标题/副标题/按钮依次上浮淡入 */
.hero-anim-item {
  opacity: 0;
  animation: heroIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--anim-delay, 0s);
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 板块滚动渐显：初始隐藏态 */
.reveal-init {
  opacity: 0;
  transform: translateX(0) translateY(0);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
}
.reveal-init[data-reveal="left"] { transform: translateX(-36px); }
.reveal-init[data-reveal="right"] { transform: translateX(36px); }
/* 渐显终态（!important 覆盖高特异性方向选择器） */
.reveal-visible {
  opacity: 1 !important;
  transform: translateX(0) translateY(0) !important;
}

/* Hero 粒子层：绝对定位铺满 hero，位于内容之下 */
#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
/* 保证 hero 内容层在粒子之上 */
.hero .container {
  position: relative;
  z-index: 1;
}

/* 尊重系统"减少动态效果"偏好：关闭所有动画 */
@media (prefers-reduced-motion: reduce) {
  .hero-anim-item,
  .reveal-init {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  #hero-particles { display: none; }
}
