/* ============================================
   商标服务平台 · 全局样式 v6
   风格：青绿渐变 · 服务图标化 · 田字卡片
   改动：
   - 移动端服务小项保持田字 2×2 排列
   - 新增商标公告栏
   - 新增微信咨询栏
   - 新增底部 tab 导航栏
   - 悬浮咨询按钮上移，避免被底栏遮挡
   - 所有入口图标统一使用 SVG
   ============================================ */

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

:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-light: #ccfbf1;
  --brand-accent: #14b8a6;
  --brand-soft: #f0fdfa;
  --brand-gold: #f59e0b;

  --c-orange: #0f766e;
  --c-orange-light: #f0fdfa;
  --c-red: #cf1322;
  --c-red-light: #fff1f0;
  --c-purple: #722ed1;
  --c-purple-light: #f5f0ff;
  --c-blue: #096dd9;
  --c-blue-light: #e6f7ff;
  --c-teal: #08979c;
  --c-teal-light: #e6fffb;

  --text: #1f2937;
  --text-sub: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-mint: linear-gradient(180deg, #ecfdf5 0%, #f0fdfa 40%, #f8fafc 100%);

  --shadow-sm: 0 2px 8px rgba(15, 118, 110, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 118, 110, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 118, 110, 0.12);

  --radius-pill: 24px;
  --radius-card: 18px;
  --radius-item: 16px;

  --bottom-tab-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei',
    'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottom-tab-height) + var(--safe-bottom));
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* ============================================
   顶部 · 浅绿渐变
   ============================================ */
.header {
  background: var(--bg-mint);
  padding: 18px 0 28px;
  position: relative;
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.06);
  top: -120px; right: -60px;
}
.header::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.05);
  bottom: -70px; left: 22%;
}
.header-row {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
}
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-text-main {
  font-size: 22px; font-weight: 700; color: var(--brand-dark);
  letter-spacing: 0.3px; line-height: 1.1;
}
.logo-prefix { color: var(--text-muted); font-weight: 500; margin-right: 2px; }
.logo-text-sub {
  font-size: 13px; color: var(--text-sub); margin-top: 4px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; line-height: 1;
}
.logo-text-main { color: var(--brand-dark); }
.header-cta {
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 22px;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.18);
  display: inline-flex; align-items: center; gap: 6px;
}
.header-cta svg { width: 16px; height: 16px; }
.header-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }

.header-slogan {
  position: relative; z-index: 1;
  text-align: center;
  margin: 22px 0 16px;
  font-size: 18px; font-weight: 500;
  color: var(--brand-dark);
  letter-spacing: 2px;
}
.header-slogan strong { color: var(--brand-accent); font-weight: 700; }

/* 搜索栏 */
.search-bar {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 8px;
  max-width: 760px; margin: 0 auto;
}
.search-tabs {
  display: flex; justify-content: space-around;
  padding: 4px 6px 8px;
  gap: 8px;
}
.tab {
  flex: 1;
  font-size: 14px; color: var(--text-sub);
  padding: 8px 0;
  text-align: center;
  white-space: nowrap;
  border-radius: 10px;
  transition: all 0.2s;
}
.tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand));
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.18);
}
.tab:not(.active):hover { background: var(--bg-soft); color: var(--brand); }
.search-row {
  display: flex; align-items: center;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-top: 4px;
}
.search-input {
  flex: 1; border: none; outline: none;
  padding: 12px 16px; font-size: 15px;
  background: transparent; min-width: 0;
}
.search-btn {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand));
  color: #fff; font-size: 15px; font-weight: 600;
  padding: 12px 26px; border-radius: 22px; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.18);
}
.search-btn:hover { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }

/* 上传图片区（图形查询 tab） */
.upload-zone {
  display: none;
  flex: 1;
  align-items: center; justify-content: space-between;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  padding: 10px 16px; margin-right: 4px;
  color: var(--text-sub);
  font-size: 14px;
}
.upload-zone .upload-text { flex: 1; }
.upload-zone .upload-icon {
  background: var(--brand); color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.upload-zone .upload-icon svg { width: 18px; height: 18px; }

.search-extras {
  position: relative; z-index: 1;
  max-width: 760px; margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-sub);
  flex-wrap: wrap; gap: 8px;
}
.search-extras .free-tag {
  background: var(--brand-accent); color: #fff;
  font-weight: 700;
  padding: 2px 8px; border-radius: 4px; font-size: 11px;
  margin-right: 4px;
}
.search-extras .example-link {
  color: var(--brand); text-decoration: underline; cursor: pointer; margin: 0 4px;
}

/* ============================================
   快捷入口 · 4 图标
   ============================================ */
.quick-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.quick-item {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 16px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.quick-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quick-icon {
  width: 48px; height: 48px; border-radius: 14px;
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
}
.quick-icon svg { width: 26px; height: 26px; }
.quick-name { font-size: 13px; font-weight: 600; color: var(--text); }

/* ============================================
   商标公告栏
   ============================================ */
.announcement-bar {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--brand-light);
  transition: all 0.2s;
}
.announcement-bar:hover {
  border-color: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.announcement-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.announcement-icon svg { width: 24px; height: 24px; }
.announcement-body { flex: 1; min-width: 0; }
.announcement-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 4px;
}
.announcement-issue { color: var(--brand); }
.announcement-count { color: var(--c-orange); font-weight: 700; }
.announcement-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 6px;
}
.announcement-tag {
  font-size: 12px; color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 8px; border-radius: 4px;
}
.announcement-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--text-sub);
}
.announcement-links span {
  color: var(--c-blue); cursor: pointer;
}
.announcement-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}
.announcement-arrow svg { width: 20px; height: 20px; }

/* ============================================
   数据栏
   ============================================ */
.stats-bar {
  background: #fff;
  border-radius: var(--radius-card);
  margin: 16px 0 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%;
  height: 60%; width: 1px;
  background: var(--border);
}
.stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
}
.stat-num small { font-size: 13px; font-weight: 500; color: var(--text-sub); }
.stat-label {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ============================================
   四大业务类目 · 白色卡片
   ============================================ */
.categories { padding: 18px 0 12px; }

.cat-section {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--c-teal);
}
.cat-orange { border-top-color: var(--c-orange); }
.cat-purple { border-top-color: var(--c-purple); }
.cat-teal { border-top-color: var(--c-teal); }
.cat-red { border-top-color: var(--c-red); }

.cat-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.cat-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.cat-icon-wrap svg { width: 21px; height: 21px; }
.cat-title-wrap { flex: 1; min-width: 0; }
.cat-title {
  font-size: 16.5px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.cat-tag {
  font-size: 11px; background: var(--c-orange); color: #fff;
  padding: 2px 8px; border-radius: 10px; font-weight: 500;
}
.cat-red .cat-tag { background: var(--c-red); }
.cat-sub { font-size: 12px; color: var(--text-sub); margin-top: 2px; }

/* 田字 2x2 服务卡片 · 图标居中 */
.cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cat-item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius-item);
  padding: 14px 12px;
  border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.2s;
}
.cat-item:hover {
  background: #fff;
  border-color: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.cat-orange .cat-item:hover { border-color: var(--c-orange); }
.cat-purple .cat-item:hover { border-color: var(--c-purple); }
.cat-teal .cat-item:hover { border-color: var(--c-teal); }
.cat-red .cat-item:hover { border-color: var(--c-red); }

.cat-item-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  color: #fff;
}
.cat-item-icon svg { width: 22px; height: 22px; }

.cat-item-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.cat-item-price { font-size: 13px; font-weight: 700; color: var(--c-orange); margin-bottom: 5px; }
.cat-item-sub {
  font-size: 11.5px; color: var(--text-sub); line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 宽版特色卡片（风险评估报告） */
.cat-item-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 14px;
  background: linear-gradient(135deg, var(--c-blue-light), #fff);
  border: 1.5px solid var(--c-blue-light);
}
.cat-item-wide:hover { border-color: var(--c-blue); }
.cat-item-wide .cat-item-icon { margin-bottom: 0; flex-shrink: 0; }
.cat-item-wide .cat-item-name { font-size: 15px; }
.cat-item-wide .cat-item-sub { max-width: 320px; -webkit-line-clamp: 1; }

.cat-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.cat-more {
  font-size: 13px; color: var(--brand); font-weight: 500;
}
.cat-consult {
  font-size: 12px; color: var(--text-sub); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: underline;
}
.cat-consult svg { width: 14px; height: 14px; }

/* ============================================
   申请只需三步
   ============================================ */
.steps {
  background: #fff;
  padding: 22px 0;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}
.steps-header {
  font-size: 17px; font-weight: 600;
  color: var(--brand-dark);
  text-align: center;
  margin-bottom: 14px;
}
.steps-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
}
.step-card {
  flex: 1; max-width: 220px; min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.step-text { min-width: 0; }
.step-main {
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.step-sub {
  font-size: 11px; color: var(--text-sub);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-arrow { color: var(--brand-accent); font-size: 18px; flex-shrink: 0; }

/* 更多服务折叠 */
.cat-more-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
  animation: fadeIn 0.25s ease;
}
.cat-more-grid.show { display: grid; }
.cat-item-more .cat-item-icon {
  background: linear-gradient(135deg, var(--c-teal), var(--brand-dark)) !important;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   关注入口
   ============================================ */
.follow-bar {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin: 16px 0 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.follow-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 280px; }
.follow-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.follow-icon svg { width: 24px; height: 24px; }
.follow-text-main { font-size: 15px; font-weight: 600; }
.follow-text-sub { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.follow-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.follow-btn {
  padding: 8px 16px; border-radius: 18px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border);
  background: #fff; color: var(--text);
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 5px;
}
.follow-btn svg { width: 14px; height: 14px; }
.follow-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================
   微信咨询栏
   ============================================ */
.consult-bar {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 12px 14px;
  margin: 16px 0 0;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 10px;
  flex-wrap: nowrap;
}
.consult-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: var(--c-blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.consult-avatar svg { width: 22px; height: 22px; }
.consult-body {
  flex: 0 1 auto;
  min-width: 0;
}
.consult-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.consult-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.consult-tag {
  font-size: 11px; color: var(--text-sub);
  display: inline-flex; align-items: center; gap: 3px;
}
.consult-tag::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brand-accent);
}
.consult-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-left: auto;
}
.consult-btn {
  padding: 7px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}
.consult-btn svg { width: 14px; height: 14px; }
.consult-btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}
.consult-btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.consult-btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.18);
}
.consult-btn-primary:hover { background: var(--brand-dark); }

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 22px;
  margin: 16px 0 0;
  box-shadow: var(--shadow-sm);
}
.faq-title { font-size: 18px; font-weight: 600; text-align: center; margin-bottom: 4px; }
.faq-sub { font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 16px; }
.faq-list details {
  background: var(--bg-soft);
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 12px 16px;
  transition: background 0.2s;
}
.faq-list details[open] { background: #f0fdfa; }
.faq-list summary {
  cursor: pointer; font-size: 14px; font-weight: 500;
  list-style: none;
  display: flex; align-items: center; gap: 10px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.q-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--brand); color: #fff;
  border-radius: 6px; font-size: 11px; font-weight: 700;
  flex-shrink: 0; font-family: monospace;
}
.faq-list details[open] .q-tag { background: var(--brand-accent); }
.faq-q-text { flex: 1; }
.faq-a {
  font-size: 13px; color: var(--text-sub); line-height: 1.7;
  margin-top: 10px; padding: 10px 0 0 32px;
  border-top: 1px dashed var(--border);
  display: flex; gap: 8px;
}
.a-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--brand-accent); color: #fff;
  border-radius: 6px; font-size: 11px; font-weight: 700;
  flex-shrink: 0; font-family: monospace;
  height: max-content;
}
.a-text { flex: 1; }

.faq-more {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  color: var(--brand);
  font-size: 14px; font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.faq-more:hover {
  background: var(--brand-soft);
  border-color: var(--brand-accent);
}

/* ============================================
   底部
   ============================================ */
.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 22px 16px calc(32px + var(--bottom-tab-height) + var(--safe-bottom));
  line-height: 1.8;
}

/* ============================================
   底部 tab 导航栏
   ============================================ */
.bottom-tab {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--bottom-tab-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
  z-index: 95;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
}
.bottom-tab-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  color: var(--text-sub);
  font-size: 11px;
  transition: all 0.2s;
  position: relative;
}
.bottom-tab-item svg { width: 22px; height: 22px; }
.bottom-tab-item.active { color: var(--brand); font-weight: 600; }
.bottom-tab-item.active::before {
  content: '';
  position: absolute; top: 0; left: 25%; right: 25%;
  height: 3px; border-radius: 0 0 4px 4px;
  background: var(--brand-accent);
}
.bottom-tab-center {
  position: relative;
  justify-content: flex-end;
  padding-bottom: 6px;
}
.bottom-tab-plus {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.32);
  border: 3px solid #fff;
}
.bottom-tab-plus svg { width: 24px; height: 24px; }
.bottom-tab-center span { position: relative; z-index: 1; }

/* ============================================
   悬浮咨询按钮
   ============================================ */
.fab {
  position: fixed; right: 16px;
  bottom: calc(18px + var(--bottom-tab-height) + var(--safe-bottom));
  background: linear-gradient(135deg, var(--brand-accent), var(--brand));
  color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 12px 18px; border-radius: 28px;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.35);
  z-index: 90;
  display: flex; align-items: center; gap: 6px;
  transition: transform 0.2s;
}
.fab svg { width: 18px; height: 18px; }
.fab:hover { transform: scale(1.05); }
.fab::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 28px; background: var(--brand-accent);
  opacity: 0.4; animation: pulse 2s infinite; z-index: -1;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0;   }
}

/* ============================================
   留资弹窗
   ============================================ */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(15, 118, 110, 0.5);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-card);
  width: 100%; max-width: 640px; padding: 24px;
  box-shadow: var(--shadow-lg);
}
.modal-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.modal-sub { font-size: 13px; color: var(--text-sub); margin-bottom: 16px; }
.modal-body {
  display: flex; align-items: stretch; gap: 24px;
}
.modal-form { flex: 1; min-width: 0; }
.modal-form input, .modal-form select {
  width: 100%; padding: 11px 12px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14px; margin-bottom: 10px; outline: none;
  transition: border-color 0.2s;
}
.modal-form input:focus, .modal-form select:focus { border-color: var(--brand); }
.modal-qr {
  width: 140px; flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
}
.modal-qr img {
  width: 110px; height: 110px;
  border-radius: 8px; object-fit: contain;
}
.modal-qr p {
  font-size: 12px; color: var(--text-sub);
  text-align: center; line-height: 1.4;
}
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-actions button {
  flex: 1; padding: 11px; border-radius: 8px;
  font-size: 14px; border: none; font-weight: 500;
}
.btn-cancel { background: var(--bg-soft); color: var(--text-sub); }
.btn-submit { background: var(--brand); color: #fff; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 720px) {
  .header { padding: 14px 0 22px; }
  .logo-text-main { font-size: 18px; }
  .logo-text-sub { font-size: 12px; gap: 4px; }
  .header-slogan { font-size: 15px; letter-spacing: 1px; }
  .search-tabs { gap: 4px; }
  .tab { font-size: 12px; padding: 8px 2px; }
  .search-row { flex-wrap: wrap; background: transparent; border-radius: 0; }
  .search-input, .upload-zone { flex: 1 1 100%; margin-bottom: 6px; background: var(--bg-soft); border-radius: var(--radius-pill); margin-right: 0; }
  .search-btn { flex: 1 1 100%; border-radius: var(--radius-pill); }
  .search-extras .examples { display: none; }
  .quick-icons { grid-template-columns: repeat(2, 1fr); }

  .announcement-bar { align-items: flex-start; }
  .announcement-links { display: none; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; padding: 14px 0; }
  .stat + .stat::before { display: none; }
  .stat-num { font-size: 20px; }

  /* 移动端保持田字 2x2 */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-section { padding: 18px 14px; }
  .cat-item { padding: 14px 8px; }
  .cat-item-icon { width: 44px; height: 44px; margin-bottom: 8px; }
  .cat-item-icon svg { width: 22px; height: 22px; }
  .cat-item-name { font-size: 14px; }
  .cat-item-price { font-size: 13px; }
  .cat-item-sub { font-size: 11px; }
  .cat-item-wide {
    flex-direction: row;
    text-align: left;
    gap: 10px;
    padding: 14px 12px;
  }
  .cat-item-wide .cat-item-icon { margin-bottom: 0; }
  .cat-item-wide .cat-item-name { font-size: 14px; }
  .cat-item-wide .cat-item-sub { -webkit-line-clamp: 1; }
  .cat-footer { margin-top: 12px; padding-top: 10px; }

  .cat-header { flex-wrap: wrap; }

  .steps-flow { gap: 8px; flex-wrap: nowrap; }
  .step-card { padding: 10px 8px; gap: 6px; border-radius: 12px; }
  .step-num { width: 22px; height: 22px; font-size: 11px; }
  .step-main { font-size: 12px; }
  .step-sub { font-size: 10px; }
  .step-arrow { display: none; }

  .follow-bar { flex-direction: column; align-items: stretch; }
  .follow-actions { justify-content: center; }

  .consult-bar { padding: 10px 12px; gap: 8px; }
  .consult-avatar { width: 36px; height: 36px; }
  .consult-actions { margin-left: auto; }
  .consult-btn { padding: 6px 10px; font-size: 11px; }

  .modal { max-width: 420px; padding: 20px; }
  .modal-body { flex-direction: column; gap: 16px; }
  .modal-qr {
    width: auto; flex-direction: row;
    justify-content: center; padding: 12px; gap: 12px;
  }
  .modal-qr img { width: 80px; height: 80px; }
  .modal-qr p { text-align: left; }

  .fab { right: 12px; padding: 10px 16px; font-size: 13px; }
}

/* 商标知识库入口 */
.kb-entry {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 1px solid #ccfbf1; border-radius: var(--radius-card);
  padding: 14px 16px; margin-top: 14px;
}
.kb-entry-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.kb-entry-icon svg { width: 22px; height: 22px; }
.kb-entry-main { flex: 1; min-width: 0; }
.kb-entry-title { font-size: 15px; font-weight: 700; color: var(--brand-dark); }
.kb-entry-sub { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.kb-entry-arrow { color: var(--brand); font-size: 20px; font-weight: 700; }

@media (max-width: 360px) {
  .cat-grid { gap: 8px; }
  .cat-item { padding: 12px 6px; }
  .cat-item-sub { -webkit-line-clamp: 2; }
}
