﻿/* ============================================
   MIKU TOOLS STYLE — Clean, modern, card-based
   Light background, indigo accent, rounded cards
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #eef2ff;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --font: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--text); line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-lg);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-hover) !important; color: #fff !important; }

/* ===== HERO ===== */
.hero-section {
  padding: 64px 24px 40px;
  text-align: center;
}
.hero-bg-video { display: none; }
.hero-overlay { display: none; }
.hero-bran { display: none; }
.hero-content {
  max-width: 640px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-stats-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 32px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Search bar */
.hero-search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  max-width: 520px;
  margin: 0 auto 12px;
}
.hero-search-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1), var(--shadow-md);
}
.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  padding: 12px 12px 12px 18px;
}
.hero-search-input::placeholder { color: var(--text-muted); }
.hero-search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: calc(var(--radius-xl) - 4px);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.hero-search-btn:hover { background: var(--primary-hover); }

/* ===== SECTION COMMONS ===== */
.section-black, .section-yellow {
  padding: 56px 24px;
  background: var(--bg);
  color: var(--text);
}
.section-yellow { background: var(--bg); }

/* ===== SECTION HEADINGS ===== */
.section-heading-black, .section-heading-yellow {
  text-align: center;
  margin-bottom: 36px;
}
.section-heading-black h2, .section-heading-yellow h2 {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 8px;
}
.section-heading-black p, .section-heading-yellow p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 24px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.cp-btn--yellow {
  color: var(--primary);
  background: var(--primary-light);
}
.cp-btn--yellow:hover { background: #ddd6fe; }
.cp-btn--yellow-fill {
  color: #fff;
  background: var(--primary);
}
.cp-btn--yellow-fill:hover { background: var(--primary-hover); box-shadow: 0 2px 8px rgba(99,102,241,0.25); }
.cp-btn--black {
  color: var(--text);
  background: var(--border-light);
}
.cp-btn--black:hover { background: var(--border); }
.cp-btn--cyan { display: none; }

/* ===== MERGED LAYOUT (tabs) ===== */
.merged-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.merged-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  width: 140px;
  max-height: none;
  overflow-y: visible;
  padding: 4px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.merged-tab {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 500;
  text-align: left;
  background: transparent;
  border: none;
  transition: all var(--transition);
}
.merged-tab:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.merged-tab.active {
  background: var(--primary);
  color: #fff;
}
.merged-content {
  flex: 1;
  min-width: 0;
}
.merged-panel { display: none; }
.merged-panel.active { display: block; }

/* ===== TOOL TILE CARDS (for "创作工具" tab) ===== */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tile-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 18px 18px;
  color: var(--text);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.tile-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tile-card::before { display: none; }
.tile-icon { font-size: 30px; margin-bottom: 8px; line-height: 1; }
.tile-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.tile-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
  flex: 1;
}
.tile-badge {
  margin-top: 8px;
  display: inline-block;
  font-size: 10px;
  padding: 2px 10px;
  font-weight: 600;
  border-radius: 99px;
  align-self: flex-start;
}
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-cyan { background: #e0e7ff; color: #3730a3; }
.badge-hot { background: #fee2e2; color: #991b1b; }

/* ===== TOOL CARD ITEMS (categorized tools) ===== */
.tool-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tool-card-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tool-card-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tool-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  position: relative;
}
.tool-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tool-card-img::after {
  content: '';
  display: none;
}
.tool-card-label {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* ===== RESOURCE GRID ===== */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.resource-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.resource-card-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.resource-card-icon { font-size: 32px; }
.resource-card-label {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ===== MONETIZE LIST (deprecated, kept for compatibility) ===== */
.monetize-list { display: flex; flex-direction: column; gap: 10px; }
.monetize-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.monetize-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.monetize-item-icon { font-size: 28px; flex-shrink: 0; }
.monetize-item-body { flex: 1; min-width: 0; }
.monetize-item-title { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.monetize-item-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; margin-top: 2px; }
.monetize-item-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  padding: 6px 14px;
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-sm);
  background: var(--primary-light);
}
.featured-promo { border-color: var(--primary); }
.featured-promo .monetize-item-action { background: var(--primary); color: #fff; }

/* ===== TAG CLOUD ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag-chip, .tag-chip-light {
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-secondary);
  background: var(--bg-card);
  font-weight: 500;
  transition: all var(--transition);
}
.tag-chip:hover, .tag-chip-light:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ===== TOOL PAGE COMMONS ===== */
.tool-header {
  padding: 48px 24px 32px;
  text-align: center;
}
.tool-header-icon { font-size: 44px; margin-bottom: 10px; }
.tool-header h1 {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.tool-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.tool-body {
  padding: 0 24px 40px;
  max-width: 780px;
  margin: 0 auto;
}
.tool-workspace {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

/* ===== FORM ELEMENTS ===== */
.input-dark {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  resize: vertical;
  line-height: 1.5;
  transition: all var(--transition);
}
.input-dark:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.input-dark::placeholder { color: var(--text-muted); }

/* ===== RESULT DISPLAYS ===== */
.result-panel {
  margin-top: 12px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: var(--radius-md);
  display: none;
}
.result-panel.show { display: block; }
.result-panel.warn { border-left: 3px solid #f59e0b; background: #fffbeb; color: #92400e; }
.result-panel.danger { border-left: 3px solid #ef4444; background: #fef2f2; color: #991b1b; }
.result-panel.ok { border-left: 3px solid #10b981; background: #ecfdf5; color: #065f46; }

/* ===== STATS ROW ===== */
.stats-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-chip {
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.stat-chip .val { font-size: 22px; font-weight: 800; color: var(--primary); display: block; margin-top: 2px; }

/* ===== FOOTER ===== */
.footer-section {
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  padding: 36px 24px;
  text-align: center;
}
.footer-section::before { display: none; }
.footer-brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.footer-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 8px;
}
.footer-bottom-text {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== FLOATING BUTTON ===== */
.float-btn-wrapper {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}
.float-circle {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
  transition: all var(--transition);
}
.float-circle:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(99,102,241,0.45); }
.float-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}


/* ===== QR MODAL ===== */
.qr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.qr-modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 340px;
  width: 90%;
  position: relative;
}
.qr-modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.qr-modal-close:hover { color: var(--text); }
.qr-modal img {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.qr-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.qr-modal-sub {
  font-size: 12px;
  color: var(--text-secondary);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== DECORATIVE / BACK LINK ===== */
.decor-terminal {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 16px;
  font-weight: 500;
  transition: color var(--transition);
}
.back-link:hover { color: var(--primary); }

/* ===== PROGRESS / LOADING ===== */
.loading-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-bar { width: 100%; height: 4px; background: var(--border-light); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.progress-bar .fill { height: 100%; background: var(--primary); border-radius: 2px; animation: progressPulse 1.5s ease-in-out infinite; }
@keyframes progressPulse { 0%,100%{width:20%;} 50%{width:80%;} }

/* ===== MISC ===== */
.promo-card { display: none; }
.razor-top, .razor-bottom { display: none; }
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.status-badge.pass { background: #d1fae5; color: #065f46; }
.status-badge.fail { background: #fee2e2; color: #991b1b; }
.risk-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 12px; }
.risk-table th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 10px; font-weight: 600; }
.risk-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-light); color: var(--text); }
.risk-type { font-size: 10px; padding: 2px 8px; border-radius: 99px; font-weight: 500; }
.risk-type.danger { background: #fee2e2; color: #991b1b; }
.risk-type.warn { background: #fef3c7; color: #92400e; }
.platform-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.platform-tag { font-size: 11px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 99px; color: var(--text-secondary); background: var(--bg); font-weight: 500; }
.result-box { padding: 20px; background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-md); margin-top: 16px; }
.result-box .caption-text { font-size: 14px; line-height: 1.8; color: var(--text); white-space: pre-wrap; word-break: break-all; margin-top: 12px; }
.result-box .meta-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); margin-top: 12px; }
.result-box .meta-row span { padding: 4px 10px; border: 1px solid var(--border); border-radius: 99px; }
.highlight-text { padding: 14px 16px; background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-md); font-size: 14px; line-height: 1.8; word-break: break-all; }
.highlight-text .jwy-topRisk { background: rgba(239,68,68,0.1); color: #dc2626; padding: 1px 4px; border-radius: 3px; font-weight: 600; }
.highlight-text .jwy-lowRisk { background: rgba(245,158,11,0.1); color: #d97706; padding: 1px 4px; border-radius: 3px; font-weight: 600; }
.platform-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.platform-tab {
  font-size: 12px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 500;
  background: var(--bg-card);
  border-radius: 99px;
  transition: all var(--transition);
}
.platform-tab:hover { border-color: var(--primary); color: var(--primary); }
.platform-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.hot-list { display: flex; flex-direction: column; gap: 6px; }
.hot-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
}
.hot-item:hover { border-color: var(--primary); background: var(--bg-card); }
.hot-rank { font-size: 13px; font-weight: 700; color: var(--primary); min-width: 24px; text-align: center; flex-shrink: 0; }
.hot-rank.top3 { color: #ef4444; }
.hot-body { flex: 1; min-width: 0; }
.hot-title { font-size: 13px; color: var(--text); line-height: 1.5; }
.hot-meta { font-size: 10px; color: var(--text-muted); margin-top: 3px; display: flex; gap: 8px; align-items: center; }
.hot-platform-tag { font-size: 10px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 99px; flex-shrink: 0; color: var(--text-secondary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title { font-size: 30px; }
  .hero-stats-row { gap: 20px; }
  .hero-stat-num { font-size: 28px; }
  .tiles-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool-cards-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile-card { padding: 16px 14px; }
  .resource-grid { grid-template-columns: 1fr; }
  .section-black, .section-yellow { padding: 40px 20px; }
  .section-heading-black h2, .section-heading-yellow h2 { font-size: 24px; }
  .nav-bar { padding: 0 16px; }
  .nav-links { display: none; }
  .tool-header { padding: 36px 20px 24px; }
  .tool-body { padding: 0 16px 32px; }
  .merged-layout { flex-direction: column; }
  .merged-sidebar { flex-direction: row; width: auto; overflow-x: auto; }
  .merged-tab { text-align: center; white-space: nowrap; flex-shrink: 0; }
  .merged-content { width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .hero-search-wrap { margin: 0 8px 12px; }
  .tiles-grid { grid-template-columns: 1fr; }
  .tool-cards-grid { grid-template-columns: 1fr; }
  .cp-btn { height: 40px; padding: 0 20px; font-size: 13px; }
  .container { padding: 0 16px; }
}

