/* ==========================================================
   小仓鼠实验室 / HackLab  —  卡比巴拉（水豚）主色调
   暖棕 · 焦糖 · 燕麦奶油 · 大地绿点缀
   ========================================================== */

:root {
  /* ---- 卡比巴拉配色 ---- */
  --capy-fur:       #A9764A;   /* 水豚毛棕 */
  --capy-fur-dark:  #6B4526;   /* 深棕 */
  --capy-fur-deep:  #3E2716;   /* 最深（文字） */
  --capy-caramel:   #D9A25F;   /* 焦糖 */
  --capy-sand:      #E8C89A;   /* 沙金 */
  --capy-cream:     #F6EBDC;   /* 燕麦奶油 */
  --capy-cream-2:   #EFDEC6;   /* 奶油深一档 */
  --capy-green:     #6F8F4E;   /* 草地绿（点缀） */
  --capy-green-dp:  #4F6B36;   /* 深绿 */

  --bg:             #FBF5EA;   /* 页面底色：奶油 */
  --bg-alt:         #F4E8D6;   /* 交替区块 */
  --card:           #FFFFFF;
  --line:           #E2CDAF;   /* 描边 */
  --shadow:         rgba(107, 69, 38, .10);
  --shadow-lg:      rgba(107, 69, 38, .16);

  --text:           #3E2716;
  --text-soft:      #7A5B3E;
  --text-mute:      #9C8265;

  --radius:         18px;
  --radius-sm:      12px;
  --wrap:           1080px;
  --ease:           cubic-bezier(.22,.61,.36,1);
}

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }
b  { color: var(--capy-fur-dark); font-weight: 700; }

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

/* ---------------- 背景装饰 ---------------- */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(var(--capy-sand) .5px, transparent .5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

.blob {
  position: fixed; z-index: 0; pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.blob-a {
  width: 420px; height: 420px; top: -160px; left: -120px;
  background: var(--capy-sand);
}
.blob-b {
  width: 380px; height: 380px; top: 240px; right: -160px;
  background: var(--capy-green);
  opacity: .16;
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 245, 234, .82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 16px;
}

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.02rem; color: var(--capy-fur-deep);
}
.brand-mark { font-size: 1.3rem; line-height: 1; }
.brand-text { letter-spacing: .2px; }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 6px 12px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--text-soft);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: var(--capy-cream-2); color: var(--capy-fur-dark); }

/* ---------------- hero ---------------- */
.hero { padding: 64px 0 40px; }

.hero-card {
  background: linear-gradient(160deg, #FFFFFF 0%, var(--capy-cream) 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 52px 44px 48px;
  box-shadow: 0 24px 60px -28px var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--capy-caramel), var(--capy-sand), var(--capy-green));
}

.tag {
  display: inline-block;
  padding: 6px 16px; margin-bottom: 22px;
  border-radius: 999px;
  background: var(--capy-cream-2);
  border: 1px solid var(--line);
  color: var(--capy-fur-dark);
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
}

.hero-title {
  font-size: clamp(1.9rem, 6.4vw, 3.5rem);
  color: var(--capy-fur-deep);
  letter-spacing: -.02em;
}
.hero-title .slash { color: var(--capy-caramel); font-weight: 400; margin: 0 .12em; }
.hero-title .en {
  background: linear-gradient(120deg, var(--capy-fur) 0%, var(--capy-caramel) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 16px;
  font-size: clamp(.95rem, 2.8vw, 1.1rem);
  font-weight: 600;
  color: var(--capy-fur);
  letter-spacing: .06em;
}

.hero-desc {
  margin-top: 20px;
  font-size: .95rem;
  line-height: 1.9;
  color: var(--text-mute);
}

.hero-cta {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: .95rem; font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--capy-fur) 0%, var(--capy-fur-dark) 100%);
  color: #FFF6E9;
  box-shadow: 0 12px 26px -12px rgba(107, 69, 38, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(107, 69, 38, .7); }

.btn-ghost {
  background: transparent;
  color: var(--capy-fur-dark);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--capy-cream-2); transform: translateY(-2px); }

/* ---------------- section ---------------- */
.section { padding: 72px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-title {
  display: flex; align-items: baseline; gap: 12px;
  font-size: clamp(1.35rem, 4.4vw, 1.85rem);
  color: var(--capy-fur-deep);
}
.sec-num {
  font-size: .78rem; font-weight: 800;
  color: var(--capy-cream);
  background: var(--capy-green);
  padding: 3px 9px; border-radius: 7px;
  letter-spacing: .06em;
  transform: translateY(-3px);
}
.sec-desc {
  margin-top: 12px;
  color: var(--text-mute);
  font-size: .95rem;
  max-width: 640px;
}

/* ---------------- 项目卡片 ---------------- */
.cards {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  box-shadow: 0 14px 34px -22px var(--shadow-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--capy-caramel), var(--capy-green));
  opacity: 0; transition: opacity .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -26px var(--shadow-lg);
  border-color: var(--capy-sand);
}
.card:hover::after { opacity: 1; }

.card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-icon {
  font-size: 1.9rem; line-height: 1;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--capy-cream-2);
  border: 1px solid var(--line);
}
.card-ver {
  font-size: .74rem; font-weight: 800; letter-spacing: .05em;
  color: var(--capy-green-dp);
  background: rgba(111, 143, 78, .14);
  border: 1px solid rgba(111, 143, 78, .3);
  padding: 4px 11px; border-radius: 999px;
}

.card-title {
  font-size: 1.2rem; color: var(--capy-fur-deep);
  margin-bottom: 12px;
}
.card-title .en { font-size: .92rem; color: var(--capy-fur); font-weight: 700; }

.card-text {
  font-size: .93rem; color: var(--text-soft);
  line-height: 1.85;
}

.card-tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin: 18px 0 24px;
}
.card-tags li {
  font-size: .76rem; font-weight: 600;
  color: var(--capy-fur-dark);
  background: var(--capy-cream);
  border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 999px;
}

.btn-card {
  margin-top: auto;
  width: 100%;
  background: var(--capy-cream-2);
  color: var(--capy-fur-deep);
  border-color: var(--line);
}
.btn-card .arrow { transition: transform .25s var(--ease); }
.btn-card:hover {
  background: var(--capy-fur);
  color: #FFF6E9;
  border-color: var(--capy-fur);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -14px rgba(107, 69, 38, .6);
}
.btn-card:hover .arrow { transform: translate(3px, -3px); }

/* ---------------- 时间线 ---------------- */
.timeline {
  margin-top: 36px;
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--capy-sand), var(--capy-green));
  border-radius: 2px;
  opacity: .55;
}

.tl-item { position: relative; padding-bottom: 30px; }
.tl-item-last { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -30px; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--capy-caramel);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 2px var(--capy-sand);
}
.tl-item-last .tl-dot { background: var(--capy-green); box-shadow: 0 0 0 2px rgba(111,143,78,.4); }

.tl-label {
  font-size: .76rem; font-weight: 800; letter-spacing: .1em;
  color: var(--capy-fur);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.tl-text {
  font-size: .95rem;
  color: var(--text-soft);
  line-height: 1.9;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

/* ---------------- 账号 ---------------- */
.accounts {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.acc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 14px 34px -24px var(--shadow-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.acc-card:hover { transform: translateY(-3px); box-shadow: 0 22px 42px -24px var(--shadow-lg); }

.acc-icon { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.acc-type {
  font-size: .74rem; font-weight: 800; letter-spacing: .1em;
  color: var(--text-mute); text-transform: uppercase;
  margin-bottom: 5px;
}
.acc-name {
  font-size: 1.12rem; font-weight: 800;
  color: var(--capy-fur-deep);
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pills li {
  font-size: .8rem; font-weight: 700;
  color: var(--capy-green-dp);
  background: rgba(111, 143, 78, .13);
  border: 1px solid rgba(111, 143, 78, .28);
  padding: 5px 14px; border-radius: 999px;
}

/* ---------------- 合规声明 ---------------- */
.notice {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--capy-green);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: 0 14px 34px -26px var(--shadow-lg);
}
.notice ul { display: grid; gap: 14px; }
.notice li {
  position: relative;
  padding-left: 26px;
  font-size: .92rem;
  color: var(--text-soft);
  line-height: 1.85;
}
.notice li::before {
  content: "✔";
  position: absolute; left: 0; top: 1px;
  color: var(--capy-green);
  font-size: .82rem; font-weight: 900;
}

/* ---------------- footer ---------------- */
.site-footer {
  padding: 44px 0 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--capy-cream);
}
.foot-brand {
  font-weight: 800; font-size: 1rem;
  color: var(--capy-fur-deep);
}
.foot-note {
  margin-top: 8px;
  font-size: .84rem;
  color: var(--capy-fur);
  letter-spacing: .05em;
}
.foot-copy {
  margin-top: 16px;
  font-size: .78rem;
  color: var(--text-mute);
}

/* ---------------- 入场动画 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 720px) {
  body { font-size: 15px; }

  .header-inner { height: 56px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 9px; font-size: .84rem; }
  .brand-text { display: none; }

  .hero { padding: 40px 0 28px; }
  .hero-card { padding: 38px 22px 34px; border-radius: 22px; }
  .hero-card::before { height: 5px; }

  .section { padding: 52px 0; }
  .cards, .accounts { gap: 16px; }
  .card { padding: 24px 20px 22px; }

  .timeline { padding-left: 26px; }
  .tl-dot { left: -26px; }
  .tl-text { padding: 13px 15px; }

  .notice { padding: 22px 20px; }

  .btn { padding: 12px 22px; }
  .hero-cta .btn { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  .nav a { padding: 6px 7px; font-size: .8rem; }
  .hero-title { font-size: 1.75rem; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
