/* ==================================================================
   亚洲服务 · 共享样式 /assets/site.css
   夜间数字航站楼：深海蓝空间 + 霓虹青路径 + 琥珀橙节点
   ================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --c-abyss: #03121D;
  --c-sea: #061B2B;
  --c-sea-2: #0B2C45;
  --c-cyan: #35F2D0;
  --c-amber: #FFB45A;
  --c-slate: #5E7180;
  --c-fog: #EAF2F5;
  --c-moss: #6F8F6A;
  --c-clay: #B76E4E;
  --c-cream: #F4EFE4;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-pill: 999px;

  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote,
dl, dd, address { margin: 0; }

ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. 中文排版与页面底色 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .012em;
  color: var(--c-fog);
  background-color: var(--c-sea);
  background-image:
    radial-gradient(1100px 640px at 80% -14%, rgba(53, 242, 208, .10), transparent 62%),
    radial-gradient(860px 520px at 4% 6%, rgba(183, 110, 78, .11), transparent 60%),
    linear-gradient(180deg, #061B2B 0%, #04161F 58%, #03121D 100%);
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(94, 113, 128, .12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(94, 113, 128, .12) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 76%);
  opacity: .6;
}

main,
.site-head,
.site-foot { position: relative; z-index: 1; }

#main-content { scroll-margin-top: 110px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--c-fog);
}

p { max-width: 72ch; }

strong { color: var(--c-cream); font-weight: 700; }

/* ---------- 4. 工具类 ---------- */
.container {
  width: min(calc(100% - var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(44px, 7vw, 96px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 3vw, 44px);
}

.section-title {
  font-size: clamp(1.55rem, 3.2vw, 2.55rem);
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--c-cyan);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .65;
}

.lede {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: rgba(234, 242, 245, .74);
  line-height: 1.85;
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(94, 113, 128, .5), rgba(94, 113, 128, .06) 70%, transparent);
}

.mono {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
}

.coordinate {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--c-slate);
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute !important;
  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;
}

/* ---------- 5. 栅格与堆叠 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, 16px);
}

/* ---------- 6. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  height: 32px;
  padding: 0 .95em;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(53, 242, 208, .3);
  background: rgba(53, 242, 208, .08);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--c-cyan);
  white-space: nowrap;
}

.tag--amber {
  color: var(--c-amber);
  background: rgba(255, 180, 90, .08);
  border-color: rgba(255, 180, 90, .32);
}

.tag--moss {
  color: #A3C39B;
  background: rgba(111, 143, 106, .14);
  border-color: rgba(111, 143, 106, .42);
}

.tag--clay {
  color: #E0A183;
  background: rgba(183, 110, 78, .13);
  border-color: rgba(183, 110, 78, .42);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 46px;
  padding: .72em 1.4em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition:
    transform .18s var(--ease),
    background-color .18s var(--ease),
    border-color .18s var(--ease),
    color .18s var(--ease);
}

.btn--cyan {
  background: var(--c-cyan);
  color: #04202A;
}

.btn--cyan:hover {
  background: #6ef9e2;
  transform: translateY(-2px);
}

.btn--amber {
  background: var(--c-amber);
  color: #231303;
}

.btn--amber:hover {
  background: #ffc983;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(94, 113, 128, .55);
  color: var(--c-fog);
  background: rgba(11, 44, 69, .35);
}

.btn--ghost:hover {
  border-color: rgba(53, 242, 208, .6);
  color: var(--c-cyan);
  transform: translateY(-2px);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  padding-block: 18px 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--c-slate);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: .55em;
}

.breadcrumb li + li::before {
  content: "›";
  color: rgba(94, 113, 128, .7);
}

.breadcrumb a {
  color: rgba(234, 242, 245, .62);
  transition: color .18s var(--ease);
}

.breadcrumb a:hover { color: var(--c-cyan); }

.breadcrumb [aria-current="page"] { color: var(--c-cyan); }

/* ---------- 9. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(94, 113, 128, .32);
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 100% at 82% 6%, rgba(53, 242, 208, .10), transparent 58%),
    linear-gradient(150deg, rgba(11, 44, 69, .95), rgba(3, 18, 29, .95));
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(94, 113, 128, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(94, 113, 128, .16) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 92% at 82% 8%, #000, transparent 76%);
  mask-image: radial-gradient(120% 92% at 82% 8%, #000, transparent 76%);
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame figcaption {
  position: absolute;
  z-index: 3;
  left: 18px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: rgba(234, 242, 245, .7);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 10. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -90px;
  left: 50%;
  z-index: 200;
  transform: translateX(-50%);
  padding: .72em 1.35em;
  border-radius: var(--radius-pill);
  background: var(--c-cyan);
  color: #04202A;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 12px; }

/* ---------- 11. 头部：悬浮胶囊导航 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px var(--gutter) 0;
}

.head-pod {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  width: 100%;
  max-width: 1120px;
  margin-left: 0;
  margin-right: auto;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(94, 113, 128, .32);
  border-radius: var(--radius-pill);
  background: rgba(11, 44, 69, .82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 22px 48px -28px rgba(3, 18, 29, .95),
    inset 0 1px 0 rgba(234, 242, 245, .07);
}

/* 品牌轨道 */
.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-pill);
  transition: background-color .2s var(--ease);
}

.brand:hover { background: rgba(53, 242, 208, .07); }

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(53, 242, 208, .4);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(53, 242, 208, .22), rgba(53, 242, 208, .04));
  color: var(--c-cyan);
}

.brand-mark svg { width: 18px; height: 18px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-fog);
}

.brand-coord {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  color: var(--c-slate);
  white-space: nowrap;
}

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 14px;
  margin-left: auto;
  border: 1px solid rgba(94, 113, 128, .5);
  border-radius: var(--radius-pill);
  color: var(--c-fog);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.nav-toggle:hover { border-color: rgba(53, 242, 208, .55); }

.nav-toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-lines span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--c-cyan);
  transition: transform .24s var(--ease), opacity .2s var(--ease);
}

.site-head[data-open] .nav-toggle-lines span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.site-head[data-open] .nav-toggle-lines span:nth-child(2) { opacity: 0; }

.site-head[data-open] .nav-toggle-lines span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-toggle-label {
  font-size: .82rem;
  letter-spacing: .12em;
}

/* 主导航 */
.primary-nav {
  display: block;
  margin-inline: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-block;
  padding: .52em .78em;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  letter-spacing: .02em;
  color: rgba(234, 242, 245, .78);
  white-space: nowrap;
  transition:
    color .18s var(--ease),
    background-color .18s var(--ease),
    box-shadow .18s var(--ease);
}

.nav-link:hover {
  color: var(--c-cyan);
  background: rgba(53, 242, 208, .09);
}

.nav-link[aria-current="page"] {
  color: var(--c-cyan);
  background: rgba(53, 242, 208, .1);
  box-shadow: inset 0 0 0 1px rgba(53, 242, 208, .34);
}

/* 右侧状态与 CTA */
.head-tail {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.head-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 180, 90, .34);
  border-radius: var(--radius-pill);
  background: rgba(255, 180, 90, .07);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  color: var(--c-amber);
  white-space: nowrap;
}

.head-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(255, 180, 90, .18);
  animation: badge-pulse 2.8s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.head-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--c-cyan);
  color: #04202A;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}

.head-cta:hover {
  background: #6ef9e2;
  transform: translateY(-1px);
}

/* 滚动进度光轨 */
.head-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: var(--p, 0%);
  height: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-amber));
  pointer-events: none;
  transition: width .09s linear;
}

/* ---------- 12. 页脚 ---------- */
.site-foot {
  margin-top: clamp(56px, 8vw, 118px);
  padding-block: clamp(44px, 6vw, 80px) 0;
  border-top: 1px solid rgba(94, 113, 128, .26);
  background: linear-gradient(180deg, rgba(3, 18, 29, .55), #03121D 46%);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: clamp(22px, 3.5vw, 52px);
  width: min(calc(100% - var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  padding-bottom: clamp(30px, 4vw, 56px);
  border-bottom: 1px solid rgba(94, 113, 128, .22);
}

.foot-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-cream);
  transition: color .18s var(--ease);
}

.foot-logo:hover { color: var(--c-cyan); }

.foot-tagline {
  margin-top: 14px;
  max-width: 26ch;
  font-size: .9rem;
  line-height: 1.8;
  color: rgba(234, 242, 245, .62);
}

.foot-coord {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  color: var(--c-slate);
}

.foot-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--c-cyan);
}

.foot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-list a {
  font-size: .9rem;
  color: rgba(234, 242, 245, .72);
  transition: color .18s var(--ease);
}

.foot-list a:hover { color: var(--c-cyan); }

.foot-address {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.foot-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.foot-label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  color: var(--c-slate);
}

.foot-value {
  font-size: .88rem;
  line-height: 1.65;
  color: rgba(234, 242, 245, .78);
  overflow-wrap: anywhere;
}

.foot-note {
  padding-top: 12px;
  border-top: 1px dashed rgba(94, 113, 128, .3);
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(94, 113, 128, .95);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: min(calc(100% - var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  padding-block: 20px 28px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--c-slate);
}

.foot-copy,
.foot-icp { max-width: none; }

.foot-icp { color: rgba(234, 242, 245, .5); }

/* ---------- 13. 显现动画协议 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .45s var(--ease),
    transform .45s var(--ease);
  transition-delay: calc(var(--reveal-order, 0) * 70ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .head-pod { max-width: 100%; }
  .brand-coord { display: none; }
  .head-badge { display: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    margin-inline: 0;
    padding: 10px;
    border: 1px solid rgba(94, 113, 128, .36);
    border-radius: var(--radius-m);
    background: rgba(6, 27, 43, .97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 34px 64px -32px #03121D;
  }

  .site-head[data-open] .primary-nav { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    display: block;
    padding: .85em 1em;
    border-radius: var(--radius-s);
    font-size: 1rem;
  }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 34px;
  }

  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .head-pod {
    padding: 8px 8px 8px 10px;
    gap: 8px;
  }

  .head-cta { display: none; }
  .head-tail { display: none; }
  .nav-toggle { margin-left: auto; }

  .brand-name { font-size: .96rem; }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

  .media-frame { border-radius: var(--radius-m); }

  .foot-grid { grid-template-columns: 1fr; }

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- 15. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .head-badge-dot { animation: none; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
