/*
Theme Name: 雷宇实验室
Theme URI: https://leiyu.help
Author: 雷宇实验室
Description: 雷宇实验室 AI 工具、自动化与内容创作官方网站主题。
Version: 1.0.1
Text Domain: leiyu-lab
*/

:root {
  --bg: #071014;
  --bg-soft: #0b171c;
  --panel: rgba(18, 36, 42, .72);
  --line: rgba(170, 232, 215, .14);
  --text: #f4fbf8;
  --muted: #9db4ad;
  --mint: #6ef2c6;
  --mint-strong: #2ed9a5;
  --amber: #f7c66a;
  --shadow: 0 24px 90px rgba(0, 0, 0, .3);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(46, 217, 165, .10), transparent 31%),
    radial-gradient(circle at 84% 8%, rgba(247, 198, 106, .08), transparent 24%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { width: auto; height: auto; clip: auto; padding: 10px 16px; margin: 8px; z-index: 9999; background: #fff; color: #000; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 16, 20, .78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(7, 16, 20, .92); }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .04em; }
.brand-mark { width: 38px; height: 38px; color: var(--mint); filter: drop-shadow(0 0 16px rgba(110, 242, 198, .25)); }
.brand-name { font-size: 17px; }
.site-nav { display: flex; align-items: center; gap: 30px; color: #c3d5cf; font-size: 14px; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--mint); }
.nav-contact { padding: 10px 16px; border: 1px solid rgba(110, 242, 198, .35); border-radius: 999px; color: var(--mint) !important; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; color: #fff; background: transparent; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 18px; height: 2px; margin: 4px auto; content: ""; background: currentColor; transition: transform .2s ease; }

.hero { position: relative; overflow: hidden; padding: 100px 0 82px; }
.hero::before { position: absolute; inset: 0; pointer-events: none; content: ""; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000 20%, transparent 90%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; color: var(--mint); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.eyebrow::before { width: 28px; height: 1px; content: ""; background: currentColor; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(48px, 6.3vw, 86px); font-weight: 820; line-height: 1.02; letter-spacing: -.055em; }
.hero h1 .accent { display: block; color: var(--mint); text-shadow: 0 0 40px rgba(110, 242, 198, .16); }
.hero-lead { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #06271e; background: var(--mint); box-shadow: 0 14px 36px rgba(46, 217, 165, .19); }
.btn-primary:hover { background: #8af8d6; box-shadow: 0 18px 44px rgba(46, 217, 165, .27); }
.btn-secondary { border-color: var(--line); background: rgba(255,255,255,.035); }
.btn-secondary:hover { border-color: rgba(110, 242, 198, .35); }
.arrow { font-size: 18px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 22px; margin: 30px 0 0; padding: 0; color: #b6cac4; font-size: 13px; list-style: none; }
.hero-notes li::before { margin-right: 8px; color: var(--mint); content: "✦"; }

.hero-visual { position: relative; min-height: 510px; display: grid; place-items: center; }
.fluid-canvas { position: absolute; inset: -8%; width: 116%; height: 116%; opacity: .88; pointer-events: none; filter: saturate(1.18); mask-image: radial-gradient(circle, #000 30%, rgba(0,0,0,.82) 58%, transparent 78%); }
.orbital { position: relative; width: min(100%, 470px); aspect-ratio: 1; display: grid; place-items: center; }
.orbit { position: absolute; inset: 4%; border: 1px solid rgba(110, 242, 198, .18); border-radius: 50%; animation: spin 24s linear infinite; }
.orbit::before, .orbit::after { position: absolute; width: 9px; height: 9px; content: ""; border-radius: 50%; background: var(--mint); box-shadow: 0 0 18px var(--mint); }
.orbit::before { top: 13%; left: 14%; }
.orbit::after { right: 5%; bottom: 28%; background: var(--amber); box-shadow: 0 0 18px var(--amber); }
.orbit-b { inset: 17%; animation-direction: reverse; animation-duration: 16s; border-color: rgba(247, 198, 106, .14); }
.core { position: relative; z-index: 2; width: 224px; height: 224px; display: grid; place-items: center; border: 1px solid rgba(110, 242, 198, .24); border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(110,242,198,.22), rgba(12,27,32,.92) 58%); box-shadow: inset 0 0 60px rgba(110,242,198,.08), 0 0 90px rgba(46,217,165,.12); }
.core-logo { width: 95px; color: var(--mint); }
.float-card { position: absolute; z-index: 4; width: 220px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(9, 23, 28, .88); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.float-card small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.float-card strong { font-size: 15px; }
.float-card .status { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.card-a { top: 10%; left: 0; }
.card-b { right: -2%; bottom: 13%; }
@keyframes spin { to { transform: rotate(360deg); } }

.signal-bar { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.signal-grid { min-height: 92px; display: grid; grid-template-columns: repeat(3, 1fr); }
.signal-item { display: flex; align-items: center; gap: 14px; padding: 20px 30px; border-right: 1px solid var(--line); }
.signal-item:last-child { border-right: 0; }
.signal-index { color: var(--mint); font: 700 12px/1 ui-monospace, monospace; }
.signal-item strong { display: block; font-size: 15px; }
.signal-item span:last-child { display: block; color: var(--muted); font-size: 12px; }

.section { padding: 112px 0; }
.section-soft { background: linear-gradient(180deg, rgba(255,255,255,.018), transparent); border-block: 1px solid rgba(255,255,255,.035); }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: end; margin-bottom: 52px; }
.section-kicker { margin: 0 0 12px; color: var(--mint); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.section h2 { margin: 0; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.1; letter-spacing: -.04em; }
.section-intro { max-width: 580px; margin: 0 0 5px auto; color: var(--muted); font-size: 17px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 330px; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(21,43,49,.88), rgba(10,23,28,.78)); box-shadow: 0 18px 54px rgba(0,0,0,.12); transition: transform .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(110,242,198,.34); }
.service-card::after { position: absolute; right: -60px; bottom: -80px; width: 190px; height: 190px; content: ""; border-radius: 50%; background: radial-gradient(circle, rgba(110,242,198,.13), transparent 70%); }
.service-number { color: var(--mint); font: 700 12px/1 ui-monospace, monospace; }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 42px 0 24px; border: 1px solid rgba(110,242,198,.26); border-radius: 14px; color: var(--mint); background: rgba(110,242,198,.06); font-size: 22px; }
.service-card h3 { margin: 0 0 12px; font-size: 23px; }
.service-card p { margin: 0; color: var(--muted); }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.service-tags span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: #bcd0ca; font-size: 11px; }

.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.capability-main { min-height: 500px; padding: 42px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(110,242,198,.2); border-radius: 30px; background: radial-gradient(circle at 85% 10%, rgba(110,242,198,.15), transparent 35%), #0d1d22; }
.capability-main h3 { max-width: 560px; margin: 0; font-size: clamp(34px,4vw,54px); line-height: 1.08; letter-spacing: -.04em; }
.capability-main p { max-width: 520px; margin: 20px 0 0; color: var(--muted); }
.tech-line { padding-top: 28px; border-top: 1px solid var(--line); color: var(--mint); font: 650 13px/1.7 ui-monospace, monospace; }
.capability-stack { display: grid; gap: 20px; }
.mini-cap { min-height: 240px; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: rgba(15,32,38,.72); }
.mini-cap:nth-child(2) { background: linear-gradient(140deg, rgba(247,198,106,.08), rgba(15,32,38,.72)); }
.mini-cap .mini-label { color: var(--amber); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.mini-cap h3 { margin: 34px 0 10px; font-size: 27px; }
.mini-cap p { margin: 0; color: var(--muted); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: steps; }
.process-step { position: relative; padding: 0 28px 0 0; counter-increment: steps; }
.process-step:not(:last-child)::after { position: absolute; top: 14px; right: 14px; width: calc(100% - 58px); height: 1px; content: ""; transform: translateX(100%); background: linear-gradient(90deg, rgba(110,242,198,.4), rgba(110,242,198,.06)); }
.step-dot { width: 29px; height: 29px; display: grid; place-items: center; margin-bottom: 30px; border: 1px solid rgba(110,242,198,.38); border-radius: 50%; color: var(--mint); background: var(--bg); font: 700 10px/1 ui-monospace, monospace; }
.step-dot::before { content: "0" counter(steps); }
.process-step h3 { margin: 0 0 10px; font-size: 19px; }
.process-step p { margin: 0; color: var(--muted); font-size: 14px; }

.contact-panel { position: relative; overflow: hidden; padding: clamp(42px,7vw,78px); border: 1px solid rgba(110,242,198,.25); border-radius: 34px; background: linear-gradient(135deg, #12372f, #0a1d22 58%, #11262b); box-shadow: var(--shadow); }
.contact-panel::before { position: absolute; top: -130px; right: -80px; width: 420px; height: 420px; content: ""; border: 1px solid rgba(110,242,198,.17); border-radius: 50%; box-shadow: 0 0 0 70px rgba(110,242,198,.025), 0 0 0 140px rgba(110,242,198,.018); }
.contact-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; }
.contact-panel h2 { max-width: 750px; font-size: clamp(38px,5vw,67px); }
.contact-panel p { max-width: 620px; margin: 20px 0 0; color: #b8cec7; }
.wechat-card { padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(5,17,20,.36); }
.wechat-card small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .14em; }
.wechat-card strong { display: block; margin: 7px 0 18px; color: var(--mint); font-size: 29px; letter-spacing: .03em; }
.copy-btn { width: 100%; min-height: 44px; border: 1px solid rgba(110,242,198,.28); border-radius: 12px; color: var(--text); background: rgba(110,242,198,.08); cursor: pointer; }
.copy-btn:hover { background: rgba(110,242,198,.14); }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.leiyu-lab-footer { display: none !important; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-grid, .section-head, .contact-content { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; }
  .hero-visual { min-height: 430px; }
  .section-intro { margin-left: 0; }
  .services { grid-template-columns: 1fr; }
  .service-card { min-height: 270px; }
  .capability-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; gap: 42px 20px; }
  .process-step:not(:last-child)::after { display: none; }
  .site-nav { position: absolute; top: 76px; left: 20px; right: 20px; display: none; padding: 18px; flex-direction: column; align-items: stretch; gap: 4px; border: 1px solid var(--line); border-radius: 18px; background: rgba(8,20,24,.98); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .menu-toggle { display: block; }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding: 58px 0 60px; }
  .hero h1 { font-size: 49px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 350px; margin-top: 16px; }
  .orbital { width: 350px; max-width: 100%; }
  .core { width: 165px; height: 165px; }
  .core-logo { width: 72px; }
  .float-card { width: 175px; padding: 12px 13px; }
  .card-a { left: 0; }
  .card-b { right: 0; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-item:last-child { border-bottom: 0; }
  .section { padding: 82px 0; }
  .section-head { margin-bottom: 38px; }
  .capability-main { min-height: 440px; padding: 30px; }
  .process { grid-template-columns: 1fr; gap: 36px; }
  .contact-panel { border-radius: 26px; }
  .wechat-card strong { font-size: 24px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}

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