/* =========================================================
   雷霆客服系统 · Thunder Desk
   Design system — dark electric / storm aesthetic
   ========================================================= */

/* ---- Fonts ---- */
@import url('https://cdn.jsdelivr.net/npm/cn-fontsource-smiley-sans-oblique@1.0.6/font.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Space+Mono:wght@400;700&display=swap');

/* ---- Tokens ---- */
:root {
  --ink:       #0a0b0f;
  --ink-2:     #0e1016;
  --surface:   #14161f;
  --surface-2: #1a1d28;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);

  --bolt:   #ff3b30;   /* electric lime — 雷霆 */
  --bolt-2: #ff2020;
  --volt:   #5d7bff;   /* electric blue */
  --volt-2: #8ea2ff;
  --plasma: #b388ff;

  --text:   #f4f6f8;
  --text-2: #c3c8d4;
  --muted:  #7e859a;
  --faint:  #555c70;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;

  --display: "Smiley Sans Oblique", "Noto Sans SC", system-ui, sans-serif;
  --body: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", "Noto Sans SC", monospace;

  --shadow: 0 24px 60px -20px rgba(0,0,0,0.75);
  --glow: 0 0 0 1px rgba(255,59,48,0.4), 0 10px 40px -10px rgba(255,59,48,0.35);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* grain + ambient storm light */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(93,123,255,0.18), transparent 60%),
    radial-gradient(800px 700px at -5% 10%, rgba(255,59,48,0.10), transparent 55%),
    radial-gradient(700px 600px at 50% 120%, rgba(179,136,255,0.10), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app, main, footer, header { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--bolt); color: #0a0b0f; }

/* scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #23273400; box-shadow: inset 0 0 0 4px #232734; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { box-shadow: inset 0 0 0 4px #343a4d; }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bolt); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--bolt); display: inline-block; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: 0.01em; }
.h-xl { font-size: clamp(2.8rem, 7vw, 6rem); }
.h-lg { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.h-md { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-2); font-weight: 300; }
.muted { color: var(--muted); }
.bolt-text { color: var(--bolt); }
.volt-text { color: var(--volt-2); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--bolt); color: #0a0b0f; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--bolt), 0 16px 44px -8px rgba(255,59,48,0.5); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--bolt); color: var(--bolt); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn .arw { transition: transform .25s; }
.btn:hover .arw { transform: translateX(4px); }

/* ---- Header / Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,11,15,0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(10,11,15,0.85); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.02em; }
.brand .mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--bolt); border-radius: 9px; color: #0a0b0f;
  box-shadow: 0 0 24px -4px rgba(255,59,48,0.6);
}
.brand .mark svg { width: 20px; height: 20px; }
.brand small { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .2em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 99px; color: var(--text-2); font-size: 0.92rem; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .login-link { font-weight: 600; font-size: .92rem; color: var(--text-2); padding: 9px 8px; }
.nav-cta .login-link:hover { color: var(--bolt); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; color: var(--text); }

/* ---- Announcement bar ---- */
.topbar {
  background: linear-gradient(90deg, rgba(255,59,48,0.12), rgba(93,123,255,0.12));
  border-bottom: 1px solid var(--line);
  font-size: 0.83rem; color: var(--text-2);
}
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; height: 38px; }
.topbar .pill { font-family: var(--mono); font-size: 10px; background: var(--bolt); color: #0a0b0f; padding: 2px 8px; border-radius: 99px; font-weight: 700; letter-spacing: .1em; }
.topbar a { color: var(--bolt); font-weight: 600; }

/* ---- Cards ---- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }

/* ---- Reveal animation ---- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 70px 0 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { font-size: .85rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-family: var(--mono); font-weight: 700; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { color: var(--text-2); font-size: .93rem; transition: color .2s; }
.footer ul a:hover { color: var(--bolt); }
.footer .desc { color: var(--muted); font-size: .92rem; max-width: 320px; margin-top: 16px; }
.footer-bottom { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; color: var(--faint); font-size: .8rem; line-height: 1.9; }
.footer-bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text-2); }
.footer-bottom .filing { display: flex; flex-wrap: wrap; gap: 6px 18px; max-width: 760px; }
.footer-bottom .filing a { display: inline-flex; align-items: center; gap: 6px; }

/* footer contact block */
.f-contact { margin-top: 22px; display: grid; gap: 10px; }
.f-contact .tel { font-family: var(--display); font-size: 1.55rem; color: var(--bolt); display: flex; align-items: baseline; gap: 12px; line-height: 1; }
.f-contact .tel em { font-family: var(--body); font-style: normal; font-size: .76rem; color: var(--muted); font-weight: 400; letter-spacing: .04em; }
.f-contact .ln { color: var(--text-2); font-size: .9rem; display: flex; gap: 9px; align-items: flex-start; }
.f-contact .ln .i { color: var(--muted); flex: none; margin-top: 2px; }
.f-social { display: flex; gap: 10px; margin-top: 20px; }
.f-social a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); transition: .25s; font-size: 17px; }
.f-social a:hover { border-color: var(--bolt); color: var(--bolt); transform: translateY(-3px); background: rgba(255,59,48,.06); }

/* ---- Live chat widget (网站自有在线客服) ---- */
.lt-cs { position: fixed; right: 26px; bottom: 26px; z-index: 90; }
.lt-cs-btn { width: 62px; height: 62px; border-radius: 50%; background: var(--bolt); color: #0a0b0f; border: none;
  display: grid; place-items: center; box-shadow: 0 12px 34px -6px rgba(255,59,48,.55); cursor: pointer;
  transition: transform .3s cubic-bezier(.2,.8,.2,1); position: relative; }
.lt-cs-btn:hover { transform: scale(1.07) rotate(-4deg); }
.lt-cs-btn svg { width: 28px; height: 28px; }
.lt-cs-btn .ntf { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: #ff5f57; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ink);
  animation: pulse 1.8s infinite; }
.lt-cs.open .lt-cs-btn { transform: scale(.92); }
.lt-cs-panel { position: absolute; right: 0; bottom: 78px; width: 348px; max-width: calc(100vw - 36px);
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  transform: translateY(18px) scale(.95); opacity: 0; pointer-events: none;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s; transform-origin: bottom right; }
.lt-cs.open .lt-cs-panel { transform: none; opacity: 1; pointer-events: auto; }
.lt-cs-head { background: linear-gradient(135deg, #1a1d28, #0e1016); padding: 16px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.lt-cs-head .av { width: 40px; height: 40px; border-radius: 11px; background: var(--bolt); color: #0a0b0f; display: grid; place-items: center; font-family: var(--display); font-size: 1.1rem; flex: none; }
.lt-cs-head b { font-size: .98rem; display: block; }
.lt-cs-head span { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.lt-cs-head .x { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
.lt-cs-head .x:hover { color: var(--text); }
.lt-cs-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; max-height: 300px; overflow-y: auto;
  background: radial-gradient(300px 160px at 100% 0%, rgba(93,123,255,.08), transparent); }
.lt-cs-b { max-width: 84%; padding: 11px 14px; border-radius: 15px; font-size: .88rem; line-height: 1.5; animation: floatIn .4s both; }
.lt-cs-b.bot { background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 5px; align-self: flex-start; }
.lt-cs-b.me { background: var(--bolt); color: #0a0b0f; border-top-right-radius: 5px; align-self: flex-end; font-weight: 500; }
.lt-cs-b .ai { font-family: var(--mono); font-size: 10px; color: var(--bolt); letter-spacing: .08em; display: block; margin-bottom: 5px; }
.lt-cs-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.lt-cs-quick button { background: rgba(255,59,48,.07); border: 1px solid rgba(255,59,48,.25); color: var(--bolt);
  font-size: .8rem; padding: 7px 12px; border-radius: 99px; cursor: pointer; transition: .2s; font-family: inherit; }
.lt-cs-quick button:hover { background: rgba(255,59,48,.16); }
.lt-cs-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--ink-2); }
.lt-cs-foot input { flex: 1; height: 42px; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; color: var(--text); font-family: inherit; font-size: .88rem; }
.lt-cs-foot input:focus { outline: none; border-color: var(--bolt); }
.lt-cs-foot .snd { width: 42px; height: 42px; border-radius: 12px; background: var(--bolt); border: none; color: #0a0b0f; display: grid; place-items: center; cursor: pointer; flex: none; }
.lt-cs-tip { position: absolute; right: 74px; bottom: 14px; background: var(--ink-2); border: 1px solid var(--line-2); color: var(--text); font-size: .82rem; padding: 9px 14px; border-radius: 12px; white-space: nowrap; box-shadow: var(--shadow); animation: floatIn .5s both; }
.lt-cs-tip::after { content: ""; position: absolute; right: -6px; bottom: 18px; width: 10px; height: 10px; background: var(--ink-2); border-right: 1px solid var(--line-2); border-top: 1px solid var(--line-2); transform: rotate(45deg); }
.lt-cs.open .lt-cs-tip { display: none; }
@media (max-width: 560px) { .lt-cs { right: 16px; bottom: 16px; } .lt-cs-tip { display: none; } }

/* ---- Tag ---- */
.tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); background: rgba(255,255,255,0.04); border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; }
.dot { width: 7px; height: 7px; border-radius: 99px; background: var(--bolt); box-shadow: 0 0 10px var(--bolt); }
.dot.live { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.4; transform:scale(.8);} }

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 14px; gap: 4px;
    transform: translateY(-130%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 16px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta .desktop-only { display: none; }
  .section { padding: 78px 0; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}
