/* 定稿首页：全宽首屏、居中内容模块、蓝灰外侧背景、通栏履历、路径表、案例卡片与日期笔记共用一套响应式结构。 */
body.home{background:#eef3f6}
.home .reference-site{width:100%;margin:0}
body.home:before{display:none}
.home .reference-hero:after{content:"";position:absolute;z-index:1;left:0;right:0;top:0;height:145px;background:linear-gradient(180deg,rgba(247,250,251,.82),rgba(247,250,251,.25) 70%,transparent);pointer-events:none}
.reference-hero{position:relative;height:590px;background:url('../images/legal-hero-scene-v2-1280.webp') center/cover no-repeat;overflow:hidden}
.reference-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(247,250,251,.99) 0%,rgba(247,250,251,.93) 31%,rgba(247,250,251,.36) 59%,rgba(23,45,60,.06) 100%);z-index:0}
.reference-hero-copy{position:absolute;z-index:3;left:max(54px,calc((100% - 1200px)/2 + 48px));right:40%;top:174px}
.reference-kicker{display:flex;align-items:center;gap:12px;color:#9A7B3F;font-size:12px;font-weight:700;letter-spacing:3px}
.reference-kicker:before{content:"";width:34px;height:2px;background:#C9A96A}
.reference-hero-copy h1{margin:22px 0 20px;font-size:clamp(40px,4.7vw,58px);line-height:1.14;letter-spacing:-1.5px;color:#172631;white-space:nowrap}
.reference-subtitle{margin:0;color:#173F5F;font-size:23px;line-height:1.5;font-weight:600}
.reference-intro{margin:16px 0 0;color:#5b6c77;font-size:15px;line-height:28px;max-width:600px}
.reference-portrait{position:absolute;z-index:2;right:max(30px,calc((100% - 1200px)/2 + 30px));bottom:0;height:530px;width:auto;max-width:none;filter:drop-shadow(0 12px 20px rgba(23,38,49,.12))}
.reference-stats{position:relative;z-index:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:min(1204px,calc(100% - 72px));margin:-64px auto 0;background:rgba(255,255,255,.97);box-shadow:0 16px 40px rgba(23,38,49,.13);border-radius:4px}
.reference-stat{padding:26px 28px 24px;border-right:1px solid #D7E1E6}
.reference-stat:last-child{border-right:0}
.reference-stat b{display:block;color:#9A7B3F;font-size:28px;line-height:1.2}
.reference-stat span{display:block;margin-top:7px;color:#153A56;font-size:14px;font-weight:700}
.reference-stat small{display:block;margin-top:6px;color:#5B6C77;font-size:11px;line-height:18px}
.reference-paths,.reference-content-section{width:min(1200px,100%);margin:0 auto;background:#f7f9fa}
.reference-paths{padding:70px 48px 42px}
.reference-content-section{padding:70px 48px}
.reference-section-kicker{color:#9A7B3F;font-size:11px;font-weight:700;letter-spacing:3px}
.reference-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:30px}
.reference-section-head h2{margin:13px 0 0;font-size:36px;line-height:1.3;color:#172631}
.reference-section-head>p{max-width:460px;margin:0;color:#5B6C77;font-size:13px;line-height:24px}
.reference-section-link{flex:0 0 auto;color:#9A7B3F;font-size:13px;font-weight:600;white-space:nowrap}
.reference-section-link:hover{color:#C9A96A}
/* 路径表：桌面保留三列表格，手机使用无金色顶条的紧凑折叠卡。
   结构原理：Chromium 会把 details 的非 summary 子元素包进一个匿名盒，grid 直接落在 details 上
   时匿名盒只占第二列、第三列被吃掉（核对/处理两格会上下叠在第二列）。
   所以桌面改成两列网格：第一列标题，第二列就是那个匿名盒；盒内两格用 inline-block 半宽并排。
   front-page.php 中 check 与 action 两个 div 必须紧挨，任何空白都会产生约 4px 缝隙导致错位。 */
.reference-path-panel{padding:0 26px;background:transparent;border:0;border-radius:3px;box-shadow:none}
.reference-path-head,.reference-path-row{display:grid;grid-template-columns:1.05fr 2fr;column-gap:46px}
.reference-path-head{padding:16px 0 14px;background:transparent;color:#5B6C77;font-size:10px;font-weight:700;letter-spacing:1.5px;border-bottom:1px solid #d7e1e6}
.reference-path-head-rest{font-size:0}
.reference-path-head-label{display:inline-block;vertical-align:top;width:calc(50% - 23px);font-size:10px;font-weight:700;letter-spacing:1.5px}
.reference-path-head-label+.reference-path-head-label{margin-left:46px}
.reference-path-head-label:first-child{position:relative;left:-20px}
.reference-path-panel .reference-path-row{align-items:start;padding:24px 0;border-bottom:1px solid #D7E1E6;box-shadow:none;cursor:default}
.reference-path-panel .reference-path-row:last-child{border-bottom:0}
.reference-path-situation{position:relative;display:block;padding-left:16px;list-style:none}
.reference-path-situation::-webkit-details-marker{display:none}
.reference-path-situation:before{content:"";position:absolute;left:0;top:4px;width:3px;height:24px;background:#c9a96a}
.reference-path-toggle{display:none}
.reference-path-row h3{margin:0;color:#173f5f;font-family:"Source Han Serif SC","Noto Serif SC","Songti SC","STSong","SimSun",serif;font-size:19px;font-weight:600;letter-spacing:.5px;line-height:1.6}
.reference-path-check{display:inline-block;vertical-align:top;position:relative;left:-20px;width:calc(50% - 23px);color:#5b6c77;font-size:13px;font-weight:500;line-height:25px}
.reference-path-panel .reference-path-action{display:inline-block;vertical-align:top;width:calc(50% - 23px);margin-left:46px;padding:0;border:0;color:#173f5f;font-size:13px;font-weight:500;line-height:25px}
@media(max-width:1100px){.reference-path-head,.reference-path-row{column-gap:20px}}
/* 案例复盘：桌面与平板网格；手机规则见 home-mobile.css。 */
.reference-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media(max-width:1100px){
 .reference-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.reference-about{display:grid;grid-template-columns:.9fr 1.1fr;gap:44px;align-items:center;width:min(1200px,100%);margin:0 auto;padding:48px 48px 60px;background:#f7f9fa}
.reference-about .quote{font-size:23px;line-height:36px}
.reference-about>p:last-child{margin:0;color:var(--muted);font-size:14px;line-height:27px}
.reference-about-link{display:inline-block;margin-top:12px;color:#9A7B3F;font-size:13px;font-weight:650;line-height:24px}
.reference-about-link:hover{color:#C9A96A}
.home-body-shell{width:min(1200px,100%);margin:0 auto}
@media(min-width:1280px){
 .home .home-body-shell{box-shadow:-36px 0 72px -36px rgba(45,70,87,.24),36px 0 72px -36px rgba(45,70,87,.24)}
}
@media(max-width:1100px){
 .reference-hero-copy{left:36px}.reference-portrait{right:-30px;height:500px}
 .reference-paths,.reference-content-section{padding-left:30px;padding-right:30px}
}
@media(max-width:860px){
 .reference-hero-copy{top:140px;right:32%}.reference-hero-copy h1{font-size:40px}.reference-subtitle{font-size:20px}
 .reference-portrait{right:-60px;height:440px}.reference-stat{padding:22px 18px}
}
@media(max-width:760px){
 .reference-hero{height:680px;background-image:url('../images/legal-hero-scene-v2-mobile.webp');background-position:center}
 .reference-hero:before{background:linear-gradient(180deg,rgba(247,250,251,.97) 0%,rgba(247,250,251,.82) 45%,rgba(247,250,251,.12) 78%)}
 .reference-hero-copy{left:24px;right:20px;top:116px}
 .reference-hero-copy h1{font-size:clamp(25px,7.2vw,40px);letter-spacing:-1px}
 .reference-kicker{font-size:10px;letter-spacing:2px}.reference-subtitle{font-size:19px}.reference-intro{font-size:13px;line-height:24px;max-width:330px}
 .reference-portrait{right:-14px;bottom:0;height:360px}
 .reference-stats{grid-template-columns:1fr 1fr;width:100%;margin:0;border-radius:0;box-shadow:none}
 .reference-stat{padding:20px 22px;border-bottom:1px solid #D7E1E6}.reference-stat:nth-child(2){border-right:0}.reference-stat b{font-size:24px}
 .reference-about{grid-template-columns:1fr;gap:24px;width:100%;padding:44px 22px;background:#f7f9fa}.reference-about .quote{font-size:20px;line-height:32px}
}
@media(max-width:480px){
 .reference-hero-copy h1{font-size:clamp(24px,7.1vw,34px)}
 .reference-stat{padding:18px 16px}.reference-stat small{font-size:10px}
}
/* 首页笔记：桌面结构；手机规则见 home-mobile.css。 */
.reference-content-section.notes{display:grid;grid-template-columns:220px minmax(0,1fr);gap:64px;align-items:start;padding:64px 48px}
.reference-content-section.notes>.reference-section-head{display:block;margin:0}
.reference-content-section.notes .reference-section-link{display:inline-block;margin-top:22px}
/* 容器：定位参照 + 裁切溢出（半圆露角的关键） */
.reference-content-section.notes{
  position:relative;
  overflow:hidden;
}
.reference-content-section.notes:after{
  content:"";
  position:absolute;
  left:24px; bottom:24px;
  width:64px; height:64px;
  background-image:radial-gradient(rgba(201,169,106,.35) 1px,transparent 1px);
  background-size:12px 12px;
  pointer-events:none;
  z-index:0;
  -webkit-mask-image:linear-gradient(45deg,#000,transparent 75%);
          mask-image:linear-gradient(45deg,#000,transparent 75%);
}
.reference-content-section.notes > *{position:relative;z-index:1;}
@media(max-width:1100px){
 .reference-content-section.notes{grid-template-columns:180px minmax(0,1fr);gap:36px}
}
@media(prefers-reduced-motion:reduce){.reference-note-row{transition:none}}

/* 首页与流程页统一：现代深蓝、金色细节、浅色模块和细分隔线 */
.home .reference-hero-copy h1{font-family:"Source Han Serif SC","Noto Serif SC","Songti SC","STSong","SimSun",serif;font-weight:700;letter-spacing:.5px}
.home .reference-subtitle{color:#173f5f}
.home .reference-stats{border:1px solid #d7e1e6;background:#fff;box-shadow:0 14px 34px rgba(23,63,95,.10)}
.home .reference-stat{position:relative;border-right-color:#D7E1E6}
.home .reference-stat:before{content:"";position:absolute;left:28px;top:0;width:34px;height:2px;background:#c9a96a}
.home .reference-stat b{color:#9A7B3F;font-family:"Source Han Serif SC","Noto Serif SC","Songti SC","STSong","SimSun",serif}
.home .reference-stat span{color:#173f5f}
.home .reference-section-kicker{display:flex;align-items:center;gap:10px;color:#9A7B3F}
.home .reference-section-kicker:before{content:"";width:22px;height:2px;background:#c9a96a}
.home .reference-section-head h2{font-family:"Source Han Serif SC","Noto Serif SC","Songti SC","STSong","SimSun",serif;font-size:32px;font-weight:600;letter-spacing:2px}
.home .reference-section-link{color:#173f5f}
.home .reference-section-link:hover{color:#C9A96A}
.home .reference-about{border-top:2px solid #c9a96a;background:linear-gradient(125deg,#153a56,#244F6B)}
.home .reference-about .quote{color:#FFFFFF;font-family:"Source Han Serif SC","Noto Serif SC","Songti SC","STSong","SimSun",serif;font-weight:600;letter-spacing:1px}
.home .reference-about .quote:before{content:"ABOUT / PRACTICE";display:block;margin-bottom:16px;color:#c9a96a;font-family:Arial,sans-serif;font-size:9px;font-weight:400;letter-spacing:2px}
.home .reference-about>p:last-child{color:#D7E1E6}
.home .reference-about-link{color:#c9a96a}
.home .reference-about-link:hover{color:#FFFFFF}

/* 首页笔记：桌面卡片；手机规则见 home-mobile.css。 */
.home .reference-note-list{border:0}
.home .reference-note-row{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr) 20px;gap:14px;align-items:center;margin-bottom:10px;padding:22px 16px;border:1px solid #d7e1e6;border-radius:3px;background:#fff;box-shadow:0 6px 18px rgba(23,63,95,.04);transition:box-shadow .2s ease,transform .2s ease}
.home .reference-note-row:before{content:"";position:absolute;left:20px;top:-1px;width:42px;height:2px;background:#c9a96a}
.home .reference-note-date{display:flex;flex-direction:column;align-items:flex-start;padding-right:12px;border-right:1px solid #D7E1E6;color:#9A7B3F;font-family:Arial,sans-serif}
.home .reference-note-date b{font-size:21px;line-height:1.1;font-weight:500;letter-spacing:.5px}
.home .reference-note-date small{display:block;margin-top:5px;color:#5B6C77;font-size:9px;line-height:1.2;letter-spacing:1.5px}
.home .reference-note-main>span{display:block;margin:0 0 2px;padding:0;border:0;background:transparent;color:#9A7B3F;font-size:9px;font-weight:300;letter-spacing:1px}
.home .reference-note-main h3{margin:0;color:#173f5f;font-family:"Source Han Serif SC","Noto Serif SC","Songti SC","STSong","SimSun",serif;font-size:16px;font-weight:600;line-height:1.5;letter-spacing:.2px}
.home .reference-note-arrow{color:#9A7B3F;font-size:16px;text-align:right}
.home .reference-note-row:hover{border-color:#c9a96a;box-shadow:0 10px 24px rgba(23,63,95,.08);transform:translateY(-2px)}
.home .reference-note-row:hover .reference-note-main h3{color:#173f5f}

/* 首页办理流程入口：桌面卡片；手机规则见 home-mobile.css。 */
.home-process-links{display:grid;grid-template-columns:180px minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:34px;padding-top:26px;border-top:1px solid #d7e1e6}
.home-process-label{display:flex;flex-direction:column;justify-content:center;color:#9A7B3F;font-family:Arial,sans-serif;font-size:9px;letter-spacing:1.8px}
.home-process-label b{margin-top:9px;color:#172631;font-family:"Source Han Serif SC","Noto Serif SC","Songti SC","STSong","SimSun",serif;font-size:17px;font-weight:600;letter-spacing:.5px}
.home-process-links a{display:flex;flex-direction:column;justify-content:center;min-height:116px;padding:20px 22px;border:1px solid #d7e1e6;border-top:2px solid #153a56;background:#fff;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.home-process-links a small{color:#9A7B3F;font-family:Arial,sans-serif;font-size:9px;letter-spacing:1.5px}
.home-process-links a b{margin-top:10px;color:#173f5f;font-family:"Source Han Serif SC","Noto Serif SC","Songti SC","STSong","SimSun",serif;font-size:18px;font-weight:600;line-height:1.5}
.home-process-links a>span{margin-top:12px;color:#5B6C77;font-size:11px}
.home-process-links a:hover{border-color:#c9a96a;box-shadow:0 10px 24px rgba(23,63,95,.08);transform:translateY(-2px)}

@media(max-width:480px){
 .reference-portrait{right:0}
}

/* —— 首屏标题允许换行 —— */
@media(max-width:760px){
 .home .reference-hero-copy h1{white-space:normal;word-break:break-word}
}

/* ===== 首页首屏换图 + 作者署名（原 responsive.css，合并进 home.css） ===== */
.reference-portrait-credit{display:none}
@media(min-width:1600px){
 .reference-hero{background-image:url('../images/legal-hero-scene-v2-1920.webp')}
}
@media(max-width:760px){
 .reference-portrait-credit{position:absolute;z-index:3;left:24px;bottom:74px;display:block;color:#24455e;pointer-events:none}
 .reference-portrait-credit small{display:block;margin-bottom:5px;color:#9A7B3F;font-size:11px;font-weight:700;letter-spacing:2px}
 .reference-portrait-credit b{display:block;font-size:23px;line-height:1.35;font-weight:650}
}
@media(max-width:480px){
 .reference-portrait-credit{left:20px;bottom:64px}
 .reference-portrait-credit b{font-size:21px}
}

/* ===== 首页：企业合规指南入口（手机规则见 home-mobile.css） ===== */
.home-enterprise-guide>a{background:linear-gradient(115deg,#FAF8F3 0%,#F3ECDE 38%,#EBDCC0 72%,#E2CDA5 100%);display:block;padding:40px 64px;color:#293a45;text-decoration:none;box-shadow:0 7px 20px rgba(23,63,95,.045);transition:box-shadow .2s ease,transform .2s ease}
.home-enterprise-guide-copy{display:block}
.home-enterprise-guide-copy small{display:block;color:#9A7B3F;font-family:Arial,sans-serif;font-size:9px;font-weight:700;line-height:1.5;letter-spacing:1.5px}
.home-enterprise-guide-copy strong{display:block;margin-top:7px;color:#173f5f;font-family:"Source Han Serif SC","Noto Serif SC","Songti SC","STSong","SimSun",serif;font-size:22px;font-weight:600;line-height:1.5}
.home-enterprise-guide-copy>span{display:block;margin-top:7px;color:#5B6C77;font-size:13px;line-height:1.8}
.home-enterprise-guide-action{display:inline-flex;margin-top:12px;flex:0 0 auto;align-items:center;gap:12px;min-height:44px;color:#9A7B3F;font-size:13px;font-weight:650;white-space:nowrap}
.home-enterprise-guide-action i{font-size:19px;font-style:normal;font-weight:400;transition:transform .2s ease}
.home-enterprise-guide>a:hover{box-shadow:0 10px 24px rgba(23,63,95,.08);transform:translateY(-2px)}
.home-enterprise-guide>a:hover .home-enterprise-guide-action i{transform:translateX(3px)}
.home-enterprise-guide>a:focus-visible{outline:2px solid #c9a96a;outline-offset:4px}
