/*
 * 乐趣科技官网样式（静态站，gw.hfsly.top）。
 * 风格照苹果官网：大留白、大标题、浅灰与白色区块交替、蓝色链接与按钮；品牌橙只用在标志和插图上。
 * 不引外部字体与脚本（国内访问稳定、审核时打开快）。
 */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --brand-1: #ffb547;
  --brand-2: #ff5a3c;
  --radius-tile: 28px;
  --wide: 1024px;
  --narrow: 692px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
p, li { text-wrap: pretty; }

.nw { white-space: nowrap; }

.wrap { width: min(var(--wide), 100% - 32px); margin-inline: auto; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--text); font-size: 13px; opacity: 0.8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 6px 4px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

/* ---------- 首屏 ---------- */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero-icon { width: 96px; height: 96px; filter: drop-shadow(0 10px 24px rgba(255, 90, 60, 0.28)); }
.hero h1 { margin-top: 20px; font-size: clamp(48px, 8vw, 80px); line-height: 1.05; }
.hero .lead { text-wrap: balance; margin: 16px auto 0; max-width: 30em; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.35; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 980px;
  font-size: 17px;
  line-height: 1.2;
  border: 1px solid var(--btn);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-ghost { color: var(--btn); background: transparent; }
.btn-ghost:hover { background: var(--btn); color: #fff; }

.hero-copy { animation: rise 0.7s ease-out both; }

/* 首屏的后台界面示意（整页唯一的「大图」） */
.mock {
  position: relative;
  max-width: 920px;
  margin: 64px auto -1px;
  text-align: left;
  background: #fff;
  border: 1px solid #e3e3e8;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 60px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  animation: rise 0.9s 0.15s ease-out both;
  font-size: 13px;
  line-height: 1.4;
}
.mock-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-bottom: 1px solid #ececf0; background: #fbfbfd; }
.mock-bar img { width: 20px; height: 20px; }
.mock-bar strong { font-weight: 600; }
.mock-search { margin-left: auto; width: 180px; height: 26px; border-radius: 8px; background: #efeff3; }
.mock-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #c9d6ff, #e2e2e2); }
.mock-body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
.mock-side { padding: 16px 10px; border-right: 1px solid #ececf0; }
.mock-side span { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-2); }
.mock-side .on { background: var(--bg-alt); color: var(--text); font-weight: 600; }
.mock-main { padding: 22px 26px 0; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; }
.mock-head b { font-size: 18px; font-weight: 600; }
.mock-head span { color: var(--text-2); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.kpi { padding: 14px 16px; border-radius: 12px; background: var(--bg-alt); }
.kpi span { display: block; color: var(--text-2); }
.kpi b { display: block; margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.kpi i { font-style: normal; font-size: 12px; color: #1a8f3c; }
.mock-chart { display: block; width: 100%; height: auto; margin-top: 14px; }
.mock-table { margin-top: 6px; }
.mock-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #ececf0; }
.mock-row span:nth-child(2) { color: var(--text-2); }
.tag { padding: 2px 10px; border-radius: 980px; font-size: 12px; background: #fff1e6; color: #b5420f; }
.tag.ok { background: #e7f6ec; color: #1a7a37; }
.tag.mid { background: #eaf2ff; color: #0058b9; }

/* ---------- 通用区块 ---------- */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; }
.section-head p { text-wrap: balance; margin: 16px 0 0; font-size: 19px; color: var(--text-2); }

/* 三类服务 */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: #fff; border-radius: var(--radius-tile); padding: 40px 32px 36px; }
.tile svg { width: 56px; height: 56px; }
.tile h3 { margin-top: 22px; font-size: 26px; line-height: 1.2; }
.tile p { margin: 12px 0 0; color: var(--text-2); }
.tile ul { margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; }
.tile li { padding: 10px 0; border-top: 1px solid #e8e8ed; }

/* 流程（真的是先后顺序，所以带序号） */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-top: 58px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 52px;
  right: -12px;
  height: 1px;
  background: var(--line);
}
.steps h3 { font-size: 19px; }
.steps p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }

/* 做事的方式 */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.points h3 { font-size: 21px; }
.points p { margin: 10px 0 0; color: var(--text-2); }

/* 联系 */
.contact { text-align: center; }
.contact .mail { display: inline-block; margin-top: 8px; font-size: clamp(28px, 4.5vw, 40px); font-weight: 600; letter-spacing: -0.01em; }
.contact address { margin-top: 18px; font-style: normal; color: var(--text-2); }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid #e3e3e8; padding: 20px 0 28px; font-size: 12px; color: var(--text-2); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer a { color: #424245; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- 协议页 ---------- */
.legal { width: min(var(--narrow), 100% - 32px); margin: 0 auto; padding: 64px 0 96px; }
.legal h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.1; }
.legal .date { margin: 12px 0 40px; color: var(--text-2); font-size: 15px; }
.legal h2 { margin-top: 40px; font-size: 22px; }
.legal p, .legal li { color: #333336; }
.legal ul { padding-left: 1.2em; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .mock { animation: none; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; gap: 28px; max-width: 560px; margin-inline: auto; }
  .steps li { padding: 0 0 0 58px; min-height: 40px; }
  .steps li:not(:last-child)::after { top: 48px; bottom: -22px; left: 20px; right: auto; width: 1px; height: auto; }
  .points { grid-template-columns: 1fr; gap: 32px; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 17px; opacity: 1; }
  .hero { padding-top: 48px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .mock { margin-top: 48px; border-radius: 14px 14px 0 0; }
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-side, .mock-search { display: none; }
  .mock-avatar { margin-left: auto; }
  .mock-main { padding: 16px 14px 0; }
  .kpis { gap: 8px; }
  .kpi { padding: 10px; }
  .kpi b { font-size: 17px; }
  .mock-row { grid-template-columns: 1fr auto; }
  .mock-row span:nth-child(2) { display: none; }
  .tile { padding: 32px 24px 28px; }
}
