/* search.css（homeV2 2026-10-30）：搜索页样式 = 原首页搜索弹窗样式整块搬移 + 页内直铺覆写 */
/* ═══ 全站搜索弹窗 — 深顶金边纸身，对标 star-modal ═══ */
.sovl {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000;
  background: rgba(10,10,20,0.72);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 56px 16px 40px;
  overflow-y: auto;
  animation: sovlIn 0.2s ease;
}
@keyframes sovlIn { from { opacity: 0; } to { opacity: 1; } }
.sovl__card {
  position: relative;
  background: #faf7f2;
  border-radius: 24px;
  width: 100%; max-width: 780px;
  box-shadow: 0 32px 120px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.1);
  animation: sovlCardIn 0.35s cubic-bezier(0.25,0.8,0.25,1);
  overflow: hidden;
}
@keyframes sovlCardIn { from { opacity: 0; transform: translateY(28px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.sovl__close {
  position: absolute; top: 18px; right: 18px; z-index: 10;
  width: 22px; height: 22px; border-radius: 50%;
  background: #ff5f57; color: rgba(0,0,0,0.45);
  font-size: 16px; font-weight: 700; line-height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12);
  transition: transform 0.15s;
}
.sovl__close:hover { transform: scale(1.12); }

/* ── 搜索结果容器 ── */
#searchResults { padding: 44px 40px 36px; }

/* ── 词典释义卡 — 左金竖线 + 微凸纸面 ── */
.sr-dict {
  padding: 28px 32px; margin-bottom: 40px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 4px solid #1a1a1a;
  box-shadow: 0 2px 16px rgba(0,0,0,0.03), 0 8px 40px rgba(0,0,0,0.03);
}
.sr-dict__word {
  font-family: "Times New Roman", "Songti SC", serif;
  font-size: 42px; font-weight: 700; letter-spacing: -0.015em;
  color: #1a1a1a; line-height: 1.1;
}
.sr-dict__phonetic {
  font-size: 16px; color: #8a8478; margin: 6px 0 16px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}
.sr-dict__pos {
  display: inline-block; padding: 4px 18px; border-radius: 9999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(0,0,0,0.06); color: #1a1a1a; margin-bottom: 18px;
}
.sr-dict__def {
  font-size: 15px; color: #555; line-height: 1.8;
  margin-bottom: 12px; max-width: 640px;
}
.sr-dict__trans {
  font-size: 16px; color: #2a2a2a; line-height: 1.9;
  max-width: 640px;
}
.sr-dict__meta {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px;
  padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.05);
}
.sr-dict__meta span {
  font-size: 11px; font-weight: 500; color: #8a8478;
  padding: 3px 12px; border-radius: 8px;
  background: rgba(0,0,0,0.025);
  letter-spacing: 0.02em;
}

/* ── 节标题 — 衬线金下划线 ── */
.sr-section { margin-bottom: 32px; }
.sr-section:last-child { margin-bottom: 0; }
.sr-section__head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}
.sr-section__icon { font-size: 18px; flex-shrink: 0; }
.sr-section__label {
  font-family: "Times New Roman", "Songti SC", serif;
  font-size: 17px; font-weight: 700; letter-spacing: 0.03em;
  color: #2a2a2a;
}
/* ── 头部「N 篇」胶囊按钮 — 与 exam 检查按钮同款：白胶囊+黑边+外发光，hover/按下反色 ── */
.sr-count-btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: auto;
  padding: 5px 14px;
  border: 1px solid rgba(0,0,0,0.5); border-radius: 9999px;
  background: #ffffff;
  color: #1a1a1a; font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit; letter-spacing: 0.06em; white-space: nowrap;
  box-shadow: 0 0 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.sr-count-btn:hover, .sr-count-btn:active {
  background: #1a1a1a; border-color: #1a1a1a; color: #ffffff;
  box-shadow: 0 0 16px rgba(0,0,0,0.28);
  transform: scale(1.02);
}

/* ── 加载更多容器 ── */
.sr-more-wrap {
  display: flex; justify-content: center;
  padding: 14px 0 2px;
}
.sr-more-wrap .sr-count-btn { margin-left: 0; }

/* ── 结果行 — 纸面卡片，hover 抬升 ── */
.sr-row {
  display: block; padding: 16px 20px; margin-bottom: 8px;
  border-radius: 14px; border: 1px solid rgba(0,0,0,0.04);
  background: #fff;
  cursor: pointer; transition: all 0.25s;
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.sr-row:hover {
  border-color: rgba(0,0,0,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.sr-row__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.sr-row__date {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: #1a1a1a;
  padding: 2px 10px; border-radius: 6px;
  background: rgba(0,0,0,0.06);
  white-space: nowrap;
}
.sr-row__tag {
  padding: 2px 10px; border-radius: 6px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em; white-space: nowrap;
  background: rgba(0,0,0,0.06); color: #1a1a1a;
}
.sr-row__tag--purple { background: rgba(0,0,0,0.06); color: #1a1a1a; }
.sr-row__title {
  font-size: 13px; font-weight: 500; color: #4a4a4a; line-height: 1.4;
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: "Times New Roman", "Songti SC", serif;
}
.sr-row__excerpt {
  font-size: 14px; color: #5a5a5a; line-height: 1.75;
  font-family: "Times New Roman", "Songti SC", serif;
}
.sr-row__excerpt mark {
  background: rgba(0,0,0,0.2); color: #1a1a1a; font-weight: 600;
  padding: 1px 4px; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.sr-row__time {
  display: inline-block; padding: 2px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600; font-family: "SF Mono", Menlo, Consolas, monospace;
  background: rgba(0,0,0,0.08); color: #5a5a5a;
  white-space: nowrap;
}

/* ── (N处) 徽章 ── */
.sr-row__badge {
  display: inline-block; padding: 2px 10px; border-radius: 9999px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  background: rgba(0,0,0,0.12); color: #1a1a1a;
  margin-left: 2px;
}

/* ── 空状态 ── */
.sr-empty {
  text-align: left; padding: 48px 0;
  font-family: "Times New Roman", "Songti SC", serif;
  font-size: 15px; color: #b0a890;
}

/* ── 平板端 (641–1024px) ── */
@media (min-width: 641px) and (max-width: 1024px) {
  .sovl__card { max-width: 92%; }
  #searchResults { padding: 40px 32px 32px; }
}

/* ── 手机端 (≤640px) ── */
@media (max-width: 640px) {
  /* 搜索框 */
  .hero-search { width: 100%; max-width: none; padding: 4px; border-width: 1px; box-shadow: 0 8px 18px rgba(60,45,20,0.12), inset 0 1px 0 #ffffff; }
  .hero-search__ico { width: 26px; }
  .hero-search__ico svg { width: 15px; height: 15px; }
  .hero-search__input { padding: 0 14px 0 2px; height: 42px; font-size: 14px; }
  .hero-search__btn { padding: 0 14px; height: 42px; font-size: 12px; border-width: 1px; box-shadow: 0 3px 10px rgba(229,168,50,0.30), inset 0 1px 0 rgba(255,255,255,0.6); }

  /* 缩小标题与导航栏间距 */
  .home-hero__container { padding-top: 0 !important; }

  /* 标题移到搜索框上方 */
  .hero-search__title-mobile {
    display: block;
    font-size: 4vw; font-weight: 800; letter-spacing: -0.02em;
    text-align: center; white-space: nowrap;
    line-height: 1.3; margin-bottom: 14px;
  }
  .hero-search__title-mobile .shimmer-text {
    font-size: inherit;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #1a1a1a;
    color: #1a1a1a;
    animation: none;
  }

  /* 弹窗 */
  .sovl { padding: 32px 4px 16px; align-items: flex-start; }
  .sovl__card { border-radius: 18px; }
  .sovl__close { top: 14px; right: 14px; width: 20px; height: 20px; font-size: 14px; line-height: 20px; }
  #searchResults { padding: 28px 14px 20px; }

  /* 词典卡 */
  .sr-dict { padding: 20px 16px; margin-bottom: 28px; border-left-width: 3px; }
  .sr-dict__word { font-size: 28px; }
  .sr-dict__phonetic { font-size: 14px; }
  .sr-dict__def, .sr-dict__trans { font-size: 14px; }
  .sr-dict__meta { gap: 6px; }
  .sr-dict__meta span { font-size: 10px; padding: 2px 8px; }

  /* 节标题 */
  .sr-section { margin-bottom: 24px; }
  .sr-section__head { gap: 8px; margin-bottom: 10px; }
  .sr-section__label { font-size: 15px; }
  .sr-count-btn { padding: 4px 11px; font-size: 11px; letter-spacing: 0.04em; }
  .sr-more-wrap { padding: 10px 0 0; }

  /* 结果行 */
  .sr-row { padding: 12px 14px; border-radius: 12px; }
  .sr-row__meta { flex-wrap: wrap; gap: 6px; font-size: 11px; }
  .sr-row__date { font-size: 10px; padding: 1px 8px; }
  .sr-row__title { font-size: 12px; }
  .sr-row__excerpt { font-size: 13px; }
  .sr-row__time { font-size: 10px; }
  .sr-row__badge { font-size: 9px; padding: 1px 8px; }
}
/* ═══ 搜索页（页内直铺，非弹窗）═══ */
.search-page{padding:76px 16px 60px;max-width:920px;margin:0 auto;}
/* 🔴 搜索框 = 旧首页 hero-search 玻璃条+金渐变标语按钮（2026-10-31 站长：比素框+「搜索」好看） */
.search-page__box{position:relative;display:flex;align-items:center;padding:5px;
  background:rgba(255,255,255,.82);backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);
  border:1px solid rgba(255,255,255,.9);border-radius:9999px;
  box-shadow:0 12px 28px rgba(60,45,20,.14),inset 0 1px 0 #ffffff;
  transition:transform .2s,box-shadow .2s;}
.search-page__box:hover,.search-page__box:focus-within{transform:scale(1.02);box-shadow:0 16px 34px rgba(60,45,20,.18),inset 0 1px 0 #ffffff;}
.search-page__ico{flex:0 0 auto;width:34px;display:flex;align-items:center;justify-content:center;color:rgba(58,48,36,.38);}
.search-page__ico svg{width:19px;height:19px;display:block;}
.search-page__input{flex:1;min-width:0;border:none;outline:none;background:transparent;
  padding:0 24px 0 4px;height:58px;font-size:clamp(18px,2vw,22px);font-weight:400;
  color:#1a1a1a;letter-spacing:.02em;font-family:"Times New Roman","Songti SC",serif;}
.search-page__input::placeholder{color:#b6ae9f;font-weight:400;letter-spacing:.02em;
  font-family:"Times New Roman","Songti SC",serif;font-size:clamp(15px,1.5vw,17px);}
.search-page__btn{flex-shrink:0;padding:0 28px;height:58px;border:1px solid rgba(255,255,255,.75);border-radius:9999px;
  outline:none;background:linear-gradient(135deg,#ffd76a,#f5b62c);color:#6d3f02;
  font-size:clamp(13px,1.2vw,15px);font-weight:800;letter-spacing:.06em;cursor:pointer;
  box-shadow:0 4px 12px rgba(229,168,50,.34),inset 0 1px 0 rgba(255,255,255,.6);
  transition:transform .2s,box-shadow .2s,filter .2s;white-space:nowrap;font-family:"Inter","Noto Sans SC",sans-serif;}
.search-page__btn:hover{transform:scale(1.05);filter:brightness(1.04);box-shadow:0 6px 18px rgba(229,168,50,.42),inset 0 1px 0 rgba(255,255,255,.6);}
.sovl--page{position:static;display:block;background:none;padding:0;overflow:visible;animation:none;}
.sovl--page .sovl__card{max-width:100%;margin:18px 0 0;box-shadow:none;border:1px solid #ececf1;}
.toast{position:fixed;left:50%;bottom:88px;transform:translateX(-50%) translateY(8px);background:rgba(20,20,30,.88);color:#fff;font-size:12px;padding:8px 16px;border-radius:999px;opacity:0;pointer-events:none;transition:.2s;z-index:3000;}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
@media (max-width:640px){
  .search-page{padding:60px 12px 96px;}
  .search-page__box{padding:4px;box-shadow:0 8px 18px rgba(60,45,20,.12),inset 0 1px 0 #ffffff;}
  .search-page__ico{width:26px;}
  .search-page__ico svg{width:15px;height:15px;}
  .search-page__input{padding:0 14px 0 2px;height:42px;font-size:14px;}
  .search-page__input::placeholder{font-size:12px;}
  .search-page__btn{padding:0 14px;height:42px;font-size:11px;letter-spacing:.02em;box-shadow:0 3px 10px rgba(229,168,50,.30),inset 0 1px 0 rgba(255,255,255,.6);}
}
