:root {
  --brand: #3B6BFF;
  --brand-2: #7C5CFF;
  --brand-grad: linear-gradient(135deg, #3B6BFF 0%, #7C5CFF 100%);
  --gold: #D4AF37;
  --gold-light: #F3E5AB;
  --dark: #050914;
  --dark-2: #0B1226;
  --dark-3: #111B33;
  --ink: #E8ECF5;
  --muted: #8A95B2;
  --line: rgba(255,255,255,.10);
  --glass: rgba(255,255,255,.07);
  --glass-border: rgba(255,255,255,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --shadow-lg: 0 30px 90px rgba(0,0,0,.45);
  --radius: 20px;
  --tr: all .35s cubic-bezier(.25, .8, .25, 1);
}

body {
  background: var(--dark);
  color: var(--ink);
}

/* ===== 导航：深色沉浸式 ===== */
.topbar {
  background: rgba(5,9,20,.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--glass-border);
}
.nav {
  background: rgba(5,9,20,.78);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.nav.scrolled {
  background: rgba(5,9,20,.94);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.menu-link {
  color: rgba(255,255,255,.78);
  font-weight: 500;
}
.menu-link:hover,
.menu-link.active {
  color: var(--gold-light);
  background: var(--glass);
}
.menu-link::after {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.nav-cta {
  background: linear-gradient(135deg, var(--gold), #B8962E);
  color: #050914 !important;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(212,175,55,.28);
}
.nav-cta:hover {
  box-shadow: 0 12px 32px rgba(212,175,55,.42);
}
.brand-logo { height: 54px; filter: brightness(1.05); }
.brand-logo-light { filter: brightness(1.15); }

/* ===== Hero：智规律同款深紫蓝底 + 左标题右副题 ===== */
.hero {
  background:
    radial-gradient(1100px 520px at 50% -12%, rgba(96,84,224,.38), transparent 62%),
    radial-gradient(900px 520px at 88% 112%, rgba(43,90,246,.24), transparent 55%),
    linear-gradient(180deg, #0B1030 0%, #05070F 100%);
  padding: 76px 0 64px;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.16;
  margin: 0 0 26px;
}
.hero-eyebrow {
  color: var(--gold-light);
  letter-spacing: 4px;
  font-size: 14px;
  margin-bottom: 18px;
  text-transform: none;
}
.hero p:not(.hero-eyebrow) {
  color: rgba(255,255,255,.72);
  font-size: 18px;
  max-width: 680px;
}
/* 左右分栏：左侧大标题，右侧律所简介 */
.hero-inner.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}
.hero-split .hero-content { flex: 1 1 60%; }
.hero-split .hero-aside {
  flex: 0 0 380px;
  border-left: 2px solid rgba(212,175,55,.45);
  padding-left: 30px;
}
.hero-aside .hero-sub {
  font-size: 18px;
  line-height: 2;
  color: rgba(255,255,255,.75);
  max-width: none;
  margin: 0;
}
@media (max-width: 900px) {
  .hero-inner.hero-split { flex-direction: column; align-items: flex-start; gap: 26px; }
  .hero-split .hero-aside { flex: none; border-left: none; border-top: 2px solid rgba(212,175,55,.45); padding: 20px 0 0; }
}
.hero-frame { border-color: rgba(212,175,55,.18); inset: 22px; }
.hero-deco { opacity: .5; }

/* ===== 浅色内容块文字强制深色（修复文字与底色无反差） ===== */
/* 说明：airegular 将全局 --ink 改为浅色用于深色板块，但以下浅色卡片/面板
   仍引用 --ink/--muted，需显式改为深色以保证可读性。 */
.about-right, .about-right h3, .about-philosophy p, .about-intro,
.promise-card, .promise-card h3, .promise-card p,
.honor-list li, .honor-list li span,
.detail-head h2, .detail-head p, .detail-content p, .detail-subhead,
.detail-points li, .group-card, .group-card h3, .group-card p,
.aside-card, .aside-card h4, .aside-card p, .aside-data span,
.case-card h3, .case-summary, .case-date,
.lawyer-card, .lawyer-intro, .lawyer-meta,
.contact-form-card, .contact-form-card label,
.sv-desc, .sv-points li, .article-body, .article-meta,
.news-body p, .area-card p, .team-card .team-years,
.news-filter a { color: #2C3358; }
.about-right .about-philosophy p,
.promise-card p, .group-card p, .case-summary, .detail-head p,
.lawyer-meta, .case-date, .article-meta, .contact-item p,
.team-card .team-years, .news-body p, .area-card p { color: #4A5160; }
/* 浅色块里的标题用主品牌色增强对比 */
.group-card h3, .promise-card h3, .detail-subhead, .case-card h3 { color: #1B2350; }

/* ===== 整体板块紧凑上移 ===== */
.section { padding: 72px 0 64px; }
.section-head {
  margin: 0 auto 42px;
}
.section-head h2 {
  font-size: 32px;
  letter-spacing: 1px;
  font-weight: 700;
}
.section-head h2::before {
  font-size: 11px;
  margin-bottom: 10px;
  letter-spacing: 8px;
}
.section-head h2::after {
  width: 48px;
  height: 3px;
  margin-top: 14px;
}
.section-sub {
  color: var(--muted);
  margin-top: 10px;
  font-size: 15px;
}
.section-more { margin-top: 36px; }

/* ===== 深蓝/深色板块统一 ===== */
.section-blue,
.section-dark {
  background: var(--dark-2);
}
.section-blue .section-head h2,
.section-dark .section-head h2,
.section-blue h3,
.section-dark h3 {
  color: #fff;
}
.section-blue .section-sub,
.section-dark .section-sub {
  color: var(--muted);
}

/* ===== 玻璃卡片 ===== */
.area-card, .why-card, .team-card, .case-card, .news-card, .news-row, .area-row, .promise-card, .lawyer-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: var(--tr);
}
.area-card:hover, .why-card:hover, .team-card:hover, .case-card:hover, .news-card:hover, .news-row:hover, .area-row:hover, .promise-card:hover, .lawyer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,175,55,.25);
}
.area-card h3, .why-card h3, .team-card h3, .case-card h3, .news-card h3 {
  color: #fff;
}
.area-card p, .why-card p, .team-card p, .case-card p, .news-card p, .news-row p {
  color: rgba(255,255,255,.72);
}
.area-card .area-icon, .why-card .why-icon {
  background: rgba(212,175,55,.12);
  color: var(--gold-light);
}

/* ===== 按钮升级 ===== */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #B8962E);
  color: #050914;
  font-weight: 700;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #E4C76B, var(--gold));
  color: #050914;
  transform: translateY(-2px);
}
.btn-outline {
  border-color: rgba(255,255,255,.35);
  color: rgba(255,255,255,.9);
}
.btn-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #050914;
}

/* ===== CTA / 咨询 ===== */
.cta {
  background: linear-gradient(135deg, #0B1226 0%, #111B33 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.72); }

/* ===== 页脚深色 ===== */
.footer {
  background: #02040A;
  border-top: 1px solid var(--glass-border);
}
.footer, .footer a, .footer p { color: rgba(255,255,255,.68); }
.footer h4, .footer .brand-text strong { color: var(--gold-light); }
.footer a:hover { color: #fff; }

/* ===== 联系我们 / 表单 ===== */
.contact-info, .contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}
.contact-info h2, .contact-form h2 { color: #fff; }
.contact-info p { color: rgba(255,255,255,.72); }
.contact-form input, .contact-form textarea, .contact-form select {
  background: rgba(0,0,0,.18);
  border-color: var(--glass-border);
  color: #fff;
}
.contact-form input::placeholder { color: rgba(255,255,255,.4); }

/* ===== 联系浮窗 ===== */
.contact-rail { z-index: 950; }
.cr-tab { background: var(--dark-3); border-color: var(--glass-border); color: #fff; }
.cr-tab:hover { background: var(--gold); color: #050914; }
.cr-panel { background: var(--dark-3); border-color: var(--glass-border); }

/* ===== 面包屑 / 页面横幅 ===== */
.banner {
  background: linear-gradient(135deg, #0B1226 0%, #050914 100%);
}
.banner h1 { color: #fff; }

/* ===== 团队页头像 ===== */
.lawyer-avatar {
  background: rgba(212,175,55,.12);
  border: 2px solid rgba(212,175,55,.25);
}

/* ===== 内容页 ===== */
.menu-page-hero {
  background: linear-gradient(135deg, #0B1226, #050914);
}
.menu-page-hero h1 { color: #fff; }
.menu-page-body {
  background: var(--dark-2);
  color: var(--ink);
}

/* ===== 响应式微调 ===== */
@media (max-width: 768px) {
  .hero { padding: 64px 0 50px; }
  .section { padding: 54px 0 46px; }
  .section-head { margin-bottom: 32px; }
  .brand-logo { height: 46px; }
}

/* ===== 新版页脚（二维码 + 联系信息 + 版权） ===== */
.footer-main { display: flex; gap: 56px; align-items: center; padding: 52px 0 42px; }
.footer-qr { flex: 0 0 auto; text-align: center; }
.footer-qr img { width: 148px; height: 148px; border-radius: 10px; background: #fff; padding: 6px; }
.footer-qr span { display: block; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-lines { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.footer-lines li { color: rgba(255,255,255,.8); font-size: 15px; }
.footer-copy { border-top: 1px solid var(--glass-border); padding-top: 16px; color: rgba(255,255,255,.6); font-size: 14px; }
.footer-links { margin-top: 10px; display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,.75); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
@media (max-width: 700px) { .footer-main { flex-direction: column; align-items: flex-start; gap: 28px; } }

/* ===== 右侧联系条（回顶/微信/电话/手机/抖音/QQ） ===== */
.rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 940; display: flex; flex-direction: column;
  border-radius: 12px 0 0 12px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.rail-item {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; border: none; cursor: pointer; text-decoration: none; padding: 0;
}
.rail-item:hover { filter: brightness(1.15); }
.rail-logo { background: linear-gradient(135deg,#D4AF37,#B8962E); padding: 7px; }
.rail-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #0B1226; }
.rail-wechat { background: #07C160; }
.rail-tel { background: #3B82F6; }
.rail-mobile { background: #6366F1; }
.rail-qq { background: #12B7F5; }
.rail-douyin { background: linear-gradient(135deg,#25F4EE,#000000 40%,#FE2C55); }
.rail-pop {
  position: fixed; right: 66px; top: 50%; transform: translateY(-50%);
  z-index: 945; width: 224px; background: #0B1226;
  border: 1px solid var(--glass-border); border-radius: 14px;
  padding: 20px 16px 16px; display: none; text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.rail-pop.open { display: block; }
.rail-pop img { width: 158px; height: 158px; border-radius: 8px; background: #fff; padding: 6px; }
.rp-title { color: var(--gold-light); font-weight: 700; margin-bottom: 10px; }
.rp-note { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.7; margin-top: 10px; }
.rp-btn { display: inline-block; margin-top: 10px; background: var(--gold); color: #050914; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; text-decoration: none; }
.rail-pop-close { position: absolute; top: 6px; right: 10px; background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; font-size: 14px; }
@media (max-width: 768px) { .rail { display: none; } .rail-pop { right: 12px; } }

/* ===== 子悦党建 标签页 ===== */
.dj-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.dj-tab {
  padding: 9px 22px; border-radius: 24px; text-decoration: none;
  border: 1px solid var(--glass-border); color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.03); font-size: 15px;
}
.dj-tab:hover { color: #fff; border-color: var(--gold); }
.dj-tab.on { background: linear-gradient(135deg, var(--gold), #B8962E); color: #050914; font-weight: 700; border-color: transparent; }
