/* ============================================================
   hz164.com 恢复版 — 郑奕律师团队网站
   设计：专业 · 严谨 · 法律感
   ============================================================ */

:root {
  --navy: #16294a;
  --navy-2: #1f3a66;
  --navy-3: #2a4a80;
  --gold: #b8934d;
  --gold-light: #d4b678;
  --ink: #2c3140;
  --muted: #6b7280;
  --line: #e5e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-navy: #0f1f3a;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(22, 41, 74, .08);
  --shadow-lg: 0 14px 40px rgba(22, 41, 74, .14);
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-3); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--bg-navy);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--gold-light); }
.topbar .notice { color: var(--gold-light); }

/* ---------- 导航 ---------- */
.header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(15,31,58,.25);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; }
.logo-img img { height: 44px; width: auto; display: block; flex-shrink: 0; }

.nav { display: flex; list-style: none; gap: 4px; }
.nav a {
  display: block; color: rgba(255,255,255,.88);
  padding: 8px 14px; font-size: 15px; border-radius: 6px;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav a.active { color: var(--gold-light); }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-size: 20px; width: 42px; height: 38px; border-radius: 6px; cursor: pointer;
}

/* ---------- 首页 Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(42,74,128,.55), transparent 60%),
    radial-gradient(800px 420px at 0% 110%, rgba(184,147,77,.22), transparent 55%),
    linear-gradient(150deg, var(--bg-navy) 0%, var(--navy) 55%, var(--navy-2) 100%);
  color: #fff; padding: 84px 0 72px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; border: 1px solid rgba(212,182,120,.5); color: var(--gold-light);
  padding: 4px 14px; border-radius: 999px; font-size: 13px; letter-spacing: 3px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; line-height: 1.35; letter-spacing: 1px; margin-bottom: 18px; }
.hero h1 .gold { color: var(--gold-light); }
.hero p.lead { font-size: clamp(15px, 1.6vw, 17.5px); color: rgba(255,255,255,.82); max-width: 720px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px; font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), #a67c33); color: #fff; box-shadow: 0 6px 18px rgba(184,147,77,.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(184,147,77,.45); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

.hero-stats { display: flex; gap: 0; margin-top: 52px; flex-wrap: wrap; }
.hero-stats .stat { padding: 0 34px; border-left: 1px solid rgba(255,255,255,.15); }
.hero-stats .stat:first-child { padding-left: 0; border-left: none; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: var(--gold-light); }
.hero-stats .lbl { font-size: 13px; color: rgba(255,255,255,.65); letter-spacing: 1px; }

/* ---------- 区块通用 ---------- */
.section { padding: 70px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .tag {
  display: inline-block; color: var(--gold); font-size: 13px; letter-spacing: 4px;
  font-weight: 600; margin-bottom: 10px; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(24px, 3vw, 32px); color: var(--navy); font-weight: 800; letter-spacing: 1px; }
.section-head p.sub { color: var(--muted); margin-top: 10px; font-size: 15px; }
.section-head .line { width: 56px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; }

/* ---------- 首页：关于摘要 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-text h3 { color: var(--navy); font-size: 22px; margin-bottom: 16px; }
.about-text p { color: var(--muted); margin-bottom: 14px; text-align: justify; }
.about-text .more { color: var(--gold); font-weight: 600; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.about-card .ic { font-size: 26px; margin-bottom: 10px; }
.about-card h4 { color: var(--navy); font-size: 15.5px; margin-bottom: 6px; }
.about-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ---------- 首页：业务领域 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.biz-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow); transition: all .25s; position: relative; overflow: hidden;
}
.biz-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); opacity: 0; transition: opacity .25s; }
.biz-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.biz-card:hover::before { opacity: 1; }
.biz-card .ic { font-size: 30px; margin-bottom: 14px; }
.biz-card h3 { color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.biz-card p { color: var(--muted); font-size: 13.8px; line-height: 1.7; margin-bottom: 14px; }
.biz-card .count { font-size: 13px; color: var(--gold); font-weight: 600; }

/* ---------- 首页：普法专栏 ---------- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.news-item {
  display: flex; gap: 14px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); transition: all .2s;
}
.news-item:hover { transform: translateX(4px); border-color: var(--gold); box-shadow: var(--shadow-lg); }
.news-item .date { color: var(--gold); font-size: 13px; font-weight: 700; white-space: nowrap; padding-top: 2px; }
.news-item .t { color: var(--ink); font-weight: 600; line-height: 1.55; }
.news-item:hover .t { color: var(--gold); }

/* ---------- 首页：公告 ---------- */
.notice-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: var(--radius); padding: 34px 40px;
  display: flex; align-items: center; gap: 26px; box-shadow: var(--shadow-lg);
}
.notice-band .ic { font-size: 40px; flex-shrink: 0; }
.notice-band p { font-size: 16.5px; letter-spacing: .5px; line-height: 1.8; }
.notice-band .tag-flag { color: var(--gold-light); font-weight: 700; }

/* ---------- 首页：联系方式 CTA ---------- */
.cta {
  background: var(--bg-navy);
  background-image: radial-gradient(700px 300px at 90% 0%, rgba(42,74,128,.5), transparent 60%);
  color: #fff; text-align: center; padding: 64px 0;
}
.cta h2 { font-size: 26px; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.75); margin-bottom: 26px; }
.cta .phones { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 10px; }
.cta .phones .item { text-align: center; }
.cta .phones .v { font-size: 22px; font-weight: 800; color: var(--gold-light); }

/* ---------- 页脚 ---------- */
.footer { background: #0c1930; color: rgba(255,255,255,.65); padding: 46px 0 26px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; letter-spacing: 1px; }
.footer p { line-height: 1.9; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,.65); }
.footer ul a:hover { color: var(--gold-light); }
.footer .copy { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,.45); }

/* ---------- 内页横幅 ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--bg-navy), var(--navy-2));
  color: #fff; padding: 54px 0 44px;
}
.page-hero h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: 1px; }
.page-hero .crumb { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 8px; }
.page-hero .crumb a { color: rgba(255,255,255,.75); }
.page-hero .crumb a:hover { color: var(--gold-light); }

/* ---------- 面包屑路径 ---------- */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13.5px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 8px; color: #c3c9d4; }
.breadcrumb .cur { color: var(--navy); font-weight: 600; }

/* ---------- 关于页 ---------- */
.profile-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px; margin-bottom: 26px;
}
.profile-card h2 { color: var(--navy); font-size: 22px; margin-bottom: 8px; }
.profile-card .role { color: var(--gold); font-weight: 600; margin-bottom: 20px; }
.profile-card p { color: var(--ink); margin-bottom: 14px; text-align: justify; }
.profile-card .hl { background: var(--bg-soft); border-left: 3px solid var(--gold); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 18px 0; color: var(--muted); }

/* ---------- 律师风采 ---------- */
.lawyer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lawyer-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px; display: flex; gap: 22px; transition: all .25s;
}
.lawyer-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.lawyer-avatar {
  width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  color: #fff; font-size: 34px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.25);
}
.lawyer-card h3 { color: var(--navy); font-size: 19px; }
.lawyer-card .pos { color: var(--gold); font-size: 13.5px; margin: 3px 0 12px; }
.lawyer-card p { color: var(--muted); font-size: 14px; line-height: 1.8; text-align: justify; }
.lawyer-card .phone { margin-top: 12px; font-size: 13.5px; color: var(--navy); font-weight: 600; }

/* ---------- 案例列表 ---------- */
.case-list { list-style: none; }
.case-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 14px; box-shadow: var(--shadow);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  transition: all .2s;
}
.case-list li:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); }
.case-list .title { color: var(--ink); font-weight: 600; line-height: 1.6; }
.case-list li:hover .title { color: var(--gold); }
.case-list .meta { text-align: right; flex-shrink: 0; }
.case-list .meta .date { color: var(--gold); font-size: 13.5px; font-weight: 700; }
.case-list .meta .author { color: var(--muted); font-size: 12.5px; }

/* ---------- 文章详情 ---------- */
.article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 46px 50px; max-width: 900px; margin: 0 auto;
}
.article h1 { color: var(--navy); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.5; margin-bottom: 14px; }
.article .meta { color: var(--muted); font-size: 13.5px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.article .meta .sep { margin: 0 10px; }
.article h2 { color: var(--navy); font-size: 20px; margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--gold); }
.article h3 { color: var(--navy); font-size: 17px; margin: 22px 0 10px; }
.article p { margin-bottom: 14px; text-align: justify; }
.article strong { color: var(--navy); }
.article .abstract {
  background: var(--bg-soft); border-radius: 8px; padding: 16px 20px;
  font-size: 14.5px; color: var(--muted); margin-bottom: 22px;
}
.article .sign { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--navy); font-weight: 600; }
.article .refs { font-size: 13.5px; color: var(--muted); }
.article .refs li { margin-bottom: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; margin-bottom: 18px; }

/* ---------- 业务领域页 ---------- */
.domain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 38px; margin-bottom: 26px;
}
.domain .d-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.domain .d-ic { font-size: 26px; }
.domain h2 { color: var(--navy); font-size: 21px; }
.domain .d-desc { color: var(--muted); font-size: 14px; margin: 6px 0 18px; }
.domain table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.domain th, .domain td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.domain th { background: var(--bg-soft); color: var(--navy); font-weight: 600; white-space: nowrap; }
.domain td { color: var(--ink); }
.domain tr:hover td { background: #fafbfd; }
.domain .pending { color: var(--muted); font-size: 13px; font-style: italic; }

/* ---------- 公告页 ---------- */
.notice-list { list-style: none; max-width: 900px; margin: 0 auto; }
.notice-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 36px; margin-bottom: 22px;
}
.notice-list .n-date { color: var(--gold); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.notice-list h3 { color: var(--navy); font-size: 19px; margin-bottom: 14px; }
.notice-list .n-body { color: var(--ink); }
.notice-list .n-body p { margin-bottom: 10px; }
.notice-list .n-body .quote {
  border-left: 3px solid var(--gold); background: var(--bg-soft);
  padding: 12px 16px; border-radius: 0 8px 8px 0; color: var(--muted); margin: 10px 0;
}

/* ---------- 联系我们页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px;
}
.contact-card h2 { color: var(--navy); font-size: 20px; margin-bottom: 22px; }
.contact-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ic { font-size: 22px; flex-shrink: 0; }
.contact-row .k { color: var(--muted); font-size: 13.5px; margin-bottom: 2px; }
.contact-row .v { color: var(--ink); font-weight: 600; font-size: 16px; }
.contact-row .v a { color: var(--navy-3); }
.contact-row .v a:hover { color: var(--gold); }
.contact-row .hint { color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 2px; }
.contact-tip {
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff;
  border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow-lg);
}
.contact-tip h3 { color: var(--gold-light); margin-bottom: 12px; font-size: 17px; }
.contact-tip p { color: rgba(255,255,255,.82); font-size: 14.5px; margin-bottom: 10px; line-height: 1.9; }

/* ---------- 侧栏/成功案例 ---------- */
.aside {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.aside h3 { color: var(--navy); font-size: 16.5px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }
.aside ul { list-style: none; }
.aside ul li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.aside ul li:last-child { border-bottom: none; }
.aside ul a { color: var(--ink); }
.aside ul a:hover { color: var(--gold); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article { padding: 34px 28px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: 12px 20px 20px;
    box-shadow: 0 20px 30px rgba(15,31,58,.35);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .biz-grid, .news-grid, .lawyer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero-stats .stat { padding: 0 18px; }
  .hero-stats .num { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .case-list li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .case-list .meta { text-align: left; }
  .notice-band { flex-direction: column; text-align: center; padding: 28px 22px; }
  .domain { padding: 26px 20px; }
  .domain table { font-size: 13.5px; }
  .domain th, .domain td { padding: 9px 8px; }
  .cta .phones { gap: 22px; }
  .tools-hero { flex-direction: column; text-align: center; padding: 34px 24px; gap: 30px; }
  .tools-hero p { max-width: none; }
  .tools-actions { justify-content: center; }
  .logo-img img { height: 38px; }
}

/* ---------- 动效 ---------- */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: none; }

/* ---------- 诉讼工具页 ---------- */
.tools-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: var(--radius);
  padding: 48px 50px; display: flex; align-items: center; gap: 44px;
  box-shadow: var(--shadow-lg); margin-bottom: 50px;
  position: relative; overflow: hidden;
}
.tools-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.tools-hero > * { position: relative; z-index: 1; }
.tools-hero-content { flex: 1; }
.tools-badge {
  display: inline-block; background: rgba(212,182,120,.18);
  border: 1px solid rgba(212,182,120,.5); color: var(--gold-light);
  font-size: 12px; letter-spacing: 2px; padding: 4px 14px;
  border-radius: 999px; margin-bottom: 18px;
}
.tools-hero h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 14px; }
.tools-hero p { color: rgba(255,255,255,.82); font-size: 15.5px; margin-bottom: 26px; line-height: 1.85; max-width: 520px; }
.tools-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tools-search { color: rgba(255,255,255,.6); font-size: 13.5px; }

.tools-qr { flex-shrink: 0; }
.qr-real {
  width: 220px; background: #fff; border-radius: 14px;
  padding: 14px 14px 12px; text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.qr-real img {
  width: 100%; height: 192px; object-fit: contain; display: block;
  border-radius: 6px;
}
.qr-real p { color: var(--navy); font-size: 13.5px; font-weight: 700; margin: 10px 0 2px; }
.qr-real small { color: var(--muted); font-size: 11.5px; }
.qr-placeholder {
  width: 168px; height: 168px; background: #fff; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.qr-icon { font-size: 52px; }
.qr-placeholder p { color: var(--navy); font-size: 13px; font-weight: 700; margin: 0; }
.qr-placeholder small { color: var(--muted); font-size: 11px; }
