/* ========= 全局变量 & 重置 ========= */

:root {
  --bg: #050816;
  --bg-elevated: #0b1220;
  --bg-card: #111827;
  --brand: #3b82f6;
  --brand-soft: rgba(59, 130, 246, 0.15);
  --accent: #a855f7;
  --accent-soft: rgba(168, 85, 247, 0.12);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.8);
  --transition-fast: 0.18s ease-out;
  --transition-normal: 0.24s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.layout {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1d2440 0, var(--bg) 45%, #020617 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========= 通用布局 ========= */

.container-1200 {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-head {
  text-align: left;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.section-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ========= 顶部导航 ========= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 30%;
  background: radial-gradient(circle at 20% 20%, #f97316, #eab308 35%, #a855f7 90%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #020617;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.5);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(30, 64, 175, 0.4);
}

/* ========= 按钮 ========= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast), transform 0.12s ease-out, box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: radial-gradient(circle at 10% 0, #38bdf8, var(--brand));
  color: #0b1120;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(56, 189, 248, 0.7);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(30, 64, 175, 0.85);
  border-color: rgba(191, 219, 254, 0.9);
}

.btn-ghost {
  border-color: transparent;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-soft);
}

.btn-ghost:hover {
  background: rgba(31, 41, 55, 0.95);
  color: var(--text);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

/* 链接式按钮 */

.link-btn {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-btn:hover {
  color: var(--text);
}

/* ========= Hero 区 ========= */

.hero {
  padding: 32px 0 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2rem;
  margin: 0 0 10px;
}

.hero-text p {
  margin: 0 0 18px;
  font-size: 0.97rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--text-soft);
}

/* Hero 右侧卡片 */

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 100%;
  max-width: 330px;
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.24), transparent 65%), radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.28), transparent 65%), var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-card-label {
  font-size: 0.85rem;
  margin: 0 0 10px;
  color: var(--text-soft);
}

.hero-status-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.85rem;
}

.hero-status-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-ok {
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.dot-warn {
  background: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.8);
}

.hero-card-note {
  font-size: 0.78rem;
  margin: 0;
  color: var(--text-soft);
}

/* ========= 入口卡片区 ========= */

.entries {
  padding: 8px 0 32px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.entry-card {
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-lg);
  padding: 14px 14px 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast), background var(--transition-fast);
}

.entry-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.18), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.9);
  border-color: rgba(96, 165, 250, 0.9);
}

.entry-card:hover::before {
  opacity: 1;
}

.entry-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.entry-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-soft);
}

.entry-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.entry-card p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.entry-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.entry-meta li::before {
  content: "•";
  margin-right: 4px;
  color: rgba(148, 163, 184, 0.9);
}

.entry-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* 徽章 */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.9);
}

.badge-primary {
  border-color: rgba(56, 189, 248, 0.8);
  background: var(--brand-soft);
  color: #e0f2fe;
}

.badge-accent {
  border-color: rgba(168, 85, 247, 0.9);
  background: var(--accent-soft);
  color: #f5e9ff;
}

.badge-secondary {
  border-color: rgba(94, 234, 212, 0.8);
  background: rgba(45, 212, 191, 0.1);
  color: #ccfbf1;
}

.badge-hot {
  border-color: rgba(248, 113, 113, 0.9);
  background: rgba(248, 113, 113, 0.16);
  color: #fee2e2;
}

/* ========= 新手导览区 ========= */

.guide {
  padding: 12px 0 32px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.guide-step {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  border: 1px solid var(--border-subtle);
}

.step-index {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 20% 0, #38bdf8, #0ea5e9);
  color: #020617;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-weight: 700;
}

.guide-step h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.guide-step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* ========= Footer ========= */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.96);
  padding: 16px 0 20px;
  margin-top: 8px;
}

.footer-inner {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.footer-links {
  margin: 6px 0 0;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  margin: 0 2px;
  font-size: 0.78rem;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ========= 响应式 ========= */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    justify-content: flex-start;
  }

  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .entry-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ========= 其他参考网站（正方形卡片区） ========= */

.others {
  padding: 32px 0;
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* 正方形卡片 */
.other-card {
  aspect-ratio: 1 / 1; /* 正方形 */
  background: linear-gradient(to bottom right, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 14px 35px rgba(15,23,42,0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.25s ease;
}

.other-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96,165,250,0.9);
  box-shadow: 0 25px 55px rgba(15,23,42,0.9);
}

.other-card h3 {
  font-size: 1.05rem;
  margin: 0;
  color: #e5e7eb;
  line-height: 1.3;
  text-shadow: 0 0 5px rgba(59,130,246,0.3);
}

.other-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* ========= 其他参考网站：正方形卡片 + 图片支持 ========= */

.other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* 整张卡片仍然保持正方形 */
.other-card {
  aspect-ratio: 1 / 1;
  background: linear-gradient(to bottom right, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 14px 35px rgba(15,23,42,0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: 0.25s ease;
}

.other-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96,165,250,0.9);
  box-shadow: 0 25px 55px rgba(15,23,42,0.9);
}

/* 图片容器：保持比例、不变形 */
.other-img {
  width: 100%;
  height: 60%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.other-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 图片自动裁切保持比例，可换 contain */
  display: block;
}

/* 标题 */
.other-card h3 {
  font-size: 0.95rem;
  margin: 0 0 10px;
  text-align: center;
  color: #e5e7eb;
}

/* 按钮区域 */
.other-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ========= 科技感轮播图 v3（最终整合版） ========= */

.carousel-v3 {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.carousel-v3 .container-1200 {
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
}

/* ------------ 轮播外框区 ------------ */
.carousel-v3-wrapper {
  width: 100%;
  position: relative;
  border-radius: 20px;
  overflow: hidden;

  /* 科技感光晕 */
  box-shadow: 
    0 0 25px rgba(56,189,248,0.25),
    0 0 55px rgba(139,92,246,0.25);
}

/* ------------ 自动高度控制 ------------ */
/* 用伪元素撑开高度，依比例可调 */
.carousel-v3-wrapper::after {
  content: "";
  display: block;
  padding-bottom: calc(100% * 350 / 1200); 
  /* ↑ 如果你的 banner 是 1200x350 就用这个比例 */
  /* 若图片尺寸不同可告诉我，我帮你设为正确比例 */
}

/* ------------ 单张图片 ------------ */
.carousel-v3-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 1s ease,
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-v3-item.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-v3-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 不会变形 */
  display: block;
}

/* ------------ 圆点导航 ------------ */
.carousel-v3-dots {
  text-align: center;
  margin-top: 12px;
}

.carousel-v3-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin: 0 4px;
  cursor: pointer;
  background: rgba(255,255,255,0.45);
  transition: 0.25s ease;
}

.carousel-v3-dots .dot.active {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  transform: scale(1.2);
}

/* ========= 右下角悬浮工具列 ========= */

/* ========= 右下角悬浮工具列 ========= */

.floating-toolbar {
  position: fixed;
  right: 20px;
  bottom: 40px;
  width: 54px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.3);
  z-index: 50;
}

.tool-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
  border: 1px solid rgba(255,255,255,0.15);
}

/* hover 更亮 */
.tool-btn:hover {
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

/* ICON 金色发光 */
.floating-toolbar svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.6; /* 比较立体 */
  filter: drop-shadow(0 0 6px rgba(245,204,96,0.6));
}

/* hover 图标更亮 */
.tool-btn:hover svg {
  filter: drop-shadow(0 0 12px rgba(255,220,130,0.9));
}

.scroll-top-btn {
  border: none;
}

/* ========= 左侧钱袋悬浮 ICON ========= */
.left-moneybag {
  position: fixed;
  left: 22px;
  bottom: 140px;
  width: 100px;
  height: 100px;
  background: rgba(255, 200, 60, 0.15);
  border: 1px solid rgba(255, 200, 60, 0.35);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 200;

  /* 自动漂浮 */
  animation: moneyFloat 3s ease-in-out infinite;

  /* 超亮金色光晕 */
  box-shadow:
    0 0 18px rgba(255, 220, 120, 0.8),
    0 0 40px rgba(255, 200, 80, 0.35);
}

/* 钱袋 ICON */
.moneybag-icon {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 8px rgba(255, 230, 150, 0.9));
  transition: 0.25s ease;
}

/* hover 整体效果（更亮、放大） */
.left-moneybag:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow:
    0 0 25px rgba(255, 240, 160, 1),
    0 0 60px rgba(255, 210, 120, 0.8);
}

.left-moneybag:hover .moneybag-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 14px rgba(255, 240, 180, 1));
}

/* ========= 自动漂浮动画 ========= */
@keyframes moneyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========= 金币飞出动画 ========= */
.coin {
  position: absolute;
  font-size: 26px;
  opacity: 0;
  animation: coinFly 2.2s ease-out infinite;
  filter: drop-shadow(0 0 6px rgba(255,220,130,0.9));
}

.coin-1 { left: 20px; animation-delay: 0s; }
.coin-2 { left: 50px; animation-delay: 0.4s; }
.coin-3 { left: 32px; animation-delay: 0.8s; }

@keyframes coinFly {
  0% {
    transform: translateY(10px) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(-80px) scale(1.0) rotate(360deg);
    opacity: 0;
  }
}

.footer-stats {
  width: 100%;
  text-align: center;
  padding: 16px 0;
  font-size: 14px;
  color: #ffffffc9;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: center;
  gap: 24px;
}



/* ========== 手机版隐藏：入口健康状态 + 新手导览 + 参考网站 ========== */

/* 1) 所有宽度小于等于 1024px 的装置（手机 / 直立平板） */
@media (max-width: 1024px) {

  /* 隐藏右侧：入口健康状态整张卡片 */
  .hero-card {
    display: none !important;
  }


  /* 隐藏顶部导航列的前两个按钮（预设是：新手导览、参考网站） */
  .nav-actions .nav-link:nth-child(1),
  .nav-actions .nav-link:nth-child(2) {
    display: none !important;
  }
}

/* 手机版：轮播图全宽显示，左右无间距 */
@media (max-width: 1024px) {

  /* 让轮播最外层占满宽度 */
  .carousel-v3 {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 去掉 container-1200 的左右 padding */
  .carousel-v3 .container-1200 {
    padding: 0 !important;
    max-width: 100% !important;
  }

  /* 轮播内容贴齐手机边缘 */
  .carousel-v3-wrapper {
    border-radius: 0 !important; /* 去掉圆角，视觉更满 */
  }
}

/* 手机版轮播图高度：按 1080×450 精准比例显示 */
@media (max-width: 1024px) {
  .carousel-v3-wrapper::after {
    padding-bottom: 32% !important;
  }
}

.other-card:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(56,189,248,0.25), transparent 70%);
    opacity: 1;
    pointer-events: none;
    transition: 0.3s;
}

.site-header {
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 20px rgba(56,189,248,0.15);
}

.other-card h3 {
    text-shadow: 0 0 8px rgba(59,130,246,0.45);
}

body.layout {
    font-weight: 450;
}

body.layout {
  background: linear-gradient(135deg, #0b1220, #020617);
  animation: bgMove 18s ease-in-out infinite alternate;
}

@keyframes bgMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}