/* Yysls-ControlInterface · 软件产品官网风格
   浅色内容区 + 深色产品展示区，单一朱砂强调色。 */

:root {
  --ink: #101319;
  --ink-2: #171B23;
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --muted: #667085;
  --line: #E4E7EC;
  --accent: #E04A2F;
  --accent-dark: #C43A22;
  --accent-soft: #FFF0EC;
  --radius: 12px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 247, 249, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(16, 19, 25, .05); }
.header-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--ink); color: #fff; border-radius: 9px;
  font-weight: 700; font-size: 20px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; letter-spacing: .01em; }
.brand-text small { font-size: 9px; letter-spacing: .14em; color: #8A91A0; margin-top: 4px; }

.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a { font-size: 14px; color: #4B5361; position: relative; padding: 6px 0; }
.desktop-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .25s ease;
}
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after { right: 0; }

.header-right { display: flex; align-items: center; gap: 16px; }
.header-link { font-size: 13px; color: var(--ink); font-weight: 600; }
.header-link span { color: var(--accent); margin-left: 3px; }

.menu-toggle { display: none; width: 38px; height: 38px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--white); padding: 10px 24px 18px; }
.mobile-nav a { display: block; padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border: 1px solid rgba(255,255,255,.22); color: #E8EBF0; }
.btn-ghost:hover { border-color: #fff; }
.btn-light { background: #fff; color: var(--accent-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #0C0F14; color: #F5F7FA; padding: 96px 0 84px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 72%);
}
.hero-glow {
  position: absolute; width: 620px; height: 620px; right: -120px; top: -180px; pointer-events: none;
  background: radial-gradient(circle, rgba(224,74,47,.20), transparent 68%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; font-size: 11px; font-weight: 600; letter-spacing: .16em; color: #FF8974; }
.eyebrow-dot { width: 4px; height: 4px; border-radius: 50%; background: #5A626F; }
.hero-title { margin: 0; font-size: clamp(44px, 5.4vw, 72px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.hero-subtitle { margin: 18px 0 0; font-size: 18px; color: #D7DCE5; letter-spacing: .02em; }
.hero-subtitle span { color: var(--accent); margin: 0 6px; }
.hero-desc { margin: 22px 0 0; max-width: 560px; font-size: 15px; line-height: 1.95; color: #9BA5B4; }
.hero-notice {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  padding: 9px 14px; border: 1px solid rgba(224,74,47,.42); background: rgba(224,74,47,.09);
  border-radius: 6px; font-size: 13px; color: #FFB7A8;
}
.notice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(224,74,47,.16); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-visual { min-width: 0; }
.app-window {
  background: #fff; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.3);
}
.window-bar { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #191D25; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #4B5361; }
.window-dots i:first-child { background: #E05B4A; }
.window-dots i:nth-child(2) { background: #D9A63C; }
.window-dots i:last-child { background: #4EA87A; }
.window-title { flex: 1; font-size: 11px; color: #8B95A3; letter-spacing: .02em; }
.window-version { font-size: 10px; color: #67717F; }
.app-window img { display: block; width: 100%; height: auto; }
.window-caption { margin-top: 14px; font-size: 12px; color: #7D8796; display: flex; gap: 10px; }
.window-caption span { color: #FF8974; font-weight: 700; }

/* ---------- Stats ---------- */
.stats-band { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px 30px 0; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat strong { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-index { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--accent); }
.section-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; letter-spacing: -.02em; }
.section-lede { margin: 14px 0 0; font-size: 15px; color: var(--muted); line-height: 1.9; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: #D3D8E0; box-shadow: 0 16px 40px rgba(16,19,25,.07); }
.feature-top { display: flex; align-items: flex-start; justify-content: space-between; }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-no { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #B2B8C2; }
.feature-card h3 { margin: 22px 0 10px; font-size: 19px; letter-spacing: -.01em; }
.feature-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.85; min-height: 78px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.feature-tags span { padding: 5px 10px; border-radius: 999px; background: #F2F4F7; color: #5B6473; font-size: 11px; }

/* ---------- Tech ---------- */
.tech-band { background: #0F1218; color: #F5F7FA; }
.tech-band .section-index { color: #FF8974; }
.tech-band .section-lede { color: #909AA9; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-card { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 32px; }
.tech-no { font-size: 42px; font-weight: 700; line-height: 1; color: rgba(255,255,255,.14); letter-spacing: -.04em; }
.tech-card h3 { margin: 24px 0 10px; font-size: 19px; }
.tech-card p { margin: 0; font-size: 14px; line-height: 1.85; color: #9BA5B4; min-height: 76px; }
.tech-metric { display: flex; align-items: baseline; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.tech-metric span { font-size: 12px; color: #7D8796; }
.tech-metric strong { font-size: 22px; color: #FF8974; letter-spacing: -.02em; }

/* ---------- Screenshots ---------- */
.shot-viewport { position: relative; }
.shot-grid {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 0 16px; scrollbar-width: thin; scrollbar-color: #C2C8D2 #E8EAEE;
}
.shot-grid::-webkit-scrollbar { height: 6px; }
.shot-grid::-webkit-scrollbar-track { background: #E8EAEE; border-radius: 6px; }
.shot-grid::-webkit-scrollbar-thumb { background: #C2C8D2; border-radius: 6px; }
.shot-grid:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shot-item { flex: 0 0 268px; scroll-snap-align: start; display: block; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; cursor: zoom-in; text-align: left; transition: transform .25s ease, box-shadow .25s ease; }
.shot-nav {
  position: absolute; top: calc(50% - 28px); width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.96); color: var(--ink);
  box-shadow: 0 6px 18px rgba(16,19,25,.12); cursor: pointer;
  display: grid; place-items: center; font-size: 26px; line-height: 1;
  transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}
.shot-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.shot-nav:disabled { opacity: .3; cursor: default; }
.shot-nav-prev { left: -16px; }
.shot-nav-next { right: -16px; }
.shot-item:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16,19,25,.08); }
.shot-frame { display: block; overflow: hidden; padding: 8px; background: #0C0F14; }
.shot-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; transform-origin: center center; transition: transform .4s ease; }
.shot-item:hover .shot-frame img { transform: scale(1.06); }
.shot-caption { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.shot-caption i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent); }
.shot-caption small { width: 100%; color: var(--muted); font-size: 11px; }

/* ---------- Video ---------- */
.demo-band { background: #EDEFF3; }
.video-block { max-width: 980px; margin: 0 auto; }
.video-player-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(16,19,25,.16); }
.video-player { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-overlay { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; transition: opacity .25s ease; background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 40%, rgba(0,0,0,.35)); }
.video-player-wrap.playing .video-overlay { opacity: 0; pointer-events: none; }
.video-big-play { width: 72px; height: 72px; border: none; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.video-big-play svg { width: 30px; height: 30px; }
.video-label { position: absolute; top: 16px; left: 16px; display: flex; gap: 10px; align-items: center; padding: 6px 11px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; letter-spacing: .04em; }
.video-line { color: #FF8974; font-weight: 700; }
.video-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 24px 16px 12px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.video-control { width: 30px; height: 30px; border: none; background: none; color: #fff; cursor: pointer; padding: 4px; }
.video-control svg { width: 18px; height: 18px; fill: currentColor; }
.video-fullscreen-ctrl svg { fill: none; }
.video-time { font-size: 11px; color: #E6E9EE; white-space: nowrap; font-variant-numeric: tabular-nums; }
.video-progress { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); cursor: pointer; }
.video-progress-bar { height: 100%; width: 0; border-radius: 4px; background: var(--accent); }
.video-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.line-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.line-switch-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.line-btn { border: 1px solid #D8DCE3; background: #fff; color: #4B5361; border-radius: 999px; padding: 7px 14px; font-size: 12px; cursor: pointer; transition: all .2s ease; }
.line-btn:hover { border-color: var(--accent); color: var(--accent); }
.line-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.video-caption { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- Steps ---------- */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { border-top: 3px solid var(--line); padding-top: 22px; transition: border-color .25s ease; }
.step:hover { border-color: var(--accent); }
.step-no { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.step h3 { margin: 14px 0 8px; font-size: 18px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }
.step-foot { display: block; margin-top: 20px; font-size: 10px; letter-spacing: .12em; color: #9AA2AE; }

/* ---------- CTA / Footer ---------- */
.cta-band { background: var(--accent); color: #fff; padding: 68px 0; }
.cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.cta-index { margin: 0 0 16px; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: rgba(255,255,255,.7); }
.cta-band h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.35; letter-spacing: -.02em; }
.cta-side { text-align: right; }
.cta-side p { margin: 0 0 18px; font-size: 13px; color: rgba(255,255,255,.8); }
.site-footer { background: #0C0F14; color: #798391; padding: 26px 0; font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,10,14,.93); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox p { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #E6E9EE; font-size: 13px; margin: 0; }
.lightbox-close { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease var(--delay, 0ms), transform .6s ease var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 72px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 720px; }
  .feature-grid, .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .desktop-nav { gap: 18px; }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .desktop-nav, .header-link { display: none; }
  .menu-toggle { display: block; }
  .hero-title { font-size: clamp(38px, 10vw, 52px); }
  .hero-desc { font-size: 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 12px 22px 0; }
  .stat + .stat { padding-left: 18px; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .feature-grid, .tech-grid, .step-grid { grid-template-columns: 1fr; }
  .shot-item { flex-basis: 238px; }
  .shot-nav-prev { left: -8px; }
  .shot-nav-next { right: -8px; }
  .feature-card p, .tech-card p { min-height: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-side { text-align: left; }
  .footer-inner { flex-direction: column; gap: 6px; }
  .video-foot { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
