/*
Theme Name: 潮汕律师网
Theme URI: https://www.chaoshanlawyer.com/
Description: 潮汕律师网（林伟平律师）专用主题。深圳执业、服务深圳及珠三角潮汕同乡。响应式，适配微信浏览器。
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: chaoshan-lawyer
*/

/* =========================================================
   设计变量
   主色：深蓝 / 深灰 / 白；点缀色（香槟金）只用于细线、编号和小标签。
   ========================================================= */
:root {
	--navy: #0E2236;
	--navy-2: #14304B;
	--navy-3: #1C3D5E;
	--night: #08172A;
	--ink: #1F2329;
	--gray: #5B6270;
	--gray-light: #8A919C;
	--line: #DCDFE4;
	--line-dark: rgba(255, 255, 255, .14);
	--paper: #F6F5F2;
	--white: #FFFFFF;
	--accent: #B4975A;
	--accent-soft: #CDB88A;
	--wrap: 1240px;
	--gutter: 32px;
	--font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--font-serif: "CL Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
	--font-latin: "Georgia", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.8;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; color: var(--navy); line-height: 1.35; margin: 0 0 .6em; letter-spacing: .02em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--white); padding: 8px 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 通用小部件 ---------- */
.eyebrow {
	display: flex; align-items: center; gap: 14px;
	font-family: var(--font-latin); font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
	color: var(--accent); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--accent); flex: none; }
.eyebrow .cn { font-family: var(--font-sans); letter-spacing: .2em; color: var(--gray); }
.on-dark .eyebrow .cn { color: #A9B6C6; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 32px; font-size: 15px; letter-spacing: .12em;
	border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-accent { background: var(--accent); color: var(--night); font-weight: 700; }
.btn-accent:hover { background: var(--accent-soft); }
.btn-line-light { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-line-light:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }

.arrow-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .12em; color: var(--navy); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.arrow-link::after { content: "→"; transition: transform .2s; }
.arrow-link:hover::after { transform: translateX(4px); }
.on-dark .arrow-link { color: var(--white); }

/* ---------- 地域声明条 ---------- */
.geo-bar { background: var(--night); color: #9FADBE; font-size: 12px; letter-spacing: .08em; }
.geo-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 9px; padding-bottom: 9px; }
.geo-bar strong { color: var(--accent-soft); font-weight: 400; }

/* ---------- 头部 ---------- */
.site-header { background: var(--navy); color: var(--white); border-bottom: 1px solid var(--line-dark); position: sticky; top: 0; z-index: 50; }
.site-header { transition: box-shadow .3s, background-color .3s; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; transition: min-height .3s; }
.is-scrolled .site-header { background: rgba(14,34,54,.97); box-shadow: 0 8px 30px rgba(8,23,42,.35); }
.is-scrolled .site-header .wrap { min-height: 64px; }
.is-scrolled .main-nav a { padding: 20px 0; }
.is-scrolled .main-nav a::after { bottom: 12px; }
.is-scrolled .brand-mark { width: 40px; height: 40px; }
.main-nav a, .main-nav a::after, .brand-mark { transition: padding .3s, bottom .3s, width .3s, height .3s, color .3s, transform .25s; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--white); }
.brand-mark { width: 48px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--accent); transition: color .3s; }
.brand-mark .logo-mark { width: 100%; height: 100%; display: block; }
.brand:hover .brand-mark { color: var(--accent-soft); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 21px; letter-spacing: .18em; }
.brand-sub { font-size: 11px; color: #A9B6C6; letter-spacing: .24em; margin-top: 4px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; }
.main-nav a { display: block; color: #C9D2DD; padding: 30px 0; font-size: 15px; letter-spacing: .1em; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current-menu-ancestor > a::after,
.main-nav .current_page_item > a::after { transform: scaleX(1); }
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current_page_item > a { color: var(--white); }
/* 下拉菜单：同乡普法专栏 → 实务普法 / 律师随笔 */
.main-nav li { position: relative; }
.main-nav .menu-item-has-children > a { padding-right: 14px; }
.main-nav .menu-item-has-children > a::before { content: ""; position: absolute; right: 0; top: 50%; width: 5px; height: 5px; margin-top: -4px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); opacity: .7; }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: -22px; z-index: 60; min-width: 168px; display: flex; flex-direction: column; gap: 0; padding: 8px 0;
	background: var(--navy-2); border-top: 2px solid var(--accent); box-shadow: 0 16px 30px rgba(8,23,42,.35);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: 11px 22px; font-size: 14px; color: #C9D2DD; white-space: nowrap; }
.main-nav .sub-menu a::after { display: none; }
.main-nav .sub-menu a:hover { color: var(--accent-soft); background: rgba(255,255,255,.04); }
.is-scrolled .main-nav .sub-menu a { padding: 11px 22px; }
.footer-col .sub-menu { display: none; }
/* 首页普法板块：实务普法 / 律师随笔 标签 */
.column-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.column-tab { padding: 6px 18px; border: 1px solid var(--line); font-size: 14px; letter-spacing: .1em; color: var(--navy); transition: background-color .2s, color .2s, border-color .2s; }
.column-tab:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.column-links .arrow-link { margin-left: 12px; }

.header-phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; color: var(--white); white-space: nowrap; }
.header-phone small { font-size: 11px; color: #A9B6C6; letter-spacing: .2em; }
.header-phone span { font-family: var(--font-latin); font-size: 21px; letter-spacing: .06em; color: var(--accent-soft); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: var(--white); width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- 首屏 ---------- */
.hero { background: radial-gradient(120% 90% at 85% 0%, #1A3A5C 0%, var(--navy) 55%, var(--night) 100%); color: var(--white); position: relative; overflow: hidden; min-height: calc(100vh - 120px); min-height: calc(100svh - 120px); display: flex; flex-direction: column; justify-content: center; }
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: center; padding-bottom: 150px; position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; }
.hero-text { padding: 40px 32px 24px max(var(--gutter), calc((min(100vw, 1440px) - var(--wrap)) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.hero-text { container-type: inline-size; min-width: 0; }
/* 标题字号按左栏宽度缩放（9 个字一行），保证每行不折行 */
.hero h1 { color: var(--white); font-size: clamp(30px, 5vw, 76px); font-size: min(76px, 10cqi); font-weight: 700; letter-spacing: .05em; line-height: 1.22; margin: 0 0 24px; }
.hero h1 em { font-style: normal; color: var(--accent-soft); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; white-space: nowrap; }
.hero h1 .line-in { display: inline-block; transform: translateY(110%); animation: cl-up 1.1s cubic-bezier(.2,.75,.15,1) forwards; animation-delay: var(--d, 0s); }
@keyframes cl-up { to { transform: none; } }
.hero h1 .shine {
	background: linear-gradient(100deg, var(--accent) 0%, #EADBB4 22%, var(--accent) 38%, var(--accent-soft) 100%);
	background-size: 250% 100%; background-position: 100% 0;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	animation: cl-shine 2.6s ease-out 1.3s forwards;
}
@keyframes cl-shine { to { background-position: 0 0; } }

/* 深圳天际线线描：打开页面时从左到右画出 */
.skyline { position: absolute; left: 0; bottom: 0; width: 100%; height: 220px; pointer-events: none; }
.skyline path { fill: none; vector-effect: non-scaling-stroke; }
.skyline-outline { stroke: var(--accent); stroke-width: 1.2; opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cl-draw 4.5s cubic-bezier(.45,.05,.25,1) .3s forwards; }
.skyline-detail { stroke: var(--accent); stroke-width: .8; opacity: 0; animation: cl-fade 2s ease 3.6s forwards; }
.skyline-base { stroke: var(--accent); stroke-width: 1; opacity: .35; }
@keyframes cl-draw { to { stroke-dashoffset: 0; } }
@keyframes cl-fade { to { opacity: .18; } }

/* 右侧大数字 */
.hero-figure { position: relative; z-index: 1; padding-right: max(var(--gutter), calc((min(100vw, 1440px) - var(--wrap)) / 2 + var(--gutter))); text-align: right; }
.hero-figure { container-type: inline-size; min-width: 0; }
.hero-figure-num {
	white-space: nowrap; font-family: var(--font-latin); font-size: clamp(110px, 12vw, 220px); font-size: min(240px, 52cqi); line-height: .9; letter-spacing: -.02em;
	color: transparent; -webkit-text-stroke: 1.5px var(--accent); font-variant-numeric: tabular-nums;
}
.hero-figure-label { margin-top: 12px; font-size: 14px; letter-spacing: .2em; color: #BCC7D4; }
.hero-figure-label span { display: block; font-family: var(--font-latin); font-size: 11px; letter-spacing: .4em; color: var(--accent); margin-bottom: 6px; }

.hero-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .3em; color: #8A99AC; }
.hero-scroll span { width: 1px; height: 44px; background: linear-gradient(var(--accent), transparent); background-size: 100% 200%; animation: cl-drop 2.2s ease-in-out infinite; }
@keyframes cl-drop { 0% { background-position: 0 100%; } 50% { background-position: 0 0; } 100% { background-position: 0 -100%; } }

/* 首屏以下：滚动到时淡入 */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* 网格类板块：子项依次出现 */
.js .stagger[data-reveal] { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1), background-color .25s, color .25s, border-color .25s; transition-delay: calc(var(--i, 0) * 80ms); }
.js .stagger.is-in > * { opacity: 1; transform: none; }
.js .stagger.is-done > * { transition-delay: 0s; }
/* 板块小标前的金线：进入视野时画出 */
.js .section-head .eyebrow::before { width: 0; transition: width 1s cubic-bezier(.2,.7,.2,1) .15s; }
.js .section-head.is-in .eyebrow::before { width: 40px; }
/* 桌面端不显示菜单里的联系信息 */
.nav-extra { display: none; }

/* 首屏动效：逐行淡入 + 业务轮播 + 背景光晕缓慢移动（克制，不闪烁） */
.hero::before {
	content: ""; position: absolute; width: 900px; height: 900px; right: -200px; top: -300px; border-radius: 50%;
	background: radial-gradient(circle, rgba(180,151,90,.16) 0%, rgba(180,151,90,.05) 35%, rgba(180,151,90,0) 65%);
	animation: cl-glow 18s ease-in-out infinite alternate; pointer-events: none;
}
.hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; background-repeat: no-repeat;
	animation: cl-sweep 9s linear infinite; opacity: .6;
}
@keyframes cl-glow { from { transform: translate(0, 0); } to { transform: translate(-420px, 260px); } }
@keyframes cl-sweep { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@keyframes cl-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes cl-line { from { width: 0; } to { width: 40px; } }
.hero .reveal { opacity: 0; animation: cl-rise 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
.hero .eyebrow::before { animation: cl-line 1.2s ease-out .4s both; }

.hero-rotate { display: flex; align-items: baseline; gap: 16px; margin: -4px 0 20px; font-size: 20px; color: #BCC7D4; }
.hero-rotate-label { letter-spacing: .14em; }
.rotator { position: relative; display: inline-block; height: 1.6em; min-width: 12em; overflow: hidden; vertical-align: bottom; }
.rotator span {
	position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--font-serif); font-weight: 700;
	color: var(--white); border-bottom: 1px solid var(--accent); line-height: 1.5;
	opacity: 0; transform: translateY(100%); transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s;
}
.rotator span.is-active { opacity: 1; transform: none; }
.rotator span.is-leaving { opacity: 0; transform: translateY(-100%); }
/* 擅长领域：板块名 + 具体内容两行轮播 */
.hero-rotate { align-items: flex-start; }
.rotator-areas { height: 4.6em; min-width: 0; flex: 1; max-width: 640px; }
.rotator-areas span { display: flex; flex-direction: column; gap: 4px; white-space: normal; border-bottom: 0; }
.rotator-areas b { font-family: var(--font-serif); font-size: 1.1em; color: var(--white); border-bottom: 1px solid var(--accent); align-self: flex-start; line-height: 1.5; }
.rotator-areas small { font-family: var(--font-sans); font-weight: 400; font-size: .78em; line-height: 1.6; color: #BCC7D4; letter-spacing: .02em; }
.hero-rotate-label { padding-top: .1em; white-space: nowrap; }
.practice-line i { font-style: normal; color: var(--accent); margin: 0 .4em; }

@media (prefers-reduced-motion: reduce) {
	.hero::before, .hero::after, .hero .eyebrow::before, .hero-scroll span { animation: none; }
	.hero h1 .line-in { transform: none; animation: none; }
	.hero h1 .shine { animation: none; background-position: 0 0; }
	.skyline-outline { stroke-dashoffset: 0; animation: none; }
	.skyline-detail { opacity: .18; animation: none; }
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
	.site-header, .site-header .wrap, .service-card::before, .to-top, .process::after, .process-num, .main-nav, .main-nav li, .post-item::before { transition: none; }
	.js .stagger > * { transition: none; }
	.hero .reveal { opacity: 1; animation: none; }
	.rotator span { transition: none; }
}
.hero-intro { margin: 0 0 32px; font-size: 17px; line-height: 2; color: #BCC7D4; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-creds { display: flex; flex-wrap: wrap; gap: 12px 0; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 13px; color: #A9B6C6; letter-spacing: .06em; }
.hero-creds span { padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--line-dark); }
.hero-creds span:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.photo-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; color: #A9B6C6; font-size: 14px; padding: 24px; height: 100%; min-height: 360px; background: var(--navy-3); }

/* ---------- 执业资历 ---------- */
.creds { background: var(--white); border-bottom: 1px solid var(--line); }
.creds-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cred { padding: 48px 32px 44px; border-left: 1px solid var(--line); }
.cred:first-child { border-left: 0; padding-left: 0; }
.cred-label { font-size: 12px; letter-spacing: .24em; color: var(--accent); margin-bottom: 12px; }
.cred-value { font-family: var(--font-serif); font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.cred-value small { font-size: 16px; font-weight: 400; margin-left: 6px; color: var(--gray); }
.cred-value.is-code { font-family: var(--font-latin); font-size: 22px; letter-spacing: .04em; padding: 10px 0 6px; font-weight: 400; }
.cred-note { margin-top: 8px; font-size: 13px; color: var(--gray); }

/* ---------- 通用区块 ---------- */
.section { padding: 128px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: end; margin-bottom: 64px; }
.section-head h2 { font-size: 40px; margin: 0; }
.section-head p { margin: 0; color: var(--gray); max-width: 560px; justify-self: end; font-size: 15px; }
.section-dark .section-head p { color: #A9B6C6; }
.section-head.is-inline { display: flex; justify-content: space-between; align-items: flex-end; }

/* 关于 */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: center; }
.about-photo { position: relative; }
.about-photo::before { content: ""; position: absolute; top: -24px; left: -24px; width: 55%; height: 55%; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.about-photo img, .about-photo .photo-placeholder { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; background: #55585D; }
.about-text h2 { font-size: 40px; margin-bottom: 8px; }
.about-meta { font-size: 14px; letter-spacing: .1em; color: var(--gray); margin: 0 0 32px; }
.about-text > p { font-size: 16px; line-height: 2.05; color: #3A3F47; margin: 0 0 36px; }
.about-list { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.about-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 14px; align-items: baseline; }
.about-list li:nth-child(odd) { padding-right: 24px; }
.about-list li::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--accent); transform: rotate(45deg); flex: none; position: relative; top: -2px; }

/* 业务 */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card {
	display: flex; flex-direction: column; gap: 14px; padding: 40px 32px 36px; min-height: 280px;
	border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white);
	transition: background-color .25s, color .25s;
}
.service-card { position: relative; }
.service-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.service-card:hover::before { transform: scaleX(1); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-icon { color: var(--accent); transition: color .25s, transform .35s; }
.service-card:hover .service-icon { color: var(--accent-soft); transform: translateY(-2px); }
.service-top .service-num { font-size: 15px; letter-spacing: .1em; color: var(--gray-light); }
.service-card:hover .service-num { color: #8A99AC; }
.service-num { font-family: var(--font-latin); font-size: 30px; color: var(--accent); line-height: 1; }
.service-card h3 { font-size: 20px; margin: 8px 0 0; transition: color .25s; }
.service-card p { margin: 0; color: var(--gray); font-size: 14px; line-height: 1.9; flex: 1; transition: color .25s; }
.service-more { font-size: 13px; letter-spacing: .14em; color: var(--navy); transition: color .25s; }
.service-more::after { content: " →"; }
.service-card:hover { background: var(--navy); }
.service-card:hover h3, .service-card:hover .service-more { color: var(--white); }
.service-card:hover p { color: #A9B6C6; }
.section-paper .service-card { background: var(--paper); }
.section-paper .service-card:hover { background: var(--navy); }

/* 同乡特色 */
.has-watermark { position: relative; overflow: hidden; }
.has-watermark .wrap { position: relative; z-index: 1; }
.watermark { position: absolute; right: -140px; top: 50%; width: 620px; height: 620px; margin-top: -310px; color: var(--accent); opacity: .07; pointer-events: none; }
.watermark .logo-mark { width: 100%; height: 100%; }
.feature-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; }
.feature-intro h2 { font-size: 40px; margin-bottom: 28px; }
.feature-intro p { color: #A9B6C6; font-size: 16px; line-height: 2; margin: 0 0 40px; }
.feature-quote { font-family: var(--font-serif); font-size: 24px; color: var(--accent-soft); letter-spacing: .1em; padding-left: 24px; border-left: 1px solid var(--accent); margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.feature { padding: 36px 32px 36px 0; border-bottom: 1px solid var(--line-dark); }
.feature:nth-child(even) { padding: 36px 0 36px 32px; border-left: 1px solid var(--line-dark); }
.feature-num { font-family: var(--font-latin); font-size: 14px; color: var(--accent); letter-spacing: .2em; margin-bottom: 14px; }
.feature h3 { font-size: 20px; margin: 0 0 10px; }
.feature p { margin: 0; color: #A9B6C6; font-size: 14px; line-height: 1.9; }

/* 办案流程 */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: none; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line); }
/* 进度线：进入视野时金线从 01 向右延伸，依次点亮每一步 */
.process::after {
	content: ""; position: absolute; left: 0; top: 23px; width: 100%; height: 1px;
	background: linear-gradient(90deg, var(--accent), var(--accent-soft));
	transform: scaleX(0); transform-origin: left; transition: transform 2s cubic-bezier(.45,.05,.35,1) .2s;
}
.process.is-in::after, html:not(.js) .process::after { transform: scaleX(1); }
.process li { position: relative; padding-right: 40px; }
.process-num {
	position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
	background: var(--white); border: 1px solid var(--accent); font-family: var(--font-latin); font-size: 15px; color: var(--accent); margin-bottom: 28px;
	transition: background-color .45s, border-color .45s, color .45s, transform .3s;
	transition-delay: calc(var(--i, 0) * .5s + .25s);
}
.process.is-in .process-num, html:not(.js) .process-num { background: var(--navy); border-color: var(--navy); color: var(--accent-soft); }
.process li:hover .process-num { background: var(--accent); border-color: var(--accent); color: var(--night); transform: scale(1.08); transition-delay: 0s; }
.process h3 { transition: color .3s; }
.process li:hover h3 { color: var(--navy-3); }
.js .process.stagger > li { transition-delay: calc(var(--i, 0) * .5s + .15s); }
.process.is-done .process-num { transition-delay: 0s; }
.process h3 { font-size: 20px; margin: 0 0 10px; }
.process p { margin: 0; color: var(--gray); font-size: 14px; line-height: 1.9; }

/* 文章 */
.post-list { border-top: 1px solid var(--navy); }
.post-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) 40px; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; }
.post-item::before { content: ""; position: absolute; inset: 0 -24px; z-index: -1; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.post-item:hover::before { transform: scaleX(1); }
.post-date { display: flex; flex-direction: column; line-height: 1.1; color: var(--navy); }
.post-date b { font-family: var(--font-latin); font-size: 36px; font-weight: 400; }
.post-date span { font-family: var(--font-latin); font-size: 13px; color: var(--gray); letter-spacing: .1em; margin-top: 6px; }
.post-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post-cat { font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.post-title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--navy); transition: color .2s; }
.post-excerpt { font-size: 14px; color: var(--gray); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-arrow { font-size: 20px; color: var(--gray-light); justify-self: end; transition: transform .2s, color .2s; }
.post-item:hover .post-title { color: var(--navy-3); }
.post-item:hover .post-arrow { color: var(--accent); transform: translateX(4px); }

/* 联系 */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.contact-info { background: var(--navy); color: var(--white); padding: 64px 56px; display: flex; flex-direction: column; gap: 28px; }
.contact-info h2 { color: var(--white); font-size: 36px; margin: 0; }
.contact-info > p { margin: 0; color: #A9B6C6; font-size: 15px; line-height: 1.9; }
.contact-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.contact-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.contact-row span:first-child { color: var(--accent); font-size: 13px; letter-spacing: .2em; padding-top: 2px; }
.contact-row.is-big span:last-child { font-family: var(--font-latin); font-size: 22px; letter-spacing: .04em; }
.qr { display: flex; gap: 20px; align-items: center; font-size: 13px; color: #A9B6C6; letter-spacing: .06em; }
.qr img, .qr .qr-placeholder { width: 108px; height: 108px; background: var(--white); padding: 6px; }
.qr .qr-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: var(--gray); }

.contact-form { background: var(--white); padding: 64px 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; align-content: start; border: 1px solid var(--line); border-left: 0; }
.contact-form h3 { grid-column: 1 / -1; margin: 0; font-size: 26px; }
.contact-form .form-sub { grid-column: 1 / -1; margin: -16px 0 0; font-size: 14px; color: var(--gray); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; letter-spacing: .1em; color: var(--gray); }
.contact-form input, .contact-form select, .contact-form textarea {
	font: inherit; font-size: 16px; letter-spacing: 0; color: var(--ink); width: 100%;
	border: 0; border-bottom: 1px solid #BFC5CE; border-radius: 0; background: transparent; padding: 8px 0;
}
.contact-form select { height: 44px; -webkit-appearance: none; appearance: none; background: linear-gradient(45deg, transparent 50%, var(--gray) 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--gray) 50%) right 0 center / 6px 6px no-repeat; }
.contact-form input { height: 44px; }
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 0; border-bottom-color: var(--navy); box-shadow: 0 1px 0 0 var(--navy); }
.contact-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .captcha { flex-direction: row; align-items: flex-end; gap: 16px; }
.contact-form .captcha span { padding-bottom: 10px; white-space: nowrap; }
.contact-form .captcha input { width: 120px; }
.contact-form .btn { justify-self: start; min-width: 200px; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--gray-light); }
.form-msg { grid-column: 1 / -1; padding: 12px 16px; font-size: 14px; margin: 0; }
.form-msg.ok { background: #EEF4EF; color: #1D5A36; }
.form-msg.err { background: #FBEDED; color: #8A1F1F; }

/* ---------- 内页 ---------- */
.page-banner { background: var(--navy); color: var(--white); padding: 88px 0 72px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border: 1px solid rgba(180,151,90,.25); transform: rotate(45deg); }
.page-banner h1 { color: var(--white); font-size: 44px; margin: 0; letter-spacing: .08em; }
.page-banner p { color: #A9B6C6; margin: 16px 0 0; max-width: 680px; font-size: 15px; }
.breadcrumb { font-size: 12px; letter-spacing: .14em; color: #8A99AC; margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--white); }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; padding: 80px var(--gutter) 128px; }
.content-main { min-width: 0; }
.content-side { display: flex; flex-direction: column; gap: 24px; }

.entry { font-size: 17px; line-height: 2; color: #2E333A; max-width: 760px; }
.entry h2 { font-size: 26px; margin: 2em 0 .8em; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.entry h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 1px; background: var(--accent); }
.entry h3 { font-size: 20px; margin-top: 1.6em; }
.entry p { margin: 0 0 1.3em; }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.entry li { margin-bottom: .4em; }
.entry a { color: var(--navy-3); border-bottom: 1px solid var(--accent); }
.entry blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); color: var(--gray); font-family: var(--font-serif); }
.entry table { width: 100%; border-collapse: collapse; margin: 1.6em 0; display: block; overflow-x: auto; font-size: 15px; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry th { background: var(--paper); }
.entry img { margin: 1.6em auto; }
.entry-meta { font-size: 13px; letter-spacing: .08em; color: var(--gray); margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

/* 业务页正文 */
.entry-service h2:first-child { margin-top: 0; }
.entry-service ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.entry-service ul li { position: relative; padding: 12px 0 12px 22px; margin: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.entry-service ul li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 6px; height: 6px; border: 1px solid var(--accent); transform: rotate(45deg); }
.entry-service ol { list-style: none; padding: 0; counter-reset: step; position: relative; }
.entry-service ol::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.entry-service ol li { counter-increment: step; position: relative; padding: 6px 0 18px 56px; margin: 0; }
.entry-service ol li::before {
	content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 2px; width: 35px; height: 35px;
	display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--accent);
	font-family: var(--font-latin); font-size: 13px; color: var(--accent);
}
.service-cta { max-width: 760px; margin-top: 48px; padding: 28px 32px; background: var(--navy); color: var(--white); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.service-cta div { display: flex; flex-direction: column; gap: 4px; }
.service-cta strong { font-family: var(--font-serif); font-size: 20px; letter-spacing: .06em; }
.service-cta span { font-size: 14px; color: #A9B6C6; }
.page-banner .eyebrow .cn { color: #A9B6C6; }

.geo-note { margin: 48px 0 0; padding: 24px 28px; background: var(--paper); border-left: 2px solid var(--accent); font-size: 14px; color: var(--gray); line-height: 1.9; max-width: 760px; }
.geo-note strong { color: var(--navy); }
.geo-note a { color: var(--navy); }

.side-box { background: var(--paper); padding: 32px 28px; }
.side-box h3 { font-size: 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--ink); font-size: 15px; border-bottom: 1px dashed var(--line); }
.side-box li a::after { content: "→"; color: var(--gray-light); }
.side-box li a:hover, .side-box li.current a { color: var(--navy-3); }
.side-box li.current a::after { color: var(--accent); }
.side-cta { background: var(--navy); color: var(--white); }
.side-cta h3 { color: var(--white); border-bottom-color: var(--line-dark); }
.side-cta p { color: #A9B6C6; margin: 0 0 20px; font-size: 14px; }
.side-cta .tel { display: block; font-family: var(--font-latin); font-size: 26px; color: var(--accent-soft); letter-spacing: .04em; margin-bottom: 4px; }

.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--gray); }
.post-nav a { color: var(--navy); }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); padding: 0 14px; font-size: 14px; }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cat-tabs a { padding: 6px 18px; border: 1px solid var(--line); font-size: 14px; }
.cat-tabs a.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.service-list-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 32px; }
.service-list-page .service-card { min-height: 220px; }

/* ---------- 关于律师页 ---------- */
.about-hero { background: radial-gradient(110% 120% at 90% 0%, #1A3A5C 0%, var(--navy) 50%, var(--night) 100%); color: var(--white); position: relative; }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.about-hero-text { padding: 72px 0 88px; }
.about-hero h1 { color: var(--white); font-size: clamp(40px, 5vw, 72px); letter-spacing: .12em; margin: 0 0 12px; }
.about-hero h1 span { font-size: .45em; letter-spacing: .3em; margin-left: .4em; color: var(--accent-soft); font-weight: 400; }
.about-hero-title { margin: 0 0 48px; font-size: 16px; letter-spacing: .14em; color: #BCC7D4; }
.about-hero-facts { list-style: none; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.about-hero-facts li { display: flex; flex-direction: column; gap: 4px; }
.about-hero-facts b { font-family: var(--font-serif); font-size: 34px; color: var(--accent-soft); font-weight: 700; line-height: 1.2; }
.about-hero-facts span { font-size: 13px; color: #A9B6C6; letter-spacing: .1em; }
.about-hero-photo { position: relative; margin-bottom: -96px; z-index: 2; align-self: end; }
.about-hero-photo::before { content: ""; position: absolute; top: -20px; right: -20px; width: 60%; height: 60%; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.about-hero-photo img, .about-hero-photo .photo-placeholder { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; box-shadow: 0 30px 60px rgba(8,23,42,.35); }

.about-lead { padding: 72px 0 40px; }
.lead-quote { margin: 0; max-width: 58%; font-family: var(--font-serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.7; color: var(--navy); letter-spacing: .04em; position: relative; padding-left: 36px; }
.lead-quote::before { content: "“"; position: absolute; left: 0; top: -.25em; font-family: var(--font-latin); font-size: 2.6em; color: var(--accent); line-height: 1; }

.about-creds { padding: 48px 0 0; }
.about-creds-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.about-cred { padding: 28px 28px 32px 0; border-right: 1px solid var(--line); }
.about-cred + .about-cred { padding-left: 28px; }
.about-cred:last-child { border-right: 0; }
.about-cred-label { display: block; font-size: 12px; letter-spacing: .24em; color: var(--accent); margin-bottom: 12px; }
.about-cred p { margin: 0; font-family: var(--font-serif); font-size: 18px; line-height: 1.6; color: var(--navy); font-weight: 700; }

.about-body { padding-top: 64px; padding-bottom: 24px; }
.license-card dl { margin: 0; }
.license-card dl > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.license-card dt { color: var(--gray); }
.license-card dd { margin: 0; color: var(--ink); }
.license-card .mono { font-family: var(--font-latin); letter-spacing: .04em; }
.license-note { margin: 14px 0 0; font-size: 12px; color: var(--gray-light); }

.practice-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.practice-chips a { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border: 1px solid var(--line); font-size: 15px; transition: border-color .2s, background-color .2s, color .2s; }
.practice-chips a span { font-family: var(--font-latin); font-size: 13px; color: var(--accent); }
.practice-chips a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--night); color: #8F9DAF; font-size: 13px; }
.site-footer a:hover { color: var(--white); }
.footer-cta { border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(90deg, rgba(180,151,90,.08), rgba(180,151,90,0) 60%); }
.footer-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 44px; padding-bottom: 44px; }
.footer-cta-text { display: flex; align-items: center; gap: 20px; }
.footer-cta-mark { width: 56px; height: 56px; color: var(--accent); flex: none; }
.footer-cta-mark .logo-mark { width: 100%; height: 100%; }
.footer-cta-text div { display: flex; flex-direction: column; gap: 6px; }
.footer-cta-text strong { font-family: var(--font-serif); font-size: 26px; color: var(--white); letter-spacing: .06em; }
.footer-cta-text span { font-size: 13px; color: #8F9DAF; letter-spacing: .1em; }
.footer-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer-cta-tel { font-family: var(--font-latin); font-size: 34px; color: var(--accent-soft); letter-spacing: .04em; }
.footer-cta-tel:hover { color: var(--white); }
.to-top { position: fixed; right: 28px; bottom: 28px; z-index: 90; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--accent-soft); border: 1px solid rgba(180,151,90,.5); font-size: 18px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s; }
.show-top .to-top { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--night); }
.footer-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 48px; padding: 80px 0 56px; }
.footer-brand .name { font-family: var(--font-serif); font-size: 22px; color: var(--white); letter-spacing: .16em; display: block; margin-bottom: 16px; }
.footer-brand p { margin: 0 0 8px; line-height: 1.9; }
.footer-col h4 { font-family: var(--font-sans); font-size: 12px; letter-spacing: .24em; color: var(--accent); font-weight: 400; margin: 0 0 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-tel { font-family: var(--font-latin); font-size: 24px; color: var(--white); letter-spacing: .04em; display: block; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12px; color: #6F7E91; }

/* ---------- 手机底部咨询栏 ---------- */
.mobile-bar { display: none; }

/* ---------- 微信二维码弹层（点击才出现，非自动弹窗） ---------- */
.wx-dialog { border: 0; padding: 0; max-width: 320px; width: calc(100% - 32px); }
.wx-dialog::backdrop { background: rgba(8,23,42,.7); }
.wx-dialog-inner { padding: 32px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.wx-dialog-inner img { width: 200px; height: 200px; }

/* =========================================================
   全站动效（克制）：内页横幅、照片展开、表单、按钮光泽、阅读进度
   ========================================================= */
/* 内页横幅：内容依次上浮，菱形线框缓慢旋转 */
.page-banner .wrap > *, .about-hero-text > * { animation: cl-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.page-banner .wrap > *:nth-child(2), .about-hero-text > *:nth-child(2) { animation-delay: .1s; }
.page-banner .wrap > *:nth-child(3), .about-hero-text > *:nth-child(3) { animation-delay: .2s; }
.page-banner .wrap > *:nth-child(4), .about-hero-text > *:nth-child(4) { animation-delay: .3s; }
.about-hero-text > *:nth-child(5) { animation-delay: .4s; }
.page-banner::after { animation: cl-spin 60s linear infinite; }
@keyframes cl-spin { from { transform: rotate(45deg); } to { transform: rotate(405deg); } }
.page-banner .eyebrow::before { animation: cl-line 1.2s ease-out .3s both; }

/* 关于律师页照片：从上往下展开 */
.about-hero-photo img { animation: cl-unveil 1.4s cubic-bezier(.7,0,.2,1) .2s both; }
.about-hero-photo::before { animation: cl-fade-in 1s ease 1.2s both; }
@keyframes cl-unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes cl-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* 首页简介照片：悬停轻微放大 */
.about-photo { overflow: visible; }
.about-photo img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s; }
.about-photo:hover img { transform: scale(1.02); filter: brightness(1.04); }

/* 同乡特色：悬停时编号下画出金线 */
.feature-num { position: relative; display: inline-block; }
.feature-num::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--accent); transition: width .4s cubic-bezier(.2,.7,.2,1); }
.feature:hover .feature-num::after { width: 32px; }
.feature h3 { transition: color .3s; }
.feature:hover h3 { color: var(--accent-soft); }

/* 表单：聚焦时底线由左向右变金 */
.contact-form input, .contact-form textarea {
	background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat;
	background-position: left bottom; background-size: 0 2px; transition: background-size .4s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.contact-form input:focus, .contact-form textarea:focus { background-size: 100% 2px; box-shadow: none; border-bottom-color: transparent; }

/* 金色按钮：悬停掠过光泽 */
.btn-accent { position: relative; overflow: hidden; isolation: isolate; }
.btn-accent::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); }
.btn-accent:hover::after { animation: cl-sheen .9s ease; }
@keyframes cl-sheen { to { left: 130%; } }

/* 业务页「办理流程」竖线画出 */
.js .entry-service ol::before { transform: scaleY(0); transform-origin: top; transition: transform 1.6s cubic-bezier(.45,.05,.35,1) .2s; }
.js .entry-service ol.is-in::before { transform: scaleY(1); }

/* 文章阅读进度条 */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 120; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); transform: scaleX(0); transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
	.page-banner .wrap > *, .about-hero-text > *, .page-banner::after, .page-banner .eyebrow::before,
	.about-hero-photo img, .about-hero-photo::before, .btn-accent:hover::after { animation: none; }
	.about-photo img, .feature-num::after, .contact-form input, .contact-form textarea { transition: none; }
	.js .entry-service ol::before { transform: none; transition: none; }
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1200px) {
	.main-nav ul { gap: 28px; }
	.hero h1 { font-size: 48px; font-size: min(64px, 10cqi); }
	.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
	.process::before, .process::after { display: none; }
}

@media (max-width: 1024px) {
	.header-phone { display: none; }
	/* 全屏菜单 */
	.nav-toggle { display: inline-flex; position: relative; z-index: 2; }
	.nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
	.nav-open .nav-toggle .icon-close { display: inline-flex; }
	.nav-toggle span { display: inline-flex; }
	.brand { position: relative; z-index: 2; }
	.nav-open { overflow: hidden; }
	.nav-open .mobile-bar, .nav-open .to-top { display: none; }
	.main-nav {
		position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between;
		padding: 92px var(--gutter) 28px; overflow-y: auto;
		background: radial-gradient(120% 80% at 100% 0%, #1A3A5C 0%, var(--navy) 45%, var(--night) 100%);
		opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
	}
	.main-nav.is-open { opacity: 1; visibility: visible; }
	.main-nav ul { flex-direction: column; gap: 0; counter-reset: nav; }
	.main-nav li { counter-increment: nav; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 60ms + 100ms); }
	.main-nav.is-open li { opacity: 1; transform: none; }
	.main-nav a { display: flex; align-items: baseline; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--font-serif); font-size: 22px; font-weight: 700; letter-spacing: .1em; color: var(--white); }
	.main-nav a::before { content: counter(nav, decimal-leading-zero); font-family: var(--font-latin); font-size: 13px; font-weight: 400; color: var(--accent); letter-spacing: .1em; }
	.main-nav a::after { display: none; }
	.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--accent-soft); }
	/* 手机菜单：子栏目直接列在下面，缩进显示 */
	.main-nav .menu-item-has-children > a { padding-right: 0; }
	.main-nav .menu-item-has-children > a::before { content: counter(nav, decimal-leading-zero); position: static; width: auto; height: auto; margin: 0; border: 0; transform: none; opacity: 1; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 4px 36px; background: none; border: 0; box-shadow: none; }
	.main-nav .sub-menu li { counter-increment: none; }
	.main-nav .sub-menu a, .is-scrolled .main-nav .sub-menu a { padding: 10px 0; font-family: var(--font-sans); font-size: 16px; font-weight: 400; letter-spacing: .08em; color: #C9D2DD; border-bottom: 1px dashed var(--line-dark); }
	.main-nav .sub-menu a::before { content: "—"; font-family: var(--font-sans); color: var(--accent); }
	.nav-extra { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; }
	@media (max-height: 760px) { .nav-extra-geo { display: none; } }
	.nav-extra-label { font-size: 12px; letter-spacing: .24em; color: var(--accent); }
	.nav-extra-tel { font-family: var(--font-latin); font-size: 32px; color: var(--white); letter-spacing: .04em; }
	.nav-extra .btn { align-self: flex-start; margin-top: 6px; }
	.nav-extra-geo { margin-top: 14px; font-size: 12px; color: #8A99AC; letter-spacing: .08em; }

	.hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 200px; }
	.hero-text { padding: 72px var(--gutter) 24px; }
	.hero-figure { text-align: left; padding: 0 var(--gutter); display: flex; align-items: flex-end; gap: 20px; }
	.hero-figure-num { font-size: 120px; }
	.hero-figure-label { margin: 0 0 12px; }
	.skyline { height: 200px; }

	.creds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cred:nth-child(3) { border-left: 0; padding-left: 0; }
	.cred:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

	.section { padding: 96px 0; }
	.section-head, .about, .feature-wrap, .contact { grid-template-columns: minmax(0, 1fr); }
	.section-head { gap: 20px; }
	.section-head p { justify-self: start; }
	.about, .feature-wrap { gap: 56px; }
	.about-photo { max-width: 480px; margin-left: 24px; }
	.contact-form { border-left: 1px solid var(--line); border-top: 0; }

	.content-layout { grid-template-columns: minmax(0, 1fr); gap: 56px; }
	.about-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.about-hero-text { padding: 56px 0 48px; }
	.about-hero-photo { max-width: 420px; margin: 0 0 -80px 20px; }
	.about-lead { padding-top: 120px; }
	.lead-quote { max-width: none; }
	.about-creds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about-cred:nth-child(2) { border-right: 0; }
	.about-cred:nth-child(3) { padding-left: 0; }
	.about-cred:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
	:root { --gutter: 20px; }
	body { padding-bottom: 64px; font-size: 15px; }
	.geo-bar .wrap span:last-child { display: none; }
	.site-header .wrap { min-height: 68px; }
	.brand-mark { width: 40px; height: 40px; }
	.brand-name { font-size: 18px; letter-spacing: .12em; }
	.brand-sub { letter-spacing: .14em; }

	.hero { min-height: 0; }
	.eyebrow { letter-spacing: .2em; gap: 10px; }
	.eyebrow::before { width: 24px; }
	.hero .eyebrow .en { display: none; }
	.hero-grid { padding-bottom: 150px; }
	.hero-text { padding: 48px var(--gutter) 16px; }
	.hero-figure-num { font-size: 88px; -webkit-text-stroke-width: 1px; }
	.hero-figure-label { font-size: 12px; letter-spacing: .12em; }
	.skyline { height: 150px; }
	.hero-scroll { display: none; }
	.hero-rotate { font-size: 16px; gap: 10px; }
	.rotator { min-width: 0; flex: 1; }
	.hero h1 { font-size: 32px; font-size: min(38px, 10cqi); letter-spacing: .04em; }
	.hero-intro { font-size: 15px; margin-bottom: 32px; }
	.hero-actions .btn { flex: 1 1 140px; padding: 0 16px; }
	.hero-creds { margin-top: 40px; flex-direction: column; gap: 6px; }
	.hero-creds span { border: 0; padding: 0; margin: 0; }

	.cred { padding: 28px 16px 24px; }
	.cred:nth-child(odd) { padding-left: 0; }
	.cred-value { font-size: 30px; }
	.cred-value.is-code { font-size: 15px; }

	.section { padding: 72px 0; }
	.section-head { margin-bottom: 40px; }
	.section-head h2, .about-text h2, .feature-intro h2 { font-size: 28px; }
	.about-photo { margin-left: 16px; }
	.about-photo::before { top: -16px; left: -16px; }
	.about-list { grid-template-columns: minmax(0, 1fr); }
	.about-list li:nth-child(odd) { padding-right: 0; }
	.service-grid, .service-list-page, .entry-service ul { grid-template-columns: minmax(0, 1fr); }
	.service-cta { padding: 24px 20px; }
	.service-cta .btn { width: 100%; }
	.process { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.process::before, .process::after { display: block; left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
	.process::after { background: linear-gradient(180deg, var(--accent), var(--accent-soft)); transform: scaleY(0); transform-origin: top; }
	.process.is-in::after, html:not(.js) .process::after { transform: scaleY(1); }
	.process li { padding: 0 0 0 72px; }
	.process-num { position: absolute; left: 0; top: 0; margin: 0; }
	.service-card { min-height: 0; padding: 28px 24px; }
	.feature-grid { grid-template-columns: minmax(0, 1fr); }
	.feature, .feature:nth-child(even) { padding: 28px 0; border-left: 0; }
	.feature-quote { font-size: 20px; }
	.post-item { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
	.post-date b { font-size: 28px; }
	.post-arrow { display: none; }
	.post-title { font-size: 17px; }
	.contact-info, .contact-form { padding: 40px 20px; }
	.contact-form { grid-template-columns: minmax(0, 1fr); }
	.contact-form .btn { width: 100%; }

	.page-banner { padding: 56px 0 48px; }
	.page-banner h1 { font-size: 30px; }
	.content-layout { padding: 48px var(--gutter) 80px; }
	.entry { font-size: 16px; }
	.footer-top { grid-template-columns: minmax(0, 1fr); padding: 56px 0 40px; gap: 32px; }
	.about-hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.about-hero-facts b { font-size: 24px; }
	.about-hero-facts span { font-size: 11px; letter-spacing: .04em; }
	.about-hero-photo { margin-right: 20px; }
	.about-creds-grid { grid-template-columns: minmax(0, 1fr); }
	.about-cred, .about-cred + .about-cred { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
	.practice-chips a { width: 100%; }

	/* —— 手机端 UI 精修（90% 客户来自微信） —— */
	body { font-size: 16px; }
	.section { padding: 64px 0; }
	.section-head p, .hero-intro { font-size: 15px; }

	/* 执业资历：证号单独占一整行，不再断行 */
	.cred:nth-child(n+3) { grid-column: 1 / -1; border-left: 0; padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
	.cred:nth-child(n+3) .cred-label { margin: 0; }
	.cred:nth-child(n+3) .cred-value { font-size: 22px; padding: 0; }
	.cred:nth-child(n+3) .cred-note { grid-column: 2; margin-top: 4px; }
	.cred:last-child { border-bottom: 0; }
	.cred-value.is-code { font-size: 20px; letter-spacing: .02em; }
	.cred-label { font-size: 12px; }
	.cred-note { font-size: 13px; }

	/* 简介：手机上显示前 5 行 */
	.about-summary { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
	.about-photo img, .about-photo .photo-placeholder { aspect-ratio: 1 / 1; }
	.about-list li { font-size: 15px; padding: 13px 0; }

	/* 主营业务：改成紧凑列表，一行一项，点整行进入 */
	.service-grid { border-left: 0; border-right: 0; }
	.service-card { flex-direction: row; align-items: center; gap: 16px; min-height: 0; padding: 18px 4px; border-right: 0; background: transparent; }
	.section-paper .service-card { background: transparent; }
	.service-num { font-size: 20px; width: 32px; flex: none; }
	.service-top { flex: none; }
	.service-top .service-num { display: none; }
	.service-icon { width: 30px; height: 30px; }
	.service-card::before { display: none; }
	.watermark { width: 360px; height: 360px; right: -120px; margin-top: -180px; }
	.footer-cta-inner { padding-top: 32px; padding-bottom: 32px; }
	.footer-cta-mark { display: none; }
	.footer-cta-text strong { font-size: 20px; }
	.footer-cta-tel { font-size: 28px; }
	.footer-cta-actions .btn { display: none; }
	.footer-tel { display: none; }
	.to-top { display: none; }
	.service-card h3 { font-size: 17px; margin: 0; flex: 1; }
	.service-card p { display: none; }
	.service-more { font-size: 0; }
	.service-more::after { content: "→"; font-size: 18px; color: var(--gray-light); }
	.service-card:last-child { margin-top: 16px; padding: 22px 20px; flex-wrap: wrap; }
	.service-card:last-child p { display: block; flex-basis: 100%; order: 3; font-size: 14px; }
	.service-card:last-child .service-more { font-size: 14px; order: 4; }
	.service-card:last-child .service-more::after { content: " →"; font-size: 14px; color: inherit; }

	/* 同乡特色：两列小方块 */
	.feature-intro h2 { margin-bottom: 20px; }
	.feature-intro p { margin-bottom: 24px; }
	.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.feature, .feature:nth-child(even) { padding: 22px 16px 22px 0; border-left: 0; }
	.feature:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-dark); }
	.feature h3 { font-size: 17px; }
	.feature p { font-size: 13px; }

	/* 流程、文章 */
	.process p, .post-excerpt { font-size: 14px; }
	.post-item { padding: 22px 0; }

	/* 联系区更紧凑 */
	.contact-info { gap: 20px; }
	.contact-info h2 { font-size: 28px; }
	.contact-row { padding: 12px 0; }
	.contact-form { gap: 22px; }

	/* 页脚：导航横排，减少高度 */
	.footer-col ul { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
	.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
	.footer-bottom { flex-direction: column; }

	.mobile-bar {
		display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
		background: var(--night); border-top: 1px solid var(--line-dark);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; color: var(--white); font-size: 12px; letter-spacing: .1em; }
	.mobile-bar a + a { border-left: 1px solid var(--line-dark); }
	.mobile-bar a.primary { background: var(--accent); color: var(--night); font-weight: 700; }
}
