/* 益泰智研 · Components — 可复用组件：cards, buttons, forms, tables, tags, search, hero, etc. */

/* 推荐焦点环 token（待全局统一）：
 * --focus-ring: 0 0 0 3px rgba(0, 103, 255, 0.12);
 * 当前各处使用不同颜色值，后续迭代统一替换 */

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg-page);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-title);
}

.card-body {
  padding: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-700);
  box-shadow: 0 4px 12px rgba(0, 103, 255, 0.25);
}

.btn-outline {
  background: var(--white);
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand-50);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-page);
  color: var(--text-title);
}

.btn-text {
  background: transparent;
  color: var(--brand);
  padding: 6px 4px;
}

.btn-text:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.btn-capsule {
  border-radius: var(--radius-capsule);
  padding: 9px 24px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
}

/* Forms */
.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  background: var(--white);
  color: var(--text-body);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 103, 255, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Search box */
.search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease-out);
}

.search-box:focus-within {
  box-shadow: 0 0 0 4px rgba(0, 103, 255, 0.12);
}

.search-box .search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-body);
  background: transparent;
}

.search-box .search-input::placeholder {
  color: var(--text-muted);
}

.search-box .search-select {
  border: none;
  border-right: 1px solid var(--border-light);
  outline: none;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-body);
  background: var(--bg-page);
  cursor: pointer;
}

.search-box .search-btn {
  background: var(--brand);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease-out);
}

.search-box .search-btn:hover {
  background: var(--brand-700);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.tag-blue {
  background: var(--brand-50);
  color: var(--brand);
}

.tag-gray {
  background: var(--bg-page);
  color: var(--text-secondary);
}

.tag-green {
  background: var(--green-light);
  color: var(--success);
}

.tag-orange {
  background: var(--orange-light);
  color: var(--accent-orange);
}

.tag-red {
  background: var(--red-light);
  color: var(--accent-red);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent-red);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--bg-page);
}

.data-table th {
  background: var(--bg-page);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
}

.data-table tr:hover td {
  background: var(--bg-module);
}

/* Result items */
.result-item {
  padding: 18px 20px;
  border-bottom: 1px solid var(--bg-page);
  transition: background 0.2s var(--ease-out);
}

.result-item:hover {
  background: var(--bg-module);
}

.result-item:last-child {
  border-bottom: none;
}

.result-title {
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.result-title:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.result-meta {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.8;
}

.result-abstract {
  color: var(--text-body);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 10px;
}

/* Stats */
.stat-number {
  font-size: 30px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination a,
.pagination span {
  padding: 6px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
}

.pagination a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pagination a.active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  gap: 4px;
  padding: 0 4px;
  background: var(--white);
}

.tab {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}

.tab:hover {
  color: var(--brand);
}

.tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Feature / app cards */
.app-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}

.app-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-200);
}

.app-card .app-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-400) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.app-card .app-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 4px;
}

.app-card .app-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.app-card .app-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 18px;
  transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.app-card:hover .app-arrow {
  color: var(--brand);
  transform: translateX(3px);
}

/* Feature icon standalone */
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-400) 100%);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Hero */
.hero-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-visual {
  position: relative;
  min-height: 260px;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--white) 50%, var(--brand-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hallmark audit fix: removed floating-orb decoration (AI tell) */

/* Hot tags */
.hot-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-capsule);
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}

.hot-tag:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-50);
}

/* Empty / placeholder states */
.placeholder-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
}

.placeholder-state i {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--brand-200);
}

/* Tool rail */
.tool-rail {
  width: 56px;
  background: var(--white);
  border-left: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 6px;
}

.tool-rail button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.tool-rail button:hover {
  background: var(--brand-50);
  color: var(--brand);
}

.tool-rail button i {
  font-size: 18px;
}

/* Flags */
.flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.flag-cn { background: var(--flag-cn); }
.flag-us { background: var(--flag-us); }
.flag-ep { background: var(--flag-ep); }
.flag-jp { background: var(--flag-jp); }
.flag-kr { background: var(--flag-kr); }
.flag-wo { background: var(--flag-wo); }
.flag-de { background: var(--flag-de); }

/* Detail page */
.detail-section { margin-bottom: 18px; }
.detail-label { color: var(--text-muted); font-size: 12px; margin-bottom: 4px; }
.detail-value { color: var(--text-body); font-size: 13px; }

/* Advanced search page overrides */
.adv-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border-light);
}

.adv-row:last-of-type {
  border-bottom: none;
}

.adv-label {
  width: 84px;
  text-align: right;
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
  font-weight: 500;
  padding-top: 9px;
}

.adv-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}

.adv-select {
  height: 38px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 0 10px;
  font-size: 13px;
  background: var(--white);
  outline: none;
  min-width: 160px;
  color: var(--text-body);
}

.adv-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 103, 255, 0.12);
}

.adv-input {
  height: 38px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 0 10px;
  font-size: 13px;
  flex: 1;
  outline: none;
  color: var(--text-body);
  min-width: 120px;
}

.adv-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 103, 255, 0.12);
}

.adv-add {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
  border: none;
  transition: transform 0.15s var(--ease-out);
}

.adv-add:hover {
  transform: translateY(-1px);
}

.adv-add.cyan { background: var(--brand); }
.adv-add.yellow { background: var(--accent-orange); }
.adv-add.pink { background: var(--accent-pink); }
.adv-add.blue { background: var(--accent-blue-dark); }

.adv-remove {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--white);
  background: var(--text-muted);
  flex-shrink: 0;
  border: none;
  transition: background 0.2s var(--ease-out);
}

.adv-remove:hover {
  background: var(--text-secondary);
}

.adv-tool {
  font-size: 12px;
  color: var(--brand);
  cursor: pointer;
  white-space: nowrap;
}

.adv-tool:hover {
  text-decoration: underline;
}

.adv-logic {
  min-width: 70px;
}

.sub-condition {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-left: 96px;
  flex: 1 1 100%;
}

/* Range panel */
.range-panel {
  background: var(--white);
  border-right: 1px solid var(--border-light);
  height: 100%;
}

.range-section {
  padding: 16px;
  border-bottom: 1px solid var(--bg-page);
}

.range-title {
  font-size: 13px;
  color: var(--text-title);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.range-title .count {
  color: var(--text-muted);
  font-weight: normal;
}

.range-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.range-item input {
  accent-color: var(--brand);
}

.range-search {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 0 10px;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-body);
}

.range-search:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 103, 255, 0.12);
}

/* Checkbox accent override */
.result-checkbox {
  accent-color: var(--brand);
}

/* ========== 专利相关组件 ========== */
/* ===================== 产业数据平台组件 ===================== */

/* Industry cards on portal home */
.industry-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.industry-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-200);
}

.industry-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.industry-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-title);
}

.industry-card-slogan {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.industry-card-metrics {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.industry-card-metrics strong {
  color: var(--brand);
  font-weight: 700;
}

.industry-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Industry switcher / tabs */
.industry-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  background: var(--bg-page);
  border-radius: var(--radius);
  width: fit-content;
}

.industry-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
}

.industry-tab:hover,
.industry-tab.active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-50);
  font-weight: 600;
}

/* Custom industry intelligence picker */
.industry-picker {
  position: relative;
  min-width: 260px;
}

.industry-picker-trigger {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 11px;
  border: 1px solid var(--border-light);
  border-radius: 9px;
  background: var(--white);
  color: var(--text-title);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.industry-picker-trigger:hover,
.industry-picker.open .industry-picker-trigger {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.industry-picker-current {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
}

.industry-picker-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--brand-50);
  color: var(--brand);
  flex-shrink: 0;
}

.industry-picker-current b {
  display: block;
  overflow: hidden;
  color: var(--text-title);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.industry-picker-current small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
}

.industry-picker-arrow {
  color: var(--text-muted);
  font-size: 11px;
  transition: transform 160ms var(--ease-out);
}

.industry-picker.open .industry-picker-arrow { transform: rotate(180deg); }

.industry-picker-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 70;
  width: min(430px, calc(100vw - 32px));
  max-height: 520px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-float);
}

.industry-picker-menu[hidden] { display: none; }

.industry-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-title);
  font-size: 12px;
  font-weight: 700;
}

.industry-picker-head small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 400;
}

.industry-picker-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 12px 6px;
  padding: 0 9px;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: var(--bg-page);
}

.industry-picker-search i { color: var(--text-muted); font-size: 12px; }
.industry-picker-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--text-body);
  font: inherit;
  font-size: 12px;
}

.industry-picker-options {
  max-height: 405px;
  overflow-y: auto;
  padding: 4px 8px 10px;
}

.industry-picker-group { padding: 5px 0; }
.industry-picker-group-title {
  padding: 6px 7px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
}

.industry-picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
}

.industry-picker-option:hover { background: var(--bg-hover); }
.industry-picker-option.active { background: var(--brand-50); }
.industry-picker-option b {
  display: block;
  color: var(--text-title);
  font-size: 12px;
}

.industry-picker-option small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.industry-picker-option > i {
  color: var(--brand);
  font-size: 13px;
  flex-shrink: 0;
}

.industry-picker-empty {
  padding: 24px 12px;
  color: var(--text-muted);
  text-align: center;
  font-size: 12px;
}

/* Data source cards */
.data-source-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.data-source-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-200);
}

.data-source-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--brand-50);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.data-source-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
}

.data-source-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Trend placeholder */
.trend-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  height: 200px;
  padding: 0 12px;
}

.trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 32px;
}

.trend-bar {
  width: 100%;
  max-width: 36px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--brand-400) 0%, var(--brand) 100%);
  transition: opacity 0.2s var(--ease-out);
}

.trend-bar:hover {
  opacity: 0.85;
}

.trend-year {
  font-size: 11px;
  color: var(--text-muted);
}

/* Chain entry card */
.chain-entry-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--white) 100%);
  border: 1px dashed var(--brand-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
}

.chain-entry-card:hover {
  background: var(--brand-50);
  border-style: solid;
}

.chain-entry-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-card);
}

/* Data type tabs for search */
.data-type-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.data-type-tab:hover,
.data-type-tab.active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-50);
}

/* Metric card variant */
.metric-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--brand);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--text-muted);
}

/* ===================== Responsive — Components ===================== */

/* US-008: 移动端触摸优化 + US-003: 表格响应式卡片化 */
@media (max-width: 768px) {
  /* Buttons — WCAG 2.5.5 touch targets */
  .btn {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 14px;
  }

  .btn-sm {
    min-height: 36px;
    padding: 6px 14px;
  }

  .card {
    margin-bottom: 12px;
  }

  .card-body {
    padding: 16px;
  }

  .space-y-6 > * + * {
    margin-top: 16px;
  }

  .gap-6 {
    gap: 16px;
  }

  /* Search */
  .search-box .search-select {
    display: none;
  }

  /* Advanced search */
  .adv-row {
    flex-direction: column;
    gap: 8px;
  }

  .adv-label {
    text-align: left;
    width: auto;
    padding-top: 0;
  }

  .sub-condition {
    padding-left: 0;
  }

  /* Tool rail */
  .tool-rail {
    display: none;
  }

  /* 防止内容被底部 Tab 栏遮挡 */
  body,
  body.ai-app {
    padding-bottom: 60px;
  }

  body.ai-app {
    overflow: auto; /* 移动端允许滚动 */
  }

  /* Hero */
  .hero-visual {
    min-height: 180px;
  }

  /* ===== US-003: 表格响应式卡片化 ===== */
  .data-table {
    display: block;
  }

  .data-table thead {
    display: none; /* 隐藏表头 */
  }

  .data-table tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px;
    background: var(--white);
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
    text-align: right;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .data-table td:last-child {
    border-bottom: none;
  }

  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-title);
    margin-right: 12px;
    text-align: left;
  }
}
