/* =========================================================
   Darkyi Studio — 演示中心 / 工作室名片
   纯静态，无外部依赖（无 CDN / 无网络字体）
   ========================================================= */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #0b1a2b;
  --ink-soft: #24384f;
  --muted: #5f7189;
  --line: #e4e9f0;
  --line-strong: #d3dae4;
  --navy: #0b1f3a;
  --navy-2: #122b4d;
  --accent: #f0672b;
  --accent-2: #ff8a4c;
  --accent-ink: #a63f10;
  --green: #15803d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 26, 43, .06), 0 2px 8px rgba(11, 26, 43, .04);
  --shadow-md: 0 10px 30px rgba(11, 26, 43, .10);
  --shadow-lg: 0 24px 60px rgba(11, 26, 43, .16);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

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

h1, h2, h3 { margin: 0; line-height: 1.22; letter-spacing: -.015em; }

p { margin: 0; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(11, 26, 43, .05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 55%, #1c3c66);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.brand-mark.small { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: 11.5px; letter-spacing: .06em; }

.nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14.5px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(11, 31, 58, .06); color: var(--ink); }
.nav a.is-active { background: rgba(240, 103, 43, .1); color: var(--accent-ink); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .22s, opacity .22s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(240, 103, 43, .28);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(240, 103, 43, .36); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15.5px; }
.arrow { font-size: 13px; opacity: .8; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 92px;
  background:
    radial-gradient(1100px 460px at 82% -10%, rgba(240, 103, 43, .10), transparent 62%),
    radial-gradient(900px 420px at 6% 8%, rgba(11, 31, 58, .07), transparent 60%),
    var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 31, 58, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 58, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(720px 520px at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 520px at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 103, 43, .15);
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 800;
  letter-spacing: -.03em;
}
.hero h1 .accent {
  color: var(--accent);
  position: relative;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 8px;
  border-radius: 6px;
  background: rgba(240, 103, 43, .16);
  z-index: -1;
}
.lede {
  max-width: 30em;
  margin-top: 22px;
  color: var(--muted);
  font-size: 16.5px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin: 36px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-size: 19px; letter-spacing: -.02em; }
.hero-facts span { color: var(--muted); font-size: 12.5px; }

.hero-visual { position: relative; min-height: 380px; }
.browser {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: #f3f5f8;
  border-bottom: 1px solid var(--line);
}
.browser-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6dce6;
}
.browser-bar i:first-child { background: #f0a58a; }
.browser-bar span {
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-main { width: 100%; transform: rotate(-1deg); }
.browser-main img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.browser-sub {
  position: absolute;
  width: 46%;
  right: -8px;
  bottom: -34px;
  transform: rotate(2.4deg);
  box-shadow: var(--shadow-md);
}
.browser-sub img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.hero-badge {
  position: absolute;
  left: -10px;
  top: -14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ---------------- 通用 section ---------------- */
.section { padding: 88px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -.025em; }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.section-head .eyebrow { margin-bottom: 12px; }

/* ---------------- 演示卡片 ---------------- */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.demo-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.demo-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f5;
}
.demo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
.demo-card:hover .demo-thumb img { transform: scale(1.035); }
.demo-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 26, 43, .78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s, transform .22s;
  backdrop-filter: blur(4px);
}
.demo-card:hover .demo-open { opacity: 1; transform: translateY(0); }
.demo-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.demo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.demo-tags span {
  padding: 3px 9px;
  border-radius: 6px;
  background: #f1f4f8;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.demo-body h3 { font-size: 19px; letter-spacing: -.015em; }
.demo-body > p { margin-top: 9px; color: var(--muted); font-size: 14.2px; flex: 1; }
.demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.link-url { color: var(--muted); font-size: 12px; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-link { color: var(--accent-ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link.is-disabled { color: #9aa7b8; }

.demo-card.is-soon { opacity: .92; }
.demo-thumb-soon {
  display: grid;
  place-items: center;
  background:
    radial-gradient(420px 220px at 20% 20%, rgba(255, 138, 76, .22), transparent 70%),
    linear-gradient(135deg, #0b1f3a, #16345c 60%, #1d4472);
}
.soon-word {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: .06em;
}
.soon-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: .04em;
}

/* ---------------- 能力 ---------------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.cap-card {
  padding: 26px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.cap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); background: #fff; }
.cap-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(240, 103, 43, .1);
  color: var(--accent-ink);
}
.cap-ico svg { width: 23px; height: 23px; }
.cap-card h3 { font-size: 16.5px; letter-spacing: -.01em; }
.cap-card p { margin-top: 8px; color: var(--muted); font-size: 13.6px; }

/* ---------------- 流程 ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 24px 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--line-strong);
  font-size: 16px;
}
.steps li:last-child::after { display: none; }
.step-no {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
}
.steps h3 { font-size: 16.5px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 13.6px; }

/* ---------------- 关于 ---------------- */
.section-about { background: #fff; border-top: 1px solid var(--line); }
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px;
  align-items: start;
}
.about-copy h2 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.about-copy p { margin-top: 16px; color: var(--muted); font-size: 15.2px; }
.about-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.about-points li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 12px 12px 0;
}
.about-points strong { font-size: 14.5px; }
.about-points span { color: var(--muted); font-size: 13.4px; }

/* ---------------- 联系 ---------------- */
.contact {
  background:
    radial-gradient(720px 320px at 12% 0%, rgba(240, 103, 43, .22), transparent 60%),
    linear-gradient(135deg, var(--navy), #10294a 65%, #16345c);
  color: #fff;
  padding: 76px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px;
  align-items: center;
}
.contact h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.eyebrow-light { color: #ffb08a; }
.contact-sub { margin-top: 14px; color: rgba(255, 255, 255, .74); font-size: 15.2px; }
.contact-sub strong { color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contact-tip { width: 100%; min-height: 20px; margin-top: 4px; color: #ffd2ba; font-size: 13px; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.footer-meta a:hover { color: var(--ink); }
.sep { color: #c2cbd8; }
.icp { color: var(--muted); }
#icpNo { color: var(--ink-soft); }

/* ---------------- 动效 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .demo-card, .demo-thumb img { transition: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2)::after { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 46px; }
  .hero-visual { max-width: 640px; }
  .about-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 15px; }
  .nav-toggle { display: block; }
  .hide-sm { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 70px; }
  .hero h1 { font-size: clamp(34px, 8.4vw, 46px); }
  .hero-facts { gap: 16px 26px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .cap-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { margin-left: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 36px); }
  .hero-actions .btn { width: 100%; }
  .demo-body { padding: 18px; }
  .browser-sub { display: none; }
  .hero-badge { left: 0; }
}
