/* ============================================================

   季思嘉律师个人官网 — 设计系统 v2.0

   参考 jiangxinying.cn 设计语言：深海军蓝 + 金色点缀

   ============================================================ */



: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 h2 { margin-bottom:8px; }

.section-head .eyebrow { display:inline-block; color:var(--gold); font-weight:700; letter-spacing:2px; font-size:13px; margin-bottom:12px; }

.section-head .subtitle { 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; }

.section-divider { width:50px; height:3px; background:var(--gold); margin:12px auto 0; border-radius:2px; }



/* ---------------- Header / Nav ---------------- */

.site-header, .navbar-lawyer {

  position:sticky; top:0; z-index:100;

  background:rgba(255,255,255,.92);

  backdrop-filter:saturate(180%) blur(10px);

  -webkit-backdrop-filter:saturate(180%) blur(10px);

  border-bottom:1px solid var(--border);

}

/* 无障碍：跳过导航链接 */
.skip-link { position:absolute; top:-100px; left:0; z-index:1000; padding:12px 24px; background:var(--navy); color:#fff; font-weight:700; text-decoration:none; border-radius:0 0 8px 0; transition:top .2s; }
.skip-link:focus { top:0; }

.nav-container, .nav { display:flex; align-items:center; justify-content:space-between; height:68px; max-width:var(--maxw); margin:0 auto; padding:0 20px; }

.navbar-lawyer .brand, .brand { display:flex; align-items:center; gap:11px; font-weight:800; color:var(--navy); text-decoration:none; }
.brand-logo { width:42px; height:42px; object-fit:contain; border-radius:50%; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.08); }

.brand-text h1 { font-size:17px; line-height:1.15; color:var(--navy); }

.brand-text p { font-size:11px; color:var(--muted); font-weight:500; letter-spacing:.5px; }

.nav-menu, .nav-links { display:flex; align-items:center; gap:4px; list-style:none; }

.nav-menu a, .nav-links a {

  display:inline-block; padding:9px 14px; border-radius:8px;

  color:var(--text); font-weight:600; font-size:15px; text-decoration:none; transition:.2s;

}

.nav-menu a:hover, .nav-menu a.active, .nav-links a:hover, .nav-links a.active { background:var(--bg-2); color:var(--navy); }

.nav-menu .nav-cta a, .nav-cta .btn { display:inline-flex; align-items:center; gap:6px; }

.nav-cta { display:flex; align-items:center; gap:10px; }

.nav-cta a { font-size:14px; font-weight:700; }



/* Buttons */

.btn { display:inline-flex; align-items:center; gap:8px; justify-content:center; padding:12px 28px; border-radius:999px; font-weight:700; font-size:15px; border:2px solid transparent; cursor:pointer; transition:.2s; white-space:nowrap; text-decoration:none; }

.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:2px solid 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); }

.btn-gold { background:var(--gold); color:#2a2200; }

.btn-gold:hover { background:var(--gold-light); transform:translateY(-1px); box-shadow:var(--shadow); }

.btn-light { background:#fff; color:var(--navy); }

.btn-light:hover { background:#f0f3f8; }

.btn-outline-white { background:transparent; border:2px solid rgba(255,255,255,.5); color:#fff; }

.btn-outline-white:hover { background:rgba(255,255,255,.15); border-color:#fff; }



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

.nav-placeholder { height:0; }



/* ---------------- 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-content, .hero-inner {

  position:relative; display:flex; flex-direction:column; align-items:center; text-align:center;

  padding:64px 20px 72px; max-width:860px; margin:0 auto;

}

.hero h1, .hero h2 { color:#fff; font-size:clamp(28px,4.4vw,46px); line-height:1.35; }

.hero h1 .accent, .hero h2 .accent { color:var(--gold-light); font-weight:900; }

.hero-lead, .hero-subtitle { color:rgba(255,255,255,.88); font-size:16px; line-height:1.8; margin:18px 0 14px; max-width:680px; }

.hero-stats-inline { color:rgba(255,255,255,.75); font-size:14px; padding:10px 22px; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15); display:inline-block; margin-bottom:18px; }

.hero-tags { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:16px; }

.hero-tags span { padding:7px 18px; border-radius:999px; border:1px solid rgba(201,162,39,.45); color:var(--gold-light); font-size:14px; font-weight:600; background:rgba(201,162,39,.10); }

.hero-badge { display:inline-flex; align-items:center; gap:8px; background:linear-gradient(135deg,rgba(201,162,39,.22),rgba(201,162,39,.12)); border:1px solid rgba(201,162,39,.35); padding:8px 20px; border-radius:999px; font-size:14px; font-weight:700; color:var(--gold-light); margin-bottom:24px; }

.hero-cta { display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }

.hero-trust { color:rgba(255,255,255,.6); font-size:13px; margin-top:18px; }



/* Hero image / card (legacy) */

.hero-image { display:none; }

.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); }



/* ---------------- Metrics row ---------------- */

.metrics { background:var(--navy); }

.metrics-grid { display:grid; grid-template-columns:repeat(3,1fr); }

.metric-card { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:28px 18px; color:#fff; border-right:1px solid rgba(255,255,255,.10); }

.metric-card:last-child { border-right:0; }

.metric-num { font-size:clamp(16px,2.2vw,22px); font-weight:800; color:var(--gold-light); margin-bottom:6px; }

.metric-label { font-size:13px; color:rgba(255,255,255,.75); }

.metric-note { font-size:11px; color:rgba(255,255,255,.45); margin-top:4px; }



/* ---------------- Stats (legacy hero card) ---------------- */

.stat-item { text-align:center; }

.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; }



/* ---------------- Cards / Grid ---------------- */

.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); }



.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; }



/* Service cards (homepage) */

.service-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }

.service-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; }

.service-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); border-color:#d4dde8; }

.service-card .icon, .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; }

.service-card h3, .card h3 { margin-bottom:8px; }

.service-card p, .card p { color:var(--muted); font-size:15px; }

.service-link, .card .more { margin-top:auto; padding-top:16px; font-weight:700; color:var(--blue); font-size:14px; text-decoration:none; }



/* 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-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }

.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; transition:.22s; }

.case-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); border-color:#d4dde8; }

.case-card .case-tag, .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 h3 a { color:var(--navy); text-decoration:none; }

.case-card h3 a:hover { color:var(--blue); }

.case-card .case-summary, .case-card p { color:var(--muted); font-size:14.5px; line-height:1.75; }

.case-card .case-result a { font-size:13px; color:var(--blue); font-weight:700; text-decoration:none; }



/* Testimonials */

.testimonial { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:14px; }

.testimonial .quote { font-size:15px; line-height:1.75; color:var(--text); margin:0; }

.testimonial .quote::before { content:"\201C"; color:var(--gold); font-size:30px; font-weight:700; line-height:0; margin-right:4px; vertical-align:-6px; }

.testimonial .who { font-size:13px; color:var(--muted); border-top:1px solid var(--border); padding-top:12px; }

.testimonial .who b { color:var(--navy); }



/* ---------------- About brief (homepage) ---------------- */

.about-brief { display:grid; grid-template-columns:300px 1fr; gap:40px; align-items:start; }

.about-image { position:relative; }

.about-image .image-frame { border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }

.about-image .image-frame img { width:100%; height:auto; }

.about-image .badge-float { position:absolute; bottom:-12px; right:-12px; background:var(--gold); color:#2a2200; padding:14px 20px; border-radius:var(--radius-sm); text-align:center; box-shadow:var(--shadow); }

.about-image .badge-float .num { font-size:28px; font-weight:900; }

.about-image .badge-float .text { font-size:12px; font-weight:600; }

.about-text h2 { margin-bottom:8px; }

.about-text .role { color:var(--muted); font-size:15px; margin-bottom:16px; }

.about-text p { color:var(--text); font-size:15px; line-height:1.85; margin-bottom:14px; }

.about-text .features { list-style:none; margin:18px 0; }

.about-text .features li { padding:6px 0 6px 22px; position:relative; font-size:14.5px; color:var(--text); }

.about-text .features li::before { content:"\2713"; position:absolute; left:0; color:var(--green); font-weight:800; }



/* ---------------- FAQ ---------------- */

.faq-section { background:var(--bg-2); }

.faq-list { max-width:860px; margin:0 auto; }

.faq-item { background:var(--card); border:1px solid var(--border); border-radius:var(--radius-sm); margin-bottom:12px; overflow:hidden; }

.faq-question, .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; font-family:inherit; }

.faq-question .toggle, .faq-q .plus { flex:0 0 22px; font-size:22px; color:var(--gold); transition:.2s; }

.faq-item.active .toggle, .faq-item.open .plus { transform:rotate(45deg); }

.faq-answer, .faq-a { max-height:0; overflow:hidden; transition:max-height .3s ease; }

.faq-item.active .faq-answer, .faq-item.open .faq-a { max-height:500px; }

.faq-answer p, .faq-a-inner { padding:0 22px 20px; color:var(--muted); font-size:15.5px; line-height:1.8; }



/* ---------------- CTA band ---------------- */

.cta-section, .cta-band-section { background:var(--bg-2); padding:72px 0; }

.cta-section .container { text-align:center; }

.cta-section h2 { color:var(--navy); margin-bottom:12px; }

.cta-section p { color:var(--muted); margin-bottom:24px; }

.cta-section .cta-buttons { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

.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 ---------------- */

.footer, .site-footer { background:var(--navy); color:rgba(255,255,255,.78); padding:54px 0 26px; }

.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:30px; }

.footer-brand h3, .footer-brand .name { color:#fff; font-weight:800; font-size:18px; margin-bottom:10px; }

.footer-brand p { font-size:13.5px; margin-top:10px; }

.footer-brand .license-info, .footer-meta { font-size:12.5px; color:rgba(255,255,255,.55); line-height:1.9; }

.footer h4, .site-footer h4 { color:#fff; font-size:15px; margin-bottom:16px; }

.footer a, .site-footer a { color:rgba(255,255,255,.78); font-size:14px; text-decoration:none; }

.footer a:hover, .site-footer a:hover { color:var(--gold-light); }

.footer ul, .site-footer ul { list-style:none; }

.footer ul li, .site-footer ul li { padding:5px 0; }

.footer-contact .contact-item { display:flex; gap:12px; align-items:flex-start; padding:8px 0; }

.footer-contact .contact-item .label { font-size:12px; color:rgba(255,255,255,.5); display:block; }

.footer-contact .contact-item a { color:rgba(255,255,255,.85); font-weight:600; }

.footer-contact .contact-item i { color:var(--gold-light); font-size:16px; margin-top:2px; }

.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); text-align:center; }

.footer-bottom a { color:rgba(255,255,255,.55); }

.footer-bottom p { margin:4px 0; }

.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; }

.footer-authority { margin-top:10px; font-size:12.5px; color:rgba(255,255,255,.55); text-align:center; }
.footer-authority a { color:rgba(255,255,255,.8); text-decoration:underline; }
.footer-authority a:hover { color:var(--gold-light); }

.footer-links { margin-top:18px; padding-top:18px; border-top:1px solid rgba(255,255,255,.12); }
.footer-links h4 { color:#fff; font-size:15px; margin-bottom:12px; }
.footer-links .links-row { display:flex; flex-wrap:wrap; gap:10px 24px; }
.footer-links .links-row a { color:rgba(255,255,255,.65); font-size:13px; text-decoration:none; transition:color .2s; }
.footer-links .links-row a:hover { color:var(--gold-light); }



/* ---------------- Page hero / banner ---------------- */

.page-banner, .page-hero { background:linear-gradient(150deg,var(--navy),var(--blue)); color:#fff; padding:56px 0; }

.page-banner h1, .page-hero h1 { color:#fff; }

.page-banner p, .page-hero p { color:rgba(255,255,255,.85); margin-top:12px; max-width:720px; }

.page-banner .breadcrumb, .crumbs { font-size:13px; color:rgba(255,255,255,.7); margin-bottom:12px; }

.page-banner .breadcrumb a, .crumbs a { color:rgba(255,255,255,.85); }

.breadcrumb-bar { background:var(--bg-2); padding:12px 0; border-bottom:1px solid var(--border); }

.breadcrumb-bar a { color:var(--muted); font-size:13px; }



/* ---------------- Article body ---------------- */

.article-body { line-height:1.9; font-size:16px; color:var(--text); max-width:800px; margin:0 auto; }

.article-body h2 { font-size:22px; margin:30px 0 14px; border-left:4px solid var(--gold); padding-left:12px; }

.article-body h3 { font-size:18px; margin:24px 0 10px; }

.article-body p { margin-bottom:16px; }

.article-body ul, .article-body ol { margin-bottom:16px; padding-left:20px; }

.article-body li { margin-bottom:8px; }

.article-body blockquote { background:var(--bg-2); border-left:4px solid var(--gold); padding:14px 18px; border-radius:0 var(--radius-sm) var(--radius-sm) 0; margin:16px 0; }



/* Author signature */

.author-signature { display:flex; align-items:center; gap:12px; padding:16px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); margin:20px 0; }

.author-signature .author-info { display:flex; justify-content:space-between; align-items:center; width:100%; flex-wrap:wrap; gap:8px; }

.author-signature .author-name { font-weight:700; color:var(--navy); font-size:15px; }

.author-signature .author-title { color:var(--muted); font-size:13px; }

.author-signature .author-license { color:var(--muted); font-size:12px; }



/* ---------------- About page ---------------- */

.about-page { padding:40px 0; }

.lawyer-profile { display:grid; grid-template-columns:280px 1fr; gap:32px; align-items:start; margin-bottom:36px; }

.profile-image img { border-radius:var(--radius); box-shadow:var(--shadow); }

.profile-info h1 { margin-bottom:4px; }

.profile-info .role-title { color:var(--muted); font-size:15px; margin-bottom:16px; }

.info-list { list-style:none; margin-bottom:20px; }

.info-list li { padding:10px 0; border-bottom:1px solid var(--border); font-size:14.5px; }

.info-list li .label { display:inline-block; width:90px; color:var(--muted); font-size:13px; }



/* ---------------- Service list page ---------------- */

.service-list-page { padding:40px 0; }

.service-item { display:grid; grid-template-columns:70px 1fr; gap:20px; padding:28px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm); margin-bottom:20px; transition:.22s; }

.service-item:hover { transform:translateY(-2px); box-shadow:var(--shadow); }

.service-item .icon-box { width:50px; height:50px; border-radius:12px; display:grid; place-items:center; background:var(--bg-2); color:var(--navy); font-size:22px; }

.service-item h2 a { color:var(--navy); text-decoration:none; }

.service-item h2 a:hover { color:var(--blue); }

.service-desc { color:var(--muted); font-size:14.5px; margin:8px 0; }

.service-tags { display:flex; gap:8px; flex-wrap:wrap; }

.service-tags span { font-size:12px; padding:4px 10px; background:var(--bg-2); border-radius:999px; color:var(--blue); }



/* ---------------- News / Article list ---------------- */

.views-list { max-width:900px; margin:0 auto; display:flex; flex-direction:column; gap:22px; }

.article-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:28px 30px; box-shadow:var(--shadow-sm); transition:.22s; }

.article-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:#d4dde8; }

.article-card h3 { font-size:20px; line-height:1.4; margin-bottom:10px; }

.article-card h3 a { color:var(--navy); text-decoration:none; }

.article-card h3 a:hover { color:var(--blue); }

.post-meta, .article-meta { color:var(--muted); font-size:13px; margin-bottom:12px; }

.post-excerpt { color:var(--text); font-size:15px; line-height:1.85; }

.post-more { display:inline-block; margin-top:16px; font-weight:700; color:var(--blue); font-size:14.5px; text-decoration:none; }



/* News list (legacy horizontal cards) */

.news-item { display:flex; gap:20px; padding:24px; background:var(--bg-2); border-radius:var(--radius); margin-bottom:16px; transition:all .3s; }

.news-item:hover { box-shadow:var(--shadow); }

.news-item .news-date { text-align:center; background:#fff; border-radius:var(--radius-sm); padding:12px 16px; min-width:70px; flex-shrink:0; }



/* ---------------- Contact page ---------------- */

.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-weight:700; margin:16px 0 6px; font-size:14px; 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; }



/* ---------------- Floating contact widget ---------------- */

.float-actions, .fw-container { position:fixed; right:22px; bottom:22px; z-index:9999; display:flex; flex-direction:column; gap:12px; align-items:flex-end; }

.float-btn, .fw-btn { width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:22px; color:#fff; cursor:pointer; border:none; box-shadow:0 3px 12px rgba(0,0,0,.22); transition:transform .2s, box-shadow .2s; text-decoration:none; }

.float-btn:hover, .fw-btn:hover { transform:scale(1.08); box-shadow:0 4px 16px rgba(0,0,0,.3); }

.btn-phone, .fw-phone { background:var(--navy); }

.btn-top { background:var(--blue); opacity:0; pointer-events:none; transition:opacity .25s, transform .2s; }

.btn-top.show { opacity:1; pointer-events:auto; }



/* ---------------- Mobile bottom nav ---------------- */

.mobile-bottom-nav { display:none; }



/* ---------------- Back to top ---------------- */

#toTop, #btnTop { 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, #btnTop.show { opacity:1; pointer-events:auto; }



/* ---------------- Summary block ---------------- */

.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); }



/* ---------------- Responsive ---------------- */

@media (max-width:980px) {

  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns:repeat(2,1fr); }

  .service-grid { grid-template-columns:repeat(2,1fr); }

  .case-grid { grid-template-columns:repeat(2,1fr); }

  .footer-grid { grid-template-columns:1fr 1fr; }

  .metrics-grid { grid-template-columns:repeat(2,1fr); }

  .metric-card { border-right:none; border-bottom:1px solid rgba(255,255,255,.10); }

  .metric-card:nth-child(3), .metric-card:nth-child(4) { border-bottom:none; }

  .about-brief { grid-template-columns:1fr; }

  .about-image { max-width:300px; margin:0 auto; }

  .lawyer-profile { grid-template-columns:1fr; }

  .profile-image { max-width:280px; margin:0 auto; }

  .contact-grid { grid-template-columns:1fr; }

}

@media (max-width:760px) {

  .nav-menu, .nav-links { display:none; }

  .nav-toggle { display:block; }

  .nav-menu.open, .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-menu.open a, .nav-links.open a { width:100%; }

  .section { padding:54px 0; }

  .footer-grid { grid-template-columns:1fr; }

  .cta-band { padding:32px 22px; }

  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns:1fr; }

  .service-grid { grid-template-columns:1fr; }

  .case-grid { grid-template-columns:1fr; }

  .metrics-grid { grid-template-columns:1fr; }

  .service-item { grid-template-columns:1fr; }

  .hero-content, .hero-inner { padding:48px 20px 56px; }

}

/* ==========================================================================
   v2.1.0 — 语义化 / 无障碍 / 移动端修复补丁
   ========================================================================== */

/* ---------- 品牌名（原 h1 降级为 span，视觉保持一致） ---------- */
.brand-text .brand-name { display:block; font-size:17px; line-height:1.15; color:var(--navy); font-weight:800; }

/* ---------- 详情页标题（原内联样式收敛到类） ---------- */
.detail-title { font-size:clamp(21px,3.2vw,28px); line-height:1.45; color:var(--navy); margin-bottom:10px; }
.detail-title-center { text-align:center; }

/* ---------- 详情页 hero 眉标（替代重复 H1） ---------- */
.page-hero-sub { padding:40px 0; }
.page-hero-eyebrow {
  display:inline-block; margin-top:10px; padding:5px 16px; border-radius:999px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.24);
  color:#fff; font-size:14px; font-weight:600; letter-spacing:.5px;
}

/* ---------- 正文内链模块 ---------- */
.related-block { margin-top:44px; padding:26px 28px; background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius); }
.related-title { font-size:17px; color:var(--navy); margin:0 0 14px; padding-left:11px; border-left:4px solid var(--gold); line-height:1.3; }
.related-title + .related-list { margin-bottom:24px; }
.related-block .related-title:not(:first-child) { margin-top:6px; }
.related-list { list-style:none; margin:0; padding:0; }
.related-list li { display:flex; justify-content:space-between; align-items:baseline; gap:14px; padding:9px 0; border-bottom:1px dashed var(--border); }
.related-list li:last-child { border-bottom:none; }
.related-list a { color:var(--text); font-size:15px; text-decoration:none; line-height:1.6; transition:color .18s; }
.related-list a:hover { color:var(--gold); text-decoration:underline; }
.related-date { flex:none; font-size:12.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.related-inline { display:flex; flex-wrap:wrap; gap:9px; }
.related-inline li { display:inline-flex; padding:0; border-bottom:none; }
.related-inline a { padding:7px 15px; border-radius:999px; background:#fff; border:1px solid var(--border); font-size:14px; }
.related-inline a:hover { border-color:var(--gold); background:#fff; text-decoration:none; }

/* ---------- 案例免责声明 ---------- */
.case-disclaimer {
  margin-top:30px; padding:16px 20px; font-size:13.5px; line-height:1.85; color:var(--muted);
  background:#fbf9f4; border:1px solid var(--border); border-left:4px solid var(--gold);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
}
.case-disclaimer strong { color:var(--navy); }

/* ---------- 正文表格：小屏可横向滚动 ---------- */
.table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; margin:16px 0; }
.article-body table { border-collapse:collapse; width:100%; min-width:520px; font-size:14.5px; }
.article-body th, .article-body td { border:1px solid var(--border); padding:9px 12px; text-align:left; line-height:1.7; }
.article-body th { background:var(--bg-2); color:var(--navy); font-weight:700; }
.article-body img { max-width:100%; height:auto; }

/* ---------- 浮动按钮：修复 #btnTop 与电话按钮重叠 ---------- */
.fw-container #btnTop, .fw-container #toTop { position:static; right:auto; bottom:auto; width:52px; height:52px; }
.fw-container #btnTop:not(.show), .fw-container #toTop:not(.show) { display:none; }
.fw-container #btnTop.show, .fw-container #toTop.show { display:flex; }
.fw-phone { background:var(--gold); }

/* ---------- 无障碍：键盘焦点可见 ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline:2px solid var(--gold); outline-offset:2px; border-radius:4px;
}

/* ==========================================================================
   响应式补充
   ========================================================================== */

@media (max-width:760px) {
  /* 导航防挤压：隐藏长号码按钮，仅留「咨询 + 汉堡」 */
  .nav-cta .nav-tel { display:none; }
  .nav-cta { gap:8px; }
  .nav-cta .btn { padding:9px 16px; font-size:14px; }
  .brand-logo { width:38px; height:38px; }
  .brand-text .brand-name { font-size:15.5px; }
  .brand-text p { font-size:10.5px; }
  .nav-toggle { min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; }

  /* Hero 字号收敛 */
  .hero h1, .hero h2 { font-size:clamp(24px,6.4vw,32px); line-height:1.4; }
  .hero-lead, .hero-subtitle { font-size:15px; line-height:1.75; }
  .page-hero { padding:40px 0; }
  .page-hero-sub { padding:30px 0; }

  /* 触控目标 ≥44px */
  .btn { min-height:44px; padding:11px 20px; }
  .nav-links a { min-height:44px; display:flex; align-items:center; }

  /* 浮动按钮避让 */
  .float-actions, .fw-container { right:14px; bottom:14px; gap:10px; }
  .float-btn, .fw-btn, .fw-container #btnTop, .fw-container #toTop { width:46px; height:46px; font-size:19px; }

  /* 正文与内链块内边距收敛 */
  .related-block { padding:20px 18px; margin-top:34px; }
  .article-body { font-size:15.5px; }
  .article-body h2 { font-size:19px; margin:26px 0 12px; }
  .article-body h3 { font-size:16.5px; }

  /* 首页关于我双栏改单栏，修复 479px 横向溢出 */
  .about-brief { grid-template-columns:1fr !important; gap:24px !important; }
  .about-image { max-width:300px; margin:0 auto; }
}

@media (max-width:480px) {
  .container { padding-left:16px; padding-right:16px; }
  .section { padding:40px 0; }

  /* 导航进一步压缩 */
  .brand-logo { width:34px; height:34px; }
  .brand-text .brand-name { font-size:14.5px; }
  .brand-text p { font-size:10px; letter-spacing:0; }
  .brand { gap:8px; }
  .nav-cta .nav-consult { padding:9px 13px; font-size:13px; }

  /* Hero */
  .hero-content, .hero-inner { padding:38px 16px 44px; }
  .hero h1, .hero h2 { font-size:clamp(22px,7vw,27px); }
  .hero-lead, .hero-subtitle { font-size:14.5px; }
  .hero-badge { font-size:12.5px; padding:7px 15px; margin-bottom:18px; }
  .hero-tags span { font-size:12.5px; padding:6px 13px; }
  .hero-cta { flex-direction:column; align-items:stretch; gap:10px; }
  .hero-cta .btn { width:100%; }
  .hero-stats-inline { font-size:12.5px; padding:8px 16px; }
  .hero-trust { font-size:12px; }

  /* 页面 hero */
  .page-hero { padding:32px 0; }
  .page-hero h1 { font-size:23px; line-height:1.4; }
  .page-hero-eyebrow { font-size:13px; padding:4px 13px; }
  .breadcrumb, .breadcrumb-bar span { font-size:12.5px; line-height:1.9; }

  /* 详情页 */
  .detail-title { font-size:20px; }
  .article-body { font-size:15.5px; line-height:1.88; }
  .author-signature { padding:12px 14px; }
  .author-info { flex-direction:column; align-items:flex-start; gap:5px; }
  .author-license { font-size:12px; }

  /* 内链块 */
  .related-block { padding:17px 15px; }
  .related-title { font-size:15.5px; }
  .related-list li { flex-direction:column; align-items:flex-start; gap:3px; padding:8px 0; }
  .related-list a { font-size:14.5px; }
  .related-inline a { font-size:13px; padding:6px 13px; }

  /* CTA */
  .cta-band { padding:26px 17px; }
  .cta-band h2 { font-size:19px; line-height:1.45; }
  .cta-band p { font-size:14px; }

  /* 表单：iOS 防自动缩放，字号须 ≥16px */
  input, textarea, select { font-size:16px; }
  .form-card { padding:20px 16px; }

  /* 页脚：为浮动按钮留出安全区 */
  .site-footer { padding-bottom:78px; }
  .footer-brand p, .disclaimer { font-size:12.5px; line-height:1.85; }
  .footer-bottom { font-size:12px; line-height:1.9; }

  /* 浮动按钮再收一档，避免遮挡表单提交区 */
  .float-actions, .fw-container { right:11px; bottom:11px; gap:9px; }
  .float-btn, .fw-btn, .fw-container #btnTop, .fw-container #toTop { width:43px; height:43px; font-size:17px; }

  .summary-block { padding:14px 16px; font-size:14.5px; }
  .case-disclaimer { padding:13px 15px; font-size:12.8px; }
}

/* ---------- 超窄屏（≤360px）兜底 ---------- */
@media (max-width:360px) {
  .brand-text p { display:none; }
  .nav-cta .nav-consult { padding:8px 11px; font-size:12.5px; }
  .hero h1, .hero h2 { font-size:21px; }
  .page-hero h1 { font-size:20px; }
}

/* ---------- FAQ 区块（GEO：供 AI 抽取问答） ---------- */
.faq-block { margin:34px 0 6px; padding:26px 24px; background:var(--bg-2); border-radius:var(--radius); border-left:4px solid var(--gold); }
.faq-title { font-size:20px; color:var(--navy); margin:0 0 18px; display:flex; align-items:center; gap:8px; }
.faq-title .fa { color:var(--gold); }
.faq-item { padding:14px 0; border-bottom:1px dashed var(--border, #e6e1d8); }
.faq-item:last-child { border-bottom:none; }
.faq-q { font-size:16px; color:var(--navy); margin:0 0 8px; font-weight:600; line-height:1.5; }
.faq-a { font-size:14.5px; color:var(--muted, #5a5650); line-height:1.85; margin:0; }
.faq-a a { color:var(--gold); text-decoration:underline; }

/* ---------- 法条依据列表（GEO 事实可验证锚点） ---------- */
.law-refs { margin:14px 0 4px; padding-left:0; list-style:none; }
.law-refs li { position:relative; padding:10px 14px 10px 38px; margin-bottom:8px; background:#f7f4ef; border-left:3px solid var(--gold); border-radius:6px; font-size:14px; line-height:1.8; color:var(--navy); }
.law-refs li::before { content:"§"; position:absolute; left:14px; top:10px; color:var(--gold); font-weight:700; font-size:15px; }

/* =========================================================
   v3 易用性增量（2026-08-15）
   ========================================================= */

/* ---- 表单三态反馈 ---- */
.form-msg { border-radius:8px; padding:14px 16px; margin-bottom:16px; font-size:14.5px; line-height:1.7; display:flex; align-items:flex-start; gap:10px; }
.form-msg i { margin-top:3px; font-size:16px; }
.form-msg.success { background:var(--bg-2); border:1px solid #1e8e5a; color:#1e8e5a; }
.form-msg.error { background:#fdf3f3; border:1px solid #c0392b; color:#c0392b; }
.form-msg:empty { display:none; }

/* ---- 移动端底部悬浮转化条 ---- */
.mobile-bottom-nav {
  display:none;
  position:fixed; left:0; right:0; bottom:0; z-index:120;
  background:#fff; border-top:1px solid var(--border);
  box-shadow:0 -4px 16px rgba(13,27,51,.08);
  padding-bottom:env(safe-area-inset-bottom);
}
.mobile-bottom-nav .mb-inner { display:flex; gap:12px; padding:10px 16px; max-width:1200px; margin:0 auto; }
.mobile-bottom-nav a {
  flex:1; display:flex; align-items:center; justify-content:center; gap:8px;
  min-height:46px; border-radius:10px; font-weight:600; font-size:15px;
}
.mobile-bottom-nav a.tel { background:#1e8e5a; color:#fff; }
.mobile-bottom-nav a.call { background:linear-gradient(135deg,var(--gold),#e3c27e); color:var(--navy); }

/* ---- safe-area 安全区 ---- */
@media (max-width:760px) {
  body { padding-bottom:calc(70px + env(safe-area-inset-bottom)); }
  .mobile-bottom-nav { display:block; }
  .site-footer { padding-bottom:calc(30px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   移动端专项优化 v3.1（2026-08-15）
   ========================================================= */

/* 1) 全局防横向滚动（hero 光晕/装饰元素外溢） */
html, body { overflow-x:hidden; }

/* 2) 折叠菜单：限制高度 + 可滚动（防小屏溢出屏幕底部） */
@media (max-width:760px) {
  .nav-menu.open, .nav-links.open {
    max-height:calc(100vh - 68px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  /* 菜单项分割线，增强可读性 */
  .nav-links.open a { border-bottom:1px solid var(--border); border-radius:0; }
  .nav-links.open a:last-child { border-bottom:none; }
  /* 当前页高亮增强（左竖条） */
  .nav-links.open a.active { position:relative; background:var(--bg-2); color:var(--navy); font-weight:700; }
  .nav-links.open a.active::before {
    content:""; position:absolute; left:0; top:8px; bottom:8px; width:4px;
    border-radius:2px; background:var(--gold);
  }
}

/* 3) 浮动按钮上移，避让底部悬浮条 */
@media (max-width:760px) {
  .float-actions, .fw-container { bottom:calc(74px + env(safe-area-inset-bottom)); }
}
@media (max-width:480px) {
  .float-actions, .fw-container { bottom:calc(70px + env(safe-area-inset-bottom)); }
}

/* 4) 数据条移动端保持 2 列（超窄屏才单列），省首屏空间 */
@media (max-width:760px) {
  .metrics-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:480px) {
  .metrics-grid { grid-template-columns:repeat(2,1fr); }
  .metric-card { padding:20px 12px; }
  .metric-num { font-size:22px; }
}
@media (max-width:360px) {
  .metrics-grid { grid-template-columns:1fr; }
}

/* 5) Hero 移动端：CTA 按钮间距与全宽优化 */
@media (max-width:480px) {
  .hero-cta { gap:10px; }
  .hero-tags { gap:8px; }
  .hero-stats-inline, .hero-trust { line-height:1.8; }
}
