/* ===== 营生志 官网首页样式 · 深蓝夜空 / 暖金 / 品牌红 ===== */
:root {
  --night-950: #05080f;
  --night-900: #0a1120;
  --night-800: #101a30;
  --night-700: #1c2b47;
  --gold: #f6c65b;
  --gold-deep: #d9a23f;
  --red-600: #e04a3a;
  --cream: #f5ead6;
  --ink: #e8e2d5;
  --gray: #93a3bf;
  --line: rgba(246,198,91,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  background: var(--night-900);
  color: var(--ink);
  line-height: 1.7;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }

.section-title {
  font-size: 36px;
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 12px;
  color: var(--cream);
}
.section-title span { color: var(--gold); }
.section-lead {
  text-align: center;
  color: var(--gray);
  margin-bottom: 48px;
  font-size: 15px;
}

/* ===== 导航 ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 8, 15, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(246,198,91,0.22);
  transition: background .3s;
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; box-shadow: 0 0 14px rgba(246,198,91,0.35); }
.brand-name { color: var(--gold); font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.menu { display: flex; gap: 28px; }
.menu a {
  color: #cdd8ec;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
  transition: color .2s;
}
.menu a:hover { color: var(--gold); }
.menu-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 24px; cursor: pointer; }

/* ===== Hero 首屏 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 24% 18%, rgba(224,74,58,0.16), transparent 42%),
    radial-gradient(ellipse at 78% 22%, rgba(246,198,91,0.14), transparent 40%),
    linear-gradient(168deg, #0a1120 0%, #101a30 46%, #05080f 100%);
}
/* 星空粒子 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(246,198,91,0.5) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 120px 120px, 170px 170px;
  background-position: 12px 24px, 60px 90px;
  opacity: .4;
  pointer-events: none;
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .22; } to { opacity: .55; } }

/* 城市剪影 */
.cityline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%271600%27%20height%3D%27200%27%20viewBox%3D%270%200%201600%20200%27%3E%0A%3Cdefs%3E%3ClinearGradient%20id%3D%27g%27%20x1%3D%270%27%20y1%3D%270%27%20x2%3D%270%27%20y2%3D%271%27%3E%3Cstop%20offset%3D%270%27%20stop-color%3D%27%23101a30%27%20stop-opacity%3D%270.9%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%2305080f%27%20stop-opacity%3D%270.97%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%0A%3Crect%20width%3D%271600%27%20height%3D%27200%27%20fill%3D%27url%28%23g%29%27%2F%3E%0A%3Cg%20fill%3D%27%230d1526%27%3E%0A%3Crect%20x%3D%270%27%20y%3D%27150%27%20width%3D%27160%27%20height%3D%2750%27%2F%3E%3Crect%20x%3D%2740%27%20y%3D%27120%27%20width%3D%2750%27%20height%3D%2730%27%2F%3E%3Crect%20x%3D%27140%27%20y%3D%27155%27%20width%3D%2740%27%20height%3D%2745%27%2F%3E%0A%3Crect%20x%3D%27240%27%20y%3D%27130%27%20width%3D%2770%27%20height%3D%2770%27%2F%3E%3Crect%20x%3D%27330%27%20y%3D%27105%27%20width%3D%2745%27%20height%3D%2795%27%2F%3E%3Crect%20x%3D%27420%27%20y%3D%27140%27%20width%3D%2790%27%20height%3D%2760%27%2F%3E%0A%3Crect%20x%3D%27560%27%20y%3D%27115%27%20width%3D%2760%27%20height%3D%2785%27%2F%3E%3Crect%20x%3D%27650%27%20y%3D%27150%27%20width%3D%27120%27%20height%3D%2750%27%2F%3E%3Crect%20x%3D%27810%27%20y%3D%27125%27%20width%3D%2755%27%20height%3D%2775%27%2F%3E%0A%3Crect%20x%3D%27900%27%20y%3D%27145%27%20width%3D%2780%27%20height%3D%2755%27%2F%3E%3Crect%20x%3D%271030%27%20y%3D%27110%27%20width%3D%2765%27%20height%3D%2790%27%2F%3E%3Crect%20x%3D%271130%27%20y%3D%27150%27%20width%3D%27110%27%20height%3D%2750%27%2F%3E%0A%3Crect%20x%3D%271280%27%20y%3D%27120%27%20width%3D%2750%27%20height%3D%2780%27%2F%3E%3Crect%20x%3D%271370%27%20y%3D%27145%27%20width%3D%2790%27%20height%3D%2755%27%2F%3E%3Crect%20x%3D%271500%27%20y%3D%27130%27%20width%3D%27100%27%20height%3D%2770%27%2F%3E%0A%3C%2Fg%3E%0A%3Cg%20fill%3D%27%23f6c65b%27%20opacity%3D%270.35%27%3E%0A%3Crect%20x%3D%2755%27%20y%3D%27128%27%20width%3D%276%27%20height%3D%276%27%2F%3E%3Crect%20x%3D%2770%27%20y%3D%27128%27%20width%3D%276%27%20height%3D%276%27%2F%3E%3Crect%20x%3D%27260%27%20y%3D%27140%27%20width%3D%276%27%20height%3D%276%27%2F%3E%3Crect%20x%3D%27285%27%20y%3D%27140%27%20width%3D%276%27%20height%3D%276%27%2F%3E%0A%3Crect%20x%3D%27350%27%20y%3D%27115%27%20width%3D%276%27%20height%3D%276%27%2F%3E%3Crect%20x%3D%27370%27%20y%3D%27115%27%20width%3D%276%27%20height%3D%276%27%2F%3E%3Crect%20x%3D%27580%27%20y%3D%27125%27%20width%3D%276%27%20height%3D%276%27%2F%3E%3Crect%20x%3D%27600%27%20y%3D%27125%27%20width%3D%276%27%20height%3D%276%27%2F%3E%0A%3Crect%20x%3D%27830%27%20y%3D%27135%27%20width%3D%276%27%20height%3D%276%27%2F%3E%3Crect%20x%3D%27850%27%20y%3D%27135%27%20width%3D%276%27%20height%3D%276%27%2F%3E%3Crect%20x%3D%271050%27%20y%3D%27120%27%20width%3D%276%27%20height%3D%276%27%2F%3E%3Crect%20x%3D%271070%27%20y%3D%27120%27%20width%3D%276%27%20height%3D%276%27%2F%3E%0A%3Crect%20x%3D%271300%27%20y%3D%27130%27%20width%3D%276%27%20height%3D%276%27%2F%3E%3Crect%20x%3D%271320%27%20y%3D%27130%27%20width%3D%276%27%20height%3D%276%27%2F%3E%3Crect%20x%3D%271530%27%20y%3D%27140%27%20width%3D%276%27%20height%3D%276%27%2F%3E%3Crect%20x%3D%271550%27%20y%3D%27140%27%20width%3D%276%27%20height%3D%276%27%2F%3E%0A%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: cover;
  background-position: bottom center;
  opacity: .9;
  z-index: 1;
  pointer-events: none;
}

/* 金色光轨：右下往左上的流动光线 */
.hero-light {
  position: absolute;
  right: -6%; bottom: 18%;
  width: 560px; height: 120px;
  background: linear-gradient(100deg, rgba(246,198,91,0) 0%, rgba(246,198,91,0.5) 35%, rgba(246,198,91,0.08) 78%, rgba(246,198,91,0) 100%);
  transform: rotate(-14deg);
  filter: blur(2px);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  animation: lightFlow 7s ease-in-out infinite;
}
@keyframes lightFlow {
  0%,100% { opacity: .45; transform: rotate(-14deg) translateX(0); }
  50% { opacity: .9; transform: rotate(-14deg) translateX(-30px); }
}

.hero-content { position: relative; z-index: 2; padding: 0 24px; }
.hero-logo {
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 0 70px rgba(246,198,91,0.4);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-title {
  margin-top: 30px;
  font-size: 78px;
  font-weight: 900;
  letter-spacing: 18px;
  color: var(--gold);
  text-shadow: 0 4px 0 rgba(0,0,0,0.25), 0 0 44px rgba(246,198,91,0.35);
}
.hero-sub {
  margin-top: 18px;
  font-size: 20px;
  color: #e6ecf7;
  letter-spacing: 3px;
  line-height: 1.9;
}
.hero-actions { margin-top: 46px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 2px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-icon { font-size: 15px; line-height: 1; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #241604;
  font-weight: 700;
  box-shadow: 0 6px 26px rgba(246,198,91,0.38);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(246,198,91,0.55); }
.btn-ghost {
  border: 1.5px solid rgba(246,198,91,0.8);
  color: var(--gold);
  background: transparent;
}
.btn-ghost:hover { background: rgba(246,198,91,0.12); transform: translateY(-3px); }

.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 22px;
  opacity: .8;
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===== 关于 ===== */
.about { background: linear-gradient(180deg, #05080f 0%, #0a1120 100%); }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.about-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.about-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,0.35); border-color: rgba(246,198,91,0.4); }
.about-icon { font-size: 46px; }
.about-card h3 { margin: 16px 0 10px; color: var(--gold); font-size: 20px; }
.about-card p { color: var(--gray); font-size: 14.5px; }

/* ===== 视频系列 ===== */
.series { background: linear-gradient(180deg, #0a1120 0%, #0d1730 100%); }
.series-name {
  font-size: 24px;
  margin: 40px 0 22px;
  padding-left: 14px;
  border-left: 5px solid var(--gold);
  color: var(--cream);
  letter-spacing: 2px;
}
.series-name:first-of-type { margin-top: 0; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.video-card {
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.video-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,0.4); border-color: rgba(246,198,91,0.42); }
.video-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(5,8,15,0.8) 100%);
}
.video-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: rgba(5,8,15,0.82);
  color: var(--gold);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
  border: 1px solid rgba(246,198,91,0.3);
}
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(246,198,91,0.95);
  color: #241604;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.video-card:hover .video-play { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
.video-body { padding: 14px 16px 18px; }
.video-body h4 { font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.video-body p { font-size: 12.5px; color: var(--gray); }
.video-card.coming { cursor: default; }
.video-card.coming .video-cover::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(5,8,15,0.75));
}
.video-card.coming:hover { transform: none; box-shadow: 0 4px 20px rgba(0,0,0,0.25); }

/* ===== 爆文 ===== */
.articles { background: linear-gradient(180deg, #0d1730 0%, #0a1120 100%); }
.article-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
}
.article-tab {
  padding: 10px 28px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gray);
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
}
.article-tab:hover { border-color: rgba(246,198,91,0.55); color: var(--gold); }
.article-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #241604;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(246,198,91,0.35);
}
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-grid[hidden] { display: none !important; }
.article-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,0.4); border-color: rgba(246,198,91,0.42); }
.article-cover { height: 168px; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.article-tag {
  align-self: flex-start;
  font-size: 11.5px;
  color: var(--gold);
  background: rgba(246,198,91,0.12);
  border: 1px solid rgba(246,198,91,0.25);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.article-body h3 { font-size: 17px; line-height: 1.55; color: var(--ink); margin-bottom: 8px; }
.article-body p { font-size: 13.5px; color: var(--gray); flex: 1; }
.article-link {
  margin-top: 16px;
  display: inline-block;
  color: var(--gold);
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.article-link:hover { color: var(--cream); }
.article-dl {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--gray);
  text-decoration: none;
}
.article-dl:hover { color: var(--gold); text-decoration: underline; }

/* ===== 关注 ===== */
.follow { background: linear-gradient(160deg, #101a30 0%, #05080f 100%); color: var(--cream); }
.follow .section-title { color: #fdf6e6; }
.follow .section-title span { color: var(--gold); }
.follow .section-lead { color: var(--gray); }
.follow-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.follow-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  transition: transform .25s, box-shadow .25s;
}
.follow-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.follow-icon { font-size: 44px; }
.follow-card h3 { color: var(--gold); margin: 14px 0 6px; font-size: 20px; letter-spacing: 2px; }
.follow-card p { color: var(--gray); font-size: 15px; }

/* 关注板块：吸粉枢纽布局（左二维码 + 右官网/平台） */
.follow-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.follow-qr { text-align: center; }
.qr-frame {
  width: 240px; height: 240px;
  margin: 0 auto 18px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.qr-img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; display: block; }
.follow-qr h3 { color: var(--gold); font-size: 19px; letter-spacing: 2px; }
.qr-tip { color: var(--gray); font-size: 13.5px; margin-top: 6px; }
.follow-right { display: flex; flex-direction: column; gap: 26px; }
.follow-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(246,198,91,0.16), rgba(246,198,91,0.05));
  border: 1px solid rgba(246,198,91,0.4);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.follow-cta:hover { transform: translateY(-4px); box-shadow: 0 12px 34px rgba(0,0,0,0.4); border-color: rgba(246,198,91,0.7); }
.cta-icon { font-size: 34px; flex-shrink: 0; }
.cta-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cta-text strong { color: var(--gold); font-size: 19px; letter-spacing: 1px; }
.cta-text em { color: var(--gray); font-style: normal; font-size: 13.5px; }
.cta-arrow { color: var(--gold); font-size: 26px; flex-shrink: 0; }

/* ===== 页脚 ===== */
.footer { background: #03050a; color: #7d8ba6; padding: 30px 0; text-align: center; border-top: 1px solid rgba(246,198,91,0.12); }
.footer p { font-size: 14px; }
.footer .footer-contact { margin-top: 8px; line-height: 1.7; }
.footer .mail-copy { display: inline-flex; align-items: center; gap: 8px; color: var(--gold, #f6c65b); text-decoration: none; border-bottom: 1px solid rgba(246,198,91,.35); transition: color .25s; }
.footer .mail-copy:hover { color: #ffd98c; border-bottom-color: #ffd98c; }
.footer .mail-copy-btn { display: inline-block; margin-left: 8px; padding: 2px 10px; font-size: 12px; line-height: 1.6; color: #0a1120; background: var(--gold, #f6c65b); border: none; border-radius: 999px; cursor: pointer; transition: all .25s; vertical-align: middle; }
.footer .mail-copy-btn:hover { background: #ffd98c; transform: translateY(-1px); }
.footer .mail-copy-btn.copied { background: #4ade80; color: #052e16; }
.footer .footer-note { font-size: 12px; margin-top: 8px; opacity: .8; }

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(3,5,10,0.9); }
.modal-box {
  position: relative;
  width: min(960px, 92vw);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 70px rgba(0,0,0,0.7);
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background .2s;
}
.modal-close:hover { background: var(--red-600); }
.modal-box video { width: 100%; max-height: 78vh; display: block; background: #000; }
.modal-title { color: #fff; padding: 12px 18px; font-size: 15px; background: #070b16; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(5,8,15,0.98); padding: 18px 24px; gap: 16px; }
  .menu.open { display: flex; }
  .menu-toggle { display: block; }
  .about-cards, .article-grid, .follow-cards { grid-template-columns: 1fr; }
  .follow-wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-title { font-size: 48px; letter-spacing: 10px; }
  .hero-sub { font-size: 16px; }
  .hero-light { right: -30%; }
}
