/* ============================================================
   黄飞律师 · 河南九多律师事务所
   南阳工伤与劳动争议律师 个人网站样式
   主色：深蓝 #0f2c4d / 金色 #c8a35a
   ============================================================ */

:root {
  --navy: #0f2c4d;
  --navy-2: #14375e;
  --navy-3: #1b4470;
  --gold: #c8a35a;
  --gold-light: #e3c988;
  --gold-dark: #a5813a;
  --ink: #22303f;
  --ink-soft: #4a5a6a;
  --line: #e3e8ee;
  --bg: #f7f8fa;
  --white: #ffffff;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-2); text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部提示条 ---------- */
.top-notice {
  background: linear-gradient(90deg, #faf3e3, #f6ecd4);
  color: #7a5c1e;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
  border-bottom: 1px solid #ecd9ae;
}
.top-notice strong { color: #6b4f14; }

/* ---------- 页头导航 ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(15, 44, 77, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--gold);
  flex-shrink: 0;
}
.brand-text .brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 2px;
}
.brand-text .brand-sub {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 1px;
}

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--ink);
  border-radius: 4px;
  transition: all 0.2s;
}
.main-nav a:hover { color: var(--navy); background: #eef2f7; }
.main-nav a.active {
  color: var(--gold-dark);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--navy);
}

/* ---------- 首屏 Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(200, 163, 90, 0.16), transparent 55%),
    linear-gradient(135deg, #0c2340 0%, var(--navy) 45%, #1b4470 100%);
  color: #e9eef4;
  padding: 84px 0 92px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 320px; height: 320px;
  border: 1px solid rgba(200, 163, 90, 0.25);
  border-radius: 50%;
}
.hero::before {
  content: "";
  position: absolute;
  right: 20px; bottom: -140px;
  width: 320px; height: 320px;
  border: 1px solid rgba(200, 163, 90, 0.15);
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 3px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.3;
  letter-spacing: 2px;
  margin-bottom: 18px;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero p.hero-sub {
  font-size: 17px;
  max-width: 620px;
  color: #c3cedd;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: 1px;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
}
.btn-gold:hover { filter: brightness(1.08); }
.btn-outline {
  border-color: rgba(200, 163, 90, 0.7);
  color: var(--gold-light);
}
.btn-outline:hover { background: rgba(200, 163, 90, 0.12); }
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-3); }

/* ---------- 通用板块 ---------- */
.section { padding: 68px 0; }
.section.alt { background: var(--white); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow {
  color: var(--gold-dark);
  font-size: 13px;
  letter-spacing: 4px;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--navy);
  letter-spacing: 2px;
}
.section-head .rule {
  width: 56px; height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
}
.section-head p.desc {
  color: var(--ink-soft);
  margin-top: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px;
  transition: all 0.25s;
}
.card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(15, 44, 77, 0.1);
  transform: translateY(-3px);
}
.card .icon {
  width: 48px; height: 48px;
  background: #f2f6fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 10px;
}
.card p { font-size: 14px; color: var(--ink-soft); }
.card .more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

/* ---------- 数字条 ---------- */
.stats-band {
  background: var(--navy);
  color: #fff;
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-grid .num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold-light);
}
.stats-grid .label { font-size: 13px; color: #b9c5d4; margin-top: 4px; }

/* ---------- 业务列表页 ---------- */
.page-hero {
  background: linear-gradient(135deg, #0c2340, var(--navy-3));
  color: #fff;
  padding: 52px 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.page-hero p { color: #c3cedd; font-size: 15px; }

.crumbs {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 18px 0 0;
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--navy); }

.service-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 34px;
  margin-bottom: 30px;
}
.service-block h2 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  margin-bottom: 8px;
}
.service-block .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }
.service-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
}
.service-item h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-item h3::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.service-item p { font-size: 14px; color: var(--ink-soft); }
.service-item ul { margin-top: 10px; }
.service-item li {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 4px 0 4px 16px;
  position: relative;
}
.service-item li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--gold-dark);
}

/* ---------- 案例页 ---------- */
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 32px;
  margin-bottom: 26px;
}
.case-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 18px;
}
.case-card h3 .tag {
  font-family: var(--sans);
  font-size: 12px;
  background: #f2ecdd;
  color: var(--gold-dark);
  border: 1px solid #e3d2a8;
  padding: 2px 10px;
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: 3px;
  letter-spacing: 1px;
}
.case-card .case-meta {
  font-size: 12.5px;
  color: #8b98a6;
  margin: -10px 0 18px;
  letter-spacing: 0.5px;
}
.case-step { margin-bottom: 14px; }
.case-step:last-child { margin-bottom: 0; }
.case-step .step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.case-step p { font-size: 14.5px; color: var(--ink-soft); }

.notice-box {
  background: #faf6ec;
  border: 1px solid #e6d5ac;
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 13.5px;
  color: #7a5c1e;
  margin-bottom: 30px;
}

/* ---------- 文章列表 ---------- */
.article-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 26px;
  margin-bottom: 20px;
  transition: all 0.2s;
}
.article-card:hover { border-color: var(--gold); box-shadow: 0 8px 22px rgba(15,44,77,0.08); }
.article-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 10px 0;
  height: fit-content;
}
.article-date .d { font-size: 22px; font-family: var(--serif); color: var(--gold-light); line-height: 1.2; }
.article-date .m { font-size: 11px; color: #b9c5d4; }
.article-card h3 { font-size: 17px; margin-bottom: 8px; }
.article-card h3 a { color: var(--navy); }
.article-card h3 a:hover { color: var(--gold-dark); }
.article-card p { font-size: 14px; color: var(--ink-soft); }
.article-meta { font-size: 12px; color: #8a97a5; margin-top: 10px; }

/* ---------- 文章详情 ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: start; }
.article-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 38px 42px;
}
.article-body h1 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 14px;
}
.article-body .meta {
  font-size: 13px;
  color: #8a97a5;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin: 30px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}
.article-body h3 { font-size: 16.5px; color: var(--navy-2); margin: 20px 0 8px; }
.article-body p { font-size: 15.5px; color: var(--ink); margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px 20px; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { font-size: 15px; margin-bottom: 8px; color: var(--ink); }
.article-body .law-note {
  background: #f2f6fa;
  border-left: 3px solid var(--navy-3);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 16px 0;
  border-radius: 0 6px 6px 0;
}
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 22px;
  margin-bottom: 22px;
}
.sidebar-box h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.sidebar-box ul li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul a { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.sidebar-box ul a:hover { color: var(--gold-dark); }

/* ---------- 关于页 ---------- */
.about-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.about-portrait {
  background: linear-gradient(160deg, var(--navy), var(--navy-3));
  border-radius: 10px;
  padding: 30px 26px;
  color: #fff;
  text-align: center;
  position: sticky;
  top: 90px;
}
.portrait-circle {
  width: 110px; height: 110px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a5a92, var(--navy));
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 38px;
  color: var(--gold-light);
}
.about-portrait h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 4px; margin-bottom: 6px; }
.about-portrait .role { color: var(--gold-light); font-size: 13px; letter-spacing: 2px; margin-bottom: 18px; }
.about-portrait dl { text-align: left; font-size: 13px; }
.about-portrait dt { color: #9fb2c6; margin-top: 12px; }
.about-portrait dd { color: #e9eef4; }
.about-content h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin: 26px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}
.about-content h2:first-child { margin-top: 0; }
.about-content p { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; }
.timeline { border-left: 2px solid var(--line); margin: 10px 0 10px 6px; padding-left: 22px; }
.timeline .tl-item { position: relative; margin-bottom: 20px; }
.timeline .tl-item::before {
  content: "";
  position: absolute;
  left: -29px; top: 7px;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid #fff;
}
.timeline .tl-item h4 { font-size: 15.5px; color: var(--navy); }
.timeline .tl-item p { font-size: 14px; margin-bottom: 0; }

/* ---------- 联系页 ---------- */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: start; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 32px;
  margin-bottom: 24px;
}
.contact-card h2 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ico {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: #f2f6fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contact-line .k { font-size: 13px; color: #8a97a5; }
.contact-line .v { font-size: 16px; color: var(--navy); font-weight: 600; }
.contact-line .v.small { font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.qr-box { text-align: center; }
.qr-box img, .qr-box svg {
  width: 200px; height: 200px;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.qr-box p { font-size: 13px; color: var(--ink-soft); }
.consult-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.consult-list li:last-child { border-bottom: none; }
.consult-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--gold-dark);
  font-weight: 700;
}

/* ---------- CTA 横条 ---------- */
.cta-band {
  background:
    radial-gradient(ellipse at 15% 30%, rgba(200,163,90,0.15), transparent 50%),
    linear-gradient(120deg, var(--navy), #1b4470);
  color: #fff;
  padding: 54px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-family: var(--serif); font-size: 24px; letter-spacing: 2px; margin-bottom: 8px; }
.cta-inner p { color: #c3cedd; font-size: 14.5px; }
.cta-phone {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold-light);
  letter-spacing: 2px;
}

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1e35; color: #9fb2c6; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 {
  color: #e9eef4;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,163,90,0.35);
}
.footer-grid p, .footer-grid li { font-size: 13.5px; line-height: 2; }
.footer-grid a { color: #9fb2c6; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.compliance-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,163,90,0.3);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 30px;
}
.compliance-box h5 {
  color: var(--gold-light);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.compliance-box li {
  font-size: 12.5px;
  line-height: 1.9;
  padding-left: 16px;
  position: relative;
  color: #8fa1b5;
}
.compliance-box li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-size: 12px;
  text-align: center;
  color: #6f8299;
}
.footer-bottom .icp-line {
  margin: 8px 0 0;
}
.footer-bottom .icp-line a {
  color: #9db0c6;
  text-decoration: none;
  border-bottom: 1px dotted rgba(157,176,198,0.5);
}
.footer-bottom .icp-line a:hover {
  color: #c8a35a;
  border-bottom-color: #c8a35a;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-portrait { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(15,44,77,0.12);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 14px; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav li:last-child a { border-bottom: none; }

  .hero { padding: 54px 0 60px; }
  .hero h1 { font-size: 28px; }
  .hero p.hero-sub { font-size: 15px; }
  .section { padding: 46px 0; }
  .section-head h2 { font-size: 24px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .service-items { grid-template-columns: 1fr; }
  .article-card { flex-direction: column; }
  .article-date { flex-direction: row; width: fit-content; gap: 8px; padding: 6px 14px; align-items: center; }
  .article-body { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-inner { text-align: center; justify-content: center; }
  .case-card, .service-block { padding: 24px 18px; }
  .stats-band { padding: 28px 0; }
  .stats-grid .num { font-size: 24px; }
}
