/* 海纳 · 滚动下潜视觉 */
:root {
  --teal: #0FB5BA;
  --ink: #123B57;
  --paper: #F5F8FA;
  --deep: #02050D;
  --card-glass: rgba(255, 255, 255, 0.10);
  --card-border: rgba(255, 255, 255, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #123B57;
  background: #7EC8E3;
  overflow-x: hidden;
}

/* 防止窄视口下内容横向溢出 */
.news-main, .news-col, .news-grid, .comm-cards { min-width: 0; }

/* ============ 下潜背景层 ============ */
.ocean-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #7EC8E3;
  will-change: background;
  /* 移除原 0.15s transition：与 app.js 中 rAF 实时覆写 background 冲突，会产生色彩拖尾 */
}

/* ============ 顶层 · 蓝天海面 ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  color: #0A2A45;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42vh;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 70%);
  pointer-events: none;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  position: relative;
  z-index: 200;
}

.nav-links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 28px; }
.nav-links a { color: inherit; text-decoration: none; font-size: 14px; opacity: 0.85; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  margin-right: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(10, 42, 69, 0.18);
  transition: background .2s, border-color .2s;
}
.nav-search:hover, .nav-search:focus-within { background: rgba(255, 255, 255, 0.6); border-color: var(--teal); }
.nav-search svg { color: rgba(10, 42, 69, 0.7); flex-shrink: 0; }
.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #0A2A45;
  width: 170px;
}
.nav-search input::placeholder { color: rgba(10, 42, 69, 0.55); }
.nav-cta {
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  padding: 8px 20px;
  color: var(--teal) !important;
  opacity: 1 !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--teal); color: #fff !important; }
.nav-jobs { color: var(--teal) !important; opacity: 1 !important; font-weight: 600; }
.nav-jobs:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 汉堡菜单按钮（桌面端隐藏） */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #0A2A45;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(72px, 14vw, 160px);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  line-height: 1;
  /* 渐变字色（与 logo 同色系：浅海蓝 → 海洋蓝 → 深海蓝） */
  background: linear-gradient(180deg, #3DC7F4 0%, #1E6FD9 50%, #0B2D5B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* 蓝色光晕替代原本的白色 text-shadow（透明字不支持 text-shadow） */
  filter: drop-shadow(0 2px 30px rgba(30, 111, 217, 0.32));
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.8;
  opacity: 0.9;
  letter-spacing: 0.06em;
}

.hero-stats {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats .stat {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #0A2A45;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.hero-stats .stat b {
  font-size: 16px;
  font-weight: 700;
  color: #0A5F8A;
  margin-right: 2px;
}

.hero-sources,
.src-badge { display: none; } /* 已移除（信源展示归资讯区筛选） */

.hero-scroll {
  margin: 36px 0 40px;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
/* hero 的"摸清你的路"入口 */
.hero-quiz-entry {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #2FD4DA;
  color: #0A2A45;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.hero-quiz-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(47, 212, 218, 0.4);
}

.seascape {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  will-change: transform;
}
.seascape svg { width: 100%; height: 100%; display: block; }

/* 注：clouds / waves / boat / seabird-* keyframes 已在 animations.css 中以更精细版本为准，
   此处不再重复定义，避免样式表互相覆盖 */

/* ============ 通用区块 ============ */
.zone {
  padding: 96px 48px 110px;
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
}

.zone-head { margin-bottom: 40px; }
.zone-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.zone-en { font-size: 0.55em; opacity: 0.7; font-family: inherit; }
.zone-desc { margin-top: 12px; font-size: 15px; opacity: 0.8; line-height: 1.7; }

/* 转行板块的指南入口 */
.guide-entry {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  border: 1.5px solid #2FD4DA;
  border-radius: 999px;
  color: #2FD4DA;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.guide-entry:hover { background: #2FD4DA; color: #0A2540; }

/* ============ 海洋资讯（谷歌式克制） ============ */
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 18px; }
.filter-btn {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.62);
  padding: 6px 2px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.filter-btn:hover { color: #fff; }
.filter-btn.active { color: #fff; border-bottom: 3px solid #fff; font-weight: 600; }

/* 双栏：左有图区（2/3），右文字简报（1/3）——学谷歌新闻的物理分区 */
.news-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.news-col { display: flex; flex-direction: column; }

/* ===== 左：有图条目 ===== */
.news-card {
  padding: 18px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color .2s;
}
.news-card:hover { border-bottom-color: rgba(255, 255, 255, 0.5); }

.news-thumb { flex: 0 0 132px; }
.news-thumb img {
  width: 132px;
  height: 88px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.news-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* 头条：大图在上，标题在下 */
.news-card.featured {
  flex-direction: column;
  padding: 0 0 26px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.45);
  gap: 16px;
}
.news-card.featured .news-thumb { flex: none; width: 100%; }
.news-card.featured .news-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}
.news-card.featured .news-text { gap: 10px; }
.news-card.featured .news-title { font-size: 24px; line-height: 1.4; }

/* ===== 右：无图文字简报 ===== */
.news-col-text {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 26px;
}
.col-title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.08em;
  padding: 6px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 4px;
}
.text-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  gap: 14px;
}
.text-item:last-child { border-bottom: none; }
.text-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.text-meta { font-size: 12px; color: rgba(255, 255, 255, 0.75); font-weight: 600; display: flex; align-items: baseline; }
.text-meta .news-date { margin-left: auto; font-weight: 400; }
.text-item .news-title {
  font-size: 15px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.src-logo { flex-shrink: 0; margin-top: 3px; line-height: 0; overflow: visible; }
.src-logo img { height: 26px; width: auto; display: block; object-fit: contain; }
.src-logo.fallback {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #123A5F;
  color: #fff;
  font-size: 11px;
  line-height: 22px;
  text-align: center;
}
.text-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.text-meta { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.text-item .news-title { font-size: 14px; font-weight: 500; }

/* ===== 通用 ===== */
.news-meta { display: flex; gap: 12px; align-items: baseline; font-size: 13px; }
.news-src { color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.featured .news-src { color: #2FD4DA; }
.news-domain { color: rgba(255, 255, 255, 0.35); font-size: 12px; }
.news-date { color: rgba(255, 255, 255, 0.62); margin-left: auto; font-size: 12px; }

.news-title {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}
.news-title:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.6); }

.news-card.empty { text-align: center; opacity: 0.7; padding: 40px; border: none; }
.loading { text-align: center; opacity: 0.7; padding: 60px 0; }

/* 加载更多 */
.load-more-wrap { text-align: center; padding: 28px 0 8px; }
.load-more {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  padding: 10px 34px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.load-more:hover { border-color: #2FD4DA; background: rgba(15, 181, 186, 0.12); }
.load-more:disabled { opacity: 0.5; cursor: wait; }

/* ============ 社区入口（暮光带） ============ */
.comm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 22px;
}
.comm-card {
  padding: 26px 4px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  color: #fff;
  transition: border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comm-card:hover { border-bottom-color: rgba(255, 255, 255, 0.5); }
.comm-card h3 { font-size: 20px; font-weight: 600; }
.comm-card p { font-size: 14px; color: rgba(255, 255, 255, 0.65); line-height: 1.7; }
.comm-more { margin-top: auto; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.comm-card:hover .comm-more { color: #fff; }

/* ============ 深渊（无光带） ============ */
.zone-abyss {
  max-width: none;
  text-align: center;
  position: relative;
  background: var(--deep);
  padding: 130px 24px 70px;
}
.abyss-fade {
  position: absolute;
  top: -140px;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(2, 5, 13, 0), var(--deep));
  pointer-events: none;
}
.abyss-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(15, 181, 186, 0.28), transparent 70%);
  pointer-events: none;
}
.abyss-title { color: #A8F0F2; text-shadow: 0 0 30px rgba(15, 181, 186, 0.5); }
.abyss-text { margin-top: 18px; opacity: 0.55; line-height: 1.9; font-size: 15px; }
.abyss-footer {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 12px;
  opacity: 0.7;
}
.abyss-footer .coffee-link {  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
  text-decoration: none;
  font-size: 13px;
}
.abyss-footer .coffee-link:hover { color: #2FD4DA; }
.abyss-footer .icp-link {
  color: rgba(255, 255, 255, 0.75);
  opacity: 1;
  text-decoration: none;
}
.abyss-footer .icp-link:hover { color: #2FD4DA; text-decoration: underline; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  /* 中等视口：双栏折叠为单栏，文字简报沉底 */
  .news-main { grid-template-columns: 1fr; gap: 24px; }
  .news-col-text {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 0;
    padding-top: 18px;
    margin-top: 6px;
  }
}

@media (max-width: 720px) {
  .nav { padding: 14px 16px; position: relative; }
  .brand-logo { margin-right: auto; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: auto;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 168px;
    z-index: 100;
    transform: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 16px;
    font-size: 15px;
    color: #0A2A45;
    opacity: 1;
    border-radius: 8px;
    text-decoration: none;
  }
  .nav-links a:hover { background: rgba(30, 111, 217, 0.08); }
  .nav-cta { text-align: center; margin-top: 4px; }
  .zone { padding: 70px 20px 90px; }
  .news-thumb { flex-basis: 96px; }
  .news-thumb img { width: 96px; height: 64px; }
  .news-card.featured .news-thumb img { height: auto; }
}

/* ============ 手机小屏（<480px） ============ */
@media (max-width: 480px) {
  .hero { min-height: 56vh; }
  .hero-inner { padding: 0 16px; }
  .hero-title { font-size: 40px; letter-spacing: 0.05em; }
  .hero-sub { font-size: 13px; line-height: 1.5; margin-top: 12px; }
  .hero-stats { gap: 6px; margin-top: 14px; }
  .hero-stats .stat { padding: 5px 10px; font-size: 11px; }
  .hero-scroll { font-size: 12px; margin-top: 14px; }
  .nav { padding: 14px 16px; }
  .nav-links { gap: 12px; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
  .zone { padding: 48px 16px 64px; }
  .zone-title { font-size: 24px; }
  .zone-desc { font-size: 13px; line-height: 1.7; }
  .comm-cards { grid-template-columns: 1fr; gap: 10px; }
  .news-card { gap: 12px; }
  .news-card.featured { flex-direction: column; align-items: flex-start; gap: 14px; }
  .news-card.featured .news-thumb { flex: 0 0 auto; width: 100%; }
  .news-card.featured .news-title { font-size: 19px; }
  .news-title { font-size: 15px; }
  .load-more { font-size: 14px; }
}

/* ============ 首页岗位板块 ============ */
.job-list-home { display: flex; flex-direction: column; }
.home-job-card {
  display: block;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: #fff;
  transition: border-color .2s;
}
.home-job-card:hover { border-bottom-color: rgba(255, 255, 255, 0.5); }
.hjc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hjc-title { font-size: 16px; font-weight: 600; color: #fff; }
.home-job-card:hover .hjc-title { color: #2FD4DA; }
.hjc-unit { font-size: 13px; color: rgba(255, 255, 255, 0.72); margin-top: 4px; }
.hjc-majors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.jtag {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(47, 212, 218, 0.14);
  color: #2FD4DA;
}
.hjc-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.58); margin-top: 8px; }
.hjc-meta .dot { color: rgba(255, 255, 255, 0.32); }
.job-empty { text-align: center; color: rgba(255, 255, 255, 0.5); padding: 30px 0; font-size: 14px; }

/* 转行出路占位 */
.transfer-placeholder {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

/* 转行数据看板（双栏） */
.transfer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}
.tf-left, .tf-right { display: flex; flex-direction: column; gap: 18px; }
.dash-card {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dash-card:last-child { border-bottom: none; }
.dash-title {
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 600;
  padding-left: 10px;
  border-left: 3px solid #2FD4DA;
}
.dash-sub { font-size: 12px; color: rgba(255, 255, 255, 0.55); margin-bottom: 14px; }

/* Top 5 柱状条 */
.bar-list { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-label { flex: 0 0 118px; font-size: 13px; color: rgba(255, 255, 255, 0.85); text-align: right; }
.bar-track { flex: 1; height: 14px; background: rgba(255, 255, 255, 0.08); border-radius: 7px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #1E9FB0, #157A8A); border-radius: 7px; }
.bar-val { flex: 0 0 54px; font-size: 14px; color: #FFE9A6; }

/* 展开按钮 */
.dash-expand {
  margin-top: 14px;
  background: transparent;
  color: #2FD4DA;
  border: 1px solid rgba(47, 212, 218, 0.4);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}
.dash-expand:hover { background: rgba(47, 212, 218, 0.12); }
#fullIndustry img { width: 100%; border-radius: 8px; margin-top: 12px; border: 1px solid rgba(255, 255, 255, 0.12); }

/* 深造率大数字 */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.stat-card { background: rgba(255, 255, 255, 0.06); border-radius: 8px; padding: 12px; text-align: center; }
.stat-card b { display: block; font-size: 24px; color: #2FD4DA; }
.stat-card span { font-size: 12px; color: rgba(255, 255, 255, 0.7); }

/* 表格 */
.dash-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-table th, .dash-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}
.dash-table th { color: #2FD4DA; font-weight: 600; }
.dash-note {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}
.dash-sub a, .dash-note a {
  color: #2FD4DA;
  text-decoration: none;
}
.dash-sub a:hover, .dash-note a:hover { text-decoration: underline; }

/* 转行文章栏：分页 */
.transfer-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.page-btn {
  background: transparent;
  color: #2FD4DA;
  border: 1px solid rgba(47, 212, 218, 0.4);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
}
.page-btn:hover:not(:disabled) { background: rgba(47, 212, 218, 0.12); }
.page-btn:disabled { opacity: 0.35; cursor: default; }
.page-info { font-size: 13px; color: rgba(255, 255, 255, 0.7); }

@media (max-width: 720px) {
  .transfer-grid { grid-template-columns: 1fr; }
  .bar-label { flex: 0 0 90px; }
  .stat-grid { grid-template-columns: 1fr; }
}
