/* ============ 首页专属样式（资讯365） ============ */

/* --- Hero 区：左文案 / 右数据源状态卡片 --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 42px;
  align-items: end;
  padding: 68px 4px 48px;
}
.hero-copy .eyebrow {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 800;
}
.hero-copy h1 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: -1px;
  margin: 12px 0 14px;
}
.hero-copy p {
  color: var(--muted);
  margin: 0;
}
.hero-copy .hotsearch {
  margin-top: 26px;
}
/* 覆盖 phase3 的 .hotsearch 布局以匹配新 hero */
.hero-copy .hotsearch {
  max-width: 620px;
}

/* --- 数据源状态面板 --- */
.source-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: 0 10px 30px #1b2a2010;
}
.source-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.source-panel-head b {
  font-size: 13px;
  color: var(--ink);
}
.pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--green);
  background: #e5f4ef;
  border-radius: 20px;
  padding: 4px 10px;
  font-weight: 600;
}
.pulse i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.82); }
}
.source-list {
  display: grid;
  gap: 4px;
}
.src {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 2px;
  font-size: 13px;
}
.src .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.src.ok .dot { background: var(--green); }
.src.wait .dot { background: #e8a33d; }
.src span { color: #4a5660; }
.src em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.src.ok em { color: var(--green); font-weight: 600; }
.src.wait em { color: #b45b1d; }
.source-note {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: #a0a7a2;
}

/* --- 创作小工具 --- */
.tools { margin-top: 8px; }
.toolcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.tool {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1c282f;
  color: #fff;
  border-radius: 14px;
  padding: 19px 20px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tool:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #15251b26;
}
.tool:nth-child(2) { background: linear-gradient(135deg, #e9483f, #d13b33); }
.tool:nth-child(3) { background: linear-gradient(135deg, #16866b, #0f6b54); }
.t-ico {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  background: #ffffff22;
  position: relative;
}
.t-ico::before {
  content: "";
  position: absolute;
  inset: 0;
  background: center / 20px no-repeat;
  opacity: .9;
}
.i-title::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'><path d='M4 5h16M4 12h10M4 19h13'/></svg>"); }
.i-video::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='6' width='13' height='12' rx='2.5'/><path d='M16 10l5-3v10l-5-3'/></svg>"); }
.i-note::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 4h9l4 4v12H6z'/><path d='M14 4v5h5M9 13h7M9 17h5'/></svg>"); }
.t-body { flex: 1; min-width: 0; }
.t-body b { display: block; font-size: 15px; }
.t-body span { display: block; font-size: 12px; opacity: .7; margin-top: 3px; }
.t-go { font-style: normal; opacity: .7; }

/* --- 榜单区 --- */
.sectionline { margin-top: 52px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.board {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.board > header {
  padding: 20px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.board-title { display: flex; align-items: center; gap: 12px; }
.board-title .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
/* 各平台主题色 */
.pc-douyin .board-title .dot { background: #fe2c55; }
.pc-zhihu .board-title .dot { background: #0066ff; }
.pc-baidu .board-title .dot { background: #2932e1; }
.pc-xiaohongshu .board-title .dot { background: #ff2442; }
.pc-bilibili .board-title .dot { background: #fb7299; }
.board-title small {
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
}
.board h2 { font-size: 19px; margin: 2px 0 0; }
.board header > a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.board header > a:hover { color: var(--red); }
.board ol {
  list-style: none;
  padding: 6px 20px 14px;
  margin: 0;
}
.board li {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 47px;
  border-bottom: 1px dashed var(--line);
}
.board li:last-child { border: 0; }
.board li b.rank {
  font: italic 700 15px Georgia;
  color: #9aa3aa;
  width: 22px;
  text-align: center;
}
.board li:nth-child(-n+3) b.rank {
  color: var(--red);
  font-size: 19px;
}
.board li a.t {
  flex: 1;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board li a.t:hover { color: var(--red); }
.board li em {
  font-style: normal;
  color: #a3a9ad;
  font-size: 11px;
  white-space: nowrap;
}
.mv {
  width: 30px;
  flex: none;
  font-size: 10px;
  text-align: center;
  color: #aab0ac;
}
.mv.up { color: #158466; }
.mv.down { color: #e65c52; }

/* --- 最近收录 --- */
.recent-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.recent-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 17px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.recent-card:hover {
  border-color: #cdd4cf;
  transform: translateY(-2px);
}
.recent-card b {
  display: block;
  margin: 9px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}
.recent-card small {
  display: block;
  color: #9aa29d;
  font-size: 10px;
}
.p-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  color: #fff;
}
.p-tag.pc-baidu { background: #2932e1; }
.p-tag.pc-douyin { background: #fe2c55; }
.p-tag.pc-zhihu { background: #0066ff; }
.p-tag.pc-xiaohongshu { background: #ff2442; }
.p-tag.pc-bilibili { background: #fb7299; }

/* --- ESP 推广横幅 --- */
.esp-promo {
  margin: 52px 0 0;
  background: #16251f;
  color: #fff;
  border-radius: 18px;
  padding: 38px 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.esp-promo span {
  font-size: 10px;
  letter-spacing: 2px;
  color: #c9f23c;
}
.esp-promo h2 {
  font: 700 30px Georgia, "Songti SC", serif;
  margin: 8px 0;
}
.esp-promo p { color: #aab8b1; margin: 0; }
.esp-promo > a {
  background: #c9f23c;
  color: #17221d;
  padding: 14px 18px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

/* --- 响应式 --- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 26px; align-items: stretch; }
  .source-panel { max-width: 100%; }
}
@media (max-width: 800px) {
  .hero { padding: 40px 2px 30px; }
  .hero-copy h1 { font-size: 31px; }
  .toolcards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .recent-list { grid-template-columns: 1fr; }
  .esp-promo { padding: 28px 22px; display: block; }
  .esp-promo > a { display: inline-block; margin-top: 20px; }
}

/* ===== 暗色覆盖 ===== */
[data-theme="dark"] .source-panel{background:#161c23;box-shadow:0 10px 30px #0006}
[data-theme="dark"] .pulse{background:#16241f}
[data-theme="dark"] .src span{color:#b9c4cd}
[data-theme="dark"] .src.wait em{color:#e8a06a}
[data-theme="dark"] .source-note{color:#6b7a85}
[data-theme="dark"] .recent-card{background:#161c23}
[data-theme="dark"] .recent-card:hover{border-color:#2a3542}
[data-theme="dark"] .recent-card small{color:#6b7a85}
[data-theme="dark"] .board li b.rank{color:#6b7a85}
[data-theme="dark"] .board li em{color:#6b7a85}
[data-theme="dark"] .mv{color:#6b7a85}
[data-theme="dark"] .board-title small{color:#f26b5c}
