/* ========== Fraim 星脉影像 · 2026 前卫版 ========== */
:root {
  --bg: #050505;
  --bg-2: #111112;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #636366;
  --blue: #0071e3;
  --blue-light: #2997ff;
  --orange: #ff9f0a;
  --radius: 18px;
  --nav-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #000; }

/* 胶片噪点 */
.grain {
  position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-5%,-8%); }
  20% { transform: translate(-12%,3%); } 30% { transform: translate(6%,-10%); }
  40% { transform: translate(-4%,12%); } 50% { transform: translate(-10%,4%); }
  60% { transform: translate(12%,0); } 70% { transform: translate(0,10%); }
  80% { transform: translate(3%,12%); } 90% { transform: translate(-8%,8%); }
}

/* 自定义光标 */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 1000; pointer-events: none; border-radius: 50%; }
.cursor-dot { width: 8px; height: 8px; background: var(--orange); transform: translate(-50%,-50%); }
.cursor-ring {
  width: 36px; height: 36px; border: 1.5px solid rgba(255,159,10,.55);
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s, background .25s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(255,159,10,.08); border-color: var(--orange); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ========== 导航 ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  background: linear-gradient(rgba(5,5,5,.75), rgba(5,5,5,0));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.nav-logo img { height: 24px; }
.nav-logo .domain { color: var(--text-3); font-weight: 400; font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text); color: #000 !important;
  padding: 8px 18px; border-radius: 980px; font-weight: 600;
  transition: transform .2s var(--ease-out), background .2s;
}
.nav-cta:hover { background: var(--orange); transform: scale(1.05); }
@media (max-width: 640px) { .nav-links { gap: 16px; font-size: 13px; } }

/* ========== Hero：3D 透视照片墙 ========== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 40px) max(24px, calc((100vw - 1280px) / 2)) 80px;
  overflow: hidden;
}
.wall { position: absolute; inset: 0; perspective: 1400px; z-index: 0; }
.wall-plane {
  position: absolute; top: 50%; left: 62%;
  width: 150vmin; height: 100vmin;
  transform-style: preserve-3d;
  will-change: transform;
}
.wall-photo {
  position: absolute; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.09);
}
.wall-photo img { width: 100%; height: 100%; object-fit: cover; }
.wall-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.14), transparent 40%);
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5,5,5,.82) 30%, rgba(5,5,5,.15) 65%, rgba(5,5,5,.55) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 30%, transparent 80%, rgba(5,5,5,.6) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2); letter-spacing: .18em; text-transform: uppercase;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--orange); }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(52px, 9.5vw, 128px);
  line-height: 1.02; letter-spacing: -.04em; font-weight: 800;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease-out) forwards; }
.hero h1 .line:nth-child(2) span { animation-delay: .12s; }
@keyframes rise { to { transform: translateY(0); } }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(115deg, var(--blue-light) 10%, #64d2ff 45%, var(--orange) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 28px; color: var(--text-2); font-size: clamp(15px, 1.8vw, 18px); max-width: 520px; }
.hero-meta { margin-top: 44px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 980px; font-size: 15px; font-weight: 600;
  transition: transform .25s var(--ease-out), background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { background: var(--orange); transform: scale(1.04); }
.btn-secondary { border: 1px solid rgba(255,255,255,.25); color: var(--text); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); transform: scale(1.04); }
.hero-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 11px; letter-spacing: .3em; color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-hint::after { content: ""; width: 1px; height: 42px; background: linear-gradient(var(--text-3), transparent); animation: drip 1.8s ease infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-vertical {
  position: absolute; right: max(20px, calc((100vw - 1280px) / 2)); top: 50%; transform: translateY(-50%);
  z-index: 2; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .5em; color: var(--text-3);
}
@media (max-width: 900px) {
  .wall-plane { left: 30%; opacity: .55; }
  .hero-vertical { display: none; }
}

/* ========== 滚动文字带 ========== */
.band { padding: 34px 0; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); overflow: hidden; }
.band-row { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.band-row.a { animation: band 36s linear infinite; }
.band-row.b { animation: band-rev 44s linear infinite; margin-top: 10px; }
.band-row span { font-size: clamp(22px, 3.4vw, 40px); font-weight: 800; letter-spacing: .02em; padding: 0 26px; }
.band-row.b span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.28); }
.band-row span i { font-style: normal; color: var(--orange); }
@keyframes band { to { transform: translateX(-50%); } }
@keyframes band-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ========== 通用 ========== */
.section { padding: 120px max(24px, calc((100vw - 1280px) / 2)); }
.section-label {
  color: var(--orange); font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ""; width: 26px; height: 1px; background: var(--orange); }
.section-title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.section-desc { color: var(--text-2); margin-top: 16px; font-size: 16px; max-width: 560px; }
.center { text-align: center; }
.center .section-label { justify-content: center; }
.center .section-desc { margin-left: auto; margin-right: auto; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.img-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease-out); }
.img-reveal.visible { clip-path: inset(0 0 0 0); }

/* ========== 宣言（逐词显现） ========== */
.manifesto { max-width: 1000px; }
.manifesto p { font-size: clamp(26px, 4.4vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.manifesto .w { opacity: .12; transition: opacity .5s ease; display: inline-block; }
.manifesto .w.on { opacity: 1; }
.manifesto .accent { color: var(--orange); }

/* ========== 服务：悬停预览列表 ========== */
.svc-list { border-top: 1px solid rgba(255,255,255,.1); margin-top: 60px; }
.svc-row {
  position: relative; display: grid;
  grid-template-columns: 70px 1fr auto 40px;
  align-items: center; gap: 24px;
  padding: 40px 10px; border-bottom: 1px solid rgba(255,255,255,.1);
  cursor: pointer; transition: padding .35s var(--ease-out), background .35s;
}
.svc-row:hover { padding-left: 28px; background: linear-gradient(90deg, rgba(255,159,10,.05), transparent 60%); }
.svc-idx { font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; transition: color .3s; }
.svc-row:hover .svc-idx { color: var(--orange); }
.svc-name { font-size: clamp(26px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.svc-name small { display: block; font-size: 14px; font-weight: 400; color: var(--text-2); margin-top: 8px; letter-spacing: 0; }
.svc-tag { font-size: 13px; color: var(--text-3); border: 1px solid rgba(255,255,255,.14); padding: 6px 14px; border-radius: 980px; white-space: nowrap; }
.svc-arrow { font-size: 26px; color: var(--text-3); transition: transform .35s var(--ease-out), color .3s; }
.svc-row:hover .svc-arrow { transform: translateX(6px) rotate(-45deg); color: var(--orange); }
.svc-preview {
  position: fixed; z-index: 90; width: 300px; aspect-ratio: 4/5;
  border-radius: 16px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: scale(.85) rotate(3deg);
  transition: opacity .3s, transform .45s var(--ease-out);
  box-shadow: 0 30px 80px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.12);
}
.svc-preview.on { opacity: 1; transform: scale(1) rotate(0); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .svc-row { grid-template-columns: 44px 1fr 30px; }
  .svc-tag, .svc-preview { display: none; }
}

/* ========== 横向长廊（垂直滚动驱动） ========== */
.hscroll { position: relative; height: 320vh; }
.hscroll-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center;
}
.hscroll-track { display: flex; gap: 3vw; padding: 0 6vw; will-change: transform; align-items: center; }
.h-card { flex-shrink: 0; width: clamp(260px, 30vw, 420px); }
.h-card .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.h-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.h-card .cap { margin-top: 14px; font-size: 13px; color: var(--text-3); display: flex; justify-content: space-between; }
.h-card.lead { width: clamp(300px, 36vw, 520px); }
.h-card.lead .t { font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.h-card.lead .d { color: var(--text-2); margin-top: 16px; max-width: 380px; }
.h-card.end { width: clamp(280px, 32vw, 460px); display: flex; align-items: center; justify-content: center; }
.h-progress { position: absolute; left: 6vw; right: 6vw; bottom: 5vh; height: 1px; background: rgba(255,255,255,.12); }
.h-progress i { display: block; height: 100%; width: 0; background: var(--orange); }

/* ========== 数据 ========== */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; border-top: 1px solid rgba(255,255,255,.09); padding-top: 60px; }
.stat-num { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-num i { font-style: normal; color: var(--orange); }
.stat-label { color: var(--text-2); font-size: 13px; margin-top: 8px; }
@media (max-width: 640px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }

/* ========== 关于 / 联系 ========== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.about-text h2 { font-size: clamp(26px, 3.8vw, 40px); margin-bottom: 22px; letter-spacing: -.02em; }
.about-text p { color: var(--text-2); margin-bottom: 14px; font-size: 15.5px; }
.about-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.highlight-item { border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 20px 22px; transition: border-color .3s, transform .3s var(--ease-out); }
.highlight-item:hover { border-color: rgba(255,159,10,.5); transform: translateY(-4px); }
.highlight-item .num { font-size: 22px; font-weight: 800; color: var(--orange); }
.highlight-item .label { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.about-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 44px; } }

.contact-card { max-width: 680px; margin: 0 auto; text-align: center; border: 1px solid rgba(255,255,255,.1); border-radius: 30px; padding: 64px 34px; background: radial-gradient(120% 140% at 50% 0%, rgba(41,151,255,.08), rgba(5,5,5,0) 60%); }
.contact-card h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; }
.contact-card > p { color: var(--text-2); margin-top: 14px; }
.contact-methods { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.contact-row { display: flex; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 17px 22px; font-size: 15px; transition: border-color .3s, transform .3s var(--ease-out); }
.contact-row:hover { border-color: rgba(255,159,10,.55); transform: translateX(6px); }
.contact-row svg { width: 20px; height: 20px; stroke: var(--orange); fill: none; stroke-width: 2; flex-shrink: 0; }
.contact-row .label { color: var(--text-2); width: 76px; text-align: left; flex-shrink: 0; }
.contact-row .value { font-weight: 700; letter-spacing: .02em; }

/* ========== 页脚 ========== */
.footer { padding: 54px 24px 44px; text-align: center; color: var(--text-3); font-size: 13px; border-top: 1px solid rgba(255,255,255,.07); }
.footer a:hover { color: var(--text); }
.footer .beian { margin-top: 10px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 12px; }
.footer .beian img { height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ========== Lightbox ========== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.85); }
.lightbox-close { position: absolute; top: 22px; right: 28px; z-index: 2; background: rgba(255,255,255,.12); color: #fff; border: none; width: 42px; height: 42px; border-radius: 50%; font-size: 17px; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.12); color: #fff; border: none; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; transition: background .2s; }
.lightbox-nav:hover { background: rgba(255,159,10,.4); }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }
.lightbox-count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--text-2); font-size: 13px; }

/* ========== 作品集页 ========== */
.page-head { padding: calc(var(--nav-h) + 76px) 24px 44px; text-align: center; }
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 34px 0 10px; }
.filter-btn {
  border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--text-2);
  padding: 10px 22px; border-radius: 980px; font-size: 14px; cursor: pointer;
  transition: all .25s; font-family: inherit;
}
.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,.5); }
.filter-btn.active { background: var(--text); border-color: var(--text); color: #000; font-weight: 700; }
.gallery-count { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 30px; }
.masonry { columns: 4 250px; column-gap: 14px; max-width: 1400px; margin: 0 auto; padding: 0 24px 110px; }
.masonry .m-item { break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; }
.masonry .m-item img { width: 100%; transition: transform .6s var(--ease-out); }
.masonry .m-item:hover img { transform: scale(1.05); }
.masonry .m-item .m-tag {
  position: absolute; left: 10px; bottom: 10px; font-size: 11px;
  background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 4px 11px; border-radius: 980px; color: rgba(255,255,255,.9);
  opacity: 0; transition: opacity .25s;
}
.masonry .m-item:hover .m-tag { opacity: 1; }

/* ========== 法律页 ========== */
.legal { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 70px) 24px 110px; }
.legal h1 { font-size: 32px; margin-bottom: 28px; letter-spacing: -.02em; }
.legal h2 { font-size: 19px; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--text-2); font-size: 15px; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hscroll { height: auto; }
  .hscroll-sticky { position: static; height: auto; }
  .hscroll-track { overflow-x: auto; }
}

/* ========== 精修层 ========== */
/* Intro 序幕 */
.intro {
  position: fixed; inset: 0; z-index: 500; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transition: transform .95s cubic-bezier(.76, 0, .24, 1);
}
.intro.done { transform: translateY(-100%); }
.intro-logo { font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: .04em; overflow: hidden; }
.intro-logo span { display: inline-block; transform: translateY(115%); animation: rise .9s var(--ease-out) .15s forwards; }
.intro-logo span i { font-style: normal; color: var(--orange); }
.intro-bar { width: 180px; height: 1px; background: rgba(255,255,255,.14); overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 0; background: var(--orange); }
.intro-count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; letter-spacing: .25em; }

/* Hero 巨型描边水印 */
.hero-mark {
  position: absolute; bottom: -3vw; left: 50%; transform: translateX(-50%);
  z-index: 1; font-size: 24vw; font-weight: 800; line-height: .95; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08);
  pointer-events: none; user-select: none; white-space: nowrap; will-change: transform;
}

/* 照片墙入场（初始状态由 JS 置位，过渡在此声明） */
.wall-photo { transition: opacity 1.25s var(--ease-out), transform 1.25s var(--ease-out); will-change: transform, opacity; }

/* 光标文字标签 */
.cursor-ring { display: flex; align-items: center; justify-content: center; }
.cursor-label { font-size: 12px; font-weight: 700; color: #000; opacity: 0; transition: opacity .15s; letter-spacing: .05em; }
.cursor-ring.has-label { width: 78px; height: 78px; background: var(--orange); border-color: var(--orange); }
.cursor-ring.has-label .cursor-label { opacity: 1; }

/* 横向长廊卡片高低错落 */
.h-card:nth-child(odd) { transform: translateY(3.2vh); }
.h-card:nth-child(even) { transform: translateY(-3.2vh); }

/* 页脚巨型描边字 */
.footer-mark {
  font-size: clamp(84px, 18vw, 250px); font-weight: 800; line-height: .92;
  letter-spacing: -.03em; text-align: center; user-select: none;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09);
  margin: 70px 0 -14px; transition: -webkit-text-stroke .4s, color .4s;
}
.footer-mark:hover { -webkit-text-stroke: 1px rgba(255,159,10,.4); }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .wall-photo { transition: none; }
}
