:root {
  --bg: #f4f7fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --text: #152032;
  --muted: #5a6b82;
  --primary: #0a4a82;
  --primary-dark: #06355c;
  --accent: #2b9bff;
  --accent-soft: rgba(43, 155, 255, 0.12);
  --border: #e2e9f2;
  --border-light: #eef3f9;
  --shadow-sm: 0 2px 8px rgba(15, 40, 80, 0.06);
  --shadow: 0 12px 40px rgba(15, 40, 80, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 40, 80, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(43, 155, 255, 0.08), transparent 55%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: #000; color: #fff;
  padding: .5rem 1rem; z-index: 9999; border-radius: 8px;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* —— Header —— */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h); padding: 0.5rem 0;
}
.brand { display: flex; align-items: center; gap: 0.85rem; color: inherit; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; gap: 0.1rem; }
.brand-text strong { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-text span { font-size: 0.75rem; color: var(--muted); max-width: 14rem; }

/* 导航链接样式见 site-front.css（Bootstrap navbar） */

.breadcrumbs {
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--border-light);
}

/* 保留 DOM / 微数据供爬虫，不占版面、不可见 */
.breadcrumbs.breadcrumbs--seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: transparent;
}
.breadcrumbs .container { padding: 0; }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin: 0; padding: 0.75rem 0; font-size: 0.82rem; color: var(--muted);
}
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 0.35rem; color: #b0bcc9; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

.site-main { padding: 2.25rem 0 3.5rem; min-height: 50vh; }
.site-main > .container > h1:first-child {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5rem;
}

/* —— Hero —— */
.hero {
  position: relative; overflow: hidden;
  color: #fff; padding: 3.75rem 0 3.25rem; margin-top: -2.25rem; margin-bottom: 2.5rem;
  background: linear-gradient(145deg, #06355c 0%, #0a4a82 42%, #0d6ebc 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(43, 155, 255, 0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.15;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
}
.hero-badge {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem); margin: 0 0 1rem;
  line-height: 1.18; font-weight: 700; letter-spacing: -0.02em;
}
.hero-lead { margin: 0; max-width: 36rem; font-size: 1.02rem; line-height: 1.75; opacity: 0.92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }
.hero-visual {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: #fff; color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2); color: var(--primary-dark); }
.btn-outline {
  border-color: rgba(255, 255, 255, 0.55); color: #fff; background: rgba(255, 255, 255, 0.08);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.site-main .btn-primary {
  background: linear-gradient(135deg, var(--primary), #1565a8);
  color: #fff; box-shadow: 0 4px 16px rgba(10, 74, 130, 0.3);
}
.site-main .btn-primary:hover { color: #fff; filter: brightness(1.05); }

.section-title {
  margin: 0 0 0.4rem; font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700; letter-spacing: -0.02em; color: var(--text);
}
.section-sub { margin: 0 0 1.5rem; color: var(--muted); font-size: 0.95rem; max-width: 42rem; }

.grid-3 { display: grid; gap: 1.15rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { display: grid; gap: 1.15rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}
.card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: rgba(43, 155, 255, 0.25);
}
.card h3 { margin: 0.25rem 0 0.55rem; font-size: 1.08rem; font-weight: 650; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--primary); }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

.stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.85rem;
  margin: 1.75rem 0;
}
.stat {
  text-align: center; background: var(--surface); border-radius: var(--radius);
  padding: 1.15rem 0.75rem; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.stat {
  cursor: default;
}
.stat strong.stat-counter {
  cursor: pointer;
}
.stat strong {
  display: block; font-size: 1.55rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat strong.stat-counter {
  color: var(--primary);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}
.stat span { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; display: block; }

.table-wrap {
  overflow-x: auto; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}
table.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data-table th, table.data-table td {
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border-light);
  text-align: left; vertical-align: top;
}
table.data-table th {
  background: #f6f9fc; font-size: 0.82rem; font-weight: 650;
  text-transform: none; color: var(--muted); letter-spacing: 0.02em;
}
table.data-table tbody tr:hover td { background: #fafcfe; }
table.data-table tr:last-child td { border-bottom: 0; }

.case-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-card.card { padding: 0; overflow: hidden; }
.case-card.card h3 { margin: 0; padding: 0.9rem 1.15rem 0.35rem; font-size: 1.05rem; }
.case-card.card .meta,
.case-card.card > p:last-child { padding: 0 1.15rem; }
.case-card.card > p:last-child { padding-bottom: 1.1rem; color: var(--muted); font-size: 0.9rem; }
.case-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.case-card-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #dfe7f2, #c5d4e8);
}
.case-card-thumb img {
  border-radius: 0;
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.case-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  background: rgba(15, 40, 70, 0.28);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.case-card:hover .case-card-thumb img,
.case-card > a:focus-visible .case-card-thumb img {
  transform: scale(1.04);
}
.case-card:hover .case-card-overlay,
.case-card > a:focus-visible .case-card-overlay {
  opacity: 1;
}
.meta { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.faq details {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 0; margin-bottom: 0.65rem;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 1rem 1.15rem;
  list-style: none; transition: background 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary { background: #f6f9fc; border-bottom: 1px solid var(--border-light); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 1.15rem 1rem; color: var(--muted); line-height: 1.65; }

.article-body h2, .article-body h3 { margin-top: 1.5rem; font-weight: 650; }
.article-body pre {
  overflow: auto; background: #0f172a; color: #e2e8f0;
  padding: 1rem; border-radius: var(--radius-sm);
}
.article-body blockquote {
  border-left: 4px solid var(--accent); margin: 1rem 0;
  padding: 0.5rem 0 0.5rem 1rem; color: var(--muted); background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.site-footer {
  background: linear-gradient(180deg, #0c2238 0%, #081828 100%);
  color: #dbe7f5; padding: 3rem 0 0; margin-top: 3rem;
}
.footer-grid { margin-bottom: 0; }
.footer-title { font-size: 0.95rem; margin: 0 0 0.85rem; font-weight: 650; color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: #b8cce0; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-friend-links-wrap {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-friend-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
}
.footer-friend-links a {
  color: #b8cce0;
  font-size: 0.88rem;
}
.footer-friend-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 2rem;
  padding: 1.15rem 0 1.35rem; font-size: 0.85rem; color: #8fa8c0;
}
.footer-bottom a { color: #c5d9eb; }

.contact-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-card {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.contact-card h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }

.wechat-box {
  display: inline-block; padding: 0.65rem 1.1rem;
  border: 1px dashed rgba(10, 74, 130, 0.45); border-radius: var(--radius-sm);
  font-size: 1.2rem; letter-spacing: 0.08em; font-weight: 700; color: var(--primary);
  background: var(--accent-soft);
}
.wechat-qr-block { text-align: center; }
.wechat-qr-block img {
  margin: 0 auto 0.75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); padding: 0.5rem; background: #fff; max-width: 200px;
  box-shadow: var(--shadow-sm);
}
.footer-wechat-qr { margin-top: 1.15rem; }
.footer-wechat-qr img {
  border-radius: var(--radius-sm); background: #fff; padding: 6px; margin-bottom: 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.footer-wechat-qr p { font-size: 0.85rem; margin: 0; color: #b8cce0; }

.media-list li { margin-bottom: 0.85rem; }
.patent-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.patent-grid img { border: 1px solid var(--border); border-radius: var(--radius-sm); }

.pagination { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 1.5rem; }
.pagination a, .pagination span {
  padding: 0.4rem 0.75rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); font-size: 0.88rem;
}
.pagination a:hover { border-color: var(--accent); background: var(--accent-soft); }
.pagination span { background: var(--primary); color: #fff; border-color: var(--primary); }

.lead-badge {
  display: inline-block; padding: 0.2rem 0.5rem; border-radius: 6px;
  background: #fff3cd; color: #856404; font-size: 0.75rem; font-weight: 700;
}
.lead-badge-hot { background: #fde8e8; color: #c62828; }
.msg-lead-tag { color: #c62828; font-weight: 600; font-size: 0.8rem; margin-top: 0.25rem; }

/* —— Chatbot —— */
.chatbot-root { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1200; pointer-events: none; }
.chatbot-root .chatbot-toggle,
.chatbot-root .chatbot-panel,
.chatbot-root.is-open .chatbot-backdrop { pointer-events: auto; }
.chatbot-backdrop {
  display: none; position: fixed; inset: 0; z-index: 1198;
  background: rgba(8, 24, 40, 0.5); backdrop-filter: blur(2px);
  border: 0; margin: 0; padding: 0;
}
.chatbot-root.is-open .chatbot-backdrop { display: block; }
body.chatbot-sheet-open { overflow: hidden; }

.chatbot-toggle {
  border: 0; border-radius: 999px; padding: 0.75rem 1.25rem;
  background: linear-gradient(145deg, #0a4a82, #2b9bff);
  color: #fff; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 8px 28px rgba(10, 74, 130, 0.45);
  cursor: pointer; position: relative; z-index: 1201;
  display: inline-flex; align-items: center; gap: 0.45rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chatbot-toggle:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(10, 74, 130, 0.5); }
.chatbot-toggle-icon {
  width: 1.25rem; height: 1.25rem; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.chatbot-toggle-label { display: inline-flex; align-items: center; gap: 0; }
.chatbot-toggle-line { display: inline; }

.chatbot-panel {
  position: absolute; right: 0; bottom: calc(100% + 0.75rem);
  width: min(92vw, 400px); height: 520px;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; z-index: 1200;
}
.chatbot-panel[hidden] { display: none !important; }

.chatbot-header {
  display: flex; align-items: center; gap: 0.65rem; flex-wrap: nowrap;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #0a4a82, #1565a8);
  color: #fff; border-bottom: none;
}
.chatbot-header strong { font-size: 0.95rem; font-weight: 650; }
.chatbot-avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a2 2 0 012 2c0 .74-.4 1.39-1 1.73V7h1a7 7 0 017 7v1h-2v-1a5 5 0 00-5-5h-1v1.27A2 2 0 0112 4a2 2 0 01-1-1.73V2h1V2zm-5 9a5 5 0 005 5 5 5 0 005-5H7z'/%3E%3C/svg%3E") center/60% no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.chatbot-header-text { flex: 1; min-width: 0; }
.chatbot-sub { display: block; font-size: 0.72rem; opacity: 0.88; margin-top: 0.15rem; font-weight: 400; }
.chatbot-close {
  margin-left: auto; border: 0; background: rgba(255, 255, 255, 0.15);
  color: #fff; font-size: 1.25rem; cursor: pointer; line-height: 1;
  width: 2rem; height: 2rem; border-radius: 50%; flex-shrink: 0;
  transition: background 0.2s;
}
.chatbot-close:hover { background: rgba(255, 255, 255, 0.28); }

.chatbot-wechat-qr {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 1rem;
  background: #f0f6fc; border-bottom: 1px solid var(--border-light);
  font-size: 0.78rem; color: var(--muted);
}
.chatbot-wechat-qr img { border-radius: 8px; background: #fff; padding: 3px; flex-shrink: 0; box-shadow: var(--shadow-sm); }

.chatbot-lead-bar {
  background: linear-gradient(90deg, #fff8e6, #fffbf0);
  color: #7d5a00; font-size: 0.78rem; padding: 0.5rem 1rem;
  border-bottom: 1px solid #f0e0b0; font-weight: 600;
}
.chatbot-messages {
  flex: 1; overflow: auto; padding: 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
}
.chat-msg { margin-bottom: 0.85rem; display: flex; flex-direction: column; }
.chat-msg-user { align-items: flex-end; }
.chat-msg-assistant, .chat-msg-staff, .chat-msg-system { align-items: flex-start; }
.chat-bubble {
  max-width: 86%; padding: 0.65rem 0.85rem; border-radius: 16px;
  font-size: 0.88rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}
.chat-msg-user .chat-bubble {
  background: linear-gradient(135deg, var(--primary), #1565a8);
  color: #fff; border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(10, 74, 130, 0.25);
}
.chat-msg-assistant .chat-bubble {
  background: #fff; border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm);
}
.chat-msg-staff .chat-bubble {
  background: #fff8e6; border: 1px solid #f0d78c;
  border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm);
}
.chat-bubble-typing {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-width: 6.5rem; color: var(--muted);
}
.chat-typing-label { font-size: 0.82rem; color: var(--muted); }
.chat-typing-dots {
  display: inline-flex; align-items: center; gap: 0.2rem; height: 1rem;
}
.chat-typing-dots span {
  width: 0.35rem; height: 0.35rem; border-radius: 50%;
  background: var(--accent); opacity: 0.35;
  animation: chat-typing-bounce 1.2s ease-in-out infinite;
}
.chat-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-typing-dots span { animation: none; opacity: 0.7; }
}
.chat-msg-system .chat-bubble {
  background: #e8f5e9; border: 1px solid #c8e6c9; color: #2e7d32; font-size: 0.8rem;
}
.chat-msg-meta { font-size: 0.68rem; color: var(--muted); margin-top: 0.2rem; }
.chatbot-form {
  display: flex; gap: 0.5rem; padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-light); background: #fff;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}
.chatbot-input {
  flex: 1; resize: none; min-height: 2.75rem; max-height: 6rem;
  font-family: inherit; font-size: 0.88rem;
  border: 1px solid var(--border); border-radius: 12px; padding: 0.55rem 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chatbot-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.chatbot-send {
  flex-shrink: 0; border-radius: 12px !important; padding: 0.55rem 1rem !important;
  align-self: flex-end; border: 0 !important;
  background: linear-gradient(135deg, var(--primary), #1565a8) !important;
  color: #fff !important;
}

.chatbot-root.chatbot-mobile {
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
}
.chatbot-root.chatbot-mobile .chatbot-toggle {
  width: auto;
  min-width: 3.85rem;
  height: 3.85rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
}
.chatbot-root.chatbot-mobile .chatbot-toggle-icon {
  display: none;
}
.chatbot-root.chatbot-mobile .chatbot-toggle-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: center;
  max-width: none;
}
.chatbot-root.chatbot-mobile .chatbot-toggle-line {
  display: block;
}
.chatbot-root.chatbot-mobile:not(.is-open) .chatbot-panel { display: none !important; }
.chatbot-root.chatbot-mobile.is-open .chatbot-panel {
  position: fixed; left: 0; right: 0; bottom: 0; top: auto;
  width: 100%; max-width: 100%; height: min(88vh, 38rem);
  margin: 0; border-radius: 20px 20px 0 0; border-bottom: none;
  box-shadow: 0 -12px 40px rgba(8, 24, 40, 0.18);
}
.chatbot-root.chatbot-mobile .chatbot-wechat-qr img { width: 56px; height: 56px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; order: -1; }
  .hero-visual img { min-height: 180px; max-height: 220px; object-fit: cover; }
  .grid-3, .case-grid, .patent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    padding: 0.5rem 0 0.75rem;
  }
  .site-header .site-nav .nav-link {
    padding: 0.65rem 0.75rem;
  }
  .site-header .site-nav .nav-phone {
    margin-left: 0 !important;
    text-align: center;
    margin-top: 0.35rem;
  }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .header-inner { flex-wrap: nowrap; align-items: center; }
  .brand img { height: 44px; }
  .grid-2, .grid-3, .case-grid, .patent-grid, .contact-grid, .stats { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
  .hero { padding: 2.5rem 0 2rem; }
}
