/* ==========================================================================
   home-agent.css —— 主界面改版（对齐 6.png 设计稿）
   --------------------------------------------------------------------------
   设计要点：
     · 顶部白色胶囊导航（首项为蓝色品牌按钮 Zebrafish Agent）
     · 首页：居中大标题 + 副标题，下面两栏
         左栏：Daily Zebrafish Research（语言切换 / 绿色更新状态 / 日期 / 论文条目 /
               检索框 / 文献更新 / 引用）
         右栏：品牌卡（徽标 + 标语 + Quick Start / Sign in / Register + 条款）
     · 背景：浅蓝水下氛围（纯 CSS 渐变，不引入外部图片）
   加载顺序：本文件在 home-2026.css / simplify.css 之后，用于覆盖既有首页样式。
   ========================================================================== */

:root {
  --agent-ink: #14304c;
  --agent-ink-2: #41637f;
  --agent-ink-3: #7d97ad;
  --agent-line: rgba(26, 86, 138, 0.12);
  --agent-blue: #1f5fa8;
  --agent-blue-dark: #1a5490;
  --agent-card: #ffffff;
  --agent-soft: #f2f7fc;
  --agent-green: #1c7a45;
}

/* ---------- 顶部：胶囊导航 ---------- */

.site-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.header-left { display: flex; align-items: center; }

.top-nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--agent-line);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(20, 62, 104, 0.08);
}

.top-nav-pill .top-nav-link {
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--agent-ink-2);
  white-space: nowrap;
}

.top-nav-pill .top-nav-link:hover { background: var(--agent-soft); color: var(--agent-ink); }
.top-nav-pill .top-nav-link.active { background: var(--agent-soft); color: var(--agent-blue); }

.nav-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px 6px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2669b4, var(--agent-blue-dark));
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(31, 95, 168, 0.28);
}

.nav-brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  flex: 0 0 auto;
}

.nav-soon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #9fb2c3;
  font-size: 13px;
  cursor: not-allowed;
  user-select: none;
}

.nav-soon-item small { color: #bccbd8; font-size: 11px; white-space: nowrap; }

/* 首页时隐藏页头右侧状态条以外的干扰（保持轻量） */
.app[data-route="home"] .history-toggle-btn { opacity: .55; }

/* ---------- 首页主区 ---------- */

#view-home { position: relative; }

.agent-home {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 44px;
}

/* 浅蓝水下氛围背景（固定铺满视口，不干扰滚动） */
.agent-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 460px at 10% -6%, #e7f4ff 0%, rgba(231, 244, 255, 0) 62%),
    radial-gradient(880px 420px at 92% 4%, #eaf7fb 0%, rgba(234, 247, 251, 0) 58%),
    radial-gradient(700px 360px at 50% 110%, #dcecf8 0%, rgba(220, 236, 248, 0) 60%),
    linear-gradient(180deg, #f8fcff 0%, #eff7fd 52%, #e7f1fa 100%);
}

.agent-hero { text-align: center; padding: 22px 0 6px; }

.agent-hero-title {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--agent-ink);
}

.agent-hero-sub {
  margin: 12px auto 0;
  max-width: 780px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--agent-ink-2);
}

.agent-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}

@media (max-width: 1020px) {
  .agent-cols { grid-template-columns: minmax(0, 1fr); }
  .agent-card-brand { order: -1; }
}

.agent-card {
  background: var(--agent-card);
  border: 1px solid var(--agent-line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(20, 62, 104, 0.08);
  padding: 18px 20px 20px;
}

.agent-card-head { display: flex; align-items: center; gap: 10px; }
.agent-card-icon { font-size: 17px; line-height: 1; }

.agent-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--agent-ink);
  letter-spacing: -0.005em;
}

.agent-lang-toggle {
  margin-left: auto;
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--agent-soft);
  border: 1px solid var(--agent-line);
  border-radius: 999px;
}

.agent-lang-toggle button {
  border: 0;
  background: transparent;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--agent-ink-2);
  cursor: pointer;
  transition: all .16s ease;
}

.agent-lang-toggle button.active {
  background: #fff;
  color: var(--agent-ink);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(20, 62, 104, 0.14);
}

.agent-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid #c3e8d1;
  background: linear-gradient(180deg, #ecfaf1, #e3f7ea);
  color: var(--agent-green);
  font-size: 12.5px;
  font-weight: 500;
}

.agent-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22a45d; flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(34, 164, 93, 0.16);
}

.agent-card-main .home-search { max-width: none; margin: 14px 0 0; }
.agent-card-main .home-chips { margin-top: 10px; }
.agent-card-main .home-chips .home-agent-line { margin-left: 0; }

.agent-datechip {
  display: inline-block;
  margin: 18px 0 4px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--agent-soft);
  border: 1px solid var(--agent-line);
  color: var(--agent-ink-2);
  font-size: 12.5px;
  font-weight: 500;
}

/* 论文条目 */
.agent-papers { display: block; }

.agent-paper {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 1px dashed rgba(26, 86, 138, 0.16);
}

.agent-paper:first-child { border-top: 0; padding-top: 6px; }
.agent-paper-ico { font-size: 15px; color: #8fb0ca; line-height: 1.5; }

.agent-paper-title {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--agent-ink);
  margin-bottom: 4px;
}

.agent-paper-meta {
  font-size: 12.5px;
  color: var(--agent-ink-3);
  margin-bottom: 6px;
}

.agent-paper-abs {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--agent-ink-2);
  margin: 0 0 6px;
}

.agent-paper-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.agent-paper-links a { font-size: 12.5px; color: #2b7ec4; text-decoration: none; font-weight: 500; }
.agent-paper-links a:hover { text-decoration: underline; }
.agent-paper-note { font-size: 11.5px; color: var(--agent-ink-3); }

.agent-sub-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #eef4f9;
}

.agent-card-main .home-updates { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #eef4f9; }
.agent-card-main .home-cite { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #eef4f9; }

/* ---------- 右栏：品牌卡 ---------- */

.agent-card-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 22px 22px;
  text-align: center;
}

.agent-brand-mark { width: 100%; max-width: 230px; height: auto; }

.agent-brand-name {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #1b4f7a;
}

.agent-brand-tag { margin: 0; font-size: 12.5px; letter-spacing: 0.02em; color: var(--agent-ink-3); }

.agent-cta { width: 100%; display: grid; gap: 8px; margin-top: 14px; }

.agent-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #dde6ef;
  background: #f5f7fa;
  color: #2c4d69;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.agent-btn:hover { background: #eef3f8; }
.agent-btn:active { transform: translateY(1px); }

.agent-btn-primary {
  background: linear-gradient(180deg, #2669b4, var(--agent-blue-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 95, 168, 0.26);
}

.agent-btn-primary:hover { background: linear-gradient(180deg, #2260a6, #174b80); }
.agent-btn-ico { font-size: 14px; line-height: 1; }

.agent-legal {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--agent-ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.agent-legal-link {
  border: 0;
  background: none;
  padding: 0;
  color: #3b7fbe;
  font: inherit;
  cursor: pointer;
}

.agent-legal-link:hover { text-decoration: underline; }

/* 欢迎弹窗里的徽标 */
.atelier-welcome-mark {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 4px auto 8px;
  display: block;
}

/* 窄屏收紧 */
@media (max-width: 720px) {
  .agent-home { padding: 12px 12px 32px; }
  .agent-card { border-radius: 14px; padding: 15px 15px 17px; }
  .agent-hero { padding: 14px 0 4px; }
  .top-nav-pill { margin: 0; }
  .site-header { flex-wrap: wrap; }
}
