/* 快活林官网 · kuaihuolin.lol
   design tokens 取自本地保存站点的内联变量与主题样式表。
   全站只做浅色底（A31）。 */

:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #F1F3F6;
  --tint: #FFF1EE;
  --ink: #333A42;
  --ink-2: #4E5358;
  --ink-3: #616870;
  --muted: #616870;
  --line: #E6E9ED;
  --line-2: #F6D7D0;
  --accent: #F74735;
  --accent-deep: #B82C19;
  --accent-fill: #D4331F;
  --accent-fill-hover: #B32614;
  --accent-pink: #C42A72;
  --ok: #14624A;
  --r-card: 10px;
  --r-thumb: 8px;
  --r-panel: 14px;
  --r-pill: 999px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .08);
  --shadow-lift: 0 12px 28px rgba(247, 71, 53, .16);
  --ease: cubic-bezier(.25, .1, .25, 1);
  --container: 1320px;
  --head-h: 60px;
  --cta-space: 98px;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-bottom: calc(var(--cta-space) + 8px);
  background-color: #F6F7F9;
  color: #4E5358;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.32; color: var(--ink); overflow-wrap: anywhere; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0; overflow-wrap: anywhere; }
ul, ol { margin: 0; padding-left: 1.2em; }
li { overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--accent-fill); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* header */
.site-top {
  position: sticky; top: 0; z-index: 60;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}
.top-bar {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--head-h);
  width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px;
}
.top-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--ink-2);
}
.top-burger:hover { background: var(--tint); color: var(--accent-deep); }

.logo-lockup { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.logo-lockup img { width: 34px; height: 34px; border-radius: 8px; }
.logo-lockup b { font-size: 17px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.logo-lockup b i { font-style: normal; color: var(--accent-deep); }

.top-menu { display: none; align-items: center; gap: 4px; margin-left: 6px; }
.top-menu a {
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  padding: 8px 11px; border-radius: 8px; white-space: nowrap;
}
.top-menu a:hover { background: var(--tint); color: var(--accent-deep); }
.top-menu a[aria-current="page"] { color: var(--accent-deep); background: var(--tint); }

.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-search { display: none; position: relative; }
.site-search input {
  width: 210px; height: 36px; padding: 0 38px 0 13px;
  font-size: 14px; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.site-search input::placeholder { color: var(--muted); }
.site-search button {
  position: absolute; right: 3px; top: 3px; width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-fill); color: #fff; border: 0; border-radius: 50%; cursor: pointer;
}
.site-search button:hover { background: var(--accent-fill-hover); }
.search-panel {
  position: absolute; left: 0; right: 0; top: 42px; z-index: 70;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden;
}
.search-panel[hidden] { display: none; }
.search-panel a { display: block; padding: 9px 13px; border-bottom: 1px solid var(--line); }
.search-panel a:last-child { border-bottom: 0; }
.search-panel a:hover { background: var(--tint); }
.search-panel b { display: block; font-size: 14px; color: var(--ink); }
.search-panel span { font-size: 12px; color: var(--muted); }
.search-panel .search-empty { padding: 10px 13px; font-size: 13px; color: var(--muted); }

.top-join {
  display: inline-flex; align-items: center; min-height: 38px;
  padding: 7px 15px; border-radius: var(--r-pill);
  background: var(--accent-fill); color: #fff; font-size: 14px; font-weight: 700;
  white-space: nowrap;
}
.top-join:hover { background: var(--accent-fill-hover); color: #fff; }

/* drawer */
.drawer[hidden] { display: none; }
.drawer-mask { position: fixed; inset: 0; z-index: 90; background: rgba(51, 58, 66, .45); }
.drawer-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(86vw, 340px); padding: 16px 18px 30px; overflow-y: auto;
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -12px 0 30px rgba(0, 0, 0, .16);
  animation: drawer-slide .32s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes drawer-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-head span { font-size: 14px; font-weight: 800; color: var(--muted); }
.drawer-x {
  width: 40px; height: 40px; cursor: pointer; font-size: 20px; line-height: 1;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2);
}
.drawer-group { margin-bottom: 16px; }
.drawer-group h2 { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.drawer-group a {
  display: flex; align-items: center; min-height: 44px; padding: 0 10px;
  border-radius: 8px; font-size: 16px; font-weight: 600; color: var(--ink-2);
}
.drawer-group a:hover { background: var(--tint); color: var(--accent-deep); }

/* tip bar */
.tipbar {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 16px; padding: 9px 13px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.tipbar .tip-dot {
  width: 22px; height: 22px; flex: none; border-radius: 6px;
  background: var(--accent-pink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.tipbar p { font-size: 13px; color: var(--ink-3); }

/* hero */
.hero {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-panel); padding: 22px 18px; margin-bottom: 16px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #E4F4EC; color: var(--ok);
  font-size: 12px; font-weight: 800; border-radius: var(--r-pill); padding: 4px 11px; margin-bottom: 12px;
}
.hero h1 { font-size: 27px; margin-bottom: 10px; }
.hero .hero-sub {
  font-size: 15px; font-weight: 700; color: var(--accent-deep);
  background: var(--tint); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px;
  display: inline-block;
}
.hero p.lede { font-size: 16px; color: var(--ink-3); }
.hero p.lede + p.lede { margin-top: 8px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-chips span {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); color: var(--ink-2);
  font-size: 13px; font-weight: 600; border-radius: var(--r-pill); padding: 5px 11px;
}
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 700; border: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn-solid { background: var(--accent-fill); color: #fff; }
.btn-solid:hover { background: var(--accent-fill-hover); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--accent-deep); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--tint); color: var(--accent-deep); }

/* plans */
.plans { display: grid; gap: 14px; }
.plan {
  border: 2px solid var(--line); border-radius: var(--r-panel); background: #fff;
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.plan.is-primary { border-color: var(--line-2); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-head h3 { font-size: 18px; }
.plan-head .plan-tag {
  font-size: 11px; font-weight: 800; color: #fff; background: var(--accent-pink);
  border-radius: 6px; padding: 3px 8px;
}
.plan ul { margin: 0; padding-left: 1.1em; }
.plan li { font-size: 14px; color: var(--ink-3); margin-bottom: 5px; }
.plan li b { color: var(--ink); }
.plan .plan-foot { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 9px; }

/* feature grid */
.features { display: grid; gap: 12px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 14px 15px;
}
.feature h3 { font-size: 16px; margin-bottom: 4px; display: flex; align-items: center; gap: 7px; }
.feature h3::before {
  content: ""; width: 8px; height: 8px; flex: none;
  background: var(--accent); border-radius: 2px;
}
.feature p { font-size: 14px; color: var(--ink-3); }

/* panels */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-panel); padding: 18px; margin-bottom: 16px;
}
.sec { margin-bottom: 20px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sec-head h2 { font-size: 20px; }
.sec-head p { font-size: 13px; color: var(--muted); }

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: var(--r-pill); padding: 7px 14px; font-size: 14px; font-weight: 600;
  cursor: pointer; min-height: 38px;
}
.chip:hover { background: var(--tint); color: var(--accent-deep); }
.chip[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }

/* resource cards */
.cards { display: grid; gap: 13px; }
.rcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 14px; display: flex; flex-direction: column; gap: 9px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.rcard[hidden] { display: none; }
.rcard-top { display: flex; align-items: flex-start; gap: 10px; }
.rcard-code {
  font-size: 12px; font-weight: 800; color: #fff; background: var(--accent-deep);
  border-radius: 6px; padding: 3px 8px; white-space: nowrap; flex: none;
}
.rcard h3 { font-size: 16px; }
.rcard .spec { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.rcard .spec b { color: var(--ink-2); font-weight: 600; }
.rcard p { font-size: 14px; color: var(--ink-3); }
.rcard-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-top: 1px dashed var(--line); padding-top: 9px; flex-wrap: wrap;
}
.price-now { font-size: 19px; font-weight: 800; color: var(--accent-deep); }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.rcard-foot small { font-size: 12px; color: var(--muted); }

/* tables */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-card); }
table { width: 100%; min-width: 540px; border-collapse: collapse; background: var(--surface); }
caption { caption-side: top; text-align: left; padding: 10px 13px 0; font-size: 13px; color: var(--muted); }
th, td { padding: 11px 13px; text-align: left; vertical-align: top; font-size: 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* prose blocks */
.block { margin-bottom: 20px; }
.block h2 { margin-bottom: 10px; }
.block h3 { margin: 15px 0 6px; }
.block p { color: var(--ink-3); margin-bottom: 10px; }
.block ul, .block ol { color: var(--ink-3); margin-bottom: 10px; }
.block li { margin-bottom: 6px; }
.block li b { color: var(--ink); }
.callout {
  background: var(--tint); border: 1px solid var(--line-2); border-radius: var(--r-card);
  padding: 12px 14px; margin: 12px 0; font-size: 14px; color: var(--ink-2);
}
.steps { counter-reset: step; display: grid; gap: 10px; padding: 0; list-style: none; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 12px 14px 12px 46px; font-size: 14px; color: var(--ink-3);
}
.steps li::before {
  content: counter(step); position: absolute; left: 12px; top: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-fill); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.steps li b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

.qa { display: grid; gap: 10px; }
.qa-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 13px 15px; }
.qa-item h3 { font-size: 16px; margin-bottom: 5px; }
.qa-item p { font-size: 14px; color: var(--ink-3); }
.qa-item p + p { margin-top: 7px; }

details.faq {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 12px 15px; margin-bottom: 9px;
}
details.faq summary {
  cursor: pointer; font-size: 16px; font-weight: 700; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "\002B"; color: var(--accent-deep); flex: none; font-weight: 800; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin-top: 9px; font-size: 14px; color: var(--ink-3); }
details.faq p + p { margin-top: 7px; }

.jump { display: grid; gap: 10px; }
.jump a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; }
.jump a:hover { border-color: var(--line-2); background: var(--tint); }
.jump b { display: block; font-size: 15px; color: var(--ink); }
.jump span { font-size: 13px; color: var(--muted); }

.entry { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 13px; }
.entry:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.entry h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.entry h3 em {
  font-style: normal; font-size: 12px; font-weight: 800;
  color: #fff; background: var(--accent-deep); border-radius: 6px; padding: 2px 7px;
}
.entry p { font-size: 14px; color: var(--ink-3); margin-top: 6px; }

/* tier tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabbtn {
  border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  padding: 10px 14px; font-size: 15px; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabbtn[aria-selected="true"] { color: var(--accent-deep); border-bottom-color: var(--accent); }
.tabview { padding-top: 14px; }
.tabview[hidden] { display: none; }

/* footer */
.site-bottom {
  margin-top: 22px; padding: 22px 0 26px;
  background: var(--surface); border-top: 1px solid var(--line);
}
.foot-brandline { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.foot-brandline img { width: 32px; height: 32px; border-radius: 8px; }
.foot-brandline a { font-size: 17px; font-weight: 800; color: var(--ink); }
.foot-brandline a:hover { color: var(--accent-deep); }
.foot-cols { display: grid; gap: 16px; margin: 16px 0; }
.foot-col h2 { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 7px; }
.foot-col a { display: block; font-size: 14px; color: var(--ink-3); padding: 3px 0; }
.foot-col a:hover { color: var(--accent-deep); }
.foot-line { font-size: 13px; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 13px; }
.foot-copy { font-size: 12px; color: var(--muted); margin-top: 7px; }

/* sole xunfang CTA */
.site-cta {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 80;
  display: flex; align-items: center; justify-content: center;
  width: min(500px, calc(100% - 32px)); min-height: 56px; padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--accent-fill); color: #fff;
  font-size: 18px; font-weight: 800; letter-spacing: .01em; text-align: center;
  box-shadow: 0 10px 26px rgba(212, 51, 31, .32), 0 2px 6px rgba(0, 0, 0, .12);
  overflow: hidden;
  transition: background-color .25s var(--ease);
}
.site-cta:hover, .site-cta:focus-visible { background: var(--accent-fill-hover); color: #fff; }
.site-cta:active { background: var(--accent-fill-hover); }
.site-cta .cta-text { position: relative; z-index: 2; }
.site-cta::before {
  content: ""; position: absolute; inset: -18%;
  background: radial-gradient(58% 88% at 50% 52%, rgba(120, 12, 0, .28) 0%, rgba(120, 12, 0, .13) 46%, rgba(120, 12, 0, 0) 74%);
  opacity: 0; transform: scale(1);
  animation: cta-develop 2.6s cubic-bezier(.2, .7, .3, 1) infinite;
  z-index: 0; pointer-events: none;
}
.site-cta::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 50%; height: 2px;
  background: rgba(255, 255, 255, .76); border-radius: 2px;
  transform: scaleX(0); transform-origin: center;
  animation: cta-shutter 2.6s cubic-bezier(.2, .7, .3, 1) infinite;
  z-index: 1; pointer-events: none;
}
@keyframes cta-develop {
  0%, 50% { opacity: 0; transform: scale(1); }
  64% { opacity: 1; transform: scale(1.04); }
  86%, 100% { opacity: 0; transform: scale(1.09); }
}
@keyframes cta-shutter {
  0%, 54% { transform: scaleX(0); opacity: 0; }
  62% { opacity: 1; }
  78% { transform: scaleX(1); }
  88%, 100% { transform: scaleX(1); opacity: 0; }
}

/* route progress */
.route-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 130;
  background: linear-gradient(90deg, #F74735, #F58B7C, #F74735);
  background-size: 200% 100%; animation: route-run .9s ease-in-out infinite;
}
.route-bar[hidden] { display: none; }
@keyframes route-run { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.narrow { max-width: 800px; }

/* tablet */
@media (min-width: 768px) {
  body { padding-bottom: calc(var(--cta-space) + 12px); }
  h1 { font-size: 32px; }
  .hero { padding: 30px 28px; }
  .hero h1 { font-size: 32px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 22px; }
}

/* desktop */
@media (min-width: 1024px) {
  .top-burger { display: none; }
  .top-menu { display: flex; }
  .site-search { display: block; }
  .site-search input { width: 230px; }
  .shell { padding: 0 24px; }
  .top-bar { padding: 0 24px; }
  .hero { padding: 34px 32px; }
  .hero h1 { font-size: 36px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jump { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* mobile CTA anchoring */
@media (max-width: 767px) {
  .site-cta {
    left: 14px; right: 14px; transform: none; width: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    font-size: 16px; min-height: 56px;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .site-cta::before { animation: none; opacity: .16; transform: scale(1); }
  .site-cta::after { animation: none; transform: scaleX(1); opacity: .6; }
  .rcard:hover { transform: none; }
  .drawer-panel { animation: none; }
  .route-bar { animation: none; }
}
