:root {
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --primary: #3b82f6;
  --secondary: #06b6d4;
  --accent: #8b5cf6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: var(--bg-darker);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 动态科技背景 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
  z-index: -1;
}

.header {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  color: white;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav a {
  color: var(--text-muted);
  margin-left: 2rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* 导航栏「添加到桌面」入口 */
.nav-install {
  margin-left: 2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  vertical-align: middle;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.nav-install:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

/* 添加到桌面的分平台引导弹窗 */
.install-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.install-modal.show { display: flex; }
.install-card {
  position: relative; width: 100%; max-width: 430px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.97), rgba(15, 23, 42, 0.97));
  border: 1px solid var(--glass-border); border-radius: 20px;
  padding: 1.8rem 1.6rem 1.6rem; color: var(--text-main);
  box-shadow: var(--card-shadow); animation: installPop 0.22s ease;
}
@keyframes installPop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.install-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; padding-right: 1.6rem; }
.install-sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.2rem; }
.install-steps { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.install-steps li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; line-height: 1.55; }
.step-no {
  flex: 0 0 1.5rem; height: 1.5rem; border-radius: 50%; margin-top: 0.1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.install-tip {
  margin-top: 1.1rem; font-size: 0.8rem; line-height: 1.5; color: var(--text-muted);
  background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px; padding: 0.6rem 0.75rem;
}
.install-close {
  position: absolute; top: 0.7rem; right: 0.8rem; padding: 0.2rem 0.45rem;
  background: none; border: none; color: var(--text-muted);
  font-family: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.install-close:hover { color: #fff; }

.banner {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.banner p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto;
  border-radius: 2px;
}

.chapter {
  margin-bottom: 1.5rem;
}

.chapter-header {
  background: var(--glass-bg);
  padding: 1.25rem 2rem;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  font-size: 1.2rem;
  color: var(--secondary);
}

.chapter-header:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
}

.chapter.active .chapter-header {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

.chapter-header .arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

/* ⚠️ 必须是【子选择器】：写成 `.chapter.active .arrow` 会连带把章内 68 个「节」的箭头
   一起转成 ▲ ⇒ 展开章之后，所有【折叠着】的节看起来也像已展开。这里只转章头自己那个箭头。 */
.chapter.active > .chapter-header .arrow {
  transform: rotate(180deg);
}

.chapter-content {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-top: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.chapter.active .chapter-content {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 多级折叠样式：节次级（二级） */
.section-item {
  margin: 0.75rem 0;
}

.section-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  font-size: 1rem;
  color: var(--text-main);
}

.section-header:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary);
}

.section-item.active .section-header {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--secondary);
}

.section-item.active .arrow {
  transform: rotate(180deg);
}

.section-content {
  display: none;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.section-item.active .section-content {
  display: block;
  animation: slideDown 0.3s ease-out;
}

/* 用户个人信息弹窗 */
.profile-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.profile-card {
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--card-shadow);
  text-align: center;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.profile-info-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-info-value {
  color: var(--text-main);
  font-weight: 600;
}

.experiment-grid {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 16px;
  margin: 1rem 0;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--card-shadow);
}

.card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.card.lock {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(1);
}

.form-box {
  max-width: 450px;
  margin: 6rem auto;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}

.form-box h2 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
}

.form-box input, .form-box select {
  width: 100%;
  padding: 0.8rem 1.2rem;
  margin: 1rem 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  transition: all 0.3s ease;
}

.form-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.3);
}

.vip-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3rem;
}

.vip-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3rem 2rem;
  border-radius: 24px;
  width: 300px;
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  position: relative;
}

.vip-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
}

.price {
  font-size: 2.5rem;
  color: var(--text-main);
  font-weight: 800;
  margin: 1.5rem 0;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pay-info {
  max-width: 600px;
  margin: 3rem auto;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  display: none;
}

.grade-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  background: var(--glass-bg);
  padding: 0.5rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.grade-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.grade-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 顶部搜索栏 */
.search-bar-top {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 420px;
  width: 100%;
  margin: 0 2rem;
}

.search-bar-top .search-icon {
  position: absolute;
  left: 1rem;
  font-size: 0.95rem;
  pointer-events: none;
}

.search-bar-top input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-main);
  font-size: 0.88rem;
  padding: 0.55rem 2.5rem 0.55rem 2.5rem;
  outline: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

.search-bar-top input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.2);
}

.search-bar-top input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.search-bar-top .search-clear {
  position: absolute;
  right: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.search-bar-top .search-clear:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* 搜索下拉面板 */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  z-index: 200;
  animation: dropdownIn 0.15s ease-out;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-results-header {
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
}

.search-results-list {
  padding: 0.5rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.search-result-item:hover {
  background: rgba(59, 130, 246, 0.12);
}

.search-result-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.search-result-tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
}

.search-result-tag.vip {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent);
}

.search-results-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.experiment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary);
  margin-top: 0.5rem;
}

.tag.vip {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent);
}

.glow-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

@media (max-width: 768px) {
  .banner h1 {
    font-size: 2.2rem;
  }
  .banner p {
    font-size: 1rem;
  }
  .header {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
  .search-bar-top {
    order: 3;
    max-width: 100%;
    margin: 0;
  }
  .nav a {
    margin: 0 0.5rem;
    font-size: 0.82rem;
  }
  .nav-install {
    margin: 0 0.5rem;
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
  }
  .form-box {
    padding: 2rem 1.5rem;
  }
}

/* ============================================================
   知识点相关度搜索（首页 hero 搜索 + 列表页下拉共用）
   依赖：search-engine.js / search-index.js
   ============================================================ */
.hero-search {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 2.2rem auto 0;
}

.hs-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.45rem 0.4rem 1.05rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.hs-field:focus-within {
  border-color: #38bdf8;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12), 0 14px 34px rgba(2, 6, 23, 0.5);
}
.hs-ico { font-size: 1.05rem; flex-shrink: 0; opacity: 0.85; }
.hs-field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.55rem 0;
}
.hs-field input::placeholder { color: var(--text-muted); opacity: 0.62; }
.hs-submit {
  flex-shrink: 0;
  border: none;
  border-radius: 50px;
  padding: 0.62rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hs-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45); }

.hs-hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.hs-hints-label { opacity: 0.75; margin-right: 0.15rem; }
.hs-chip {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  border-radius: 50px;
  padding: 0.24rem 0.7rem;
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.hs-chip:hover { border-color: #38bdf8; color: #e0f2fe; background: rgba(56, 189, 248, 0.12); }

/* ---- 结果面板（首页覆盖层） ---- */
.hs-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 1rem 2rem;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hs-overlay[hidden] { display: none; }
.hs-modal {
  width: min(900px, 100%);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  background: #0b1222;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  animation: dropdownIn 0.18s ease-out;
}
.hs-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.85);
}
.hs-modal-title { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }
.hs-modal-title small { font-weight: 500; color: var(--text-muted); margin-left: 0.5rem; font-size: 0.8rem; }
.hs-close {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
}
.hs-close:hover { color: #f87171; border-color: rgba(248, 113, 113, 0.5); background: rgba(239, 68, 68, 0.15); }
.hs-modal-body { overflow-y: auto; padding: 0.6rem; }

/* ---- 结果条目 ---- */
.sr-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.sr-item + .sr-item { margin-top: 0.15rem; }
.sr-item:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}
.sr-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.sr-main { min-width: 0; }
.sr-title {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text-main);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.sr-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-vip {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.sr-meta {
  margin-top: 0.22rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-why { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.sr-why span {
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.18);
}
.sr-why span.is-rel { background: rgba(139, 92, 246, 0.1); color: #c4b5fd; border-color: rgba(139, 92, 246, 0.2); }
.sr-rel { text-align: right; }
.sr-rel-num { font-size: 1.05rem; font-weight: 800; color: #38bdf8; line-height: 1.1; }
.sr-rel-num span { font-size: 0.62rem; font-weight: 600; margin-left: 1px; opacity: 0.7; }
.sr-rel-bar {
  margin: 0.3rem 0 0.25rem auto;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}
.sr-rel-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #3b82f6, #22d3ee); }
.sr-rel-lv { font-size: 0.66rem; color: var(--text-muted); }
.sr-rel.lv-strong .sr-rel-num { color: #22d3ee; }
.sr-rel.lv-weak .sr-rel-num { color: #94a3b8; }
.sr-rel.lv-weak .sr-rel-bar i { background: #64748b; }

.hs-empty { padding: 2.4rem 1.4rem; text-align: center; }
.hs-empty-title { font-size: 0.98rem; font-weight: 700; color: var(--text-main); }
.hs-empty-sub { margin-top: 0.45rem; font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; }
.hs-empty-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; margin-top: 1rem; }

/* ---- 列表页下拉：紧凑相关度 ---- */
.search-result-item { position: relative; }
.sr-mini {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  width: 62px;
}
.sr-mini-num { font-size: 0.78rem; font-weight: 800; color: #38bdf8; }
.sr-mini-bar { width: 100%; height: 3px; border-radius: 3px; background: rgba(148, 163, 184, 0.2); overflow: hidden; }
.sr-mini-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #22d3ee); }
.sr-mini-why { font-size: 0.66rem; color: var(--text-muted); margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 720px) {
  .banner { padding: 5rem 1.2rem; }
  .banner h1 { font-size: 2.1rem; }
  .banner p { font-size: 0.95rem; letter-spacing: 1px; margin-bottom: 1.8rem; }
  .hero-search { margin-top: 1.6rem; }
  .hs-field { padding-left: 0.85rem; }
  .hs-field input { font-size: 0.92rem; }
  .hs-submit { padding: 0.55rem 1rem; font-size: 0.85rem; }
  .hs-overlay { padding: 0; align-items: stretch; }
  .hs-modal { max-height: 100vh; height: 100%; border-radius: 0; border: none; }
  .sr-item { grid-template-columns: 38px minmax(0, 1fr) 62px; gap: 0.6rem; padding: 0.7rem 0.6rem; }
  .sr-icon { width: 38px; height: 38px; font-size: 1.2rem; }
  .sr-rel-num { font-size: 0.92rem; }
}

/* ---- 11 月特惠卡片（首页 / 开通VIP / 免费体验 共用） ---- */
.trial-promo-wrap {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}
.trial-promo {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.9rem 2.1rem;
  background: linear-gradient(135deg, rgba(251,191,36,0.14), rgba(251,146,60,0.06) 55%, rgba(255,255,255,0.03));
  border: 1px solid rgba(251,191,36,0.35);
  box-shadow: 0 14px 40px rgba(251,191,36,0.09);
}
.trial-promo::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.18), transparent 70%);
  pointer-events: none;
}
.trial-promo .tp-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #3b2405;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  padding: 0.22rem 0.8rem;
  border-radius: 30px;
  margin-bottom: 0.9rem;
}
.trial-promo h3 {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.45;
}
.trial-promo h3 .hl { color: #fbbf24; }
.trial-promo .tp-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 760px;
}
.trial-promo .tp-desc b { color: #fbbf24; }
.trial-promo .tp-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}
.trial-promo .tp-wx {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(251,191,36,0.28);
  border-radius: 12px;
  padding: 0.5rem 0.9rem;
}
.trial-promo .tp-wx b {
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #fde68a;
  user-select: all;
}
.trial-promo .tp-copy {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: #3b2405;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  border: none;
  border-radius: 12px;
  padding: 0.62rem 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trial-promo .tp-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,158,11,0.35);
}
.trial-promo .tp-note {
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  opacity: 0.85;
}

@media (max-width: 620px) {
  .trial-promo-wrap { padding: 0 1rem; }
  .trial-promo { padding: 1.4rem 1.25rem; border-radius: 16px; }
  .trial-promo h3 { font-size: 1.1rem; }
  .trial-promo .tp-desc { font-size: 0.85rem; }
  .trial-promo .tp-row { gap: 0.6rem; }
  .trial-promo .tp-copy { width: 100%; }
}
