/* ============================================================
   dhorde.com/onlyoffice - 全局样式表 v1.0
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --brand-red: #C8102E;       /* 庚逸红 / Dhorde 主色 */
  --brand-orange: #E8721C;     /* 橙色强调 */
  --brand-dark: #1A1A2E;       /* 深蓝黑 */
  --brand-gray: #6B7280;      /* 辅助灰 */
  --bg-light: #F9FAFB;        /* 页面背景 */
  --bg-white: #FFFFFF;
  --border: #E5E7EB;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6B7280;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

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

/* ---------- Typography ---------- */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: center;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-badge {
  display: inline-block;
  padding: 4px 14px;
  background: #FEF2F2;
  color: var(--brand-red);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.section-header { margin-bottom: 48px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.header-logo img { height: 40px; width: auto; }
.header-logo .sub-logo {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 2px;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.nav a:hover, .nav a.active {
  background: #FEF2F2;
  color: var(--brand-red);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-phone {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--brand-red);
  color: #fff;
}
.btn-primary:hover { background: #A80D26; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(200,16,46,0.3); }
.btn-outline {
  background: transparent;
  color: var(--brand-red);
  border: 1.5px solid var(--brand-red);
}
.btn-outline:hover { background: #FEF2F2; }
.btn-lg { padding: 13px 32px; font-size: 1rem; }
.btn-sm { padding: 6px 16px; font-size: 0.82rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D1B4E 50%, #1A1A2E 100%);
  color: #fff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,16,46,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,114,28,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(200,16,46,0.2);
  border: 1px solid rgba(200,16,46,0.4);
  border-radius: 30px;
  font-size: 0.82rem;
  color: #FF8A8A;
  margin-bottom: 24px;
  width: fit-content;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 em { color: #FF6B6B; font-style: normal; }
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
}
.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1A1A2E;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-card h3 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.hero-card p { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.5; margin-bottom: 16px; }
.hero-card-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.hero-card-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.hero-card-feature .icon { color: #4ADE80; font-size: 0.9rem; }

/* ---------- Partner Badge Banner ---------- */
.partner-banner {
  background: linear-gradient(135deg, #1A1A2E, #2D1B4E);
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.partner-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.partner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}
.partner-item .icon { font-size: 1.3rem; }
.partner-item strong { color: #fff; }

/* ---------- Section padding ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-white); }
.section.dark { background: var(--brand-dark); color: #fff; }
.section.dark .section-title { color: #fff; }
.section.dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.25s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}
.feature-icon {
  width: 48px; height: 48px;
  background: #FEF2F2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Product Cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card-header {
  background: linear-gradient(135deg, #1A1A2E, #2D1B4E);
  padding: 28px 28px 24px;
  color: #fff;
}
.product-card-header .tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(200,16,46,0.3);
  border: 1px solid rgba(200,16,46,0.5);
  border-radius: 20px;
  font-size: 0.72rem;
  color: #FF8A8A;
  margin-bottom: 10px;
}
.product-card-header h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.product-card-header p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.product-card-body { padding: 24px 28px; }
.product-card-body ul { display: flex; flex-direction: column; gap: 10px; }
.product-card-body li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.product-card-body li::before {
  content: '✓';
  color: var(--brand-red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.product-card-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

/* ---------- Why Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.why-card .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-red);
  line-height: 1;
  margin-bottom: 12px;
}
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Comparison Table ---------- */
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.compare-table th {
  background: var(--brand-dark);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
}
.compare-table th:first-child { border-radius: 8px 0 0 0; }
.compare-table th:last-child { border-radius: 0 8px 0 0; }
.compare-table th.highlight { background: var(--brand-red); }
.compare-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.compare-table tr:nth-child(even) td { background: #FAFAFA; }
.compare-table tr:last-child td:first-child { border-radius: 0 0 0 8px; }
.compare-table tr:last-child td:last-child { border-radius: 0 0 8px 0; }
.compare-table .check { color: #16A34A; font-weight: 700; }
.compare-table .cross { color: #DC2626; }
.compare-table .partial { color: #D97706; }
.compare-table .highlight-col { background: #FFF5F5; border-left: 2px solid var(--brand-red); border-right: 2px solid var(--brand-red); }
.compare-table .highlight-col:last-child { border-right: none; }

/* ---------- Cases ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.case-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.case-card-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #1A1A2E, #2D1B4E);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}
.case-icon { font-size: 2rem; }
.case-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}
.case-card-header h3 { font-size: 0.95rem; font-weight: 600; }
.case-card-body { padding: 20px 24px; }
.case-card-body dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 0.85rem; }
.case-card-body dt { color: var(--text-muted); }
.case-card-body dd { color: var(--text-primary); font-weight: 500; }
.case-card-body p { margin-top: 14px; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Solutions ---------- */
.solution-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.solution-tab {
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.solution-tab.active, .solution-tab:hover {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}
.solution-content { display: none; }
.solution-content.active { display: block; }
.solution-panel {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}
.solution-panel-text { padding: 40px; }
.solution-panel-text h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.solution-panel-text p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.solution-panel-text ul { display: flex; flex-direction: column; gap: 10px; }
.solution-panel-text li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.solution-panel-text li::before { content: '✓'; color: var(--brand-red); font-weight: 700; }
.solution-panel-visual {
  background: linear-gradient(135deg, #1A1A2E, #2D1B4E);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: rgba(255,255,255,0.7);
  font-size: 3rem;
  gap: 16px;
}
.solution-panel-visual span { font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.pricing-card.featured {
  border: 2px solid var(--brand-red);
  transform: scale(1.02);
}
.pricing-card.featured::before {
  content: '热门推荐';
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--brand-red);
  color: #fff;
  text-align: center;
  padding: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.pricing-header { padding: 32px 28px 24px; border-bottom: 1px solid var(--border); }
.pricing-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.pricing-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; }
.pricing-price .from { font-size: 0.8rem; color: var(--text-muted); }
.pricing-price .amount { font-size: 2rem; font-weight: 800; color: var(--brand-red); }
.pricing-price .unit { font-size: 0.85rem; color: var(--text-muted); }
.pricing-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.pricing-body { padding: 24px 28px; }
.pricing-body h4 { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}
.pricing-feature .icon { color: #16A34A; font-weight: 700; }
.pricing-footer { padding: 0 28px 28px; }
.pricing-footer .btn { width: 100%; }

/* ---------- Authorization ---------- */
.auth-hero {
  background: linear-gradient(135deg, #1A1A2E, #2D1B4E);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.auth-badge-img {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: inline-block;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.auth-badge-img img { height: 120px; width: auto; }
.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.auth-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
}
.auth-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.auth-card p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 16px;
}
.faq-question .arrow { transition: transform 0.2s; color: var(--brand-red); flex-shrink: 0; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner { padding: 0 24px 18px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-img { height: 180px; background: linear-gradient(135deg, #1A1A2E, #C8102E); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.5rem; }
.blog-card-body { padding: 20px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.blog-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.blog-card-body .read-more { font-size: 0.85rem; color: var(--brand-red); font-weight: 600; }

/* ---------- Blog Article ---------- */
.article-header { padding: 60px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.article-header .container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.article-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.article-title { font-size: 2rem; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.article-body { max-width: 800px; margin: 0 auto; padding: 0 24px 80px; font-size: 1rem; line-height: 1.8; color: var(--text-secondary); }
.article-body h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin: 40px 0 16px; }
.article-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin: 28px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin-bottom: 20px; padding-left: 24px; }
.article-body ul li, .article-body ol li { margin-bottom: 8px; }
.article-body a { color: var(--brand-red); text-decoration: underline; }
.article-body blockquote {
  border-left: 4px solid var(--brand-red);
  background: #FEF2F2;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 0.95rem;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.88rem; }
.article-body th { background: var(--brand-dark); color: #fff; padding: 10px 16px; text-align: left; }
.article-body td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.article-body tr:nth-child(even) td { background: #FAFAFA; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon { font-size: 1.5rem; flex-shrink: 0; width: 40px; text-align: center; }
.contact-info-item h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.contact-info-item p { font-size: 0.88rem; color: var(--text-secondary); }
.contact-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--bg-light);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-tip { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .logo img { height: 36px; }
.footer-brand .logo span { color: #fff; font-weight: 700; font-size: 1rem; }
.footer-brand p { font-size: 0.82rem; line-height: 1.6; max-width: 280px; }
.footer h4 { color: #fff; font-size: 0.88rem; font-weight: 700; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn.primary { background: var(--brand-red); color: #fff; }
.float-btn.wechat { background: #07C160; color: #fff; }
.float-btn.top { background: #fff; color: var(--text-secondary); border: 1px solid var(--border); display: none; }
.float-btn.top.visible { display: flex; }

/* ---------- Chat Popup ---------- */
.chat-popup {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 201;
  width: 360px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-popup.open { display: flex; }
.chat-header {
  background: linear-gradient(135deg, #1A1A2E, #2D1B4E);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header h4 { font-size: 0.95rem; font-weight: 600; }
.chat-close { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 1.2rem; }
.chat-body { padding: 20px; flex: 1; }
.chat-q { margin-bottom: 16px; }
.chat-q h5 { font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.chat-q ul { display: flex; flex-direction: column; gap: 8px; }
.chat-q li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; padding: 8px 12px; border-radius: 6px; transition: background 0.2s; }
.chat-q li:hover { background: #FEF2F2; color: var(--brand-red); }
.chat-form { padding: 0 20px 20px; border-top: 1px solid var(--border); }
.chat-form input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.88rem; margin-bottom: 10px; }
.chat-form input:focus { outline: none; border-color: var(--brand-red); }
.chat-success { text-align: center; padding: 32px 20px; color: var(--text-secondary); font-size: 0.9rem; }
.chat-success .icon { font-size: 3rem; margin-bottom: 12px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-red { color: var(--brand-red); }
.text-muted { color: var(--text-muted); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-12 { gap: 12px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: #F3F4F6;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .solution-panel { grid-template-columns: 1fr; }
  .solution-panel-visual { display: none; }
  .pricing-card.featured { transform: none; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 1.6rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .header-phone { display: none; }
  .compare-table { font-size: 0.8rem; }
}
