/* 公司页面样式（首页、产品、关于、联系、隐私政策、404；依赖 site.css 的变量）。
   首屏背景是已有素材的慢速竖向拼贴：只动 transform，压暗处理，可以暂停；减少动态效果时静止。 */

/* ---------- 首屏：只讲 Dylven ---------- */
.co-hero{position:relative;min-height:calc(100vh - 68px);display:flex;align-items:center;overflow:hidden;background:#0b1430;color:#eef3ff;isolation:isolate}
.collage{position:absolute;inset:-10% -4%;display:grid;grid-template-columns:repeat(4,1fr);gap:18px;transform:rotate(-8deg);z-index:-2}
.col{display:flex;flex-direction:column;gap:18px;will-change:transform;animation:drift 70s linear infinite}
.col.c2{animation-duration:90s;animation-direction:reverse}
.col.c3{animation-duration:80s}
.col.c4{animation-duration:100s;animation-direction:reverse}
.col img{width:100%;border-radius:18px;object-fit:cover;background:#16214a}
.col img[width="192"],.col img[width="320"],.col img[width="480"]{object-fit:contain;background:#1a2654;padding:14px}
@keyframes drift{from{transform:translateY(0)}to{transform:translateY(-50%)}}
.co-hero.is-paused .col{animation-play-state:paused}
.co-veil{position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 50%,rgba(11,20,48,.72),rgba(11,20,48,.94) 70%),linear-gradient(rgba(11,20,48,.5),rgba(11,20,48,.5))}
.co-in{text-align:center;padding:90px 32px 120px}
.co-kicker{display:inline-block;font-weight:800;font-size:15px;letter-spacing:.06em;padding:6px 16px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16)}
.co-slogan{margin:26px 0 26px;font-weight:800}
.co-slogan .ln{display:block}
/* 中文：两句分行，像一句诗；每句不折行（390 宽下也放得下），字距放宽 */
.co-zh{font-size:clamp(30px,6vw,84px);line-height:1.32;letter-spacing:.14em;margin-right:-.14em}
.co-zh .ln{white-space:nowrap}
.co-zh .ln + .ln{margin-top:.12em}
/* 英文：第一句大字，第二句小一号 */
.co-en{font-size:clamp(28px,4.4vw,60px);line-height:1.12;letter-spacing:-.01em;max-width:18em;margin:0 auto}
.co-en .ln{text-wrap:balance}
.co-en .ln2{font-size:.5em;line-height:1.35;margin-top:.7em;font-weight:700;color:#cfdaf5}
.co-slogan em{font-style:normal;color:#ffd23f;position:relative;white-space:nowrap}
.co-slogan em::after{content:"";position:absolute;left:.05em;right:.19em;bottom:-.02em;height:.1em;border-radius:.1em;background:#ffd23f;opacity:.4;transform-origin:0 50%}
.co-en em::after{right:0}
html.motion .co-slogan em::after{animation:underline 1.1s .6s cubic-bezier(.2,.8,.2,1) both}
@keyframes underline{from{transform:scaleX(0)}}
html.motion .co-slogan .ln{animation:rise 1s cubic-bezier(.2,.8,.2,1) both}
html.motion .co-slogan .ln + .ln{animation-delay:.25s}
html.motion .co-lead,html.motion .co-chips{animation:rise .9s .45s cubic-bezier(.2,.8,.2,1) both}
@keyframes rise{from{opacity:0;transform:translateY(22px)}}
.co-lead{text-wrap:pretty;font-size:clamp(16px,1.5vw,20px);line-height:1.7;max-width:30em;margin:0 auto;color:#cfdaf5}
.co-chips{list-style:none;padding:0;margin:30px 0 0;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.co-chips li{font-weight:800;font-size:14px;padding:7px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.22);color:#dfe8ff;background:rgba(255,255,255,.05)}
.co-pause{position:absolute;right:24px;bottom:24px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(11,20,48,.6);color:#fff;display:grid;place-items:center;cursor:pointer}
.co-pause .i-play{display:none}
.co-hero.is-paused .co-pause .i-play{display:block}
.co-hero.is-paused .co-pause .i-pause{display:none}
.co-pause:focus-visible,.co-scroll:focus-visible{outline-color:#ffd23f}
.co-scroll{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:6px;min-height:44px;font-weight:800;font-size:14px;color:#cfdaf5;text-decoration:none}
.co-scroll::after{content:"";width:22px;height:34px;border:2px solid currentColor;border-radius:12px;background:linear-gradient(currentColor,currentColor) 50% 7px/2px 7px no-repeat}
html.motion .co-scroll::after{animation:wheel 1.8s ease-in-out infinite}
@keyframes wheel{0%,100%{background-position:50% 7px}50%{background-position:50% 14px}}

/* ---------- 产品入口 ---------- */
.prods{padding:110px 0 30px}
.prods-page{padding-top:10px}
.prod-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.prod{overflow:hidden;display:flex;flex-direction:column}
.prod-vis{display:block;position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--blue)}
.prod-vis-kon{background:linear-gradient(135deg,var(--blue),#4a6cf5)}
html[data-theme="dark"] .prod-vis-kon{background:linear-gradient(135deg,#1f3170,#2a3f86)}
.pv-phone{position:absolute;left:14%;top:12%;width:34%;border-radius:22px;border:6px solid #0f1d3d;transform:rotate(-5deg);box-shadow:0 20px 40px -20px rgba(0,0,0,.5);transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.pv-kon{position:absolute;right:6%;bottom:-6%;width:48%;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.prod-vis-ha img{width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.prod:hover .pv-phone{transform:rotate(-2deg) translateY(-6px)}
.prod:hover .pv-kon{transform:translateY(-6px)}
.prod:hover .prod-vis-ha img{transform:scale(1.04)}
.prod-body{padding:26px 28px 28px;display:flex;flex-direction:column;flex:1}
.prod-meta{display:flex;align-items:center;gap:10px;font-weight:800;font-size:14px;color:var(--muted)}
.prod-meta img{width:32px;height:32px;border-radius:9px}
.prod h3{font-size:30px;margin:10px 0 8px}
.prod-body > p:not(.prod-meta){color:var(--muted);flex:1}
.prod-btns{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}

/* ---------- 原则 ---------- */
.ideas{padding:110px 0 20px}
.rules{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.rules li{background:var(--card);border:2px solid var(--line);border-radius:22px;padding:24px 22px;box-shadow:0 5px 0 var(--line)}
.rules li:nth-child(odd){transform:rotate(-.6deg)}
.rules li:nth-child(even){transform:rotate(.6deg)}
html.motion .rules li[data-reveal]{transform:translateY(26px)}
html.motion .rules li[data-reveal].is-in:nth-child(odd){transform:rotate(-.6deg)}
html.motion .rules li[data-reveal].is-in:nth-child(even){transform:rotate(.6deg)}
html.motion .rules li:nth-child(2){transition-delay:.08s}
html.motion .rules li:nth-child(3){transition-delay:.16s}
html.motion .rules li:nth-child(4){transition-delay:.24s}
.rule-n{display:inline-grid;place-items:center;min-width:44px;height:32px;padding:0 10px;border-radius:10px;background:var(--sun);color:var(--on-sun);font:800 15px/1 var(--round);box-shadow:0 3px 0 var(--sun-edge)}
.rules h3{font-size:22px;margin:0 0 8px}
.rules p{color:var(--muted);font-size:16px}
.ideas-more{margin-top:24px}

/* ---------- 子页面通用页头 ---------- */
.page-head{padding:80px 0 40px}
.page-head h1{font-size:clamp(34px,4.4vw,58px);line-height:1.12}
.page-lead{text-wrap:pretty;font-size:19px;color:var(--muted);max-width:36em;margin-top:16px}

/* 关于 */
.about-story{padding:30px 0 10px}
.about-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr);gap:48px;align-items:center}
.about-grid h2{font-size:clamp(26px,2.8vw,36px);margin-bottom:14px}
.about-grid p{color:var(--muted);font-size:18px;max-width:36em}
.about-grid p + p{margin-top:12px}
.about-fig{margin:0;justify-self:center}
.about-fig img{width:240px}

/* 联系 */
.contact-page{padding:10px 0 100px}
.contact-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.ccard{padding:28px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.ccard h2{font-size:24px}
.ccard p{color:var(--muted);flex:1;margin-bottom:8px}

/* 隐私政策、404 里的链接 */
.nf a:not(.btn){color:var(--blue);font-weight:700;display:inline-block;padding:11px 0;margin:-11px 0}

@media (max-width:1100px){
  .rules{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .co-hero{min-height:calc(100svh - 60px)}
  .collage{grid-template-columns:repeat(2,1fr);inset:-10% -20%}
  .col.c3,.col.c4{display:none}
  .co-in{padding:70px 18px 120px}
  .co-pause{right:14px;bottom:14px}
  .prods{padding:72px 0 20px}
  .prod-grid{grid-template-columns:minmax(0,1fr);gap:22px}
  .prod-body{padding:22px 20px 22px}
  .prod h3{font-size:26px}
  .prod-btns .btn{flex:1 1 100%}
  .ideas{padding:72px 0 10px}
  .rules{grid-template-columns:minmax(0,1fr)}
  .rules li:nth-child(n),html.motion .rules li[data-reveal].is-in:nth-child(n){transform:none}
  .page-head{padding:48px 0 28px}
  .page-lead{font-size:17px}
  .about-grid{grid-template-columns:minmax(0,1fr);gap:20px}
  .about-grid p{font-size:17px}
  .about-fig img{width:180px}
  .contact-cards{grid-template-columns:minmax(0,1fr)}
  .ccard .btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .col{animation:none}
  .co-pause{display:none}
}

/* 关于页：口号引用 */
.about-motto{margin:26px 0 8px;padding:18px 22px;border-left:6px solid var(--sun);background:var(--card);border-radius:0 18px 18px 0;box-shadow:0 4px 0 var(--line)}
.about-motto .ln{display:block}
.about-motto p[lang="zh"] .ln{white-space:nowrap}
.about-motto p[lang="en"] .ln{text-wrap:balance}
.about-motto p{font-size:clamp(20px,2.2vw,28px);font-weight:800;line-height:1.5;letter-spacing:.06em}
.about-motto p[lang="en"]{letter-spacing:0;font-size:clamp(18px,1.8vw,24px)}

.co-scroll{min-width:44px}
