/* =========================================================
   丁汀设计 · 高级感强化层（premium.css）· 第二部分
   ---------------------------------------------------------
   对标国际一线建筑/空间事务所官网（SNØHETTA、BIG、Neri&Hu、
   Powerhouse、Minale+Mann 一类）的共性做法，落到本站：
   ① 满幅影像：首屏图右侧出血到浏览器边缘，纵向撑满视口
   ② 缓慢推镜：主图 18 秒极缓慢推近，静止图片也有"呼吸"
   ③ 暗段落节奏：实力数据整段反黑，全站从此有明暗呼吸
   ④ 细线贯穿：顶部 2px 进度线 + 首屏引导线，替代装饰元素
   ⑤ 胶片颗粒：极淡噪点压掉屏幕的"塑料白"，接近印刷纸感
   ⑥ 影像揭示：图片裁切上推入场，像画册翻页
   ⑦ 案例编号：图左上角 01/02/03 编号，右下 ↗ 手势提示
   全部纯 CSS + 少量原生 JS，零外部依赖，尊重 prefers-reduced-motion。
   ========================================================= */

:root{--ease-out:cubic-bezier(.16,1,.3,1);}

/* 胶片颗粒层已移除：feTurbulence 在部分手机内核上渲染为黑色块 */


/* ---------- 顶部阅读进度线 ---------- */
.pbar{position:fixed;top:0;left:0;height:2px;width:0;background:#000;z-index:70;pointer-events:none;}

/* ---------- 导航：滚动后收窄 ---------- */
.nav{transition:box-shadow .3s var(--ease-out);}
.nav.scrolled{box-shadow:0 1px 0 rgba(0,0,0,.08);}
.nav.scrolled .container{height:60px;}
.nav.scrolled .brand img{height:25px;}
.nav .container{transition:height .3s var(--ease-out);}
.nav .brand img{transition:height .3s var(--ease-out);}

/* ---------- 首屏：满幅出血 + 缓慢推镜 ---------- */
.hero h1{text-wrap:balance;}
.section-head h2{text-wrap:balance;}

@keyframes kenburns{from{transform:scale(1.07);}to{transform:scale(1);}}
@keyframes cue-line{0%{transform:scaleY(.35);transform-origin:top;opacity:.35;}
  55%{transform:scaleY(1);transform-origin:top;opacity:1;}
  100%{transform:scaleY(1);transform-origin:top;opacity:0;}}

@media (min-width:861px){
  .hero{padding:0;position:relative;overflow:hidden;}
  .hero .container{
    max-width:none;
    padding-left:max(24px,calc((100vw - 1240px)/2));
    padding-right:0;
    gap:clamp(28px,4vw,72px);
    min-height:clamp(520px,88vh,820px);
    align-items:center;
  }
  .hero-visual{height:clamp(520px,88vh,820px);aspect-ratio:auto;}
  .hero-visual .ph-img{animation:kenburns 18s var(--ease-out) both;}
  .hero-visual:hover .ph-img{animation-play-state:paused;}
  .hero::after{
    content:"";position:absolute;left:max(24px,calc((100vw - 1240px)/2));bottom:0;
    width:1px;height:64px;background:linear-gradient(#000,rgba(0,0,0,0));
    animation:cue-line 2.8s ease-in-out infinite;
  }
}

/* ---------- 暗段落：实力数据反黑 ---------- */
.section--dark{background:#0A0A0A!important;color:#fff;}
.section--dark .section-head{border-top-color:rgba(255,255,255,.45);}
.section--dark .section-head::before{background:#0A0A0A;color:rgba(255,255,255,.8);}
.section--dark .section-head h2{color:#fff;}
.section--dark .section-head p{color:rgba(255,255,255,.6);}
.section--dark .section-head .eyebrow{color:rgba(255,255,255,.75);}
.section--dark .stat{border-top-color:rgba(255,255,255,.4);}
.section--dark .stat .num{color:#fff;}
.section--dark .stat .num .txt{color:#fff;}
.section--dark .stat .label{color:rgba(255,255,255,.9);}
.section--dark .stat .desc{color:rgba(255,255,255,.58);}

/* ---------- 图片裁切揭示（画册翻页感） ---------- */
.mask{clip-path:inset(0 0 100% 0);transition:clip-path 1.1s var(--ease-out);}
.mask.in{clip-path:inset(0 0 0 0);}

/* ---------- 案例：编号 + 手势提示 ---------- */
.case-grid{counter-reset:case;}
.case{counter-increment:case;}
.case::before{
  content:"0" counter(case);position:absolute;top:16px;left:16px;z-index:2;
  color:#fff;font-size:11px;letter-spacing:.24em;font-weight:700;
  mix-blend-mode:difference;pointer-events:none;
}
.case::after{
  content:"↗";position:absolute;top:12px;right:16px;z-index:2;color:#fff;
  font-size:17px;line-height:1;transition:transform .45s var(--ease-out);
  mix-blend-mode:difference;pointer-events:none;
}
.case:hover::after{transform:translate(4px,-4px);}

/* ---------- 页脚：联系信息做成大号可点链接 ---------- */
.foot-contact{display:flex;flex-direction:column;gap:10px;margin-top:6px;}
.foot-contact a{
  display:inline-block;font-size:15.5px;letter-spacing:.01em;color:#fff;
  border-bottom:1px solid rgba(255,255,255,.22);padding-bottom:5px;
  transition:border-color .25s var(--ease-out),opacity .25s;
}
.foot-contact a:hover{border-color:#fff;}
.foot-contact a small{display:block;font-size:10px;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(255,255,255,.45);margin-bottom:2px;}

/* ---------- 细节：链接与按钮的微交互 ---------- */
a{transition:color .2s var(--ease-out);}
.btn{transition:background .25s var(--ease-out),color .25s var(--ease-out),border-color .25s var(--ease-out),transform .25s var(--ease-out);}
.btn-primary:hover{transform:translateY(-2px);}
.btn:active{transform:translateY(0);}
.sector-link::after{transition:transform .35s var(--ease-out);}
.sector-link:hover::after{transform:translate(4px,-4px);}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion:reduce){
  .hero-visual .ph-img{animation:none!important;}
  .hero::after{animation:none;opacity:.4;}
  .mask{clip-path:none;transition:none;}
  .pbar{transition:none;}
}

/* ---------- 移动端：满幅改回上下结构，颗粒降低 ---------- */
@media (max-width:860px){
  body::after{opacity:.022;}
  .case::before{top:12px;left:12px;}
  .case::after{top:10px;right:12px;}
}

/* ---------- 手绘星号（跑马灯分隔符） ---------- */
.marquee-track span::after{
  content:"";display:inline-block;width:.62em;height:.62em;flex:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M20 5c.7 5.2 1 10 .8 15.5'/%3E%3Cpath d='M7.5 12.5c4.4 2.7 8.8 5.7 12.4 8.5'/%3E%3Cpath d='M32.5 12.5c-4.4 2.7-8.8 5.7-12.4 8.5'/%3E%3Cpath d='M11.5 33.5c3-3.7 6-7 8.5-9.5'/%3E%3Cpath d='M28.5 33.5c-3-3.7-6-7-8.5-9.5'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  opacity:.55;
}
