/* ===== 永毅法律 yongyifalv.ltd — 现代风格 ===== */
/* 设计基调：浅色 / 大圆角卡片 / 柔和渐变 / 悬浮层次 / 细腻留白 / 微动效 */
:root {
  --primary: #2b4d8c;        /* 现代藏蓝 */
  --primary-deep: #1c3563;
  --primary-soft: #eef3fb;   /* 主色极浅底 */
  --accent: #d9a441;         /* 金色点缀 */
  --text: #1f2733;
  --text-muted: #6c7686;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --border: #e6eaf2;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(30,45,89,.06);
  --shadow: 0 10px 34px rgba(30,45,89,.10);
  --shadow-lg: 0 22px 50px rgba(30,45,89,.16);
  --grad: linear-gradient(135deg, #2b4d8c 0%, #3d6bb5 55%, #5b8ad0 100%);
  --grad-soft: linear-gradient(135deg, #f6f8fc 0%, #eff4fb 100%);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body {
  font-family: "PingFang SC","HarmonyOS Sans SC","Microsoft YaHei","Helvetica Neue",-apple-system,sans-serif;
  color:var(--text); line-height:1.75; background:var(--bg); overflow-x:hidden;
}
.container { max-width:1160px; margin:0 auto; padding:0 26px; }
a { text-decoration:none; color:inherit; transition:color .2s; }
img { max-width:100%; }

/* ===== 顶部导航 ===== */
.site-header {
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.nav-wrap { display:flex; align-items:center; justify-content:space-between; height:72px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand-mark {
  font-size:24px; font-weight:800; letter-spacing:1px; color:var(--primary);
  background:linear-gradient(120deg,var(--primary),var(--accent));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.brand-badge {
  font-size:11px; color:var(--accent); border:1.5px solid var(--accent);
  border-radius:20px; padding:2px 8px; letter-spacing:.5px; font-weight:600;
}
.nav { display:flex; align-items:center; gap:6px; }
.nav a {
  font-size:15px; color:var(--text-muted); padding:8px 16px; border-radius:30px;
  font-weight:500; transition:all .2s;
}
.nav a:hover { color:var(--primary); background:var(--primary-soft); }
.nav a.active { color:var(--primary); font-weight:600; background:var(--primary-soft); }
.nav .btn { margin-left:8px; padding:9px 22px; }
.nav-toggle { display:none; background:none; border:none; font-size:26px; cursor:pointer; color:var(--primary); }

/* ===== 按钮 ===== */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 30px; border-radius:50px; font-size:15px; font-weight:700;
  cursor:pointer; transition:all .25s; border:1.5px solid transparent; text-align:center; white-space:nowrap;
}
.btn-primary {
  background:var(--grad); color:#fff; border:none;
  box-shadow:0 10px 24px rgba(43,77,140,.30);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 16px 32px rgba(43,77,140,.38); }
.btn-soft {
  background:var(--primary-soft); color:var(--primary); border:none;
}
.btn-soft:hover { background:#e3ebf9; transform:translateY(-2px); }
.btn-light { background:#fff; color:var(--primary); border:none; box-shadow:0 10px 24px rgba(0,0,0,.12); }
.btn-light:hover { transform:translateY(-2px); box-shadow:0 16px 32px rgba(0,0,0,.18); }
.btn-ghost { border-color:rgba(255,255,255,.6); color:#fff; background:transparent; }
.btn-ghost:hover { background:rgba(255,255,255,.14); }
.btn-outline { border-color:var(--primary); color:var(--primary); background:transparent; }
.btn-outline:hover { background:var(--primary); color:#fff; }
.btn-sm { padding:8px 18px; font-size:13px; }
.center { text-align:center; margin-top:38px; }

/* ===== Hero 首屏 ===== */
.hero {
  background:var(--grad);
  color:#fff; text-align:center;
  padding:110px 24px 130px;
  position:relative; overflow:hidden;
}
/* 光晕装饰 */
.hero::before, .hero::after {
  content:""; position:absolute; border-radius:50%; filter:blur(80px); opacity:.5; pointer-events:none;
}
.hero::before { width:420px; height:420px; background:#7aa7e8; top:-160px; left:-120px; }
.hero::after { width:380px; height:380px; background:#16325f; bottom:-160px; right:-100px; }
.hero-inner { position:relative; z-index:2; }
.hero .eyebrow {
  display:inline-block; font-size:13px; letter-spacing:3px; color:rgba(255,255,255,.85);
  border:1px solid rgba(255,255,255,.35); padding:6px 18px; border-radius:30px; margin-bottom:26px;
  background:rgba(255,255,255,.08);
}
.hero h1 {
  font-size:54px; font-weight:800; line-height:1.25; letter-spacing:1px;
  color:#fff; text-shadow:0 4px 30px rgba(0,0,0,.15); margin-bottom:22px;
}
.hero h1 .grad-accent {
  background:linear-gradient(120deg,#ffd98f,#fff3d6);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.hero-lead { font-size:19px; color:rgba(255,255,255,.92); margin-bottom:40px; line-height:1.9; }
.hero-actions { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ===== Section ===== */
.section { padding:88px 0; }
.section-tint { background:var(--bg-soft); position:relative; overflow:hidden; }
.section-title {
  font-size:36px; font-weight:800; text-align:center; color:var(--text);
  margin-bottom:14px; letter-spacing:.5px;
}
.section-title .hl {
  background:linear-gradient(120deg,var(--primary),var(--accent));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.section-sub { text-align:center; color:var(--text-muted); margin-bottom:52px; font-size:16px; }

/* ===== 卡片 ===== */
.card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:26px; }
.card {
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:34px 28px; transition:all .3s cubic-bezier(.22,.61,.36,1);
  position:relative; overflow:hidden;
}
.card::before {
  content:""; position:absolute; top:0; left:0; right:0; height:4px;
  background:var(--grad); opacity:0; transition:opacity .3s; border-radius:4px 4px 0 0;
}
.card:hover { transform:translateY(-6px); box-shadow:var(--shadow); border-color:transparent; }
.card:hover::before { opacity:1; }
.card-icon {
  width:58px; height:58px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  background:var(--grad-soft); font-size:28px; margin-bottom:18px; box-shadow:var(--shadow-sm);
}
.card h3 { font-size:20px; font-weight:700; color:var(--text); margin-bottom:10px; }
.card p { color:var(--text-muted); font-size:14.5px; line-height:1.8; }

/* ===== 特色/为什么 ===== */
.feature-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:26px; }
.feature {
  text-align:center; padding:38px 28px; background:#fff; border-radius:var(--radius-lg);
  border:1px solid var(--border); transition:all .3s;
}
.feature:hover { transform:translateY(-5px); box-shadow:var(--shadow); }
.feature-icon {
  width:70px; height:70px; border-radius:24px; margin:0 auto 18px;
  display:flex; align-items:center; justify-content:center; font-size:34px;
  background:var(--grad-soft); box-shadow:var(--shadow-sm);
}
.feature h3 { font-size:20px; font-weight:700; color:var(--text); margin-bottom:10px; }
.feature p { color:var(--text-muted); font-size:14.5px; line-height:1.8; }

/* ===== 页首条 ===== */
.page-hero {
  background:var(--grad); color:#fff; padding:78px 24px 90px; text-align:center; position:relative; overflow:hidden;
}
.page-hero::before { content:""; position:absolute; width:320px; height:320px; border-radius:50%; background:#6f9de0; filter:blur(80px); opacity:.4; top:-100px; right:-80px; }
.page-hero h1 { font-size:40px; font-weight:800; position:relative; z-index:2; letter-spacing:1px; }
.page-hero p { color:rgba(255,255,255,.9); font-size:17px; position:relative; z-index:2; margin-top:10px; }

.tag {
  display:inline-block; background:#fff; border:1px solid var(--border); color:var(--primary);
  border-radius:30px; padding:8px 20px; margin:6px; font-size:14px; font-weight:500;
  transition:all .2s; box-shadow:var(--shadow-sm);
}
.tag:hover { border-color:var(--primary); transform:translateY(-2px); }

.section-narrow { max-width:760px; }
.lead-block { font-size:16.5px; color:var(--text); margin-bottom:24px; line-height:1.9; }
.biz-item { border-left:4px solid var(--accent); padding:8px 0 8px 18px; margin-bottom:8px; }

/* ===== 联系我们 ===== */
.contact-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:24px; }
.contact-card {
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:32px 20px; text-align:center; transition:all .3s;
}
.contact-card:hover { transform:translateY(-5px); box-shadow:var(--shadow); }
.contact-card .ic {
  width:60px; height:60px; border-radius:18px; margin:0 auto 16px;
  display:flex; align-items:center; justify-content:center; font-size:28px; background:var(--grad-soft);
}
.contact-card h4 { color:var(--text); font-size:17px; font-weight:700; margin-bottom:8px; }
.contact-card .val { font-size:20px; font-weight:800; color:var(--primary); word-break:break-all; }
.contact-card .val.small { font-size:15px; font-weight:600; color:var(--text); }

/* ===== 底部 ===== */
.site-footer {
  background:var(--primary-deep); color:rgba(255,255,255,.82);
  padding:60px 0 0; margin-top:24px; position:relative; overflow:hidden;
}
.site-footer::before { content:""; position:absolute; width:300px; height:300px; border-radius:50%; background:#2b4d8c; filter:blur(70px); opacity:.4; bottom:-100px; left:-80px; }
.footer-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:36px; padding-bottom:40px; position:relative; }
.site-footer h4 { color:#fff; font-size:17px; font-weight:700; margin-bottom:16px; }
.site-footer a { display:block; margin-bottom:10px; color:rgba(255,255,255,.72); }
.site-footer a:hover { color:#fff; transform:translateX(3px); }
.site-footer p { margin-bottom:8px; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.14); padding:20px 0; text-align:center;
  font-size:13px; color:rgba(255,255,255,.55); position:relative;
}

/* ===== 响应式 ===== */
@media (max-width:768px){
  .hero { padding:70px 20px 90px; }
  .hero h1 { font-size:32px; }
  .hero-lead { font-size:16px; }
  .section { padding:58px 0; }
  .section-title { font-size:28px; }
  .nav-toggle { display:block; }
  .nav {
    display:none; position:absolute; top:72px; left:0; right:0; flex-direction:column;
    background:#fff; border-bottom:1px solid var(--border); padding:18px 24px; gap:6px;
    box-shadow:var(--shadow); border-radius:0 0 var(--radius) var(--radius);
  }
  .nav.open { display:flex; }
  .nav a { width:100%; text-align:center; padding:12px; font-size:16px; }
  .nav .btn { margin:8px 0 0; width:100%; }
  .page-hero h1 { font-size:30px; }
}
