/* ============================================================
   phpgeo.com 服务站公共样式（阶段2）
   来源：网页设计/index.html 设计稿，供前台服务页面共用
   ============================================================ */
:root {
  --brand: #0066cc; --brand-dark: #004d99; --brand-mid: #1a75d2;
  --brand-light: #e5f0fa; --brand-lighter: #f2f7fc;
  --accent: #FF7200; --accent-dark: #cc5b00; --accent-mid: #ff8a33; --accent-light: #FFF3E6;
  --red: #E61919; --red-light: #fdf2f2;
  --green: #0A770C; --green-dark: #085c09; --green-light: #eaf6ea;
  --text: #1f2937; --text-mid: #4b5563; --text-muted: #6b7280; --text-light: #9ca3af;
  --bg: #f7f9fc; --card: #ffffff; --border: #e2e8f0; --border-strong: #cbd5e1;
  --radius: 12px; --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(15,23,42,.05), 0 1px 2px rgba(15,23,42,.03);
  --shadow-md: 0 4px 14px rgba(15,23,42,.06);
  --shadow-blue: 0 6px 18px -8px rgba(0,102,204,.35);
  --shadow-accent: 0 6px 18px -8px rgba(255,114,0,.4);
  --max-width: 1200px; --nav-height: 56px; --notice-h: 40px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65; padding-bottom: 55px; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
ul { list-style: none; }

/* 对 AI/屏幕阅读器可见、对视觉用户隐藏的事实摘要 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--nav-height); padding: 8px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: #fff; flex-shrink: 0; }
.logo-main { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-weight: 800; font-size: 16px; letter-spacing: .22px; color: var(--text); }
.logo-domain { font-size: 12px; font-weight: 800; color: var(--accent); margin-top: 1px; }
.header-search { flex: 1; display: flex; align-items: center; background: var(--brand-lighter); border: 1px solid var(--border); border-radius: 999px; padding: 3px 4px 3px 14px; min-width: 0; transition: border-color .18s, background .18s; }
.header-search:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(0,102,204,.1); }
.header-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text); padding: 8px 0; }
.header-search input::placeholder { color: var(--text-light); }
.header-search button { background: var(--brand); color: #fff; border-radius: 999px; padding: 7px 15px; font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .18s; }
.header-search button:active { background: var(--brand-dark); }
.header-contact { display: none; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.header-contact b { color: var(--accent); font-weight: 800; font-family: ui-monospace, SFMono-Regular, monospace; letter-spacing: .02em; }
.desktop-nav { display: none; }

/* 手机端头部：右上角图标 + 弹出层 */
.header-toggle { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.toggle-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--text); background: transparent; border: 1px solid transparent; transition: background .18s, color .18s, border-color .18s; }
.toggle-btn svg { width: 20px; height: 20px; }
.toggle-btn:active, .toggle-btn.active { background: var(--brand-light); color: var(--brand); border-color: #cce0f5; }
.mobile-search { display: none; padding: 10px 14px; border-top: 1px solid var(--border); background: #fff; }
.mobile-search.open { display: block; }
.mobile-search-form { display: flex; align-items: center; background: var(--brand-lighter); border: 1px solid var(--border); border-radius: 999px; padding: 3px 4px 3px 14px; }
.mobile-search-form input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text); padding: 9px 0; }
.mobile-search-form input::placeholder { color: var(--text-light); }
.mobile-search-form button { background: var(--brand); color: #fff; border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.mobile-nav { display: none; padding: 8px 14px 14px; border-top: 1px solid var(--border); background: #fff; }
.mobile-nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-nav a { display: block; padding: 11px 14px; background: var(--brand-lighter); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--text-mid); font-weight: 600; }
.mobile-nav a:active { background: var(--brand-light); color: var(--brand); }

@media (max-width: 767.98px) {
  .header-search { display: none; }
}

.today-bar { background: #fff; border-bottom: 1px solid var(--border); }
.today-inner { display: flex; align-items: center; gap: 10px; height: var(--notice-h); overflow: hidden; font-size: 13px; }
.today-label { flex-shrink: 0; background: var(--accent-light); color: var(--accent-dark); padding: 2px 9px; border-radius: 4px; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.today-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .9; }
.notice-viewport { flex: 1; height: var(--notice-h); overflow: hidden; position: relative; min-width: 0; }
.notice-list { position: absolute; top: 0; left: 0; width: 100%; will-change: transform; }
.notice-list li { height: var(--notice-h); line-height: var(--notice-h); font-size: 13px; color: var(--text-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-list li b { color: var(--brand); font-weight: 700; }

.banner-card { position: relative; margin-top: 14px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--brand-light); }
.banner-track { position: relative; width: 100%; min-height: 220px; }
.banner-slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s ease; display: flex; flex-direction: column; justify-content: center; padding: 20px 20px 36px 20px; color: #fff; overflow: hidden; }
.banner-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.banner-slide::after { content: ""; position: absolute; top: -35%; right: -12%; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.banner-slide::before { content: ""; position: absolute; bottom: -45%; left: -10%; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }
.slide-1 { background: linear-gradient(120deg,#004d99 0%,#0066cc 55%,#1a75d2 100%); }
.slide-2 { background: linear-gradient(120deg,#cc5b00 0%,#FF7200 55%,#ff8a33 100%); }
.slide-3 { background: linear-gradient(120deg,#085c09 0%,#0A770C 55%,#128f15 100%); }
.slide-4 { background: linear-gradient(120deg,#0b4f7a 0%,#0d739f 55%,#0d8ecf 100%); }
.banner-tag { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 5px; background: rgba(255,255,255,.2); color: #fff; margin-bottom: 8px; position: relative; z-index: 1; }
.banner-slide h3 { font-size: 16px; font-weight: 900; line-height: 1.35; margin-bottom: 6px; position: relative; z-index: 1; }
.banner-slide p { font-size: 12.5px; line-height: 1.5; opacity: .92; max-width: 560px; margin-bottom: 12px; position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.banner-btn { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; gap: 5px; background: #fff; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; position: relative; z-index: 1; transition: transform .18s, box-shadow .18s; white-space: nowrap; }
.banner-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.slide-1 .banner-btn, .slide-4 .banner-btn { color: var(--brand-dark); }
.slide-2 .banner-btn { color: var(--accent-dark); }
.slide-3 .banner-btn { color: var(--green-dark); }
.banner-btn::after { content: "→"; }
.banner-dots { position: absolute; bottom: 10px; right: 16px; z-index: 5; display: flex; align-items: center; gap: 6px; }
.banner-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.45); transition: width .25s, background .25s; padding: 0; border: none; cursor: pointer; }
.banner-dot.active { width: 18px; background: #fff; }

.quick-actions { margin-top: 14px; }
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; background: var(--card); border-radius: var(--radius); padding: 16px 8px; box-shadow: var(--shadow); }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; border-radius: 10px; transition: background .2s; }
.quick-item:active { background: var(--brand-light); }
.quick-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; }
.quick-item:nth-child(1) .quick-icon { background: var(--brand-light); color: var(--brand); }
.quick-item:nth-child(2) .quick-icon { background: var(--green-light); color: var(--green); }
.quick-item:nth-child(3) .quick-icon { background: var(--accent-light); color: var(--accent); }
.quick-item:nth-child(4) .quick-icon { background: var(--brand-lighter); color: var(--brand-mid); }
.quick-item span.label { font-size: 12px; color: var(--text-mid); font-weight: 600; text-align: center; }

.section { margin-top: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 17px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; display: block; flex: 0 0 4px; width: 4px; min-width: 4px; height: 18px; border-radius: 2px; background: var(--brand, #0066cc); }
@supports not (gap: 8px) { .section-title::before { margin-right: 8px; } }
.section-more { font-size: 13px; color: var(--text-muted); transition: color .18s; white-space: nowrap; }
.section-more:hover { color: var(--brand); }

.line-scroll { display: grid; grid-template-columns: 1fr; gap: 12px; }
.line-card { width: 100%; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.line-card:hover { border-color: var(--brand-mid); }
.line-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); }
.line-card.cyan::before { background: var(--green); }
.line-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 5px; margin-bottom: 10px; }
.line-card .line-badge { background: var(--brand-light); color: var(--brand); }
.line-card.cyan .line-badge { background: var(--green-light); color: var(--green); }
.line-card h3 { font-size: 16.5px; font-weight: 800; line-height: 1.35; margin-bottom: 6px; color: var(--text); }
.line-card .line-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.line-list li { position: relative; padding-left: 20px; font-size: 13px; color: var(--text-mid); margin-bottom: 8px; line-height: 1.55; }
.line-list li:last-child { margin-bottom: 0; }
.line-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.line-card.cyan .line-list li::before { background: var(--green); }
.line-list li b { color: var(--text); font-weight: 600; }
.line-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--brand); }
.line-card.cyan .line-link { color: var(--green); }
.line-link::after { content: "→"; transition: transform .18s; }
.line-card:hover .line-link::after { transform: translateX(3px); }

.steps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; counter-reset: step; }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); counter-increment: step; position: relative; transition: border-color .2s; }
.step-card:hover { border-color: var(--brand-mid); }
.step-card::before { content: counter(step,decimal-leading-zero); display: block; font-size: 22px; font-weight: 900; line-height: 1; color: var(--brand); margin-bottom: 10px; opacity: .9; }
.step-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 5px; color: var(--text); }
.step-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

.price-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.price-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 20px; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.price-card:hover { border-color: var(--brand-mid); transform: translateY(-2px); }
.price-card.featured { border-color: var(--accent); background: linear-gradient(170deg,var(--accent-light),#fff 55%); box-shadow: 0 10px 26px -14px rgba(255,114,0,.3); }
.price-card.featured:hover { border-color: var(--accent-mid); }
.price-label { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 5px; background: var(--brand-light); color: var(--brand); margin-bottom: 12px; }
.price-card.featured .price-label { background: var(--accent); color: #fff; }
.price-title { font-size: 15.5px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.price-amount { font-size: 28px; font-weight: 900; color: var(--brand); margin: 8px 0 4px; }
.price-card.featured .price-amount { color: var(--accent); }
.price-amount small { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.price-desc { font-size: 12.5px; color: var(--text-muted); margin-bottom: 14px; }
.price-list { flex: 1; margin-bottom: 18px; border-top: 1px dashed var(--border); padding-top: 14px; }
.price-list li { position: relative; padding-left: 18px; font-size: 13px; color: var(--text-mid); margin-bottom: 8px; line-height: 1.55; }
.price-list li:last-child { margin-bottom: 0; }
.price-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .7; }
.price-card.featured .price-list li::before { background: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border-radius: 10px; font-size: 14px; font-weight: 700; min-height: 44px; transition: transform .18s, background .18s, border-color .18s, color .18s, box-shadow .18s; white-space: nowrap; width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-1px); background: var(--brand-mid); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-accent:hover { transform: translateY(-1px); background: var(--accent-mid); }
.btn-ghost { background: #fff; border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-lighter); }
.price-note { margin-top: 14px; padding: 13px 16px; border-radius: 10px; background: #fdf8ef; border: 1px solid #f0dfc0; font-size: 12.5px; color: var(--text-mid); line-height: 1.6; }
.price-note b { color: var(--accent-dark); }

.lib-list { display: grid; gap: 10px; }
.lib-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); transition: border-color .2s; display: block; }
.lib-card:hover { border-color: var(--brand-mid); }
.lib-head { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; background: var(--brand-light); color: var(--brand); border: 1px solid #cce0f5; }
.tag-cyan { background: var(--brand-light); color: var(--brand); border-color: #cce0f5; }
.tag-green { background: var(--green-light); color: var(--green); border-color: #bce5ce; }
.tag-red { background: var(--red-light); color: var(--red); border-color: #f5c2c2; }
.lib-card h4 { font-size: 14.5px; font-weight: 800; line-height: 1.45; margin-bottom: 10px; color: var(--text); }
.lib-row { font-size: 12.5px; color: var(--text-mid); margin-bottom: 8px; line-height: 1.55; display: flex; gap: 8px; }
.lib-row:last-child { margin-bottom: 0; }
.lib-row strong { flex-shrink: 0; width: 52px; font-size: 11.5px; font-weight: 700; color: var(--text-muted); padding-top: 1px; }
.lib-row.warn strong { color: var(--red); }
.lib-row .lib-val { flex: 1; }
.lib-row code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: var(--brand-lighter); color: var(--brand-dark); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); }

.demo-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.demo-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 18px; box-shadow: var(--shadow); transition: border-color .2s, transform .2s, box-shadow .2s; }
.demo-card:hover { border-color: var(--brand-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.demo-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.demo-url { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--brand); font-weight: 700; }
.demo-card h3 { font-size: 16px; font-weight: 800; line-height: 1.4; margin-bottom: 8px; color: var(--text); }
.demo-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.demo-card .btn { width: auto; align-self: flex-start; }
.demo-note { margin-top: 12px; font-size: 12.5px; color: var(--text-muted); line-height: 1.6; padding: 12px 16px; border-radius: 10px; background: var(--brand-lighter); border: 1px solid var(--border); }
.demo-note b { color: var(--brand); }

.faq-list { display: grid; gap: 8px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0; overflow: hidden; }
.faq-item dt { cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: 14px; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item dt::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 400; line-height: 1; flex-shrink: 0; }
.faq-item dd { padding: 0 18px 16px; font-size: 13.5px; color: var(--text-muted); line-height: 1.68; }
.faq-item[open] dt::after { content: "−"; }

.form-wrap { display: grid; grid-template-columns: 1fr; gap: 12px; }
.form-contact,.form-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 20px; box-shadow: var(--shadow); }
.form-contact h3,.form-card h3 { font-size: 15.5px; font-weight: 800; color: var(--text); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.form-contact h3::before,.form-card h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.form-contact p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.contact-box { display: flex; flex-direction: column; gap: 12px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 10px; background: var(--brand-lighter); border: 1px solid var(--border); }
.contact-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-light); color: var(--accent); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.contact-info { flex: 1; min-width: 0; }
.contact-label { font-size: 11.5px; color: var(--text-muted); font-weight: 600; margin-bottom: 1px; }
.contact-value { font-size: 15px; font-weight: 800; color: var(--text); font-family: ui-monospace, SFMono-Regular, monospace; letter-spacing: .02em; word-break: break-all; }
.contact-value small { font-size: 12px; font-weight: 600; color: var(--brand); font-family: inherit; margin-left: 6px; }
.contact-hint { font-size: 12px; color: var(--text-muted); line-height: 1.6; padding-top: 4px; margin-top: auto; }
.contact-hint b { color: var(--accent); }

/* 处理动态滚动区（首页提交表单侧栏） */
.case-ticker { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.case-label { display: inline-block; background: var(--green-light); color: var(--green-dark); padding: 2px 9px; border-radius: 4px; font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.case-viewport { height: 66px; overflow: hidden; position: relative; background: var(--brand-lighter); border: 1px solid var(--border); border-radius: 8px; }
.case-list { position: absolute; top: 0; left: 0; width: 100%; will-change: transform; }
.case-list li { height: 66px; padding: 7px 10px; font-size: 12px; color: var(--text-mid); line-height: 1.5; overflow: hidden; }
.case-list li b { color: var(--green); }
.case-list li a { color: var(--text-mid); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case-list li a:hover { color: var(--brand); }

/* 客服号点击复制：可点样式 + toast 提示 */
.header-contact b, .contact-value, .footer-contact-item b, .community-contact b { cursor: pointer; }
.header-contact b:hover, .footer-contact-item b:hover, .community-contact b:hover { color: var(--brand); }
.copy-toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); background: rgba(0, 0, 0, .78); color: #fff; padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; white-space: nowrap; max-width: 106vw; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease, transform .25s ease; z-index: 300; pointer-events: none; }
.copy-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 18px; box-shadow: var(--shadow); }
.form-lead { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1/-1; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--text-mid); }
.field label .req { color: var(--red); margin-left: 2px; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border-radius: 9px; font-size: 14px; background: var(--brand-lighter); color: var(--text); border: 1px solid var(--border); transition: border-color .18s, box-shadow .18s, background .18s; -webkit-appearance: none; appearance: none; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.field select { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(0,102,204,.1); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-light); }
.form-actions { margin-top: 18px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 12px; line-height: 1.55; }
.form-msg { display: none; margin-top: 14px; padding: 12px 15px; border-radius: 9px; font-size: 13px; line-height: 1.6; background: var(--green-light); border: 1px solid #bce5ce; color: #0f5c43; }
.form-msg.show { display: block; }
.form-msg.err { background: var(--red-light); border-color: #f5c2c2; color: #8f1d1d; }

.community-card { margin-top: 20px; background: linear-gradient(135deg,var(--accent-dark),var(--accent)); color: #fff; border-radius: var(--radius-lg); padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 26px -14px rgba(255,114,0,.5); position: relative; overflow: hidden; }
.community-card::after { content: ""; position: absolute; top: -40%; right: -15%; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.community-card h3 { font-size: 16.5px; margin-bottom: 5px; font-weight: 800; position: relative; z-index: 1; }
.community-card p { font-size: 12.5px; opacity: .9; line-height: 1.6; position: relative; z-index: 1; }
.community-contact { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; margin-top: 8px; position: relative; z-index: 1; }
.community-contact b { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 13.5px; letter-spacing: .03em; background: rgba(255,255,255,.18); padding: 2px 8px; border-radius: 4px; }
.community-btn { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--accent-dark); border-radius: 999px; padding: 11px 22px; font-size: 14px; font-weight: 700; align-self: center; white-space: nowrap; transition: transform .18s; position: relative; z-index: 1; }
.community-btn:hover { transform: translateY(-1px); }

.site-footer { margin-top: 28px; background: #fff; border-top: 1px solid var(--border); padding: 26px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.footer-grid > div:first-child { grid-column: 1/-1; }
.footer h5 { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; }
.footer p { font-size: 13px; color: var(--text-muted); line-height: 1.68; max-width: 340px; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { font-size: 13px; color: var(--text-mid); transition: color .18s; }
.footer ul a:hover { color: var(--brand); }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-mid); margin-bottom: 9px; }
.footer-contact-item span.ico { width: 26px; height: 26px; border-radius: 7px; background: var(--accent-light); color: var(--accent); display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.footer-contact-item b { color: var(--text); font-weight: 700; font-family: ui-monospace, SFMono-Regular, monospace; letter-spacing: .02em; }
.footer-bottom { padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-light); line-height: 1.6; }
.footer-bottom b { color: var(--brand); font-weight: 700; }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: #fff; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5,1fr); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 8px rgba(15,23,42,.04); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 0 6px; font-size: 11px; color: var(--text-muted); transition: color .18s; }
.bottom-nav a.active { color: var(--brand); font-weight: 600; }
.bottom-nav .nav-icon { font-size: 18px; line-height: 1; }

.back-to-top { position: fixed; right: 16px; bottom: 84px; z-index: 150; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,102,204,.65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,102,204,.15); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .2s, border-color .2s; }
.back-to-top:hover { background: rgba(0,102,204,.9); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 22px; height: 22px; }

/* ===== 内页扩展（列表 / 详情 / 关于）===== */
.page-hero { background: linear-gradient(120deg,#004d99 0%,#0066cc 55%,#1a75d2 100%); border-radius: var(--radius-lg); padding: 24px 20px; color: #fff; margin-top: 14px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; top: -40%; right: -10%; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.page-hero h1 { font-size: 20px; font-weight: 900; line-height: 1.35; margin-bottom: 6px; position: relative; z-index: 1; }
.page-hero p { font-size: 13px; opacity: .92; line-height: 1.6; position: relative; z-index: 1; }
.crumbs { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); }
.crumbs a { color: var(--brand); }
.crumbs .sep { margin: 0 6px; opacity: .6; }

.pagination-svc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.pagination-svc a, .pagination-svc span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 600; background: var(--card); border: 1px solid var(--border); color: var(--text-mid); transition: color .18s, border-color .18s; }
.pagination-svc a:hover { color: var(--brand); border-color: var(--brand-mid); }
.pagination-svc span.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination-svc span.disabled { opacity: .45; pointer-events: none; }

.article-body { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 18px; box-shadow: var(--shadow); }
.article-body h2 { font-size: 16px; font-weight: 800; margin: 20px 0 10px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.article-body h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.article-body h2:first-child { margin-top: 0; }
.article-body p, .article-body li { font-size: 14px; color: var(--text-mid); line-height: 1.8; margin-bottom: 10px; }
.article-body ul { margin-bottom: 10px; }
.article-body li { position: relative; padding-left: 20px; }
.article-body li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .7; }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: var(--brand-lighter); color: var(--brand-dark); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); word-break: break-word; }
.article-body pre { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.75; margin-bottom: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--text-light); margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }

.empty-state { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 60px 20px; text-align: center; color: var(--text-muted); box-shadow: var(--shadow); }
.empty-state .ico { font-size: 40px; margin-bottom: 10px; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  :root { --notice-h: 44px; }
  .header-inner { min-height: 64px; }
  .header-search { max-width: 400px; }
  .header-contact { display: flex; }
  .header-toggle { display: none; }
  .mobile-search, .mobile-nav { display: none !important; }
  .banner-track { aspect-ratio: 3.9/1; min-height: 175px; }
  .banner-slide { padding: 22px 28px 32px; }
  .banner-slide h3 { font-size: clamp(18px,3vw,24px); }
  .banner-slide p { font-size: 14px; margin-bottom: 14px; }
  .banner-btn { padding: 9px 18px; font-size: 13.5px; }
  .banner-dots { bottom: 12px; right: 20px; }
  .quick-grid { gap: 12px; padding: 20px 14px; }
  .quick-icon { width: 50px; height: 50px; font-size: 24px; }
  .quick-item span.label { font-size: 13px; }
  .line-scroll { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .steps-grid { grid-template-columns: repeat(4,1fr); gap: 14px; }
  .price-grid { grid-template-columns: repeat(3,1fr); gap: 16px; align-items: stretch; }
  .price-card { padding: 24px 20px; }
  .price-amount { font-size: 30px; }
  .lib-list { grid-template-columns: repeat(2,1fr); }
  .demo-grid { grid-template-columns: repeat(2,1fr); }
  .form-wrap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .community-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 26px 28px; }
  .community-card h3 { font-size: 18px; }
  .community-card p { font-size: 13.5px; }
  .community-text { flex: 1; }
  .community-btn { align-self: auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; }
  .bottom-nav { display: none; }
  .section { margin-top: 26px; }
  .section-title { font-size: 19px; }
  .demo-card .btn { width: auto; }
  .back-to-top { right: 24px; bottom: 32px; width: 48px; height: 48px; }
  .back-to-top svg { width: 24px; height: 24px; }
  .page-hero { padding: 30px 28px; }
  .page-hero h1 { font-size: 24px; }
  .article-body { padding: 28px 26px; }
}

@media (min-width: 1024px) {
  :root { --notice-h: 46px; }
  .header-inner { min-height: 72px; gap: 20px; }
  .logo-img { width: 44px; height: 44px; }
  .logo-name { font-size: 18px; }
  .logo-domain { font-size: 13px; }
  .header-search { max-width: 440px; margin-left: 8px; }
  .header-contact { font-size: 13.5px; gap: 8px; }
  .desktop-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: 14px; }
  .desktop-nav a { color: var(--text-mid); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .18s, border-color .18s; white-space: nowrap; }
  .desktop-nav a:hover, .desktop-nav a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
  .banner-track { aspect-ratio: 4.6/1; min-height: 190px; }
  .banner-slide { padding: 26px 36px 34px; }
  .quick-actions { margin-top: 24px; }
  .quick-grid { grid-template-columns: repeat(4,1fr); gap: 16px; padding: 22px 24px; }
  .quick-item { flex-direction: row; justify-content: center; gap: 12px; padding: 12px; background: var(--brand-lighter); border-radius: 12px; }
  .quick-item:hover { background: var(--brand-light); }
  .quick-item span.label { font-size: 15px; font-weight: 600; }
  .section { margin-top: 30px; }
  .section-title { font-size: 21px; }
  .line-scroll { gap: 16px; }
  .line-card h3 { font-size: 18px; }
  .line-list li { font-size: 13.5px; }
  .step-card { padding: 22px 20px; }
  .step-card h4 { font-size: 15px; }
  .step-card p { font-size: 13px; }
  .price-card { padding: 28px 24px; }
  .price-title { font-size: 16.5px; }
  .price-amount { font-size: 33px; }
  .lib-list { grid-template-columns: repeat(3,1fr); gap: 14px; }
  .lib-card { padding: 22px 20px; }
  .lib-card h4 { font-size: 15px; }
  .demo-card { padding: 24px 22px; }
  .demo-card h3 { font-size: 17px; }
  .form-wrap { grid-template-columns: 340px 1fr; gap: 16px; align-items: stretch; }
  .form-card { padding: 28px 26px; }
  .footer { padding: 36px 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .notice-list, .banner-slide, .back-to-top { transition: none !important; }
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== 手机端字号提升（整体放大，桌面端不受影响） ===== */
@media (max-width: 767.98px) {
  body { font-size: 15px; }
  .logo-name { font-size: 17px; }
  .header-search input, .mobile-search-form input { font-size: 15.5px; }
  .header-search button, .mobile-search-form button { font-size: 14.5px; }
  .mobile-nav a { font-size: 15.5px; }
  .today-inner { font-size: 14px; }
  .today-label { font-size: 12.5px; }
  .notice-list li { font-size: 14px; }
  .banner-tag { font-size: 12px; }
  .banner-slide h3 { font-size: 19px; }
  .banner-slide p { font-size: 14px; }
  .banner-btn { font-size: 14.5px; }
  .quick-item span.label { font-size: 13.5px; }
  .section-title { font-size: 18.5px; }
  .section-more { font-size: 14px; }
  .line-badge { font-size: 12px; }
  .line-card h3 { font-size: 18px; }
  .line-card .line-sub { font-size: 13px; }
  .line-list li { font-size: 14.5px; }
  .line-link { font-size: 14.5px; }
  .step-card h4 { font-size: 15.5px; }
  .step-card p { font-size: 14px; }
  .price-label { font-size: 12px; }
  .price-title { font-size: 17px; }
  .price-amount { font-size: 30px; }
  .price-amount small, .price-desc { font-size: 13.5px; }
  .price-list li { font-size: 14.5px; }
  .btn { font-size: 15.5px; }
  .price-note { font-size: 13.5px; }
  .tag { font-size: 12px; }
  .lib-card h4 { font-size: 16px; }
  .lib-row { font-size: 13.5px; }
  .lib-row strong { font-size: 12.5px; }
  .lib-row code { font-size: 13px; }
  .demo-url { font-size: 12.5px; }
  .demo-card h3 { font-size: 17.5px; }
  .demo-card p { font-size: 14.5px; }
  .demo-note { font-size: 13.5px; }
  .faq-item dt { font-size: 15.5px; }
  .faq-item dd { font-size: 15px; }
  .form-contact h3, .form-card h3 { font-size: 16.5px; }
  .form-contact p { font-size: 14px; }
  .contact-label { font-size: 12.5px; }
  .contact-value { font-size: 16px; }
  .contact-value small { font-size: 13px; }
  .contact-hint { font-size: 13px; }
  .case-label { font-size: 12.5px; }
  .case-list li { font-size: 12.5px; }
  .copy-toast { font-size: 14px; }
  .form-lead { font-size: 14.5px; }
  .field label { font-size: 13.5px; }
  .field input, .field textarea, .field select { font-size: 15.5px; }
  .form-hint { font-size: 13px; }
  .form-msg { font-size: 14px; }
  .community-card h3 { font-size: 18px; }
  .community-card p { font-size: 14px; }
  .community-contact { font-size: 14px; }
  .community-contact b { font-size: 14.5px; }
  .community-btn { font-size: 15px; }
  .footer h5 { font-size: 12.5px; }
  .footer p { font-size: 14px; }
  .footer ul a { font-size: 14px; }
  .footer-contact-item { font-size: 14px; }
  .footer-bottom { font-size: 12.5px; }
  .bottom-nav a { font-size: 12px; }
  .bottom-nav .nav-icon { font-size: 20px; }
  .page-hero h1 { font-size: 22px; }
  .page-hero p { font-size: 14.5px; }
  .crumbs { font-size: 13.5px; }
  .pagination-svc a, .pagination-svc span { font-size: 14px; }
  .article-body h2 { font-size: 17.5px; }
  .article-body p, .article-body li { font-size: 15.5px; }
  .article-body code { font-size: 14px; }
  .article-body pre { font-size: 13.5px; }
  .article-meta { font-size: 13.5px; }
  .empty-state { font-size: 14px; }
}
/* ==========================================================
   成功案例版块（/cases 列表 + 详情幻灯）
   ========================================================== */
.case-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.case-filter-item { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--card); border: 1px solid var(--border); color: var(--text-mid); transition: all .18s; }
.case-filter-item:hover { color: var(--brand); border-color: var(--brand-mid); }
.case-filter-item.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.cases-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.case-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; display: flex; flex-direction: column; }
.case-card:hover { border-color: var(--brand-mid); transform: translateY(-2px); }
.case-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg,#f0f4f9,#e3ebf4); overflow: hidden; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.case-thumb.no-img img { display: none; }
.case-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 900; color: #b8c6d8; }
.case-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; backdrop-filter: blur(4px); }
.case-badge-1 { background: rgba(0,102,204,.85); }
.case-badge-2 { background: rgba(26,158,90,.85); }
.case-badge-3 { background: rgba(230,140,20,.88); }
.case-body { padding: 14px 16px 16px; }
.case-body h4 { font-size: 14.5px; font-weight: 800; line-height: 1.45; margin-bottom: 8px; color: var(--text); }
.case-desc { font-size: 12.5px; color: var(--text-mid); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 详情：截图幻灯 */
.case-slider { margin: 14px 0 4px; }
.case-slider-stage { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #0f1722; aspect-ratio: 16 / 9; max-width: 980px; }
.case-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.case-slide.active { opacity: 1; z-index: 1; }
.case-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #0f1722; }
.case-slider-prev, .case-slider-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; transition: background .18s; }
.case-slider-prev { left: 10px; }
.case-slider-next { right: 10px; }
.case-slider-prev:hover, .case-slider-next:hover { background: rgba(0,0,0,.7); }
.case-slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.case-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: background .18s, width .18s; }
.case-dot.active { background: #fff; width: 20px; border-radius: 4px; }
.case-slider-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.case-thumb-item { flex: 0 0 auto; width: 96px; aspect-ratio: 16 / 10; border-radius: 8px; border: 2px solid var(--border); overflow: hidden; cursor: pointer; opacity: .6; transition: all .18s; }
.case-thumb-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.case-thumb-item.active { border-color: var(--brand); opacity: 1; }

/* 详情：操作按钮 */
.case-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }
.case-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 26px; border-radius: 10px; font-size: 14px; font-weight: 800; background: var(--card); border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: all .18s; }
.case-btn:hover { border-color: var(--brand-mid); color: var(--brand); }
.case-btn-primary { background: linear-gradient(120deg,#0066cc,#1a75d2); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(0,102,204,.55); }
.case-btn-primary:hover { color: #fff; filter: brightness(1.08); }
.case-intro { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; font-size: 13.5px; line-height: 1.7; color: var(--text-mid); }

/* 小程序码弹层内容（layer 内） */
.case-qrcode-layer img { max-width: 320px; width: 100%; border-radius: 8px; }
.case-qrcode-layer p { margin: 8px 0 0; font-size: 13px; color: var(--text-mid); text-align: center; }

@media (min-width: 640px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cases-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .case-body h4 { font-size: 15px; }
  .case-filter-item { font-size: 13.5px; }
  .case-btn { font-size: 15px; padding: 12px 30px; }
  .case-intro { font-size: 14px; }
  .case-qrcode-layer p { font-size: 13.5px; }
}
/* ============================================================
   技术博客（/blog）
   ============================================================ */
.blog-layout { display: flex; flex-direction: column; gap: 18px; }
.blog-main { min-width: 0; }

/* 分类筛选 */
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.blog-filter-item { display: inline-flex; align-items: center; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text-mid); background: var(--card); transition: all .15s ease; }
.blog-filter-item:hover { color: var(--brand-dark,#1a75d2); border-color: var(--brand); }
.blog-filter-item.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* 文章列表 */
.blog-list { display: flex; flex-direction: column; gap: 12px; }
.blog-item { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: all .15s ease; }
.blog-item:hover { border-color: var(--brand); box-shadow: 0 10px 26px -14px rgba(0,102,204,.4); transform: translateY(-2px); }
.blog-item-thumb { flex: 0 0 132px; width: 132px; height: 92px; border-radius: 8px; overflow: hidden; background: var(--bg,#f4f7fb); }
.blog-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; color: var(--brand); background: linear-gradient(135deg,#e8f7ee,#eaf3fd); }
.blog-item-body { flex: 1; min-width: 0; }
.blog-item-body h3 { margin: 8px 0 6px; font-size: 15.5px; font-weight: 800; line-height: 1.45; color: var(--text); }
.blog-item:hover h3 { color: var(--brand-dark,#1a75d2); }
.blog-desc { margin: 0 0 8px; font-size: 13px; line-height: 1.65; color: var(--text-mid); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-item .article-meta { margin-top: 4px; padding-top: 0; border-top: none; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-mid); }

/* 侧栏 */
.blog-side { display: flex; flex-direction: column; gap: 14px; }
.blog-side-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 16px; }
.blog-side-card h3 { margin: 0 0 12px; font-size: 14.5px; font-weight: 800; color: var(--text); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.blog-cate-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.blog-cate-list li a { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13.5px; color: var(--text-mid); }
.blog-cate-list li a:hover span { color: var(--brand-dark,#1a75d2); }
.blog-cate-list li b { font-size: 12px; color: #fff; background: var(--brand); border-radius: 999px; padding: 1px 9px; font-weight: 600; }
.blog-hot-list { list-style: none; margin: 0; padding: 0; }
.blog-hot-list li a { display: flex; flex-direction: column; gap: 3px; padding: 7px 0; }
.blog-hot-title { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.blog-hot-list li a:hover .blog-hot-title { color: var(--brand-dark,#1a75d2); }
.blog-hot-meta { font-size: 12px; color: var(--text-mid); }
.blog-hot-empty { font-size: 13px; color: var(--text-mid); padding: 6px 0; }
.blog-side-contact p { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: var(--text-mid); }
.blog-side-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600; }
.blog-side-btn:hover { color: #fff; filter: brightness(1.08); }

/* 内容页封面 */
.blog-cover { margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.blog-cover img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

/* 点赞条 */
.blog-like-bar { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.blog-like-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 600; color: var(--text-mid); cursor: pointer; transition: all .15s ease; }
.blog-like-btn:hover { border-color: var(--brand); color: var(--brand-dark,#1a75d2); }
.blog-like-btn.liked { background: var(--brand); border-color: var(--brand); color: #fff; }
.blog-like-btn.liked b { color: #fff; }
.blog-like-btn b { color: var(--brand-dark,#1a75d2); }
.blog-like-btn:disabled { opacity: .7; cursor: wait; }
.blog-like-tip { font-size: 13px; }

/* 评论列表 */
.blog-comment-list { display: flex; flex-direction: column; gap: 10px; }
.blog-comment-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.blog-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.blog-comment-author { font-size: 13.5px; color: var(--brand-dark,#1a75d2); }
.blog-comment-time { font-size: 12px; color: var(--text-mid); }
.blog-comment-content { font-size: 13.5px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.blog-comment-empty { padding: 18px; }

/* 评论表单 */
.blog-comment-form { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.blog-comment-form h3 { margin: 0 0 12px; font-size: 14.5px; font-weight: 800; color: var(--text); }
.blog-form-row { margin-bottom: 10px; }
.blog-input { width: 100%; max-width: 320px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; color: var(--text); background: #fff; }
.blog-textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; line-height: 1.6; color: var(--text); background: #fff; resize: vertical; }
.blog-input:focus, .blog-textarea:focus { outline: none; border-color: var(--brand); }
.blog-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.blog-form-tip { flex: 1; font-size: 13px; }
.blog-submit-btn { padding: 9px 24px; border: none; border-radius: 8px; background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.blog-submit-btn:hover { filter: brightness(1.08); }
.blog-submit-btn:disabled { opacity: .7; cursor: wait; }
.blog-form-note { margin: 10px 0 0; font-size: 12px; color: var(--text-mid); }

@media (min-width: 768px) {
  .blog-layout { flex-direction: row; }
  .blog-main { flex: 1; }
  .blog-side { flex: 0 0 264px; width: 264px; }
}

@media (max-width: 640px) {
  .blog-item-thumb { flex-basis: 96px; width: 96px; height: 72px; }
  .blog-item-body h3 { font-size: 14.5px; }
}
