/* ============================================================
   胖阿杰工具箱 - 首页与分类页样式
   ============================================================ */

/* ---------- Hero ---------- */
.hero { padding: 56px 0 44px; }
.hero-inner { display: flex; align-items: center; gap: 56px; }
.hero-text { flex: 1; min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--accent-ink);
  background: var(--accent-soft); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(217, 130, 92, .18);
}
.hero-text h1 {
  font-size: 48px; font-weight: 900; line-height: 1.16; letter-spacing: -1.2px;
}
.hero-text h1 .accent {
  position: relative; display: inline-block; color: var(--ink);
  padding: 0 2px;
  background: linear-gradient(180deg, transparent 62%, var(--accent-soft) 62%);
  border-radius: 4px;
}
.hero-text .subtitle { margin-top: 16px; font-size: 16px; color: var(--ink-2); max-width: 500px; line-height: 1.75; }
.hero-text .subtitle .hl { color: var(--ink); font-weight: 600; }
.hero-search { margin-top: 28px; position: relative; max-width: 540px; }
.hero-search input {
  width: 100%; padding: 16px 124px 16px 20px; min-height: 56px;
  border: 1px solid var(--line-strong); border-radius: 16px;
  font-size: 15px; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow);
  transition: border-color .16s, box-shadow .16s;
}
.hero-search input::placeholder { color: var(--ink-3); }
.hero-search input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 130, 92, .14), var(--shadow);
}
.hero-search button {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  padding: 0 22px; min-height: 42px;
  background: var(--ink); color: var(--bg); border: none;
  border-radius: 11px; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .16s;
}
.hero-search button:hover { background: #2c2a25; }
[data-theme="dark"] .hero-search button:hover { background: #fffdf7; color: #151412; }
.hot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.hot-chips .label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-right: 2px; }
.hot-chips a {
  font-size: 12.5px; padding: 5px 13px;
  border: 1px solid var(--line); border-radius: 999px; font-weight: 500;
  background: var(--surface); color: var(--ink-2);
  transition: background .16s, border-color .16s, color .16s, transform .16s;
}
.hot-chips a:hover {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent-ink); transform: translateY(-1px);
}
[data-theme="dark"] .hot-chips a:hover { color: var(--ink); }

/* Hero 主视觉：暖色渐变画框 */
.hero-figure {
  flex-shrink: 0; width: 400px; position: relative;
  border-radius: 28px; padding: 10px;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(158deg, #f8ead7 0%, #f3e2ca 52%, #efdcc1 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(219, 183, 145, .45);
}
[data-theme="dark"] .hero-figure {
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(255, 240, 224, .12) 0%, rgba(255, 240, 224, 0) 58%),
    linear-gradient(158deg, #2c2419 0%, #241d14 100%);
  border-color: rgba(255, 220, 190, .12);
}
.hero-figure::before {
  content: ""; position: absolute; width: 150px; height: 150px;
  right: 26px; top: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .5); filter: blur(2px);
  pointer-events: none;
}
[data-theme="dark"] .hero-figure::before { background: rgba(255, 230, 205, .06); }
.hero-figure img {
  position: relative; z-index: 1;
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: contain; display: block;
  filter: drop-shadow(0 18px 26px rgba(120, 84, 52, .18));
}
.hero-figure .hero-badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(219, 183, 145, .4);
  border-radius: 999px; padding: 6px 13px;
  font-size: 12px; font-weight: 600; color: #6b5644;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px -8px rgba(120, 84, 52, .35);
}
.hero-figure .hero-badge b { color: #b05f3c; font-weight: 800; }
[data-theme="dark"] .hero-figure .hero-badge {
  background: rgba(30, 26, 20, .9); color: var(--ink-2); border-color: rgba(255, 220, 190, .14);
}
[data-theme="dark"] .hero-figure .hero-badge b { color: var(--accent); }

/* ---------- 分类区块 ---------- */
.home-sections { padding: 14px 0 30px; display: flex; flex-direction: column; gap: 44px; }
.home-section { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 搜索结果 ---------- */
.search-result-bar {
  display: none; margin: 26px 0 8px; padding: 13px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  align-items: center; gap: 12px; box-shadow: var(--shadow-sm);
}
.search-result-bar.show { display: flex; }
.search-result-bar strong { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.search-result-bar strong span { color: var(--accent-ink); font-weight: 800; }
.search-result-bar .clear-search { margin-left: auto; }

/* ---------- 分类页 ---------- */
.category-page { padding: 34px 0 10px; }
.category-head { margin-bottom: 26px; }
.category-head h1 { font-size: 29px; font-weight: 800; display: flex; align-items: center; gap: 13px; letter-spacing: -.4px; }
.category-head h1 .emoji-badge {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--cream); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800;
}
.category-head p { margin-top: 10px; color: var(--ink-2); font-size: 14px; }
.crumbs { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs .sep { margin: 0 7px; color: var(--line-strong); }

/* ---------- 关于页 ---------- */
.about-hero {
  display: flex; gap: 30px; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 20px; box-shadow: var(--shadow);
}
.about-hero img {
  width: 300px; height: auto; aspect-ratio: 4 / 3; object-fit: contain;
  border-radius: 16px; flex-shrink: 0;
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(158deg, #f8ead7, #efdcc1);
  border: 1px solid rgba(219, 183, 145, .4);
}
[data-theme="dark"] .about-hero img {
  background: linear-gradient(158deg, #2c2419, #241d14);
  border-color: rgba(255, 220, 190, .12);
}
.about-hero-text { display: flex; flex-direction: column; justify-content: center; }
.about-hero-text h2 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.about-hero-text h2:not(:first-child) { margin-top: 16px; }
.about-hero-text p { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero-inner { gap: 34px; }
  .hero-figure { width: 330px; }
  .hero-text h1 { font-size: 42px; }
}
@media (max-width: 900px) {
  .hero { padding: 36px 0 26px; }
  .hero-inner { flex-direction: column-reverse; text-align: center; gap: 28px; }
  .hero-text h1 { font-size: 34px; }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero-text .subtitle { margin-left: auto; margin-right: auto; }
  .hero-search { margin-left: auto; margin-right: auto; }
  .hot-chips { justify-content: center; }
  .hero-figure { width: 260px; border-radius: 24px; }
  .hero-figure .hero-badge { left: 50%; transform: translateX(-50%); bottom: 12px; }
  .about-hero { flex-direction: column; text-align: center; }
  .about-hero img { width: 100%; max-width: 320px; margin: 0 auto; }
  .about-hero-text { text-align: left; }
}
@media (max-width: 480px) {
  .hero-text h1 { font-size: 29px; letter-spacing: -.8px; }
  .hero-search input { padding: 14px 104px 14px 16px; min-height: 52px; font-size: 14px; }
  .hero-search button { padding: 0 16px; min-height: 38px; }
  .hero-figure { width: 210px; }
  .category-head h1 { font-size: 23px; }
  .category-head h1 .emoji-badge { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
}
