/* home.css —— 首页态（#homeView）样式，奶油果冻可爱风，纯 CSS 零图片。
   全部规则限定在 #homeView / body.home-mode，不污染搜索结果态。 */

#homeView {
  --pink: #ff8fab;
  --pink-deep: #ff5c8a;
  --bg: #fff8f3;
  --card: #ffffff;
  --text: #3d2b3d;
  --text-sub: #a08a96;
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: var(--bg);
  min-height: 100vh;
}
body.home-mode #homeView { display: block; }

/* 首页态铺满视口：去掉原有 body 的左右外边距（否则内容被框在中间 750px，像手机框） */
body.home-mode { margin: 0 !important; padding: 0 !important; max-width: none !important; width: 100% !important; }

/* 首页态隐藏结果态/旧首页元素 */
body.home-mode .adinfo,
body.home-mode #searchWrapper,
body.home-mode #adInfoBottom,
body.home-mode .adinfo-bottom,
body.home-mode .background-container,
body.home-mode #recentUpdates,
body.home-mode #thunderZone,
body.home-mode #searchError { display: none !important; }

#homeView * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
#homeView .hm-wrap { max-width: 960px; margin: 0 auto; padding: 64px 24px 40px; }

/* ===== 顶部区域 ===== */
#homeView .hero { text-align: center; margin-bottom: 42px; }

/* 实时热门 */
#homeView .hot-bar { margin-bottom: 40px; }
#homeView .hot-bar-head { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 16px; }
#homeView .hot-bar-title { font-size: 19px; font-weight: 800; color: var(--pink-deep); letter-spacing: 2px; }
#homeView .hot-bar-head .flame { font-size: 17px; }
#homeView .hot-words { display: flex; gap: 22px; justify-content: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
#homeView .hot-words::-webkit-scrollbar { display: none; }
#homeView .hot-word {
  text-decoration: none; font-size: 14px; color: var(--text); white-space: nowrap; flex-shrink: 0;
  padding: 3px 6px; border-radius: 12px; transition: all .18s; cursor: pointer;
}
#homeView .hot-word:hover { background: var(--pink); color: #fff; font-weight: 600; transform: translateY(-2px); }
#homeView .hot-word:active { background: var(--pink-deep); color: #fff; }

/* 搜索框 */
#homeView .search-bar {
  display: flex; gap: 10px; max-width: 640px; margin: 0 auto;
  background: #fff; border-radius: 32px; padding: 7px;
  box-shadow: 0 8px 28px rgba(255, 92, 138, .18);
}
#homeView .search-input {
  flex: 1; border: none; background: transparent; padding: 0 22px; font-size: 16px; outline: none;
  min-width: 0; color: var(--text);
}
#homeView .search-btn {
  border: none; background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff; font-size: 16px; font-weight: 700; padding: 13px 34px; border-radius: 26px;
  box-shadow: 0 4px 14px rgba(255, 92, 138, .35); transition: all .2s; cursor: pointer;
}
#homeView .search-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 92, 138, .45); }
#homeView .search-btn:active { transform: scale(.97); }
#homeView .search-tip { font-size: 12px; color: var(--text-sub); margin-top: 12px; }

/* 四个快捷按钮 */
#homeView .quick-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 26px 0 2px; }
#homeView .quick-item {
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
  font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 16px;
  transition: all .18s; cursor: pointer;
}
#homeView .quick-item:nth-child(1) { background: #ffe0ea; color: #e0457a; }
#homeView .quick-item:nth-child(2) { background: #fff3d0; color: #c8901a; }
#homeView .quick-item:nth-child(3) { background: #dcf5ea; color: #1f9e6e; }
#homeView .quick-item:nth-child(4) { background: #e5eeff; color: #3a72d8; }
#homeView .quick-item .qi { font-size: 13px; }
#homeView .quick-item:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(255, 92, 138, .2); }
#homeView .quick-item:active { transform: scale(.94); }

/* 更新 / 上线 横幅 */
#homeView .banner-row { display: flex; gap: 14px; margin-bottom: 46px; }
#homeView .banner {
  flex: 1; border-radius: 22px; padding: 22px 24px; text-decoration: none;
  display: flex; align-items: center; gap: 16px; transition: all .2s;
}
#homeView .banner:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
#homeView .banner.new { background: linear-gradient(135deg, #ffb3c8, #ff8fab); color: #fff; }
#homeView .banner.cal { background: linear-gradient(135deg, #ffe08a, #ffd166); color: #7a5a00; }
#homeView .banner .b-ico { font-size: 32px; }
#homeView .banner .b-t { font-size: 17px; font-weight: 800; }
#homeView .banner .b-s { font-size: 12px; opacity: .88; margin-top: 2px; }

/* 今日推荐 */
#homeView .rec-sec { background: #fff; border-radius: 24px; padding: 28px 26px; box-shadow: 0 6px 22px rgba(0, 0, 0, .06); }
#homeView .rec-head { text-align: center; margin-bottom: 22px; }
#homeView .rec-title { font-size: 21px; font-weight: 800; color: var(--pink-deep); letter-spacing: 2px; }
#homeView .rec-date { font-size: 12px; color: var(--text-sub); margin-top: 5px; }
#homeView .rec-flow { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
#homeView .rec-pill {
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: 24px; transition: all .18s;
}
#homeView .rec-pill:hover { transform: translateY(-3px); box-shadow: 0 7px 16px rgba(0, 0, 0, .13); filter: brightness(1.03); }
#homeView .rec-pill:active { transform: scale(.94); }

#homeView .foot { text-align: center; font-size: 12px; color: #c9b3bd; margin-top: 28px; line-height: 1.9; }

/* ===== 手机端适配 ===== */
@media (max-width: 600px) {
  #homeView .hm-wrap { padding: 36px 14px 30px; }

  #homeView .hot-bar { margin-bottom: 32px; }
  #homeView .hot-bar-head { margin-bottom: 12px; }
  #homeView .hot-bar-title { font-size: 16px; letter-spacing: 1px; }
  #homeView .hot-words { gap: 9px; }
  #homeView .hot-word { font-size: 12px; padding: 2px 3px; }

  #homeView .search-bar { padding: 5px; gap: 6px; border-radius: 28px; }
  #homeView .search-input { font-size: 14px; padding: 0 14px; }
  #homeView .search-btn { font-size: 14px; padding: 10px 18px; border-radius: 23px; flex-shrink: 0; }

  #homeView .quick-nav { gap: 6px; margin: 20px 0 2px; flex-wrap: nowrap; justify-content: center; }
  #homeView .quick-item { font-size: 11px; padding: 6px 8px; gap: 3px; white-space: nowrap; }
  #homeView .quick-item .qi { font-size: 12px; }

  #homeView .banner { padding: 15px 14px; gap: 11px; border-radius: 18px; }
  #homeView .banner .b-ico { font-size: 24px; }
  #homeView .banner .b-t { font-size: 14px; }
  #homeView .banner .b-s { font-size: 11px; }

  #homeView .rec-sec { padding: 20px 14px; border-radius: 20px; }
  #homeView .rec-title { font-size: 18px; }
  #homeView .rec-flow { gap: 10px; }
  #homeView .rec-pill { font-size: 13px; padding: 9px 17px; }
}

/* ===== 结果态（result-mode）：保留新首页顶部，隐藏今日推荐与旧版元素，下方接简约结果大厅 ===== */
body.result-mode { margin:0!important; padding:0!important; max-width:none!important; width:100%!important; background:#fff8f3; }
body.result-mode #homeView { display:block; min-height:0 !important; height:auto !important; }
body.result-mode #homeView .rec-sec,
body.result-mode #homeView .foot { display:none; }
body.result-mode #homeView .hm-wrap { padding-top:30px; }
/* 隐藏旧版顶部大图、旧搜索框、今日更按钮、老今日推荐、热门搜索条 */
body.result-mode .adinfo,
body.result-mode #searchWrapper,
body.result-mode #recentUpdates,
body.result-mode #thunderZone,
body.result-mode #adInfoBottom,
body.result-mode .hot-wrap,
body.result-mode .background-container .adinfo,
body.result-mode #vipCheck { display:none !important; }
/* 结果大厅简约化：640 居中、白卡片、网盘蓝字、大字号 */
body.result-mode .box-list { max-width:640px; margin:0 auto; padding:0 12px 40px; }
body.result-mode .b-wrap { margin:0 0 12px; background:transparent !important; }
body.result-mode .b-title {
  background:#fff !important; border-radius:16px; padding:13px 18px; margin:0 0 12px;
  box-shadow:none !important; display:flex; justify-content:space-between; align-items:center;
}
body.result-mode .b-title .tip-title { color:#ff5c8a !important; font-size:16px; font-weight:800; }
body.result-mode .b-title .let-close { color:#b59aa8 !important; font-size:13px; }
body.result-mode .box { background:transparent !important; box-shadow:none !important; padding:0 !important; margin:0 0 12px; }
body.result-mode .access-box {
  background:#fff !important; border-radius:18px; padding:18px 20px;
  box-shadow:none !important;
}
body.result-mode .access-top-bg { display:none; }
body.result-mode .flex { background:transparent !important; }
body.result-mode .name.js-title { font-size:17px; font-weight:800; margin-bottom:10px; background:transparent !important; }
body.result-mode .info { font-size:16px; color:#9a8291; line-height:1.9; background:transparent !important; padding:0 !important; }
body.result-mode .info a { color:#3a72d8 !important; }

/* 结果大厅标题条：白底粉字 */
body.result-mode .content-block-title {
  background:#fff !important; border-radius:16px !important; padding:13px 18px !important;
  margin:0 0 12px !important; box-shadow:0 4px 16px rgba(255,92,138,.06) !important;
  display:flex !important; justify-content:space-between !important; align-items:center !important;
}
body.result-mode .content-block-title .gt { color:#ff5c8a !important; font-size:16px !important; font-weight:800 !important; }
body.result-mode .content-block-title .gc { color:#b59aa8 !important; font-size:13px !important; font-weight:400 !important; margin-left:6px !important; }
body.result-mode .content-block-title .fold { color:#b59aa8 !important; font-size:13px !important; }

/* 资源卡片标题：黑色粗体 */
body.result-mode .name.js-title {
  font-size:17px !important; font-weight:800 !important; color:#3d2b3d !important;
  margin-bottom:10px !important;
}

/* 失效反馈按钮完整显示 */
body.result-mode .ctrl-box .report,
body.result-mode .ctrl-box .btn { white-space:nowrap !important; }
body.result-mode .ctrl-box .report {
  background:#fff !important; color:#ff5c8a !important; border:1px solid #ffc0d0 !important;
  border-radius:20px !important; padding:6px 16px !important; font-size:13px !important;
}
body.result-mode .ctrl-box .js-copy {
  background:#ff5c8a !important; color:#fff !important; border:none !important;
  border-radius:20px !important; padding:6px 16px !important; font-size:13px !important;
}

/* 分类小标签 */
body.result-mode .cat-tag {
  display:inline-block; background:#ffe0ea; color:#e0457a;
  font-size:12px; font-weight:600; padding:2px 10px; border-radius:10px;
  margin-right:8px; vertical-align:middle;
}

body.result-mode .content-block-title .count, body.result-mode .content-block-title .num { color:#b59aa8 !important; font-size:13px !important; font-weight:400 !important; margin-left:6px !important; }

/* 去掉大厅容器粉色背景 */
body.result-mode .s-wrap,
body.result-mode .c-wrap,
body.result-mode .b-wrap { background:transparent !important; padding:0 !important; }

/* 彻底去掉粉色底色条 */
body.result-mode .box-list > div,
body.result-mode .b-wrap,
body.result-mode .c-wrap,
body.result-mode .s-wrap,
body.result-mode .b-list,
body.result-mode .c-list,
body.result-mode .s-list {
  background:transparent !important;
  padding:0 !important;
  margin:0 0 12px !important;
}
/* 大厅标题条统一白底 */
body.result-mode .content-block-title {
  background:#fff !important;
  border-radius:16px !important;
  padding:13px 18px !important;
  margin:0 0 12px !important;
  box-shadow:0 4px 16px rgba(255,92,138,.06) !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  font-size:16px !important;
}

/* 卡片间粉色条去掉 */
body.result-mode .box { background:transparent !important; }
body.result-mode .box > div { background:#fff !important; }
body.result-mode .box-list,
body.result-mode .b-list,
body.result-mode .c-list,
body.result-mode .s-list { background:transparent !important; }

/* 统一大厅标题字体 */
body.result-mode .content-block-title,
body.result-mode .content-block-title .tip-title,
body.result-mode .content-block-title span {
  font-size:16px !important;
  font-weight:800 !important;
}

/* 彻底去阴影和边框，保留卡片内边距 */
body.result-mode .box,
body.result-mode .b-wrap,
body.result-mode .c-wrap,
body.result-mode .s-wrap {
  box-shadow:none !important;
  border:none !important;
  margin-left:0 !important;
}
body.result-mode .box { background:transparent !important; }
body.result-mode .access-box {
  background:#fff !important;
  border-radius:18px !important;
  padding:18px 20px !important;
  border:none !important;
  box-shadow:0 5px 18px rgba(255,92,138,.07) !important;
}

/* 去掉内容容器的黑色投影，卡片平铺 */
.background-container { box-shadow:none !important; }

/* ==== 最终标题样式（覆盖以上所有） ==== */
/* 大厅标题条：保留白底块 */
body.result-mode .content-block-title {
  background:#fff !important;
  box-shadow:0 4px 16px rgba(255,92,138,.06) !important;
  border:none !important;
  border-radius:16px !important;
  padding:13px 18px !important;
  margin:0 0 12px !important;
}
body.result-mode .content-block-title .tip-title,
body.result-mode .content-block-title .gt {
  font-size:16px !important;
  font-weight:800 !important;
}
/* 资源卡片标题：字号调小，无底色 */
body.result-mode .name.js-title {
  font-size:15px !important;
  font-weight:700 !important;
  background:transparent !important;
}
/* 收起当前厅：最具体选择器，确保生效 */
body.result-mode .content-block-title .let-close,
body.result-mode .content-block-title .fold,
body.result-mode .content-block-title span.let-close {
  font-size:11px !important;
  font-weight:400 !important;
}
/* 恢复收起箭头图标 */
body.result-mode .content-block-title .let-close::after {
  content:"▾" !important;
  margin-left:3px !important;
  font-size:10px !important;
}

/* 结果态：顶部搜索结果关键词提示 */
.result-keyword-bar {
  text-align:center; color:#b59aa8; font-size:13px; margin:6px 0 12px;
}
.result-keyword-bar .rk { color:#ff5c8a; font-weight:700; }
.result-keyword-bar .rk-link { color:#ff5c8a; text-decoration:underline; }

/* 结果态：大色块保持原样，只去掉图标；搜索结果上下居中 */
body.result-mode .banner .b-ico { display:none !important; }
body.result-mode .banner-row {
  margin-bottom:0 !important;
  max-width:640px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
body.result-mode .result-keyword-bar {
  margin:0 auto 44px !important;
  text-align:center !important;
}
body.result-mode .feedback {
  display:flex !important;
  flex-direction:column !important;
  min-height:100vh !important;
}
body.result-mode .background-container {
  flex:1 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}
body.result-mode .s-wrap, body.result-mode .data-body {
  max-width:640px !important;
  margin:0 auto !important;
  width:100% !important;
}
