/* ============================================================
   theme-v2.css — 3ink official site · refined dark theme
   高级感暗色主题：大留白 / 细字重 / 编辑式排版 / 玻璃拟态
   Loaded AFTER dark-3ink.css to override & add new layouts.
   ============================================================ */

:root {
  --v2-bg: #070709;
  --v2-bg-soft: #0b0b0f;
  --v2-panel: #101014;
  --v2-border: rgba(255,255,255,.085);
  --v2-border-strong: rgba(255,255,255,.16);
  --v2-text: #f5f5f7;
  --v2-muted: #a1a1ab;
  --v2-faint: #6f6f7a;
  --v2-accent: #e8e8ec;
  --v2-glow: rgba(120,120,160,.14);
}

html, body, main { background: var(--v2-bg); color: var(--v2-text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ambient top glow */
body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 520px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--v2-glow), transparent 70%),
    radial-gradient(40% 40% at 85% 8%, rgba(88,88,130,.08), transparent 70%),
    radial-gradient(40% 40% at 12% 6%, rgba(70,70,110,.07), transparent 70%);
}

/* ---------- header ---------- */
header {
  background: rgba(7,7,9,.72);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}
header.scrolled { background: rgba(7,7,9,.82); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
header nav { padding: 20px max(24px, calc((100vw - 1248px)/2)); }
.logo .brand-name { font-weight: 600; letter-spacing: -.02em; }
header nav ul li a { font-size: 14px; color: #c9c9d2; font-weight: 450; transition: color .18s; }
header nav ul li a:hover { color: #fff; }

/* ---------- hero ---------- */
#home.hero {
  position: relative; min-height: 88svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 130px 24px 84px; overflow: hidden; isolation: isolate;
  background: transparent; border: 0;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('/assets/uploads/home/hero-products.jpg') center 42%/cover no-repeat;
  opacity: .34; filter: blur(22px) saturate(1.1);
  transform: scale(1.06);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(7,7,9,.32), transparent 72%),
    linear-gradient(180deg, rgba(7,7,9,.72) 0%, rgba(7,7,9,.52) 34%, rgba(7,7,9,.92) 78%, var(--v2-bg) 100%);
}
.hero-inner { position: relative; z-index: 1; width: min(920px, 90vw); margin: auto 0 34px; }
.hero-eyebrow {
  display: inline-block; margin-bottom: 26px;
  color: var(--v2-muted); font-size: 11px; font-weight: 500;
  letter-spacing: .34em; text-transform: uppercase;
}
.hero-inner h1 {
  font-size: clamp(40px, 5.6vw, 72px); font-weight: 550;
  letter-spacing: -.045em; line-height: 1.12; margin: 0 0 26px;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(16px, 1.55vw, 20px); line-height: 1.8;
  color: var(--v2-muted); max-width: 640px; margin: 0 auto 42px;
  text-wrap: balance;
}
.hero-cta { display: flex; justify-content: center; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 14px 30px; border-radius: 12px;
  background: #f5f5f7; color: #0b0b0f; font-size: 15px; font-weight: 500;
  text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 14px 34px rgba(0,0,0,.4);
}
.hero-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 18px 44px rgba(0,0,0,.5); }
.hero-btn span { font-size: 20px; line-height: 1; transition: transform .2s; }
.hero-btn:hover span { transform: translateX(4px); }

/* hero product strip */
.hero-products {
  position: relative; z-index: 1; width: min(1120px, 94vw);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 18px;
}
.hero-product {
  display: block; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); background: rgba(16,16,20,.6);
  transition: transform .25s ease, border-color .25s ease, opacity .25s ease;
  opacity: .82;
}
.hero-product:hover { opacity: 1; transform: translateY(-4px); border-color: rgba(255,255,255,.26); }
.hero-product img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; object-position: center top; }

/* ---------- stats ---------- */
.stats-3ink {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  max-width: 1248px; margin: 0 auto; padding: 74px 24px 84px;
  border: 0; background: transparent;
}
.stats-3ink .stat-item { text-align: center; padding: 0 18px; border: 0; position: relative; }
.stats-3ink .stat-item + .stat-item::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px; background: rgba(255,255,255,.08);
}
.stats-3ink .stat-item strong {
  display: block; font-size: 42px; font-weight: 550;
  letter-spacing: -.03em; line-height: 1; color: var(--v2-text);
}
.stats-3ink .stat-item span {
  display: block; margin-top: 12px; font-size: 12px;
  letter-spacing: .22em; color: var(--v2-faint); text-transform: uppercase;
}

/* ---------- shared section ---------- */
#about, #services, #portfolio, #team-query {
  max-width: 1248px; margin: 0 auto; padding: 96px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section-header { margin: 0 0 48px; gap: 14px; }
.section-header .section-subtitle {
  order: -1; font-size: 11px; font-weight: 500; letter-spacing: .3em;
  color: var(--v2-faint); text-transform: uppercase;
}
.section-header h2 {
  font-size: clamp(30px, 3.4vw, 44px); font-weight: 550;
  letter-spacing: -.035em; line-height: 1.2; color: var(--v2-text); margin: 0;
}

/* ---------- about ---------- */
.about-content {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center;
}
.about-text { padding: 0; }
.about-lead {
  font-size: clamp(19px, 2vw, 26px); line-height: 1.75; font-weight: 420;
  color: #e3e3e8; margin: 0 0 34px; max-width: 640px; letter-spacing: -.01em;
}
.about-disciplines { display: flex; gap: 10px; margin-bottom: 32px; }
.about-disciplines span {
  border: 1px solid rgba(255,255,255,.14); border-radius: 100px;
  padding: 7px 18px; font-size: 13px; color: #cfcfd8; background: rgba(255,255,255,.02);
}
.about-project-link {
  display: inline-flex; align-items: center; gap: 30px;
  color: var(--v2-text); font-size: 15px; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 10px; transition: border-color .2s, color .2s;
}
.about-project-link:hover { border-color: #fff; }
.about-project-link span { font-size: 18px; transition: transform .2s; }
.about-project-link:hover span { transform: translate(3px, -2px); }

.about-metrics {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
}
.metric {
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  padding: 30px 20px; text-align: left; backdrop-filter: blur(10px);
}
.metric strong { display: block; font-size: 34px; font-weight: 550; letter-spacing: -.03em; line-height: 1.1; }
.metric span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .14em; color: var(--v2-faint); }

/* ---------- services: editorial list ---------- */
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: grid; grid-template-columns: 72px minmax(180px, 260px) 1fr;
  gap: 28px; align-items: baseline; padding: 30px 4px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background-color .25s ease;
}
.service-row:first-child { border-top: 1px solid rgba(255,255,255,.07); }
.service-row:hover { background: rgba(255,255,255,.022); }
.service-num {
  font-size: 13px; font-weight: 500; letter-spacing: .08em;
  color: var(--v2-faint); font-variant-numeric: tabular-nums;
  transition: color .2s;
}
.service-row:hover .service-num { color: var(--v2-muted); }
.service-name {
  font-size: 22px; font-weight: 500; letter-spacing: -.02em;
  line-height: 1.3; margin: 0; color: var(--v2-text); transition: color .2s;
}
.service-row:hover .service-name { color: #fff; }
.service-desc {
  font-size: 15px; line-height: 1.85; color: var(--v2-muted); margin: 0;
}

/* ---------- portfolio: 2-col large shots ---------- */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.portfolio-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  transition: none;
}
.portfolio-card:hover { transform: none; background: transparent; border-color: transparent; }
.portfolio-shot {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  background: #101014; aspect-ratio: 16/9;
}
.portfolio-shot img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  background: #101014; transition: transform .45s cubic-bezier(.2,.6,.2,1);
}
.portfolio-card:hover .portfolio-shot img { transform: scale(1.025); }
.portfolio-card:hover .portfolio-shot { border-color: rgba(255,255,255,.2); }
.portfolio-meta { padding: 20px 4px 0; display: flex; flex-direction: column; align-items: flex-start; }
.portfolio-meta h3 { font-size: 21px; font-weight: 500; letter-spacing: -.02em; margin: 0 0 8px; color: var(--v2-text); }
.portfolio-meta p { font-size: 14px; line-height: 1.75; color: var(--v2-muted); margin: 0 0 14px; }
.portfolio-go {
  display: inline-flex; align-items: center; gap: 20px;
  font-size: 13px; font-weight: 500; color: var(--v2-muted);
  border-bottom: 1px solid rgba(255,255,255,.22); padding-bottom: 6px;
  transition: color .2s, border-color .2s;
}
.portfolio-go span { font-size: 16px; transition: transform .2s; }
.portfolio-card:hover .portfolio-go { color: #fff; border-color: rgba(255,255,255,.5); }
.portfolio-card:hover .portfolio-go span { transform: translateX(3px); }

/* ---------- team-query ---------- */
#team-query { padding-top: 72px; padding-bottom: 96px; border-bottom: 0; }
.team-query-content { display: flex; gap: 14px; margin-top: 8px; }
.custom-btn {
  font-size: 14px; font-weight: 500; padding: 13px 26px; border-radius: 12px; margin: 0;
}
.btn-primary.custom-btn {
  background: #f5f5f7; border: 1px solid #f5f5f7; color: #0b0b0f;
  transition: transform .18s ease, background .18s ease;
}
.btn-primary.custom-btn:hover { background: #fff; transform: translateY(-1px); }
.btn-secondary.custom-btn {
  background: transparent; border: 1px solid rgba(255,255,255,.18); color: #e6e6ec;
  transition: border-color .18s, background .18s;
}
.btn-secondary.custom-btn:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.32); }

/* ---------- footer ---------- */
.site-footer { background: #050507; border-top: 1px solid rgba(255,255,255,.06); }
.footer-main { padding: 72px 0 48px; }
.footer-brand>a { font-weight: 600; letter-spacing: -.055em; }
.footer-brand>a span { color: #6f6f7a; }
.footer-links>span { color: #d6d6de; font-weight: 500; }
.footer-links a { font-size: 13px; transition: color .18s; }
.footer-bottom { color: #5f5f6a; font-size: 11px; }

/* ---------- modal polish ---------- */
.modal-content {
  background: rgba(18,18,22,.9); backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255,255,255,.1); border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.modal-header, .modal-footer { background: transparent; border-color: rgba(255,255,255,.08); }
.form-control { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.form-control:focus { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.35); box-shadow: 0 0 0 .25rem rgba(255,255,255,.06); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-btn, .hero-product, .portfolio-shot img, .portfolio-go span { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-content { grid-template-columns: 1fr; gap: 44px; }
  .about-metrics { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  #home.hero { min-height: 92svh; padding: 110px 20px 64px; }
  .hero-inner h1 { font-size: clamp(34px, 9vw, 46px); }
  .hero-sub { font-size: 15px; margin-bottom: 34px; }
  .hero-products { grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; }
  .hero-product:nth-child(n+5) { display: none; }
  .stats-3ink { grid-template-columns: 1fr 1fr; gap: 34px 0; padding: 52px 20px 64px; }
  .stats-3ink .stat-item:nth-child(3)::before { display: none; }
  #about, #services, #portfolio { padding: 68px 20px; }
  .section-header { margin-bottom: 34px; }
  .section-header h2 { font-size: 30px; }
  .about-lead { font-size: 18px; }
  .about-metrics { gap: 10px; }
  .metric { padding: 22px 16px; }
  .metric strong { font-size: 28px; }
  .service-row { grid-template-columns: 40px 1fr; gap: 6px 16px; padding: 24px 2px; }
  .service-name { font-size: 19px; }
  .service-desc { grid-column: 2; font-size: 14px; }
  .portfolio-grid { gap: 30px; }
  .portfolio-meta h3 { font-size: 19px; }
  #team-query { padding: 56px 20px 72px; }
  .team-query-content { flex-direction: column; align-items: flex-start; }
  .custom-btn { width: 100%; justify-content: center; }
  .footer-main { padding: 52px 0 36px; }
}

/* ============================================================
   v3 — de-AI refinements (Linear / Vercel-grade restraint)
   图标体系 / pill 徽章 / 浏览器框架 / 去模板化
   ============================================================ */

/* hero eyebrow → pill badge */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 30px; padding: 8px 18px 8px 14px;
  border: 1px solid rgba(255,255,255,.13); border-radius: 100px;
  background: rgba(255,255,255,.03);
  color: #d8d8e0; font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-eyebrow i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #f5f5f7; opacity: .85;
  box-shadow: 0 0 10px rgba(255,255,255,.55);
}

/* section subtitle → chinese tag with rule */
.section-header .section-subtitle {
  order: -1; display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em;
  text-transform: none; color: var(--v2-muted);
}
.section-header .section-subtitle::before {
  content: ""; width: 20px; height: 1px;
  background: rgba(255,255,255,.32);
}

/* stats — icon set, no bar, thinner numerals */
.stats-3ink { padding: 84px 24px 96px; }
.stats-3ink .stat-item + .stat-item::before { display: none; }
.stat-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  margin-bottom: 20px; background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.09); color: #c6c6d0;
  transition: color .2s, border-color .2s, background .2s;
}
.stat-item:hover .stat-ico { color: #fff; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.06); }
.stats-3ink .stat-item strong {
  font-size: 46px; font-weight: 300; letter-spacing: -.045em;
}
.stats-3ink .stat-item span {
  margin-top: 12px; letter-spacing: .14em; text-transform: none;
}

/* services — icon tile + number + name + desc */
.service-row { grid-template-columns: 56px 64px minmax(180px, 250px) 1fr; gap: 26px; align-items: center; }
.service-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09);
  color: #c6c6d0; transition: color .2s, border-color .2s, background .2s;
}
.service-row:hover .service-ico {
  color: #fff; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.06);
}
.service-row .service-num { align-self: center; }
.service-row .service-name { align-self: center; }
.service-row .service-desc { align-self: center; }

/* portfolio — browser chrome frame */
.portfolio-shot {
  aspect-ratio: auto;
  display: flex; flex-direction: column;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.1);
  background: #0e0e12;
}
.browser-bar {
  position: relative; z-index: 2; flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
  height: 34px; padding: 0 12px;
  background: rgba(22,22,28,.96);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1; margin: 0 auto; max-width: 360px;
  display: block; text-align: center;
  font-size: 11.5px; color: #9a9aa6; font-weight: 450;
  background: rgba(255,255,255,.055); border-radius: 7px;
  padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.portfolio-shot img { aspect-ratio: 16/9; height: auto; object-fit: contain; }
.portfolio-card:hover .portfolio-shot img { transform: scale(1.02); }

/* about disciplines — icon chips */
.about-disciplines span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px 7px 12px;
}
.about-disciplines span svg { opacity: .7; }

/* footer bottom typography */
.footer-bottom { letter-spacing: .12em; }

/* ambient glow — slightly more restrained */
body::before {
  background:
    radial-gradient(55% 46% at 50% 0%, rgba(118,118,158,.11), transparent 70%),
    radial-gradient(36% 36% at 86% 6%, rgba(84,84,124,.06), transparent 70%);
}

/* ---------- v3 responsive ---------- */
@media (max-width: 768px) {
  .hero-eyebrow { letter-spacing: .08em; padding: 7px 14px 7px 12px; font-size: 11px; }
  .stats-3ink { padding: 56px 20px 68px; }
  .stat-ico { width: 40px; height: 40px; margin-bottom: 16px; }
  .stats-3ink .stat-item strong { font-size: 36px; }
  .service-row { grid-template-columns: 44px 1fr; gap: 4px 14px; }
  .service-ico { grid-column: 1; grid-row: 1; width: 40px; height: 40px; }
  .service-num { grid-column: 2; grid-row: 1; }
  .service-name { grid-column: 2; grid-row: 2; }
  .service-desc { grid-column: 2; grid-row: 3; }
  .browser-url { max-width: 200px; }
}
