/* ==========================================================
   长荡湖门户 site.css —— V2 视觉系统（2026-09-06）
   基于：视觉风格定版 VS-V1.0「青春科创·活力派对」
   作用：覆盖 cdh.css 旧配色变量 + 新增首屏组件样式
   加载顺序：cdh.css -> site.css（后者覆盖优先）
   ========================================================== */

/* ========== 1. Design Tokens 覆盖 ========== */
:root {
  /* --- 品牌主色（核心 6 色） --- */
  --teal: #00B4C6;            /* 洮水青 - 主品牌色 */
  --teal-d: #00707E;          /* 深青 - 文字/填充档 */
  --purple: #6C5CE7;          /* 派对紫 - 社区/活动 */
  --sky: #1F6FEB;             /* 湖心蓝 - 信任蓝 */
  --green: #2FBF71;           /* 生态绿 - 助农/成功 */
  --sun: #FF9F1C;             /* 丰收金 - 蟹季/促销 */

  /* --- 品牌扩展变量 --- */
  --brand-cyan: #00B4C6;
  --brand-deep: #00707E;
  --party-purple: #6C5CE7;
  --trust-blue: #1F6FEB;
  --eco-green: #2FBF71;
  --harvest-gold: #FF9F1C;
  --invest-blue: #2B4C7E;     /* 黛蓝 - 投资 */
  --night-deep: #0B1B2B;      /* 湖夜深 */

  /* --- 中性色 --- */
  --bg: #FFFFFF;
  --bg-2: #F2F8F9;            /* 淡青底 - 全站页面底色 */
  --card: #FFFFFF;
  --ink: #14212B;             /* 墨青 - 正文/标题 */
  --ink-2: #56697A;           /* 灰蓝 - 次要文字 */
  --line: #D8E6E9;            /* 描边 */
  --weak-gray: #8AA0AC;       /* 弱灰 - 占位/禁用 */
  --deep-text: #EAF6F8;       /* 深底场景主文字 */
  --deep-sub: #9DB4C0;        /* 深底场景次要文字 */

  /* --- 浅底衍生色（标签底） --- */
  --mint: #E1F5F8;            /* 洮水青浅底 */
  --sky-l: #E7EFFE;           /* 湖心蓝浅底 */
  --sun-l: #FFF4E2;           /* 丰收金浅底 */
  --purple-l: #EEEBFF;        /* 派对紫浅底 */
  --green-l: #E1F5EE;         /* 生态绿浅底 */
  --coral: #EF8E70;           /* 保留 - 价格/心 */

  /* --- 标签状态色（低饱和底 + 深字 AA） --- */
  --tag-farm-bg: #E6F6EA; --tag-farm-tx: #1B7A43;
  --tag-pub-bg: #E7EFFE; --tag-pub-tx: #1F4FB0;
  --tag-crab-bg: #FFF4E2; --tag-crab-tx: #B36A00;
  --tag-evt-bg: #EEEBFF; --tag-evt-tx: #4C3FB8;
  --tag-eco-bg: #E1F5EE; --tag-eco-tx: #0F6E56;

  /* --- 圆角 --- */
  --r: 16px;                  /* 卡片 */
  --r-s: 8px;                 /* 小图 */
  --r-btn: 999px;             /* 按钮/标签（胶囊） */
  --r-input: 12px;            /* 输入框 */

  /* --- 阴影 --- */
  --sh: 0 10px 30px rgba(9,40,54,0.08);
  --sh-s: 0 4px 12px rgba(9,40,54,0.05);
  --sh-hover: 0 14px 36px rgba(9,40,54,0.12);

  /* --- 品牌渐变签名（仅限活动与社区专区） --- */
  --brand-grad: linear-gradient(120deg, #00B4C6 0%, #6C5CE7 100%);

  /* --- 栏目识别色 --- */
  --sec-culture: #00B4C6;     /* 认识长荡湖 */
  --sec-travel: #1F6FEB;      /* 玩转长荡湖 */
  --sec-goods: #FF9F1C;       /* 长荡湖好物 */
  --sec-invest: #2B4C7E;      /* 投资长荡湖 */
  --sec-community: #6C5CE7;   /* 湖圈 */
  --sec-life: #2FBF71;        /* 家在长荡湖 */

  /* --- 动效 --- */
  --ease: 220ms ease-out;
  --ease-slow: 260ms ease-out;
}

/* ========== 2. 全局基础 ========== */
html { scroll-behavior: smooth; }
body { background: var(--bg-2); }
::selection { background: var(--brand-cyan); color: #fff; }
*:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }
.wrap { width: min(1280px, 92%); }

/* ========== 3. 次导航（工具条 - 深色） ========== */
.utility {
  background: var(--night-deep);
  color: var(--deep-sub);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.utility .sep { color: rgba(255,255,255,0.12); }
.utility .season-tag { color: var(--brand-cyan); }
.utility .season-tag i { background: var(--brand-cyan); }
.utility .u-right a { color: var(--deep-text); transition: color .2s; }
.utility .u-right a:hover { color: #fff; }

/* ========== 4. 主导航 ========== */
/* 4.1 全局覆盖 */
.logo .mark {
  background: var(--brand-grad);
  box-shadow: 0 6px 14px rgba(0,180,198,0.35);
}
.menu a:hover { background: var(--mint); color: var(--teal-d); }
.logo b { color: var(--ink); }
.logo small { color: var(--ink-2); }
.menu a.on {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,180,198,0.35);
}
.nav-cta {
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,112,126,0.28);
}
.nav-cta:hover { transform: translateY(-2px); }

/* 4.2 首页导航——与其他版块保持一致（白底深色文字） */
.front-page .nav {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

/* 4.3 首页滚动后实底导航（保留轻微增强） */
.front-page .nav.solid {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-s);
}
.front-page .nav.solid .logo b,
.front-page .nav.solid .logo small { color: var(--ink); }
.front-page .nav.solid .menu a { color: var(--ink); }
.front-page .nav.solid .menu a:hover { background: var(--mint); color: var(--teal-d); }
.front-page .nav.solid .menu a.on {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,180,198,0.35);
}
.front-page .nav.solid .nav-search {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--sh-s);
}
.front-page .nav.solid .nav-search svg,
.front-page .nav.solid .nav-search input { color: var(--ink); }
.front-page .nav.solid .nav-search input::placeholder { color: var(--ink-2); }
.front-page .nav.solid .nav-cta {
  background: var(--brand-deep);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,112,126,0.28);
}
.front-page .nav.solid .nav-mob-btn {
  background: var(--bg-2);
  border-color: var(--line);
  color: var(--ink);
}

/* 4.4 移动端汉堡按钮 */
.nav-mob-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: pointer;
  flex: none;
  transition: var(--ease);
}
.nav-mob-btn svg { width: 22px; height: 22px; }
.nav-mob-btn:hover { border-color: var(--teal); color: var(--teal-d); }

/* 4.5 移动端抽屉 */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.12);
  z-index: 1001;
  transition: right .3s ease;
  overflow-y: auto;
  padding: 60px 20px 30px;
}
.nav-drawer.open { right: 0; }
.nav-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 0;
  font-size: 20px;
  color: var(--ink-2);
  cursor: pointer;
}
.nav-drawer .menu {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer .menu a {
  padding: 12px 16px;
  font-size: 16px;
  text-align: left;
  min-width: 0;
  border-radius: 12px;
  color: var(--ink);
}
.nav-drawer .menu a:hover { background: var(--mint); color: var(--teal-d); }
.nav-drawer .menu a.on { background: var(--teal); color: #fff; box-shadow: none; }
.nav-drawer-search {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
}
.nav-drawer-search svg { width: 16px; height: 16px; color: var(--ink-2); }
.nav-drawer-search input {
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 14px; width: 100%; color: var(--ink);
}
.nav-drawer-cta {
  display: block;
  margin-top: 14px;
  text-align: center;
  background: var(--brand-deep);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
}
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,27,43,0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nav-drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ========== 5. Hero V2（沉浸式深底首屏） ========== */
.hero-v2 {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--night-deep);
}
.hero-v2-bg { position: absolute; inset: 0; z-index: 1; }
.hero-v2-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-v2-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11,27,43,0.62) 0%, rgba(11,27,43,0.78) 100%),
    linear-gradient(180deg, transparent 60%, rgba(11,27,43,0.9) 100%);
}
.hero-v2-content {
  position: relative;
  z-index: 3;
  width: min(1280px, 92%);
  margin: 0 auto;
  padding: 100px 0 80px;
}
.hero-v2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.hero-v2 h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 1px;
  margin: 20px 0 12px;
}
.hero-v2-dot {
  display: inline-block;
  color: var(--brand-cyan);
  margin: 0 6px;
}
.hero-v2-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--deep-text);
  max-width: 500px;
  line-height: 1.75;
}
.hero-v2-acts {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-v2-stats {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-v2-stat {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: var(--ease);
}
.hero-v2-stat:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}
.hero-v2-stat b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.hero-v2-stat span {
  font-size: 13px;
  color: var(--deep-sub);
}
.hero-v2-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: floaty 3s ease-in-out infinite;
  pointer-events: none;
}

/* ========== 6. 栏目宫格 V2 ========== */
.cat-v2-sec { padding: 56px 0 20px; }
.cat-v2-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.cat-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 14px 22px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-s);
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}
.cat-v2::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c);
  opacity: 0;
  transition: var(--ease);
}
.cat-v2:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh);
  border-color: var(--c);
}
.cat-v2:hover::before { opacity: 1; }
.cat-v2-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-l);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: var(--ease);
}
.cat-v2-ico svg {
  width: 26px;
  height: 26px;
  color: var(--c);
  transition: var(--ease);
}
.cat-v2:hover .cat-v2-ico {
  background: var(--c);
  transform: scale(1.1);
}
.cat-v2:hover .cat-v2-ico svg { color: #fff; }
.cat-v2-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.cat-v2-desc {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 4px;
}
.cat-v2-num {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--c);
  opacity: 0.06;
}

/* 栏目识别色（data-sec 属性驱动） */
.cat-v2[data-sec="culture"] { --c: #00B4C6; --c-l: #E1F5F8; }
.cat-v2[data-sec="travel"] { --c: #1F6FEB; --c-l: #E7EFFE; }
.cat-v2[data-sec="goods"] { --c: #FF9F1C; --c-l: #FFF4E2; }
.cat-v2[data-sec="invest"] { --c: #2B4C7E; --c-l: #E7EEF5; }
.cat-v2[data-sec="community"] { --c: #6C5CE7; --c-l: #EEEBFF; }
.cat-v2[data-sec="life"] { --c: #2FBF71; --c-l: #E1F5EE; }

/* ========== 7. 按钮系统 ========== */
/* 品牌渐变 CTA（仅限活动与社区专区） */
.btn-grad {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-grad);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,180,198,0.35);
  transition: var(--ease);
  cursor: pointer;
}
.btn-grad:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,180,198,0.45);
}

/* 深底幽灵按钮（仅限深色背景） */
.btn-ghost-l {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: var(--ease);
}
.btn-ghost-l:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* 主按钮覆盖（深青底白字） */
.btn-p {
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,112,126,0.32);
}
.btn-p:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,112,126,0.4);
}

/* ========== 8. 分区/卡片覆盖 ========== */
.blk-head h2 { color: var(--ink); }
.blk-head .en { color: var(--ink-2); }
.blk-head a.more:hover { color: var(--teal-d); }
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-hover);
}
.spot-card .sp-tag { background: rgba(255,255,255,0.92); }
.spot-card .sp-foot b { color: var(--teal-d); }
.good-card .g-tag { box-shadow: 0 4px 10px rgba(0,0,0,0.12); }

/* 河海带 youth 覆盖 */
.youth {
  background: linear-gradient(115deg, #E1F5F8 0%, #E7EFFE 52%, #FFF4E2 100%);
  box-shadow: var(--sh);
}
.youth .y-kicker { color: var(--party-purple); }
.youth h2 .y2 { color: var(--party-purple); }
.youth .y-stats b { color: var(--trust-blue); }
.youth .y-cta { color: var(--teal-d); box-shadow: var(--sh-s); }

/* 招商 invest 覆盖 */
.invest {
  background: var(--invest-blue);
  color: var(--deep-text);
}
.invest::before {
  background:
    radial-gradient(600px 200px at 85% 0%, rgba(0,180,198,0.3), transparent 60%),
    radial-gradient(500px 200px at 10% 100%, rgba(108,92,231,0.2), transparent 60%);
}
.invest p { color: var(--deep-sub); }
.invest .i-tag {
  background: rgba(0,180,198,0.18);
  border-color: rgba(0,180,198,0.35);
  color: #7FDBE6;
}
.invest .btn {
  background: var(--brand-cyan);
  color: var(--night-deep);
  font-weight: 700;
}

/* 招商横幅 inv-banner 覆盖 */
.inv-banner { background: var(--invest-blue); }
.inv-banner p { color: rgba(234,246,248,0.7); }

/* 页面头 page-hero 覆盖 */
.page-hero {
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky-l) 100%);
}

/* 赛事头 evt-hero 覆盖 */
.evt-hero {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-deep));
}

/* 404 渐变 */
.nf-box .nf-num {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* AI 入口覆盖 */
.hq-ai-entry {
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand-cyan) 55%, #5eead4 130%);
}

/* ========== 9. 页脚覆盖 ========== */
footer {
  background: var(--night-deep);
  color: var(--deep-sub);
}
footer .f-logo .mark { background: var(--brand-grad); }
footer .f-logo b { color: #fff; }
footer p.f-desc { color: var(--deep-sub); }
footer h4 { color: var(--deep-text); }
footer li a { color: var(--deep-sub); transition: color .2s; }
footer li a:hover { color: #fff; }
footer .f-bottom {
  border-top-color: rgba(255,255,255,0.08);
  color: var(--weak-gray);
}

/* ========== 10. 滚动渐入动画 ========== */
@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in {
  animation: reveal 0.5s var(--ease) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; animation: none; }
  .hero-v2-scroll { animation: none; }
  html { scroll-behavior: auto; }
}

/* ========== 11. 响应式 ========== */
@media (max-width: 1020px) {
  .menu { display: none; }
  .nav-search { display: none; }
  .nav-cta { display: none; }
  .nav-mob-btn { display: flex; }

  .cat-v2-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-v2 { min-height: 520px; }
  .hero-v2-content { padding: 80px 0 60px; }
  footer .f-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cat-v2-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-v2 { min-height: 480px; }
  .hero-v2-content { padding: 70px 0 50px; }
  .hero-v2-stat { min-width: 120px; padding: 14px 16px; }
  .hero-v2-stat b { font-size: 22px; }
  .hero-v2-scroll { display: none; }
  .cat-v2-sec { padding: 40px 0 16px; }
  .cat-v2 { padding: 22px 10px 18px; }
  .cat-v2-ico { width: 48px; height: 48px; }
  .cat-v2-ico svg { width: 22px; height: 22px; }
  footer .f-grid { grid-template-columns: 1fr; }
}
