/* ============================================================
   shinyway-search-home —— 全站搜索页
   body 内所有 class 均以 shinyway- 前缀命名，全局唯一，
   保证嵌入全站时不会与其他页面的样式冲突。
   ============================================================ */

/* ===== 样式重置（仅作用于搜索页根节点内部） ===== */
.shinyway-search-home * {
  /* margin: 0; */
  /* padding: 0; */
  box-sizing: border-box;
}

.shinyway-search-home {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  color: #333;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.shinyway-search-home body {
}

/* ===== 容器 ===== */
.shinyway-container {
  max-width: 900px;
  margin: 60px auto 0;
}

/* ===== 顶部 Logo 和问候语 ===== */
.shinyway-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.shinyway-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.shinyway-logo img {
  width: 55px;
}
.shinyway-logo-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.shinyway-greeting {
  font-size: 32px;
  font-weight: bold;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

#greeting-text {
  color: #1a1a1a;
}

/* ===== 搜索框区域 ===== */
.shinyway-search-section {
  margin-bottom: 50px;
  padding: 30px 40px 0;
  border-radius: 16px;
}

.shinyway-search-box {
  display: flex;
  /* align-items: center; */
  border: 1px solid #ffd7db;
  border-radius: 20px;
  padding: 16px 70px 16px 24px;
  background: #fff;
  transition: box-shadow 0.3s ease;
  min-height: 130px;
  position: relative;
}

.shinyway-search-box:focus-within {
  box-shadow: 0 4px 16px rgba(230, 0, 18, 0.15);
  border: 1px solid #e60012;
}

.shinyway-search-input {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox: 隐藏滚动条 */
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  min-height: 26px;
  max-height: 160px;
  padding: 0;
  background: transparent;
  color: #333;
}

/* Webkit 内核（Chrome / Edge / Safari）隐藏滚动条，保留滚动能力 */
.shinyway-search-input::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.shinyway-search-input::placeholder {
  color: #b0b0b0;
}

.shinyway-search-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #1a1a1a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  position: absolute;
  bottom: 18px;
  right: 20px;
}

.shinyway-search-btn:hover {
  background: #000;
}

.shinyway-search-btn svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

/* ===== 智能助手按钮 ===== */
.shinyway-ai-assistant {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  text-decoration: none;
  color: #808080;
}

.shinyway-ai-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to right, #ffffff, #ffebef);
  color: #808080;
  padding: 12px 11px 12px 18px;
  border-radius: 50px;
  font-size: 15px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid #ffe3e8;
}

.shinyway-ai-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244, 139, 150, 0.4);
}

.shinyway-ai-icon {
  width: 26px;
  height: 16px;
  background: url(https://www.igo.cn/images/version2025/iconbox1.png) no-repeat;
  background-position: -622px -0px;
}

.shinyway-arrow-icon {
  width: 26px;
  height: 26px;
  background: url(https://www.igo.cn/images/version2025/iconbox1.png) no-repeat;
  background-position: -648px -0px;
  margin-left: 34px;
}

/* ===== 热点日报 ===== */
.shinyway-hot-news {
  padding: 20px 0;
}

.shinyway-hot-news-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.shinyway-hot-news-title {
  font-size: 18px;
  font-weight: bold;
  color: #1a1a1a;
  height: 22px;
}
.shinyway-hot-news-title img {
  height: 100%;
}
.shinyway-hot-news-arrow {
  color: #000000;
  font-size: 16px;
  margin-top: -2px;
}

.shinyway-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  height: 200px;
}

.shinyway-news-list {
  list-style: none;
}

.shinyway-news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  transition: color 0.2s;
  width: 400px;
}

.shinyway-news-item:hover .shinyway-news-title {
  color: #e60012;
}

.shinyway-news-rank {
  color: #999;
  font-size: 14px;
  font-weight: 500;
  width: 16px;
  flex-shrink: 0;
  text-align: center;
}
.shinyway-news-list0 .shinyway-news-item0 .shinyway-news-rank{
  color: #fe2d46;
}
.shinyway-news-list0 .shinyway-news-item1 .shinyway-news-rank{
  color: #f60;
}
.shinyway-news-list0 .shinyway-news-item2 .shinyway-news-rank{
  color: #faa90e;
}

.shinyway-news-rank.shinyway-top {
  color: #e60012;
  font-weight: bold;
}

.shinyway-news-title {
  color: #333;
  text-decoration: none;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.shinyway-news-tag {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  color: #fff;
  flex-shrink: 0;
}

.shinyway-news-tag.shinyway-new {
  background: #ff6b00;
}

.shinyway-news-tag.shinyway-hot {
  background: #e60012;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .shinyway-greeting {
    font-size: 24px;
  }

  .shinyway-logo-icon {
    width: 44px;
    height: 44px;
  }

  .shinyway-news-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .shinyway-search-section {
    padding: 20px 20px 50px;
  }

  .shinyway-ai-button span {
    font-size: 13px;
  }
}