@charset "UTF-8";

/* ============================================================
   Little Snitch 中文官网 · 公共样式 common.css
   主题色：#FF7A29（橙） / #2DA0E8（蓝）
   说明：仅包含全站共享的基础变量、导航 header、页脚 footer 样式
   ============================================================ */

:root {
  --color-orange: #FF7A29;
  --color-orange-dark: #e9651a;
  --color-blue: #2DA0E8;
  --color-blue-dark: #1c84c6;
  --color-text: #1a1d21;
  --color-text-soft: #5b6470;
  --color-bg: #ffffff;
  --color-bg-soft: #f6f8fb;
  --color-border: #e7ebf0;
  --shadow-sm: 0 2px 8px rgba(20, 30, 45, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 30, 45, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 30, 45, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* 让导航容器不产生盒子，确保 header 的 sticky 相对于 body 生效 */
#ls-nav-root { display: contents; }

/* 菜单展开时锁定页面滚动，仅抽屉面板可滚动 */
body.ls-menu-open { overflow: hidden; }

/* 锚点跳转时为吸顶导航预留偏移，避免标题被遮挡 */
section[id] { scroll-margin-top: 90px; }

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

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

.ls-container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   导航 header 样式
   ============================================================ */
.ls-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--color-border);
}

.ls-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.ls-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ls-brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}

.ls-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ls-brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.ls-brand__by {
  font-size: 12px;
  color: var(--color-text-soft);
}

.ls-nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ls-nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-soft);
  transition: color 0.2s ease;
  position: relative;
}

.ls-nav__link:hover { color: var(--color-text); }

.ls-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-orange);
  transition: width 0.25s ease;
}

.ls-nav__link:hover::after { width: 100%; }

.ls-nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 按钮：基础 */
.ls-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.ls-btn svg { width: 18px; height: 18px; flex: none; }

.ls-btn:hover { transform: translateY(-2px); }

/* 弱化：下载试用 */
.ls-btn--ghost {
  background: transparent;
  color: var(--color-text-soft);
  border-color: var(--color-border);
}

.ls-btn--ghost:hover {
  color: var(--color-text);
  border-color: var(--color-orange);
}

/* 突显：立即购买 */
.ls-btn--primary {
  background: linear-gradient(135deg, var(--color-orange), #ff9a4d);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 122, 41, 0.35);
}

.ls-btn--primary:hover {
  box-shadow: 0 16px 30px rgba(255, 122, 41, 0.45);
}

.ls-btn--blue {
  background: linear-gradient(135deg, var(--color-blue), #5bbcf2);
  color: #fff;
  box-shadow: 0 10px 22px rgba(45, 160, 232, 0.32);
}

/* 汉堡按钮 */
.ls-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.ls-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.ls-menu-open .ls-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.ls-menu-open .ls-hamburger span:nth-child(2) { opacity: 0; }
body.ls-menu-open .ls-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端抽屉菜单 */
.ls-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  visibility: hidden;
}

.ls-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 33, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ls-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(82vw, 360px);
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  box-shadow: -20px 0 50px rgba(15, 22, 33, 0.2);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 26px 24px calc(26px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

body.ls-menu-open .ls-drawer {
  pointer-events: auto;
  visibility: visible;
}
body.ls-menu-open .ls-drawer__overlay { opacity: 1; }
body.ls-menu-open .ls-drawer__panel { transform: translateX(0); }

.ls-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.ls-drawer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.ls-drawer__brand img { width: 32px; height: 32px; }

.ls-drawer__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-soft);
  cursor: pointer;
}

.ls-drawer__links {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ls-drawer__links li {
  opacity: 0;
  transform: translateX(18px);
}

body.ls-menu-open .ls-drawer__links li {
  animation: ls-drawer-in 0.4s forwards;
}
body.ls-menu-open .ls-drawer__links li:nth-child(1) { animation-delay: 0.08s; }
body.ls-menu-open .ls-drawer__links li:nth-child(2) { animation-delay: 0.14s; }
body.ls-menu-open .ls-drawer__links li:nth-child(3) { animation-delay: 0.20s; }
body.ls-menu-open .ls-drawer__links li:nth-child(4) { animation-delay: 0.26s; }
body.ls-menu-open .ls-drawer__links li:nth-child(5) { animation-delay: 0.32s; }

@keyframes ls-drawer-in {
  to { opacity: 1; transform: translateX(0); }
}

.ls-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.ls-drawer__link svg { width: 18px; height: 18px; color: var(--color-orange); }

.ls-drawer__actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ls-drawer__actions .ls-btn { justify-content: center; width: 100%; }

/* ============================================================
   页脚 footer 样式
   ============================================================ */
.ls-footer {
  background: linear-gradient(180deg, #0f1620 0%, #131c28 100%);
  color: #cdd6e2;
  padding: 64px 0 30px;
}

.ls-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.ls-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ls-footer__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.ls-footer__name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.ls-footer__by {
  display: block;
  font-size: 13px;
  color: #8d99a9;
  margin-top: 2px;
}

.ls-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
}

.ls-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.ls-footer__contact-item svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--color-orange);
}

.ls-footer__contact-item a:hover { color: #fff; }

.ls-footer__notice {
  margin: 38px 0 30px;
  padding: 22px 26px;
  background: rgba(45, 160, 232, 0.10);
  border: 1px solid rgba(45, 160, 232, 0.28);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.9;
  color: #b9c4d2;
}

.ls-footer__notice strong { color: #fff; }

.ls-footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0 22px;
}

.ls-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #8d99a9;
}

.ls-footer__bottom .ls-dot { color: var(--color-orange); }

@media (max-width: 860px) {
  .ls-nav__menu { display: none; }
  .ls-nav__actions { display: none; }
  .ls-hamburger { display: flex; }
  .ls-footer { padding-top: 48px; }
}

@media (max-width: 520px) {
  .ls-brand__name { font-size: 16px; }
  .ls-container { padding: 0 18px; }
}
