/* ============================================================
   姜新颖律师个人品牌官网 — 设计系统
   专业 / 可信 / 符合 GEO（生成式引擎优化）规范
   配色：深海军蓝 + 金色点缀（律师行业信任感）
   ============================================================ */

:root {
  --navy: #0f2a47;
  --navy-2: #163a5f;
  --blue: #1e4d7b;
  --gold: #c9a227;
  --gold-light: #e3c451;
  --bg: #f6f8fb;
  --bg-2: #eef3f9;
  --card: #ffffff;
  --text: #1f2d3d;
  --muted: #5b6b7d;
  --border: #e3e9f0;
  --green: #1e7d4f;
  --shadow-sm: 0 1px 3px rgba(15, 42, 71, .08);
  --shadow: 0 6px 24px rgba(15, 42, 71, .10);
  --shadow-lg: 0 16px 48px rgba(15, 42, 71, .16);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1160px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans CN", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.3; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.5px; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; color: var(--gold); font-weight: 700;
  letter-spacing: 2px; font-size: 13px; margin-bottom: 12px;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--navy); }
.brand .logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--gold-light); display: grid; place-items: center;
  font-size: 19px; font-weight: 900; box-shadow: var(--shadow-sm);
}
.brand .name { font-size: 17px; line-height: 1.15; }
.brand .name small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .5px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: inline-block; padding: 9px 14px; border-radius: 8px;
  color: var(--text); font-weight: 600; font-size: 15px;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-2); color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #2a2200; }
.btn-primary:hover { background: var(--gold-light); color: #2a2200; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: var(--navy); color: #fff; }
.btn-ghost:hover { background: var(--navy-2); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 420px at 80% -10%, rgba(201,162,39,.20), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; padding: 76px 0 84px; align-items: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); }
.hero h1 .accent { color: var(--gold-light); }
.hero p.lead { color: rgba(255,255,255,.88); font-size: 18px; margin: 20px 0 30px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-light { background: #fff; color: var(--navy); }
.hero .btn-light:hover { background: #f0f3f8; }
.hero .btn-gold { background: var(--gold); color: #2a2200; }
.hero .btn-gold:hover { background: var(--gold-light); }

.hero-card {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 26px; backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; margin-bottom: 16px; font-size: 18px; }
.hero-card .kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.18); font-size: 14px; }
.hero-card .kv:last-child { border-bottom: 0; }
.hero-card .kv span { color: rgba(255,255,255,.7); }
.hero-card .kv strong { color: #fff; font-weight: 700; }

/* ---------------- Stats band ---------------- */
.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 38px 0; }
.stat { text-align: center; padding: 8px 10px; }
.stat .num { font-size: clamp(30px, 4vw, 46px); font-weight: 900; color: var(--gold-light); line-height: 1; }
.stat .num small { font-size: 18px; font-weight: 700; }
.stat .label { margin-top: 8px; color: rgba(255,255,255,.82); font-size: 14px; }
.stats-source { text-align: center; font-size: 12px; color: rgba(255,255,255,.55); padding-bottom: 18px; }

/* ---------------- Cards / Grid ---------------- */
.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(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: .22s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4dde8; }
.card .icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-2); color: var(--navy); font-size: 24px; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { list-style: none; margin: 14px 0 0; }
.card ul li { padding: 6px 0 6px 22px; position: relative; font-size: 14.5px; color: var(--text); }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.card .more { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--blue); font-size: 14px; }

/* ---------------- Advantages ---------------- */
.adv { display: flex; gap: 16px; align-items: flex-start; }
.adv .badge-num {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #2a2200; font-weight: 900; display: grid; place-items: center; font-size: 16px;
}
.adv h4 { margin-bottom: 4px; }
.adv p { color: var(--muted); font-size: 14.5px; }

/* ---------------- Case cards ---------------- */
.case-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
}
.case-card .tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--bg-2); padding: 4px 11px; border-radius: 999px;
}
.case-card h3 { font-size: 17px; }
.case-card .court { color: var(--muted); font-size: 13.5px; }
.case-card .result { font-size: 15px; }
.case-card .result b { color: var(--green); }
.case-card .fact-block { font-size: 13.5px; color: var(--text); background: var(--bg); border-left: 3px solid var(--gold); padding: 10px 12px; border-radius: 0 8px 8px 0; }
.case-card .fact-block span { color: var(--muted); }

/* ---------------- Testimonials ---------------- */
.quote { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.quote p { font-size: 16px; color: var(--text); }
.quote .who { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------------- Author / trust block ---------------- */
.author-block {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--border);
  padding-top: 16px; margin-top: 16px;
}
.author-block .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

.summary-block {
  background: var(--bg-2); border: 1px solid var(--border); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; margin-bottom: 30px;
  font-size: 15.5px; color: var(--text);
}

.data-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ---------------- Definition / Service lists ---------------- */
.def { font-size: 16px; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.service-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.service-list li {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start;
}
.service-list li::before { content: "▸"; color: var(--gold); font-weight: 800; }

.business-section { padding: 40px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.business-section:last-child { border-bottom: 0; }
.business-section .head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.business-section .head .idx { font-size: 30px; font-weight: 900; color: var(--gold); }

/* ---------------- FAQ ---------------- */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 22px; font-size: 16.5px; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .plus { flex: 0 0 22px; font-size: 22px; color: var(--gold); transition: .2s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.info-card .row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-card .row:last-child { border-bottom: 0; }
.info-card .row .ic { font-size: 22px; }
.info-card .row .k { font-size: 13px; color: var(--muted); }
.info-card .row .v { font-weight: 700; color: var(--navy); font-size: 16px; }

.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form-card label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 6px; color: var(--text); }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; background: #fff; color: var(--text);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-card textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .n { counter-increment: s; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step .n::before { content: counter(s); }
.step h4 { margin-bottom: 2px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------------- CTA band ---------------- */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 12px auto 24px; max-width: 600px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 54px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.78); font-size: 14px; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 5px 0; }
.footer-brand .name { color: #fff; font-weight: 800; font-size: 18px; }
.footer-brand p { font-size: 13.5px; margin-top: 10px; }
.footer-meta { font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.disclaimer { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 12.5px; color: rgba(255,255,255,.65); margin-top: 18px; }

/* ---------------- Breadcrumb / eyebrow pages ---------------- */
.page-hero { background: linear-gradient(150deg, var(--navy), var(--blue)); color: #fff; padding: 56px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); margin-top: 12px; max-width: 720px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.crumbs a { color: rgba(255,255,255,.85); }

/* Breadcrumb navigation visible on every page */
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: rgba(255,255,255,.9); }

/* Card grid system */
.card-grid { display: grid; gap: 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
}

/* Content grid for article/text pages */
.content-grid { line-height: 1.9; }

/* Article metadata line */
.article-meta { color: var(--muted); font-size: 13px; }

/* Search widget */
.search-widget { position: relative; max-width: 400px; margin: 0 auto 32px; }
.search-widget input {
  width: 100%; padding: 14px 18px; border: 2px solid var(--border); border-radius: 999px;
  font-size: 15px; font-family: var(--font); outline: none; transition: .2s;
}
.search-widget input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
.search-results { margin-top: 16px; }
.search-results .sr-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-bottom: 10px;
}
.search-results .sr-item a { font-weight: 700; color: var(--navy); }
.search-results .sr-item p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.search-results .sr-empty { text-align: center; color: var(--muted); padding: 32px; }

/* Info card / contact info rows */
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.info-card .row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--bg-2); }
.info-card .row:last-child { border-bottom: 0; }
.info-card .ic { font-size: 20px; flex-shrink: 0; }
.info-card .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.info-card .v { font-weight: 600; color: var(--navy); margin-top: 2px; }

.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-card label { display: block; font-weight: 700; margin: 16px 0 6px; font-size: 14px; color: var(--text); }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: var(--font); background: var(--bg);
}
.form-card textarea { min-height: 100px; resize: vertical; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* table */
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.tbl th { background: var(--bg-2); color: var(--navy); font-weight: 700; }
.tbl tr:last-child td { border-bottom: 0; }

.timeline { list-style: none; border-left: 3px solid var(--gold); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); border: 3px solid var(--gold-light); }
.timeline .yr { font-weight: 800; color: var(--navy); }
.timeline p { color: var(--muted); font-size: 14.5px; }

/* back to top */
#toTop { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; font-size: 20px; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; z-index: 90; }
#toTop.show { opacity: 1; pointer-events: auto; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 8px; }
  .service-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 4px; box-shadow: var(--shadow);
  }
  .nav-links.open a { width: 100%; }
  .section { padding: 54px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
}
