/* ============================================
   天天研讯社 — 全站样式（简洁明亮风）
   主色蓝、白底、大留白、卡片式布局
   ============================================ */

:root {
  --primary: #2563eb;        /* 主色蓝 */
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;   /* 主色浅底 */
  --text: #1f2937;           /* 正文深灰 */
  --text-light: #6b7280;     /* 次要文字 */
  --bg: #ffffff;
  --bg-soft: #f8fafc;        /* 浅灰区块底 */
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.logo::before { content: "📰 "; }
.logo:hover { color: var(--primary); }

.site-nav { display: flex; gap: 8px; }

.site-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text-light);
  font-size: 0.98rem;
  transition: all 0.2s;
}
.site-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.site-nav a.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }

.menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.4rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}

/* ---------- 主视觉区 ---------- */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.hero .accent { color: var(--primary); }

.hero-sub {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--text-light);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--border); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 栏目卡片 ---------- */
.features { padding: 72px 0 88px; }

.section-title {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: all 0.25s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: var(--text);
}

.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 0.95rem; flex: 1; }

.card-link {
  margin-top: 18px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.card-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.78rem;
}

/* ---------- 内容页（关于 / 栏目页） ---------- */
.page { padding: 64px 20px 88px; max-width: 780px; }
.page h1 { font-size: 2rem; margin-bottom: 20px; }
.page h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.page p, .page ul { color: var(--text); margin-bottom: 14px; }
.page ul { padding-left: 1.4em; }

.page-sub { color: var(--text-light); margin-bottom: 32px; }

.placeholder-box {
  text-align: center;
  padding: 56px 20px;
  background: var(--bg-soft);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
}
.placeholder-emoji { font-size: 2.4rem; margin-bottom: 10px; }

.back-home { margin-top: 36px; }

/* ---------- 登录 / 注册 ---------- */
.auth-box {
  max-width: 380px;
  margin: 16px auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 32px 28px;
}
.auth-box h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-intro { color: var(--text-light); font-size: 0.92rem; margin-bottom: 8px; }
.auth-box label {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
  margin: 18px 0 6px;
}
.auth-box input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.btn-auth {
  width: 100%;
  margin-top: 22px;
  padding: 11px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-auth:hover { background: var(--primary-dark); }
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-error {
  display: none;
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.88rem;
}
.auth-tip { margin-top: 18px; text-align: center; font-size: 0.92rem; color: var(--text-light); }
/* 注册页「同意协议」勾选行（覆盖 .auth-box label/input 的通用样式） */
.auth-box .auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.5;
  cursor: pointer;
}
.auth-box .auth-agree input[type="checkbox"] {
  width: auto;
  flex: none;
  margin: 3px 0 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  accent-color: var(--primary);
}
.auth-agree a { color: var(--primary); text-decoration: none; }
.auth-agree a:hover { text-decoration: underline; }

/* ---------- 社员专区 ---------- */
.member-card {
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 8px 0 24px;
}
.member-card h2 { font-size: 1.15rem; margin-bottom: 10px; }
.member-card p { color: var(--text); margin-bottom: 8px; font-size: 0.97rem; }
.member-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.member-actions .btn { padding: 10px 26px; cursor: pointer; font-family: inherit; }

/* ---------- 首页·首屏光效（明亮风微升级） ---------- */
.hero { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-glow-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.32), transparent 65%);
  top: -130px; left: -90px;
  animation: glow-drift 14s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.26), transparent 65%);
  bottom: -150px; right: -70px;
  animation: glow-drift 18s ease-in-out infinite alternate-reverse;
}
.hero .container { position: relative; z-index: 1; }
@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(46px, 30px) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 22px;
}

/* ---------- 首页·为什么每天来看 ---------- */
.values { padding: 0 0 76px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-item {
  text-align: center;
  padding: 30px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}
.value-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-icon { font-size: 1.9rem; margin-bottom: 10px; }
.value-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.value-item p { color: var(--text-light); font-size: 0.93rem; }

/* ---------- 首页·会员与内容（定价区） ---------- */
.pricing {
  padding: 76px 0 92px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-top: 1px solid var(--border);
}
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
}
.price-card.hot { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-size: 1.12rem; font-weight: 700; }
.price-cost { font-size: 2rem; font-weight: 800; margin: 10px 0 2px; }
.price-cost small { font-size: 0.95rem; color: var(--text-light); font-weight: 500; }
.price-cost.cost-soft { font-size: 1.4rem; color: var(--text-light); }
.price-list { list-style: none; margin: 16px 0 24px; flex: 1; }
.price-list li {
  padding: 7px 0;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
}
.price-list li:last-child { border-bottom: none; }
.price-list .dim { color: var(--text-light); }
.price-btn { display: block; text-align: center; }
.btn-disabled {
  background: var(--bg-soft);
  color: var(--text-light);
  border: 1px solid var(--border);
  cursor: default;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 28px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .value-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .hero { padding: 64px 0 56px; }
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 14px; border-radius: 10px; }
}

/* ============================================
   首页·3D 视效升级（自写代码，无第三方库）
   立体粒子背景 / 卡片 3D 倾斜 / 玻璃拟态 / 滚动入场
   ============================================ */

/* --- 全页星空画布（fixed 铺满视口，透视投影 + 鼠标视差，见 js/main.js） --- */
#hero3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- 悬浮立体图标（鼠标视差 + 上下漂浮） --- */
.hero-float { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.float-ico {
  position: absolute;
  font-size: 1.9rem;
  opacity: 0.9;
  filter: drop-shadow(0 12px 16px rgba(30, 64, 175, 0.28));
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  animation: float-y 6s ease-in-out infinite alternate;
}
.float-ico.d2 { font-size: 1.6rem; animation-duration: 7.5s; animation-delay: -2s; }
.float-ico.d3 { font-size: 2.2rem; animation-duration: 8.5s; animation-delay: -4s; }
.float-ico.d4 { font-size: 1.5rem; animation-duration: 7s; animation-delay: -1s; }
@keyframes float-y {
  from { margin-top: -9px; }
  to   { margin-top: 10px; }
}

/* --- 徽章玻璃化、主标题渐变 --- */
.hero-badge {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero .accent {
    background: linear-gradient(120deg, #2563eb 0%, #0ea5e9 55%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* --- 按钮 3D 按压 --- */
.btn-primary {
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:active { transform: translateY(1px) scale(0.98); box-shadow: 0 3px 8px rgba(37, 99, 235, 0.30); }
.btn-outline:active { transform: translateY(1px); }

/* --- 卡片 3D 倾斜（JS 驱动）+ 网格透视 --- */
.card-grid, .value-grid, .price-grid { perspective: 1000px; }
.price-card { transition: transform 0.2s ease, box-shadow 0.25s ease; }
.price-card:hover { box-shadow: var(--shadow-lg); }

/* --- 滚动 3D 入场 --- */
.reveal {
  opacity: 0;
  transform: translateY(28px) rotateX(8deg);
  transform-origin: 50% 100%;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
/* 悬停浮起需高于 .reveal.in 的 transform:none，否则入场后卡片不再浮起 */
.card-grid .card:hover { transform: translateY(-5px); }
.value-grid .value-item:hover { transform: translateY(-4px); }
.price-grid .price-card:hover { transform: translateY(-4px); }

/* --- 3D 视效：减弱动态与移动端 --- */
@media (prefers-reduced-motion: reduce) {
  .float-ico { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 640px) {
  .float-ico.d3, .float-ico.d4 { display: none; }
  .float-ico { font-size: 1.5rem; opacity: 0.75; }
}

/* ============================================
   深空炫酷版（自写代码，无第三方库）
   深蓝星空首屏 / 星座粒子 / 流光按钮 / 光斑卡片
   ============================================ */

/* --- 首屏：深空底色，向下渐隐回白色正文 --- */
.hero {
  background:
    radial-gradient(900px 480px at 78% -12%, rgba(88, 116, 255, 0.35) 0%, transparent 60%),
    radial-gradient(700px 420px at 12% 108%, rgba(14, 165, 233, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, #0a1233 0%, #0f1c47 56%, #1b2f66 78%, #dce7fb 97%, #ffffff 100%);
}
.hero h1 { color: #fff; text-shadow: 0 4px 30px rgba(88, 131, 255, 0.45); }
.hero-sub { color: rgba(226, 236, 255, 0.78); }
.hero .accent { color: #9ec1ff; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero .accent {
    background: linear-gradient(120deg, #60a5fa, #22d3ee, #a78bfa, #60a5fa);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: accent-flow 5s linear infinite;
  }
}
@keyframes accent-flow { to { background-position: 250% center; } }

/* --- 光团加亮 + 新增紫色光团 --- */
.hero-glow { opacity: 0.7; }
.hero-glow-1 { background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent 65%); }
.hero-glow-2 { background: radial-gradient(circle, rgba(14, 165, 233, 0.42), transparent 65%); }
.hero-glow-3 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 65%);
  top: 6%; right: 26%;
  animation: glow-drift 20s ease-in-out infinite alternate;
}

/* --- 徽章：暗色玻璃 + 呼吸光圈 --- */
.hero-badge {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: #9ec1ff;
  animation: badge-pulse 2.6s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.35); }
  50%      { box-shadow: 0 0 0 7px rgba(96, 165, 250, 0); }
}

/* --- 首屏按钮：流光渐变主按钮 + 玻璃描边副按钮 --- */
.hero .btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #0ea5e9, #2563eb);
  background-size: 300% 100%;
  animation: btn-flow 6s linear infinite;
  box-shadow: 0 8px 26px rgba(59, 91, 247, 0.5);
}
@keyframes btn-flow { to { background-position: 300% 0; } }
.hero .btn-primary:hover { box-shadow: 0 12px 34px rgba(96, 116, 255, 0.6); }
.hero .btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.hero .btn-primary:hover::after { left: 135%; }
.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero .btn-outline:hover {
  border-color: #9ec1ff;
  color: #cfe1ff;
  background: rgba(255, 255, 255, 0.14);
}

/* --- 向下探索指示 --- */
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(230, 240, 255, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1.5;
}
.hero-scroll span { display: block; font-size: 1.05rem; animation: scroll-bounce 1.6s ease-in-out infinite; }
.hero-scroll:hover { color: #cfe1ff; }
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* --- 卡片光斑跟随（--mx/--my 由 JS 写入） --- */
.value-item { position: relative; }
.card::after, .value-item::after, .price-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 165, 250, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover::after, .value-item:hover::after, .price-card:hover::after { opacity: 1; }

/* --- 社员卡：旋转流光边框 --- */
@property --ga { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.price-card.hot::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: conic-gradient(from var(--ga), #2563eb, #0ea5e9, #7c3aed, #ec4899, #2563eb);
  animation: ga-spin 4.5s linear infinite;
  z-index: -1;
}
@keyframes ga-spin { to { --ga: 360deg; } }

/* --- 栏目标题渐变 --- */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .section-title {
    background: linear-gradient(90deg, #1d4ed8, #0ea5e9, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* --- 深空版：减弱动态 --- */
@media (prefers-reduced-motion: reduce) {
  .hero .btn-primary, .hero .accent, .hero-badge, .hero-scroll span, .price-card.hot::before { animation: none; }
}

/* ============================================
   全页深空版（body.theme-deep，仅首页启用）
   首页整页沉入深空；导航/页脚全站深色；
   内页（资讯/登录/社员专区等）保持浅色护眼
   ============================================ */

/* --- 顶部导航：全站深色玻璃 --- */
.site-header {
  background: rgba(10, 18, 51, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.logo { color: #f2f6ff; }
.logo:hover { color: #9ec1ff; }
.site-nav a { color: rgba(203, 220, 255, 0.78); }
.site-nav a:hover { color: #cfe1ff; background: rgba(255, 255, 255, 0.08); }
.site-nav a.active { color: #9ec1ff; background: rgba(96, 165, 250, 0.16); }
.menu-toggle { color: #e6eeff; }

/* --- 页脚：全站深空 --- */
.site-footer {
  background: #0a1233;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(190, 208, 245, 0.62);
}

/* --- 移动端下拉菜单同步深色 --- */
@media (max-width: 640px) {
  .site-nav {
    background: rgba(13, 24, 60, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav a { color: rgba(210, 226, 255, 0.85); }
}

/* --- 首页整页：深空底色（首屏透明衔接，向下渐变更深） --- */
body.theme-deep {
  color: #dbe6ff;
  background: linear-gradient(180deg, #0a1233 0%, #0f1c47 25%, #132558 58%, #0c1738 100%);
}
.theme-deep .hero {
  background:
    radial-gradient(900px 480px at 78% -12%, rgba(88, 116, 255, 0.35) 0%, transparent 60%),
    radial-gradient(700px 420px at 12% 108%, rgba(14, 165, 233, 0.22) 0%, transparent 55%);
}

/* --- 内容层级：区块内容浮在星空之上 --- */
.theme-deep .features, .theme-deep .values, .theme-deep .pricing, .site-footer {
  position: relative;
  z-index: 1;
}

/* --- 栏目标题：亮色渐变 --- */
.theme-deep .section-title { color: #cfe1ff; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .theme-deep .section-title {
    background: linear-gradient(90deg, #9ec1ff, #67e8f9, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* --- 三组卡片：深空上的亮色浮岛 --- */
.theme-deep .card, .theme-deep .value-item, .theme-deep .price-card {
  background: rgba(250, 252, 255, 0.97);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 36px rgba(3, 10, 38, 0.45);
}
.theme-deep .card:hover, .theme-deep .value-item:hover, .theme-deep .price-card:hover {
  box-shadow: 0 18px 44px rgba(2, 8, 30, 0.55);
}
.theme-deep .card, .theme-deep .value-item { color: #1f2937; }
.theme-deep .card:hover { color: #1f2937; border-color: var(--primary); }
.theme-deep .card p, .theme-deep .value-item p { color: #5b6b85; }
.theme-deep .card-tag {
  background: #eef3fd;
  border-color: #dbe4f5;
  color: #5b6b85;
}
.theme-deep .card-link { color: var(--primary); }

/* --- 光斑跟随：浅卡上的淡蓝光斑 --- */
.theme-deep .card::after, .theme-deep .value-item::after, .theme-deep .price-card::after {
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 165, 250, 0.14), transparent 62%);
}

/* --- 定价区：融入深空 --- */
.theme-deep .pricing {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-deep .price-name, .theme-deep .price-cost { color: #16233f; }
.theme-deep .price-cost small, .theme-deep .price-cost.cost-soft { color: #6b7280; }
.theme-deep .price-list li { border-bottom-color: #e3e9f5; color: #1f2937; }
.theme-deep .price-list .dim { color: #93a1bd; }
.theme-deep .btn-outline {
  color: #1f2937;
  border-color: #d6deee;
  background: #fff;
}
.theme-deep .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}
.theme-deep .btn-disabled {
  background: #eef2fa;
  color: #93a1bd;
  border-color: #e3e9f5;
}

/* --- 资讯页快讯流（内页浅色样式；数据来自 /api/news，见 worker/index.js 定时抓取） --- */
.news-feed { margin-top: 22px; display: grid; gap: 14px; }
.news-item {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e3e9f5;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 4px 14px rgba(15, 35, 80, 0.06);
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  color: #7d8aa5;
  margin-bottom: 6px;
}
.news-tag {
  background: #eef3fd;
  color: #3b62a8;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
}
.news-title { font-size: 17px; line-height: 1.45; margin: 0 0 6px; }
.news-title a { color: #16233f; text-decoration: none; }
.news-title a:hover { color: var(--primary); }
.news-summary { margin: 0 0 10px; color: #5b6b85; font-size: 14.5px; line-height: 1.75; }
.news-source { margin: 0; font-size: 12.5px; color: #93a1bd; }
.news-source a { color: #6f8ec9; }
.news-status { text-align: center; color: #93a1bd; padding: 18px 0; }

/* --- 资讯页研讯流：左右两栏（左=研讯精选，右=实时快讯；2026-10-13 新增） ---
   数据来自 /api/research（免费字段）；解读正文仅 VIP 经 /api/research/vip 拉取，见 worker/index.js */
.page-wide {
  max-width: none; /* 资讯页左右铺满屏幕（2026-10-14 站长要求），仅此页使用本类 */
  padding-left: clamp(20px, 3vw, 56px);
  padding-right: clamp(20px, 3vw, 56px);
}
.research-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px; /* 左栏弹性占满剩余宽度；右栏电报纸窄栏更易读 */
  gap: 26px;
  align-items: start;
  margin-top: 6px;
}
.col-title { font-size: 1.05rem; color: #16233f; margin: 0 0 14px; }
.flash-col {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}
.research-feed { display: grid; gap: 14px; }
.research-item {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e3e9f5;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 4px 14px rgba(15, 35, 80, 0.06);
}
.research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  color: #7d8aa5;
  margin-bottom: 8px;
}
.research-cat {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  background: #eef3fd;
  color: #3b62a8;
}
.research-cat.cat-macro { background: #fdf3e7; color: #b07014; }
.research-cat.cat-industry { background: #eaf7ef; color: #2e8b57; }
.research-cat.cat-stock { background: #f2ecfb; color: #7a4fbf; }
.research-cat.cat-catalyst { background: #fdecec; color: #c0564f; }
.research-title { font-size: 17px; line-height: 1.5; color: #16233f; margin: 0 0 8px; }
.research-fact { color: #3d4a63; font-size: 14.5px; line-height: 1.75; }
.research-fact p { margin: 0 0 8px; }
.research-fact p:last-child { margin-bottom: 0; }
.research-vip { margin-top: 10px; }
.research-vip-box {
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.75;
}
.research-vip-box.locked {
  background: linear-gradient(90deg, #f3f6fd, #fafbfe);
  color: #7d8aa5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.research-vip-box.unlocked { background: var(--primary-soft); color: #2c3a55; }
.research-vip-box .vip-label { font-weight: 700; color: var(--primary); font-size: 13px; margin-bottom: 4px; }
.research-vip-box p { margin: 0 0 8px; }
.research-vip-box p:last-child { margin-bottom: 0; }
.btn-vip-cta {
  background: var(--primary);
  color: #fff !important;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-vip-cta:hover { background: var(--primary-dark); color: #fff; }
@media (max-width: 1280px) {
  .research-layout { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 900px) {
  .research-layout { grid-template-columns: 1fr; }
  .flash-col { position: static; max-height: none; overflow: visible; }
}

/* ---------- 研讯流二期（2026-10-14）：快讯分类/预期徽章/过滤/更新横幅/文章详情页 ---------- */
.research-cat.cat-news { background: #e8f1fb; color: #2471a3; }

/* 预期徽章：A 股语义——超预期=红、低于预期=绿、符合预期=灰 */
.research-tag { border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.research-tag.tag-up { background: #fdecec; color: #c0392b; }
.research-tag.tag-down { background: #eaf7ef; color: #1e8449; }
.research-tag.tag-flat { background: #eef0f4; color: #66707f; }

/* 顶部过滤 chips（客户端过滤） */
.research-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.research-filters .chip {
  border: 1px solid #d9e2f2;
  background: #fff;
  color: #3b62a8;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  cursor: pointer;
}
.research-filters .chip:hover { border-color: var(--primary); }
.research-filters .chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 「上方有更新」横幅：轮询发现新条目时亮起，点击置顶刷新，不打断当前阅读位置 */
.research-new-banner {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px dashed var(--primary);
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.research-new-banner:hover { background: #dbeafe; }

/* 「阅读全文」入口（文章模式条目：宏观日报文章、商品快照全表） */
.research-more { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; }

/* 文章详情页 /research/?id= */
.article-page { max-width: 860px; margin: 0 auto; }
.article-page .research-item { padding: 26px 30px; }
.article-title { font-size: 22px; line-height: 1.45; color: #16233f; margin: 2px 0 12px; }
.article-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e3e9f5; }
.back-home { margin-top: 18px; font-size: 14px; }
@media (max-width: 600px) {
  .article-page .research-item { padding: 18px 16px; }
  .article-title { font-size: 19px; }
}

/* ---------- 个人中心（club/profile，仿社区「我的」页布局，2026-10-13 新增） ---------- */
.profile-head {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin: 8px 0 18px;
}
.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  user-select: none;
}
/* 头部大头像 72px；宫格选择器里的小头像尺寸见 .avatar-opt */
.avatar-lg { width: 72px; height: 72px; font-size: 34px; box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.06); }

.profile-name { font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-no {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3b62a8;
  background: #eef3fd;
  border-radius: 999px;
  padding: 2px 12px;
}
.profile-bio { color: var(--text-light); font-size: 0.95rem; margin-top: 4px; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 26px;
  overflow: hidden;
}
.profile-stat { text-align: center; padding: 16px 8px; }
.profile-stat + .profile-stat { border-left: 1px solid var(--border); }
.profile-stat b { display: block; font-size: 1.15rem; color: var(--text); }
.profile-stat span { font-size: 0.85rem; color: var(--text-light); }

/* 标签页（仿「我的文章」式页签） */
.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.profile-tab {
  appearance: none;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text-light);
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s;
}
.profile-tab:hover { color: var(--primary); }
.profile-tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.profile-panel { display: none; }
.profile-panel.active { display: block; }

/* 资料编辑表单（沿用登录框的输入风格） */
.profile-form { max-width: 560px; }
.profile-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 18px 0 6px;
}
.profile-form label small { font-weight: 400; color: var(--text-light); }
.profile-form input,
.profile-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.profile-form textarea { resize: vertical; min-height: 74px; }
.profile-form input:focus,
.profile-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* 预设头像宫格：a0~a11 渐变底色（emoji 由页面写入，Worker 只存标识） */
.avatar-grid { display: grid; grid-template-columns: repeat(6, 56px); gap: 12px; margin-top: 4px; }
.avatar-opt {
  width: 56px;
  height: 56px;
  font-size: 26px;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s, border-color 0.12s;
}
.avatar-opt:hover { transform: translateY(-2px); }
.avatar-opt.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.avatar-a0  { background: linear-gradient(135deg, #e8eefc, #c9d8f5); }
.avatar-a1  { background: linear-gradient(135deg, #fdeedd, #f7d3a8); }
.avatar-a2  { background: linear-gradient(135deg, #e3f6e9, #bfe8cd); }
.avatar-a3  { background: linear-gradient(135deg, #ffeedd, #ffd0a8); }
.avatar-a4  { background: linear-gradient(135deg, #f0f1f5, #d4d8e2); }
.avatar-a5  { background: linear-gradient(135deg, #e3edff, #bcd0ff); }
.avatar-a6  { background: linear-gradient(135deg, #e9e9fb, #c9c9f2); }
.avatar-a7  { background: linear-gradient(135deg, #f3e9e2, #e0c8b5); }
.avatar-a8  { background: linear-gradient(135deg, #fdf3d8, #f5dfa5); }
.avatar-a9  { background: linear-gradient(135deg, #e0f4f2, #b8e4df); }
.avatar-a10 { background: linear-gradient(135deg, #e6f7e0, #c4ecb8); }
.avatar-a11 { background: linear-gradient(135deg, #fff8d6, #f9eb9e); }

.save-tip {
  display: none;
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
}
.save-tip.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.save-tip.err { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }

@media (max-width: 560px) {
  .profile-head { flex-direction: row; padding: 20px; gap: 14px; }
  .avatar-grid { grid-template-columns: repeat(4, 56px); }
}

/* ---------- 快讯搜索 / 收藏星标 / RSS 入口（2026-10-14 新增） ---------- */
.news-search { margin-top: 14px; }
.news-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  border: 1px solid #e3e9f5;
  border-radius: 999px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #16233f;
  outline: none;
}
.news-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 98, 168, 0.12); }
.rss-link {
  font-size: 12px;
  font-weight: 600;
  color: #3b62a8;
  background: #eef3fd;
  border-radius: 999px;
  padding: 2px 10px;
  text-decoration: none;
  margin-left: 8px;
  vertical-align: middle;
}
.rss-link:hover { background: #dde8fa; }
.fav-btn {
  margin-left: auto;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #b9c3d8;
  padding: 2px 4px;
  border-radius: 6px;
}
.fav-btn:hover { color: #e8a33d; background: #fdf6e9; }
.fav-btn.faved,
.news-item.faved .fav-btn { color: #e8a33d; }
.fav-btn:disabled { opacity: 0.5; cursor: wait; }

/* ---------- 个人中心：我的收藏列表 + 社长信箱（2026-10-14 新增） ---------- */
.panel-hint { color: #5b6b85; font-size: 14px; margin: 0 0 16px; }
.fav-list { display: grid; gap: 14px; }
.fav-item {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e3e9f5;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 4px 14px rgba(15, 35, 80, 0.06);
}
.fav-item .news-title { font-size: 16px; }
.fav-date { margin: 6px 0 0; font-size: 12.5px; color: #93a1bd; }
.mailbox-sub { margin: 26px 0 12px; font-size: 16px; }
.msg-counter { margin: -4px 0 10px; font-size: 12.5px; color: #93a1bd; text-align: right; }
.msg-list { display: grid; gap: 16px; }
.msg-item { display: grid; gap: 8px; }
.msg-bubble { border-radius: 14px; padding: 12px 16px; }
.msg-mine { background: rgba(255, 255, 255, 0.96); border: 1px solid #e3e9f5; }
.msg-reply { background: #f2f7ff; border: 1px solid #d7e5fb; }
.msg-from { font-size: 12.5px; font-weight: 600; color: #3b62a8; margin-bottom: 4px; }
.msg-content { white-space: pre-wrap; font-size: 14.5px; line-height: 1.7; color: #16233f; word-break: break-word; }
.msg-time { margin-top: 6px; font-size: 12px; color: #93a1bd; }
.msg-waiting { font-size: 13px; color: #93a1bd; }
@media (max-width: 560px) {
  .fav-item { padding: 14px 16px; }
  .msg-bubble { padding: 10px 13px; }
}
