/* =========================================================
   安信10中心 · 全站共享样式 /assets/site.css
   重置 / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================= */

/* ---------- 1. 重置 ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body,h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
img,svg,video{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
table{border-collapse:collapse;width:100%}

/* ---------- 2. 设计变量 ---------- */
:root{
  --deep:#0B2A4A;
  --deep-soft:#12385E;
  --midnight:#071B30;
  --orange:#FF6B35;
  --terracotta:#D94E1F;
  --steel:#A9C7D8;
  --mist:#DCE8EF;
  --rock:#6B7A8A;
  --sand:#F2E7D5;
  --moss:#5E7A6A;
  --paper:#FAF7F0;
  --ink:#142c46;
  --ink-soft:#41556b;

  --font-title:'Noto Sans SC','Source Han Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
  --font-body:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
  --font-mono:'IBM Plex Mono','SFMono-Regular','Menlo','Consolas',monospace;

  --fs-display:clamp(2.5rem,6.6vw,5.5rem);
  --fs-h1:clamp(2.1rem,4.4vw,3.5rem);
  --fs-h2:clamp(1.6rem,3vw,2.5rem);
  --fs-h3:clamp(1.15rem,1.7vw,1.55rem);
  --fs-body:clamp(1rem,1.05vw,1.0625rem);
  --fs-small:.8125rem;
  --fs-tiny:.75rem;

  --radius-card:24px;
  --radius-lg:32px;
  --radius-pill:999px;

  --shell:1240px;
  --gutter:clamp(18px,4vw,40px);
  --section-gap:clamp(56px,8vw,112px);

  --shadow-float:0 22px 48px -26px rgba(7,27,48,.7);
  --shadow-card:0 30px 60px -48px rgba(7,27,48,.8);
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- 3. 基础排版 ---------- */
body{
  min-height:100vh;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:var(--fs-body);
  font-weight:400;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5,h6{
  font-family:var(--font-title);
  font-weight:900;
  line-height:1.12;
  letter-spacing:-.02em;
  color:var(--deep);
}
h1{font-size:var(--fs-h1)}
h2{font-size:var(--fs-h2)}
h3{font-size:var(--fs-h3);line-height:1.3;letter-spacing:-.01em}
h4{font-size:1.05rem;line-height:1.4;letter-spacing:0}
p{line-height:1.78}
strong{font-weight:700;color:var(--deep)}
small{font-size:var(--fs-small);line-height:1.5}
code,kbd,samp{font-family:var(--font-mono);font-size:.9em;letter-spacing:.02em}

:focus-visible{outline:3px solid var(--orange);outline-offset:3px;border-radius:6px}
::selection{background:rgba(255,107,53,.26);color:var(--deep)}

#main-content{scroll-margin-top:104px}

/* ---------- 4. 通用容器与工具 ---------- */
.container{
  width:100%;
  max-width:var(--shell);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}
.prose{max-width:68ch;color:var(--ink-soft)}
.prose p + p{margin-top:1.05em}
.prose h2,.prose h3{margin-top:1.8em;margin-bottom:.55em;color:var(--deep)}
.prose ul,.prose ol{margin:1em 0;padding-left:1.25em;list-style:disc}
.prose li{line-height:1.8}
.rule{height:1px;border:0;margin:0;background:rgba(11,42,74,.12)}
.visually-hidden{
  position:absolute!important;
  width:1px;height:1px;
  margin:-1px;padding:0;border:0;
  clip:rect(0 0 0 0);clip-path:inset(50%);
  overflow:hidden;white-space:nowrap;
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link{
  position:fixed;
  left:16px;
  top:-140px;
  z-index:200;
  display:inline-flex;
  align-items:center;
  padding:12px 22px;
  border-radius:var(--radius-pill);
  background:var(--orange);
  color:#37130a;
  font-weight:800;
  font-size:.9rem;
  transition:top .18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible{top:14px;outline:3px solid var(--deep);outline-offset:3px}

/* ---------- 6. 头部 ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:90;
  padding:clamp(10px,1.4vw,16px) var(--gutter) clamp(12px,1.6vw,18px);
}
.header-shell{
  position:relative;
  width:100%;
  max-width:var(--shell);
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:clamp(12px,2vw,28px);
  padding:9px 10px 9px 18px;
  border-radius:var(--radius-pill);
  background:linear-gradient(102deg,var(--deep) 0%,var(--deep-soft) 58%,var(--midnight) 100%);
  border:1px solid rgba(169,199,216,.22);
  box-shadow:var(--shadow-float);
  color:var(--paper);
}

/* 品牌 */
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  flex:0 0 auto;
  padding:3px 4px 3px 2px;
  border-radius:var(--radius-pill);
}
.brand-mark{
  position:relative;
  width:32px;height:32px;
  flex:0 0 auto;
  border-radius:11px;
  background:var(--orange);
  box-shadow:0 0 0 4px rgba(255,107,53,.16);
  transition:transform .24s var(--ease),box-shadow .24s var(--ease);
}
.brand-mark::before{
  content:"";
  position:absolute;
  left:9px;top:9px;
  width:13px;height:13px;
  border-radius:4px;
  background:var(--midnight);
}
.brand-mark::after{
  content:"";
  position:absolute;
  right:-2px;bottom:-2px;
  width:10px;height:10px;
  border-radius:50%;
  background:var(--steel);
  border:2px solid var(--deep);
}
.brand:hover .brand-mark{transform:rotate(-6deg);box-shadow:0 0 0 6px rgba(255,107,53,.2)}
.brand-text{display:block;min-width:0}
.brand-name{
  display:block;
  font-family:var(--font-title);
  font-size:1.02rem;
  font-weight:900;
  letter-spacing:.01em;
  line-height:1.2;
  color:var(--paper);
}
.brand-line{
  display:block;
  font-size:.69rem;
  font-weight:300;
  letter-spacing:.04em;
  line-height:1.35;
  color:var(--steel);
}

/* 移动按钮 */
.nav-toggle{
  display:none;
  align-items:center;
  gap:9px;
  margin-left:auto;
  padding:9px 15px 9px 13px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(169,199,216,.34);
  color:var(--paper);
  font-size:.86rem;
  font-weight:600;
  letter-spacing:.04em;
  transition:background-color .2s var(--ease),border-color .2s var(--ease);
}
.nav-toggle:hover{background:rgba(169,199,216,.14);border-color:rgba(169,199,216,.55)}
.nav-toggle-bars{display:grid;gap:4px;width:17px}
.nav-toggle-bars span{
  display:block;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transition:transform .2s var(--ease),opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.nav-toggle-text{white-space:nowrap}

/* 导航 */
.site-nav{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  min-width:0;
}
.nav-list{display:flex;align-items:center;gap:2px}
.nav-link{
  display:block;
  padding:9px 14px;
  border-radius:var(--radius-pill);
  font-size:.93rem;
  font-weight:500;
  letter-spacing:.01em;
  color:rgba(250,247,240,.82);
  white-space:nowrap;
  transition:background-color .2s var(--ease),color .2s var(--ease);
}
.nav-link:hover{color:#fff;background:rgba(169,199,216,.18)}
.nav-link[aria-current="page"]{
  background:var(--paper);
  color:var(--deep);
  font-weight:800;
  box-shadow:0 8px 18px -12px rgba(0,0,0,.9);
}
.nav-link[aria-current="page"]:hover{background:#fff;color:var(--deep)}
.nav-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:6px;
  padding:10px 18px;
  border-radius:var(--radius-pill);
  background:var(--orange);
  color:#37130a;
  font-size:.9rem;
  font-weight:800;
  white-space:nowrap;
  transition:background-color .2s var(--ease),transform .2s var(--ease),box-shadow .2s var(--ease);
}
.nav-cta::after{
  content:"";
  width:6px;height:6px;
  border-radius:50%;
  background:#37130a;
}
.nav-cta:hover{background:#ff8459;transform:translateY(-1px);box-shadow:0 14px 26px -16px rgba(255,107,53,.9)}

/* 阅读进度 */
.scroll-progress{
  position:absolute;
  left:0;right:0;bottom:0;
  height:3px;
  overflow:hidden;
  pointer-events:none;
}
.scroll-progress-bar{
  display:block;
  width:100%;height:100%;
  transform:scaleX(0);
  transform-origin:0 50%;
  background:linear-gradient(90deg,var(--orange),var(--terracotta));
  border-radius:0 3px 3px 0;
  transition:transform .1s linear;
}

/* ---------- 7. 页脚 ---------- */
.site-footer{
  margin-top:var(--section-gap);
  padding:clamp(40px,6vw,76px) var(--gutter) clamp(26px,4vw,40px);
  background:linear-gradient(178deg,var(--deep) 0%,var(--midnight) 88%);
  color:var(--paper);
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
}
.footer-shell{width:100%;max-width:var(--shell);margin:0 auto}
.footer-top{
  display:grid;
  grid-template-columns:1.5fr .8fr .8fr 1.25fr;
  gap:clamp(26px,4vw,56px);
  padding-bottom:clamp(28px,4vw,48px);
  border-bottom:1px solid rgba(169,199,216,.18);
}
.footer-brand{min-width:0}
.footer-name{
  font-family:var(--font-title);
  font-size:1.28rem;
  font-weight:900;
  letter-spacing:.01em;
  line-height:1.2;
  color:var(--paper);
}
.footer-line{
  margin-top:8px;
  font-size:.88rem;
  font-weight:300;
  line-height:1.6;
  color:var(--steel);
}
.footer-status{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:18px;
  font-size:.8rem;
  font-weight:400;
  color:rgba(250,247,240,.72);
}
.status-dot{
  width:8px;height:8px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--moss);
  box-shadow:0 0 0 4px rgba(94,122,106,.3);
}
.footer-col{min-width:0}
.footer-col-title{
  margin-bottom:16px;
  font-family:var(--font-body);
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.18em;
  line-height:1.4;
  color:var(--steel);
}
.footer-links{display:grid;gap:11px}
.footer-links a{
  display:inline-block;
  font-size:.94rem;
  font-weight:400;
  color:rgba(250,247,240,.78);
  transition:color .2s var(--ease),transform .2s var(--ease);
}
.footer-links a:hover{color:var(--orange);transform:translateX(2px)}
.footer-links a[aria-current="page"]{color:var(--orange);font-weight:700}

.footer-contact{display:grid;gap:13px}
.footer-contact li{display:grid;gap:3px}
.contact-key{
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.16em;
  color:rgba(169,199,216,.72);
}
.contact-val{
  font-size:.9rem;
  font-weight:400;
  line-height:1.55;
  color:rgba(250,247,240,.9);
  overflow-wrap:anywhere;
}
.contact-val--mono{font-family:var(--font-mono);letter-spacing:.02em}

.footer-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:20px;
  padding:11px 20px;
  border-radius:var(--radius-pill);
  background:var(--orange);
  color:#37130a;
  font-size:.88rem;
  font-weight:800;
  transition:background-color .2s var(--ease),transform .2s var(--ease);
}
.footer-cta::after{content:"";width:6px;height:6px;border-radius:50%;background:#37130a}
.footer-cta:hover{background:#ff8459;transform:translateY(-1px)}

.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 26px;
  padding-top:clamp(20px,3vw,30px);
  font-size:.78rem;
  color:rgba(169,199,216,.86);
}
.footer-copy{line-height:1.6}
.footer-legal{display:flex;flex-wrap:wrap;gap:8px 20px}
.footer-legal a{color:rgba(250,247,240,.8);transition:color .2s var(--ease)}
.footer-legal a:hover{color:var(--orange)}
.footer-icp{
  margin-left:auto;
  font-family:var(--font-mono);
  font-size:.76rem;
  letter-spacing:.02em;
  color:rgba(169,199,216,.8);
}

/* ---------- 8. 通用按钮 ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:48px;
  padding:0 24px;
  border-radius:var(--radius-pill);
  border:1px solid transparent;
  font-family:var(--font-body);
  font-size:.95rem;
  font-weight:700;
  line-height:1;
  letter-spacing:.01em;
  transition:background-color .2s var(--ease),color .2s var(--ease),border-color .2s var(--ease),transform .2s var(--ease),box-shadow .2s var(--ease);
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn--primary{
  background:var(--orange);
  color:#37130a;
  box-shadow:0 16px 30px -20px rgba(255,107,53,.95);
}
.btn--primary:hover{background:#ff8459}
.btn--ghost{
  background:transparent;
  color:var(--deep);
  border-color:rgba(11,42,74,.28);
}
.btn--ghost:hover{background:rgba(11,42,74,.06);border-color:var(--deep)}
.btn--quiet{background:var(--mist);color:var(--deep)}
.btn--quiet:hover{background:#cfe0ea}

/* ---------- 9. 标签与状态 ---------- */
.pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 13px;
  border-radius:var(--radius-pill);
  background:var(--mist);
  color:var(--deep);
  font-size:var(--fs-tiny);
  font-weight:600;
  letter-spacing:.04em;
  line-height:1.6;
}
.pill--accent{background:rgba(255,107,53,.15);color:var(--terracotta);font-family:var(--font-mono)}
.pill--live{background:rgba(94,122,106,.16);color:var(--moss)}
.pill--live::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}

/* ---------- 10. 章节标记 ---------- */
.section-marker{
  display:inline-flex;
  align-items:center;
  gap:11px;
  font-family:var(--font-mono);
  font-size:var(--fs-tiny);
  font-weight:600;
  letter-spacing:.18em;
  line-height:1.6;
  color:var(--terracotta);
}
.section-marker::before{
  content:"";
  width:28px;height:2px;
  border-radius:2px;
  background:currentColor;
}
.section-index{
  font-family:var(--font-mono);
  font-size:var(--fs-tiny);
  font-weight:600;
  letter-spacing:.14em;
  color:var(--rock);
}

/* ---------- 11. 面板与网格 ---------- */
.panel{
  border-radius:var(--radius-card);
  padding:clamp(20px,3vw,34px);
  background:#fff;
  border:1px solid rgba(11,42,74,.08);
  box-shadow:var(--shadow-card);
}
.panel--sand{background:var(--sand);border-color:rgba(217,78,31,.1)}
.panel--mist{background:var(--mist);border-color:rgba(11,42,74,.06)}
.panel--deep{background:linear-gradient(160deg,var(--deep),var(--midnight));color:var(--paper);border-color:rgba(169,199,216,.2)}
.panel--deep h2,.panel--deep h3{color:var(--paper)}

.grid{display:grid;gap:clamp(16px,2.4vw,28px)}
.grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}

/* ---------- 12. 图片容器 ---------- */
.media{
  position:relative;
  overflow:hidden;
  width:100%;
  aspect-ratio:16/10;
  border-radius:var(--radius-card);
  background:
    radial-gradient(circle at 22% 28%,rgba(169,199,216,.65),transparent 58%),
    linear-gradient(150deg,var(--mist),#eef4f8 60%,var(--sand));
  display:flex;
  align-items:center;
  justify-content:center;
}
.media img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.media--wide{aspect-ratio:21/9}
.media--square{aspect-ratio:1/1}
.media--tall{aspect-ratio:4/5}
.media-caption{
  margin-top:10px;
  font-size:var(--fs-small);
  font-weight:300;
  line-height:1.6;
  color:var(--rock);
}

/* ---------- 13. 状态面板 ---------- */
.status-panel{
  border-radius:var(--radius-card);
  padding:clamp(18px,2.4vw,26px);
  background:var(--midnight);
  color:var(--paper);
  border:1px solid rgba(169,199,216,.18);
}
.status-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
  border-bottom:1px solid rgba(169,199,216,.16);
}
.status-row:last-child{border-bottom:0;padding-bottom:0}
.status-key{
  font-family:var(--font-mono);
  font-size:var(--fs-tiny);
  font-weight:400;
  letter-spacing:.06em;
  color:var(--steel);
}
.status-val{
  font-family:var(--font-mono);
  font-size:var(--fs-small);
  font-weight:600;
  letter-spacing:.02em;
  text-align:right;
  color:var(--paper);
}

/* ---------- 14. 面包屑 ---------- */
.breadcrumbs{
  font-size:var(--fs-small);
  font-weight:400;
  color:var(--rock);
}
.breadcrumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.breadcrumbs li{display:flex;align-items:center;gap:8px;line-height:1.6}
.breadcrumbs li + li::before{content:"/";color:var(--steel)}
.breadcrumbs a{color:var(--deep);font-weight:600;transition:color .2s var(--ease)}
.breadcrumbs a:hover{color:var(--terracotta)}
.breadcrumbs [aria-current="page"]{color:var(--rock)}

/* ---------- 15. 滚动渐显 ---------- */
.js [data-reveal]{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .55s var(--ease),transform .55s var(--ease);
}
.js [data-reveal].is-visible{opacity:1;transform:none}

/* ---------- 16. 响应式 ---------- */
@media (max-width:1080px){
  .footer-top{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:900px){
  .site-header{padding:10px 12px 12px}
  .header-shell{
    flex-wrap:wrap;
    border-radius:26px;
    padding:10px 12px;
    gap:10px;
  }
  .brand-name{font-size:.96rem}
  .nav-toggle{display:inline-flex}
  .site-nav{
    display:none;
    flex-basis:100%;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    margin:0;
    padding-top:12px;
    border-top:1px solid rgba(169,199,216,.22);
  }
  .site-nav[data-open="true"]{
    display:flex;
    animation:navDrop .22s var(--ease) both;
  }
  .nav-list{flex-direction:column;align-items:stretch;gap:3px}
  .nav-link{
    padding:13px 16px;
    border-radius:16px;
    font-size:1rem;
  }
  .nav-link[aria-current="page"]{border-radius:16px}
  .nav-cta{
    justify-content:center;
    margin-left:0;
    margin-top:4px;
    padding:14px 20px;
    font-size:.95rem;
  }
  .grid--2,.grid--3,.grid--4{grid-template-columns:minmax(0,1fr)}
  #main-content{scroll-margin-top:88px}
}

@keyframes navDrop{
  from{opacity:0;transform:translateY(-8px)}
  to{opacity:1;transform:none}
}

@media (max-width:640px){
  .brand-line{display:none}
  .brand-mark{width:28px;height:28px}
  .brand-mark::before{left:8px;top:8px;width:11px;height:11px}
  .footer-top{grid-template-columns:minmax(0,1fr);gap:32px}
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:12px}
  .footer-icp{margin-left:0}
  .footer-cta{width:100%;justify-content:center}
  .js [data-reveal]{transform:translateY(12px)}
  .btn{width:100%}
  .site-footer{border-radius:24px 24px 0 0}
}

/* ---------- 17. 减少动态效果 ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
  .js [data-reveal]{opacity:1;transform:none}
  .scroll-progress-bar{transition:none}
  .site-nav[data-open="true"]{animation:none}
  .footer-links a:hover{transform:none}
  .btn:hover,.nav-cta:hover,.footer-cta:hover{transform:none}
}
