/* ==========================================================================
   大快发三 · 共享站点样式 /assets/site.css
   ========================================================================== */

:root{
  --ink-950:#061423;
  --ink-900:#0A2138;
  --ink-800:#102F4E;
  --line-600:#1E4A6D;
  --paper-050:#F4F7FA;
  --mist-300:#9FB6C9;
  --amber-500:#FF9F1C;
  --cyan-400:#2DE2E6;
  --coral-500:#FF5C7A;
  --green-400:#37E39B;

  --bg:var(--ink-950);
  --bg-alt:var(--ink-900);
  --panel:var(--ink-800);
  --line:var(--line-600);
  --text:var(--paper-050);
  --text-dim:var(--mist-300);

  --font-display:"Barlow Condensed","Oswald","Noto Sans SC","Source Han Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --font-body:"Noto Sans SC","Source Han Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --font-mono:"IBM Plex Mono","JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,"Courier New",monospace;

  --gutter:clamp(1.25rem,4vw,3.5rem);
  --max:1440px;
  --header-h:76px;
  --ease:cubic-bezier(.2,.7,.3,1);
}

/* 1. Reset
   ========================================================================== */
*,
*::before,
*::after{box-sizing:border-box;}

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--header-h) + 20px);
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.75;
  letter-spacing:.01em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0;}
ul,ol{margin:0;padding:0;list-style:none;}
img,svg,video{display:block;max-width:100%;}
img{height:auto;}
a{color:inherit;}
button{font:inherit;color:inherit;}
table{border-collapse:collapse;width:100%;}
main{display:block;}

:focus-visible{
  outline:2px solid var(--cyan-400);
  outline-offset:3px;
}

.visually-hidden{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

/* 2. 排版基础
   ========================================================================== */
.display-1{
  font-family:var(--font-display);
  font-weight:200;
  font-size:clamp(2.75rem,7.2vw,6rem);
  line-height:1.02;
  letter-spacing:-.005em;
  color:var(--text);
}
.display-1 strong{font-weight:800;}

.display-2{
  font-family:var(--font-display);
  font-weight:200;
  font-size:clamp(1.9rem,3.6vw,3.25rem);
  line-height:1.14;
  letter-spacing:.005em;
  color:var(--text);
}
.display-2 strong{font-weight:800;}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--text-dim);
}
.eyebrow::before{
  content:"";
  width:22px;height:1px;
  background:var(--amber-500);
  flex:0 0 auto;
}

.mono{
  font-family:var(--font-mono);
  font-size:.8125rem;
  letter-spacing:.08em;
  color:var(--text-dim);
}

/* 3. 布局容器与网格
   ========================================================================== */
.container{
  width:100%;
  max-width:var(--max);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

.section{
  padding-block:clamp(3rem,7vw,6.5rem);
}
.section-alt{
  background:var(--bg-alt);
  border-block:1px solid var(--line);
}

.grid{
  display:grid;
  gap:clamp(1rem,2.5vw,2rem);
}
.grid-12{
  grid-template-columns:repeat(12,minmax(0,1fr));
}
@media (max-width:900px){
  .grid-12{grid-template-columns:repeat(6,minmax(0,1fr));}
}
@media (max-width:600px){
  .grid-12{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* 4. 按钮
   ========================================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.8rem 1.4rem;
  border:1px solid transparent;
  border-radius:0;
  background:transparent;
  color:var(--text);
  font-family:var(--font-body);
  font-size:.9375rem;
  font-weight:600;
  line-height:1.2;
  letter-spacing:.02em;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  transition:background-color .18s var(--ease),color .18s var(--ease),border-color .18s var(--ease),transform .18s var(--ease);
}
.btn:hover{transform:translateY(-1px);}
.btn:active{transform:translateY(0);}

.btn-primary{
  background:var(--amber-500);
  border-color:var(--amber-500);
  color:var(--ink-950);
}
.btn-primary:hover{
  background:#FFB44D;
  border-color:#FFB44D;
  color:var(--ink-950);
}

.btn-ghost{
  background:transparent;
  border-color:var(--line);
  color:var(--text);
}
.btn-ghost:hover{
  border-color:var(--amber-500);
  color:var(--amber-500);
}

.btn-cyan{
  background:var(--cyan-400);
  border-color:var(--cyan-400);
  color:var(--ink-950);
}
.btn-cyan:hover{
  background:#6BEDEF;
  border-color:#6BEDEF;
}

.btn-sm{
  padding:.5rem .9rem;
  font-size:.8125rem;
}
.btn-block{
  display:flex;
  width:100%;
}

/* 5. 标签 / 展签
   ========================================================================== */
.tag{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.22rem .55rem;
  border:1px solid var(--line);
  border-radius:0;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  line-height:1.5;
  color:var(--text-dim);
  white-space:nowrap;
}
.tag--amber{color:var(--amber-500);border-color:rgba(255,159,28,.45);}
.tag--cyan{color:var(--cyan-400);border-color:rgba(45,226,230,.45);}
.tag--green{color:var(--green-400);border-color:rgba(55,227,155,.45);}
.tag--coral{color:var(--coral-500);border-color:rgba(255,92,122,.45);}

/* 6. 卡片
   ========================================================================== */
.panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:0;
  padding:clamp(1.15rem,2.4vw,2rem);
  position:relative;
}

/* 7. 面包屑
   ========================================================================== */
.breadcrumb{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.breadcrumb-list{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem;
  list-style:none;
  margin:0;
  padding:0;
}
.breadcrumb-item{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  color:var(--mist-300);
}
.breadcrumb-item + .breadcrumb-item::before{
  content:"/";
  color:var(--line);
}
.breadcrumb-link{
  color:var(--mist-300);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .18s var(--ease),border-color .18s var(--ease);
}
.breadcrumb-link:hover,
.breadcrumb-link:focus-visible{
  color:var(--amber-500);
  border-bottom-color:var(--amber-500);
}
.breadcrumb-item[aria-current="page"]{
  color:var(--paper-050);
}

/* 8. 长文
   ========================================================================== */
.prose{
  max-width:68ch;
  font-size:clamp(1rem,.4vw + .92rem,1.0625rem);
  line-height:1.85;
  color:var(--text-dim);
}
.prose > * + *{margin-top:1.1em;}
.prose h2,
.prose h3{
  font-family:var(--font-display);
  font-weight:700;
  color:var(--text);
  line-height:1.28;
  letter-spacing:.01em;
}
.prose h2{font-size:clamp(1.5rem,2.4vw,2rem);margin-top:2em;}
.prose h3{font-size:1.25rem;margin-top:1.8em;}
.prose strong{color:var(--text);font-weight:600;}
.prose a{
  color:var(--cyan-400);
  text-decoration:underline;
  text-underline-offset:.2em;
  text-decoration-thickness:1px;
}
.prose a:hover{color:var(--amber-500);}
.prose ul,
.prose ol{
  list-style:disc;
  padding-left:1.35em;
}
.prose ol{list-style:decimal;}
.prose li + li{margin-top:.45em;}
.prose blockquote{
  padding-left:1.1rem;
  border-left:2px solid var(--amber-500);
  color:var(--text);
}
.prose code{
  font-family:var(--font-mono);
  font-size:.875em;
  color:var(--cyan-400);
}
.prose hr{
  border:0;
  border-top:1px solid var(--line);
  margin:2em 0;
}

/* 9. 图片容器（页面阶段放置切片图 / 流程图占位）
   ========================================================================== */
.media-frame{
  position:relative;
  display:block;
  overflow:hidden;
  isolation:isolate;
  aspect-ratio:16 / 10;
  background:
    linear-gradient(140deg,var(--ink-800),var(--ink-900));
  border:1px solid var(--line);
}
.media-frame img,
.media-frame > svg{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.media-frame::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(var(--amber-500),var(--amber-500)) left 10px top 10px / 16px 1px no-repeat,
    linear-gradient(var(--amber-500),var(--amber-500)) left 10px top 10px / 1px 16px no-repeat,
    linear-gradient(var(--cyan-400),var(--cyan-400)) right 10px bottom 10px / 16px 1px no-repeat,
    linear-gradient(var(--cyan-400),var(--cyan-400)) right 10px bottom 10px / 1px 16px no-repeat;
}
.media-frame--wide{aspect-ratio:21 / 9;}
.media-frame--tall{aspect-ratio:4 / 5;}
.media-frame--square{aspect-ratio:1 / 1;}

.media-caption{
  margin-top:.6rem;
  font-family:var(--font-mono);
  font-size:11px;
  line-height:1.6;
  letter-spacing:.1em;
  color:var(--text-dim);
}

/* 10. 页头
   ========================================================================== */
.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  background:transparent;
  border-bottom:1px solid transparent;
  transition:background-color .25s var(--ease),border-color .25s var(--ease),box-shadow .25s var(--ease);
}
.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(6,20,35,.9),rgba(6,20,35,0));
  opacity:1;
  transition:opacity .25s var(--ease);
}
.site-header.is-scrolled{
  background:rgba(10,33,56,.96);
  border-bottom-color:var(--line);
  box-shadow:0 10px 30px rgba(6,20,35,.45);
}
.site-header.is-scrolled::before{opacity:0;}

.header-inner{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:clamp(.75rem,2vw,2rem);
  min-height:var(--header-h);
  width:100%;
  max-width:var(--max);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

.skip-link{
  position:absolute;
  top:.5rem;
  left:var(--gutter);
  z-index:200;
  padding:.7rem 1.2rem;
  background:var(--amber-500);
  color:var(--ink-950);
  font-size:.875rem;
  font-weight:700;
  text-decoration:none;
  transform:translateY(-180%);
  transition:transform .18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible{
  transform:translateY(0);
  outline:2px solid var(--cyan-400);
  outline-offset:2px;
}

/* 品牌 */
.brand{
  display:inline-flex;
  align-items:center;
  gap:.7rem;
  margin-right:auto;
  text-decoration:none;
  color:var(--text);
  flex:0 0 auto;
}
.brand-mark{
  position:relative;
  width:26px;
  height:26px;
  border:1px solid var(--line);
  flex:0 0 auto;
}
.brand-mark::before{
  content:"";
  position:absolute;
  left:4px;top:4px;
  width:8px;height:8px;
  background:var(--amber-500);
}
.brand-mark::after{
  content:"";
  position:absolute;
  right:4px;bottom:4px;
  width:8px;height:8px;
  border:1px solid var(--cyan-400);
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-name{
  font-family:var(--font-display);
  font-size:1.375rem;
  font-weight:800;
  letter-spacing:.04em;
  color:var(--text);
}
.brand-line{
  margin-top:.2rem;
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.18em;
  color:var(--text-dim);
}

/* 主导航 */
.site-nav{
  flex:0 0 auto;
}
.nav-list{
  display:flex;
  align-items:center;
  gap:clamp(.55rem,1.4vw,1.5rem);
}
.nav-item{flex:0 0 auto;}
.nav-link{
  position:relative;
  display:inline-block;
  padding:.55rem .1rem;
  font-size:.875rem;
  line-height:1.4;
  color:var(--text-dim);
  text-decoration:none;
  white-space:nowrap;
  transition:color .18s var(--ease);
}
.nav-link::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:2px;
  background:var(--amber-500);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .22s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible{color:var(--text);}
.nav-link:hover::after,
.nav-link:focus-visible::after{transform:scaleX(1);}
.nav-link[aria-current="page"]{color:var(--text);}
.nav-link[aria-current="page"]::after{transform:scaleX(1);}

/* 页头右侧工具区 */
.header-tools{
  display:flex;
  align-items:center;
  gap:clamp(.7rem,1.4vw,1.25rem);
  flex:0 0 auto;
}
.utility-link{
  font-size:.8125rem;
  color:var(--text-dim);
  text-decoration:none;
  padding:.3rem 0;
  white-space:nowrap;
  border-bottom:1px solid transparent;
  transition:color .18s var(--ease),border-color .18s var(--ease);
}
.utility-link:hover,
.utility-link:focus-visible{
  color:var(--text);
  border-bottom-color:var(--cyan-400);
}

/* 移动目录按钮 */
.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.45rem .7rem;
  background:transparent;
  border:1px solid var(--line);
  border-radius:0;
  color:var(--text);
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.16em;
  cursor:pointer;
  transition:border-color .18s var(--ease),color .18s var(--ease);
}
.nav-toggle:hover{border-color:var(--amber-500);color:var(--amber-500);}
.nav-toggle-label{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}
.nav-toggle-label::before{
  content:"";
  width:14px;
  height:10px;
  background:
    linear-gradient(currentColor,currentColor) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) 0 100% / 100% 1.5px no-repeat;
}
.site-header[data-open="true"] .nav-toggle-label::before{
  background:
    linear-gradient(var(--amber-500),var(--amber-500)) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(var(--amber-500),var(--amber-500)) 0 100% / 100% 1.5px no-repeat;
}
.site-header[data-open="true"] .nav-toggle{
  border-color:var(--amber-500);
  color:var(--amber-500);
}

/* 滚动进度 */
.header-progress{
  position:absolute;
  left:0;
  bottom:0;
  z-index:2;
  height:2px;
  width:0;
  background:linear-gradient(90deg,var(--amber-500),var(--cyan-400));
  pointer-events:none;
  transition:width .1s linear;
}

/* 11. 页脚
   ========================================================================== */
.site-footer{
  position:relative;
  overflow:hidden;
  background:var(--bg-alt);
  border-top:1px solid var(--line);
  padding-top:clamp(2.5rem,5vw,4rem);
  color:var(--text-dim);
}
.site-footer::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(to right,rgba(30,74,109,.34) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(30,74,109,.22) 1px,transparent 1px);
  background-size:clamp(64px,8vw,96px) clamp(64px,8vw,96px);
  opacity:.55;
}
.site-footer > *{
  position:relative;
  z-index:1;
}

.footer-grid{
  width:100%;
  max-width:var(--max);
  margin-inline:auto;
  padding-inline:var(--gutter);
  padding-bottom:clamp(2rem,4vw,3rem);
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,2.2fr) minmax(0,1.15fr);
  gap:clamp(1.5rem,3.5vw,3.5rem);
}

.footer-brand{min-width:0;}
.footer-wordmark{
  display:inline-block;
  font-family:var(--font-display);
  font-size:clamp(1.5rem,2.4vw,2rem);
  font-weight:800;
  letter-spacing:.05em;
  line-height:1.1;
  color:var(--text);
  text-decoration:none;
}
.footer-wordmark:hover{color:var(--amber-500);}
.footer-summary{
  margin-top:.9rem;
  max-width:34ch;
  font-size:.9375rem;
  line-height:1.8;
  color:var(--text-dim);
}
.footer-meta-line{
  margin-top:1.15rem;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.6rem;
}

.footer-nav{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(1rem,2.4vw,2rem);
  min-width:0;
}
.footer-col{min-width:0;}
.footer-col-title{
  padding-bottom:.7rem;
  margin-bottom:.9rem;
  border-bottom:1px solid var(--line);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--text-dim);
}
.footer-list{
  display:grid;
  gap:.55rem;
}
.footer-link{
  display:inline-block;
  font-size:.9375rem;
  line-height:1.6;
  color:var(--text);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .18s var(--ease),border-color .18s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible{
  color:var(--amber-500);
  border-bottom-color:var(--amber-500);
}

.footer-contact{min-width:0;}
.footer-contact-list{
  display:grid;
  gap:.85rem;
}
.footer-contact-item{display:grid;gap:.1rem;}
.footer-contact-label{
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--text-dim);
  opacity:.75;
}
.footer-contact-value{
  font-size:.9375rem;
  line-height:1.6;
  color:var(--text);
  overflow-wrap:anywhere;
}
.footer-note{
  margin-top:1rem;
  max-width:32ch;
  font-size:.8125rem;
  line-height:1.75;
  color:var(--text-dim);
}

.footer-base{
  border-top:1px solid var(--line);
  background:rgba(6,20,35,.55);
}
.footer-base-inner{
  width:100%;
  max-width:var(--max);
  margin-inline:auto;
  padding:1.1rem var(--gutter);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.5rem 1.5rem;
}
.footer-legal{
  font-family:var(--font-mono);
  font-size:11px;
  line-height:1.7;
  letter-spacing:.1em;
  color:var(--text-dim);
}

/* 12. 返回顶部（由 site.js 注入）
   ========================================================================== */
.to-top{
  position:fixed;
  right:clamp(1rem,3vw,2rem);
  bottom:clamp(1rem,3vw,2rem);
  z-index:90;
  width:48px;
  height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  background:var(--ink-800);
  border:1px solid var(--line);
  border-radius:0;
  color:var(--text);
  font-family:var(--font-mono);
  font-size:1rem;
  line-height:1;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .22s var(--ease),transform .22s var(--ease),visibility .22s var(--ease),border-color .18s var(--ease),color .18s var(--ease);
}
.to-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.to-top:hover,
.to-top:focus-visible{
  border-color:var(--amber-500);
  color:var(--amber-500);
}

/* 13. 响应式
   ========================================================================== */
@media (max-width:1080px){
  .footer-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);
  }
  .footer-contact{
    grid-column:1 / -1;
  }
  .footer-note{max-width:60ch;}
}

@media (max-width:900px){
  .site-header{
    background:rgba(6,20,35,.72);
  }
  .site-header.is-scrolled,
  .site-header[data-open="true"]{
    background:var(--ink-900);
    border-bottom-color:var(--line);
  }
  .site-header[data-open="true"]::before{opacity:0;}

  .header-inner{min-height:var(--header-h);}

  .nav-toggle{display:inline-flex;order:2;}
  .header-tools{display:none;}

  .site-nav{
    order:3;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    display:none;
    background:var(--ink-900);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    box-shadow:0 24px 48px rgba(6,20,35,.6);
    padding:.5rem var(--gutter) 1.5rem;
    max-height:calc(100vh - var(--header-h));
    max-height:calc(100dvh - var(--header-h));
    overflow-y:auto;
  }
  .site-header[data-open="true"] .site-nav{display:block;}

  .nav-list{
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }
  .nav-item + .nav-item{border-top:1px solid rgba(30,74,109,.55);}
  .nav-link{
    display:block;
    padding:.95rem .1rem;
    font-size:1rem;
    color:var(--text);
  }
  .nav-link::after{display:none;}
  .nav-link[aria-current="page"]{
    color:var(--amber-500);
  }
  .nav-link[aria-current="page"]::before{
    content:"";
    display:inline-block;
    width:6px;
    height:6px;
    margin-right:.6rem;
    vertical-align:middle;
    background:var(--amber-500);
  }

  .footer-grid{
    grid-template-columns:1fr;
  }
  .footer-contact{grid-column:auto;}
  .footer-summary,
  .footer-note{max-width:60ch;}
}

@media (max-width:640px){
  :root{--header-h:62px;}
  .brand-name{font-size:1.25rem;}
  .brand-line{font-size:9px;letter-spacing:.14em;}
  .brand-mark{width:22px;height:22px;}

  .footer-nav{grid-template-columns:1fr 1fr;}
  .footer-base-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .to-top{
    width:42px;
    height:42px;
  }
}

@media (max-width:420px){
  .footer-nav{grid-template-columns:1fr;}
}

/* 14. 可访问性：减弱动效
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .btn:hover,
  .to-top.is-visible{transform:none;}
}
