/* =========================================================
   全是运气 · 轻创社区 — 官网样式
   纯静态，无构建依赖。配色沿用品牌既有色板。
   ========================================================= */

:root {
  --navy: #1a1a2e;
  --navy-2: #16213e;
  --blue: #0f3460;
  --accent: #e94560;
  --accent-2: #ff6b81;

  --bg: #f7f8fa;
  --surface: #ffffff;
  --tint: #f0f2f6;
  --text: #1f2430;
  --muted: #6b7280;
  --border: #e7e9ef;

  --container: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(20, 24, 40, .06), 0 8px 24px rgba(20, 24, 40, .06);
  --shadow-hover: 0 4px 12px rgba(20, 24, 40, .1), 0 16px 40px rgba(20, 24, 40, .1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

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

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

/* 可访问性：跳转链接 & 焦点样式 */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand__logo { border-radius: 8px; }
.brand__name { font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.brand__sub {
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}
.nav__links a { color: var(--text); transition: color .2s ease; }
.nav__links a:hover { color: var(--accent); }

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

/* 移动端菜单按钮 */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(233, 69, 96, .28), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(15, 52, 96, .5), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 120%);
  color: #fff;
  overflow: hidden;
}
.hero__inner {
  padding: 92px 24px 84px;
  text-align: center;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.15;
}
.hero__lead {
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 700;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--accent-2), #ffd0d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__desc {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 17px;
  color: rgba(255, 255, 255, .82);
}
.hero__desc strong { color: #fff; }

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 56px auto 0;
}
.hero__stats li {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 18px 12px;
}
.hero__stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-2);
}
.hero__stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin-top: 4px;
}

/* ---------------- 通用 section ---------------- */
.section { padding: 84px 0; }
.section--tint { background: var(--tint); }

.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.25;
}
.section__intro { margin-top: 14px; color: var(--muted); font-size: 16px; }

.section__cta { text-align: center; margin-top: 44px; }

/* ---------------- 网格与卡片 ---------------- */
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card--plain { box-shadow: none; }
.card--plain:hover { box-shadow: var(--shadow); }

.card__badge {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(233, 69, 96, .14), rgba(255, 107, 129, .14));
  margin-bottom: 16px;
}
.card__badge--soft { background: var(--tint); }
.card__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card__text { color: var(--muted); font-size: 15px; }

/* 特性行（图标 + 文字） */
.feature {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.feature__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.feature__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.feature__text { color: var(--muted); font-size: 15px; }

/* ---------------- 主理人 ---------------- */
.founder {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px;
  box-shadow: var(--shadow);
}
.founder__avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(233, 69, 96, .35);
}
.founder__name { font-size: 26px; font-weight: 800; margin-top: 6px; }
.founder__role { color: var(--accent); font-weight: 600; margin: 4px 0 14px; }
.founder__text { color: var(--muted); font-size: 16px; max-width: 640px; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(233, 69, 96, .3), transparent 55%),
    linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
}
.cta-band__inner { padding: 76px 24px; text-align: center; }
.cta-band__title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.cta-band__text {
  max-width: 560px;
  margin: 14px auto 24px;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
}
.cta-band__note {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-2);
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  padding: 10px 24px;
  letter-spacing: 1px;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
  padding: 56px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer .brand__name { color: #fff; }
.footer__desc { margin-top: 14px; font-size: 14px; max-width: 380px; line-height: 1.8; }
.footer__heading { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col a { color: rgba(255, 255, 255, .72); transition: color .2s ease; }
.footer__col a:hover { color: var(--accent-2); }
.footer__note { font-size: 14px; color: rgba(255, 255, 255, .6); line-height: 1.7; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}
.footer__beian a { color: rgba(255, 255, 255, .55); }
.footer__beian a:hover { color: #fff; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 0;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 24px; border-top: 1px solid var(--border); }
  .nav__links a:first-child { border-top: none; }
  .nav__toggle { display: flex; }
  .nav__links { margin-left: 0; }

  .grid--2 { grid-template-columns: 1fr; }
  .founder { flex-direction: column; text-align: center; padding: 32px 24px; gap: 22px; }
  .founder__text { text-align: left; }
  .section { padding: 60px 0; }
  .hero__inner { padding: 66px 24px 60px; }
}

@media (max-width: 460px) {
  .grid--4 { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  /* 顶栏在小屏隐藏文字导航按钮以外的次要 CTA，避免拥挤 */
  .nav__actions .btn--sm { display: none; }
}

/* 尊重"减少动态效果"偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
