/* ============================================================
 * LonSync Storage — style.css
 * VI：深夜蓝 #0b1526 / 品牌绿 #5ab53a / 近白 #f8fafc
 * ============================================================ */

:root {
  --bg: #0b1526;
  --bg-2: #0e1a2f;
  --panel: #12203a;
  --panel-line: rgba(248, 250, 252, 0.08);
  --green: #5ab53a;
  --green-dim: rgba(90, 181, 58, 0.14);
  --text: #f8fafc;
  --muted: #93a4bb;
  --font: "Inter", "Manrope", -apple-system, BlinkMacSystemFont,
          "PingFang SC", "Noto Sans SC", "Noto Sans", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: "Manrope", var(--font); font-weight: 800; letter-spacing: -0.01em; }

/* ---------- 顶部承诺条 ---------- */
.topbar {
  background: #060d1a;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-align: center;
  padding: 7px 16px;
  text-transform: uppercase;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 21, 38, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  color: #06130a;
  background: var(--green);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
}
.nav-links a.nav-cta:hover { filter: brightness(1.1); }

.lang-switch { display: flex; gap: 2px; margin-left: 20px; border: 1px solid var(--panel-line); border-radius: 6px; overflow: hidden; }
.lang-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font: 600 12px var(--font);
  padding: 6px 10px;
  cursor: pointer;
  transition: all .2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--green-dim); color: var(--green); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -6% 0;
  background: url("../img/hero.webp") center / cover no-repeat;
  transform: scale(1.05);
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,21,38,0.96) 20%, rgba(11,21,38,0.72) 55%, rgba(11,21,38,0.35) 100%),
              linear-gradient(to top, var(--bg) 0%, transparent 30%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 0; max-width: 720px; }
.hero-eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 62px); line-height: 1.12; margin-bottom: 22px; }
.hero p { color: #c6d2e3; font-size: clamp(15px, 1.6vw, 18px); max-width: 600px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: all .2s;
}
.btn-primary { background: var(--green); color: #06130a; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(248,250,252,0.3); color: var(--text); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- 数字带 ---------- */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 56px 0;
}
.stat { text-align: left; }
.stat-num {
  font-family: "Manrope", var(--font);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
}
.stat-unit { font-size: 16px; font-weight: 700; color: var(--green); margin-left: 4px; }
.stat-label { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* ---------- 通用 section ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* ---------- 能力卡 ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cap-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 30px;
  transition: border-color .25s, transform .25s;
}
.cap-card:hover { border-color: rgba(90,181,58,0.5); transform: translateY(-3px); }
.cap-card .cap-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--green-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.cap-card .cap-icon svg { width: 20px; height: 20px; stroke: var(--green); }
.cap-card h3 { font-size: 18px; margin-bottom: 10px; }
.cap-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- 解决方案 ---------- */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.sol-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--panel-line);
  transition: transform .25s;
}
.sol-card:hover { transform: translateY(-4px); }
.sol-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.sol-card:hover img { transform: scale(1.04); }
.sol-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,13,26,0.94) 8%, rgba(6,13,26,0.35) 55%, rgba(6,13,26,0.1) 100%);
}
.sol-body { position: relative; z-index: 2; padding: 26px; }
.sol-body h3 { font-size: 20px; margin-bottom: 8px; }
.sol-body p { color: #c6d2e3; font-size: 14.5px; }

/* ---------- 交付保障 ---------- */
.delivery {
  position: relative;
  background: url("../img/delivery-bg.webp") center / cover no-repeat fixed;
}
.delivery::before { content: ""; position: absolute; inset: 0; background: rgba(11,21,38,0.9); }
.delivery .wrap { position: relative; z-index: 2; }
.del-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.del-card {
  background: rgba(18,32,58,0.75);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 26px;
}
.del-card h3 { font-size: 17px; color: var(--green); margin-bottom: 8px; }
.del-card p { color: var(--muted); font-size: 14px; }

.process { display: flex; gap: 0; flex-wrap: wrap; }
.process-step {
  flex: 1;
  min-width: 180px;
  position: relative;
  padding: 20px 20px 20px 0;
}
.process-step .pnum {
  font-family: "Manrope", var(--font);
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.process-step .pname { font-weight: 700; font-size: 15.5px; }
.process-step::after {
  content: "→";
  position: absolute;
  right: 18px; top: 22px;
  color: rgba(248,250,252,0.25);
}
.process-step:last-child::after { display: none; }

/* ---------- 询价表单 ---------- */
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.inquiry-aside p { color: var(--muted); margin: 16px 0 28px; }
.inquiry-aside .form-note {
  color: var(--muted);
  font-size: 13.5px;
  border-left: 3px solid var(--green);
  padding-left: 14px;
}
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  color: var(--text);
  font: 15px var(--font);
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.field textarea { min-height: 110px; resize: vertical; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 14px; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #e26d5a; }
.form-status a { color: var(--green); text-decoration: underline; }

/* ---------- 页脚 ---------- */
footer {
  background: #060d1a;
  border-top: 1px solid var(--panel-line);
  padding: 48px 0;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.foot-brand img { height: 26px; width: auto; margin-bottom: 12px; }
.foot-brand p { color: var(--muted); font-size: 14px; }
.foot-links { text-align: right; }
.foot-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.foot-links a:hover { color: var(--green); }
.foot-links .foot-sister-label { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.foot-copy { color: #5a6b85; font-size: 13px; margin-top: 36px; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .delivery { background-attachment: scroll; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cap-grid, .sol-grid, .inquiry-grid { grid-template-columns: 1fr; }
  .del-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--panel-line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links a.nav-cta { text-align: center; margin-top: 8px; }
  .lang-switch { margin: 12px 0 0; align-self: flex-start; }
  .del-grid, form { grid-template-columns: 1fr; }
  .hero-content { padding: 84px 0; }
  .foot-links { text-align: left; }
  .process-step::after { display: none; }
}
