/* 767 LIFE · 现代生活账本设计系统 */
:root {
  --paper: #f7f8f4;
  --paper-2: #edf1e9;
  --surface: #ffffff;
  --ink: #17241d;
  --ink-2: #66736b;
  --line: #dce3dc;
  --seal: #1e6b4f;
  --seal-2: #124c37;
  --jade: #287963;
  --gold: #a87820;
  --lime: #dff278;
  --blue: #3c5d80;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --maxw: 1180px;
  --radius: 18px;
  --shadow: 0 16px 45px rgba(23, 36, 29, .07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--seal); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.small { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.mono { font-family: var(--mono); font-size: 13px; }

/* 顶栏 */
header.site {
  border-bottom: 1px solid rgba(220, 227, 220, .85);
  background: rgba(247, 248, 244, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; flex: none; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--lime);
  display: grid; place-items: center; font: 750 13px var(--mono); letter-spacing: -.5px;
}
.logo b { font-size: 18px; letter-spacing: -.4px; }
.logo > span:last-child { font-size: 10px; color: var(--ink-2); display: block; line-height: 1.25; letter-spacing: .04em; }
nav.main { margin-left: auto; display: flex; gap: 22px; font-size: 14px; align-items: center; }
nav.main a { color: var(--ink-2); padding: 24px 0 22px; position: relative; white-space: nowrap; }
nav.main a:hover { color: var(--ink); }
nav.main a.on { color: var(--ink); font-weight: 650; }
nav.main a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 15px; height: 2px; background: var(--seal); border-radius: 2px; }
#walletChip, #langChip {
  font-family: var(--sans); font-size: 12px; font-weight: 600; border: 1px solid var(--line);
  padding: 8px 13px; border-radius: 999px; background: var(--surface); cursor: pointer; white-space: nowrap;
  transition: border-color .18s, background .18s;
}
#langChip { min-width: 58px; color: var(--seal); }
#walletChip:hover, #langChip:hover { border-color: var(--seal); background: var(--paper-2); }
#xLink {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2);
  transition: border-color .18s, background .18s, color .18s;
}
#xLink:hover { border-color: var(--seal); background: var(--paper-2); color: var(--ink); }
#xLink svg { width: 15px; height: 15px; fill: currentColor; }

/* 通用排版与组件 */
section { padding: 76px 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.035em; }
h1 { font-size: clamp(38px, 5vw, 66px); font-weight: 720; }
h2 { font-size: clamp(27px, 3vw, 38px); margin-bottom: 20px; font-weight: 680; }
h2 .no { color: var(--seal); font-family: var(--mono); font-size: 12px; letter-spacing: .05em; vertical-align: 5px; margin-right: 10px; }
h3 { font-size: 19px; font-weight: 650; }
.lede { color: var(--ink-2); font-size: 17px; max-width: 740px; line-height: 1.9; }
.hr-seal { display: none; }
.tag { display: inline-flex; align-items: center; font-family: var(--sans); font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); margin-right: 5px; line-height: 1.5; }
.tag.lv-A { border-color: rgba(30,107,79,.3); color: var(--seal); background: #eef7f1; }
.tag.lv-B { border-color: rgba(168,120,32,.3); color: var(--gold); background: #fbf6e9; }
.tag.lv-C { color: var(--ink-2); background: var(--paper); }
.tag.k-寿命 { background: #f7ece8; color: #8b493b; border-color: transparent; }
.tag.k-钱 { background: #f8f1df; color: #8a641c; border-color: transparent; }
.tag.k-精力, .tag.k-时间 { background: #e9f5ef; color: var(--seal); border-color: transparent; }
.tag.k-自由 { background: #edf1f7; color: var(--blue); border-color: transparent; }
.tag.x-极高 { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 650;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  padding: 12px 22px; cursor: pointer; border-radius: 999px; transition: transform .18s, background .18s, box-shadow .18s;
}
.btn:hover { background: var(--seal); border-color: var(--seal); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(30,107,79,.16); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { color: var(--seal); border-color: var(--seal); background: var(--surface); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); padding: 26px; border-radius: var(--radius);
  position: relative; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cbd6cc; }
.card .num { font-family: var(--mono); color: var(--seal); font-size: 11px; letter-spacing: .08em; }
.card h3 { margin: 14px 0 10px; }
.quote { border-left: 2px solid var(--seal); padding: 10px 18px; color: var(--ink-2); background: var(--paper-2); border-radius: 0 10px 10px 0; }

/* 条目 */
.entry { border: 1px solid var(--line); background: var(--surface); padding: 22px 24px; margin-bottom: 12px; border-radius: 14px; }
.entry .head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.entry .head .id { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.entry .head b { font-size: 16px; flex: 1; min-width: 200px; line-height: 1.55; }
.entry dl { display: grid; grid-template-columns: 58px 1fr; gap: 5px 14px; font-size: 14px; margin-top: 14px; }
.entry dt { color: var(--seal); font-family: var(--sans); font-size: 12px; padding-top: 2px; font-weight: 600; }
.entry dd { color: var(--ink-2); line-height: 1.75; }

/* 术语提示 */
.term { border-bottom: 1px dashed var(--seal); cursor: help; }
#tip { position: fixed; z-index: 99; max-width: 320px; background: var(--ink); color: #fff; font-size: 13px; font-family: var(--sans); padding: 11px 14px; border-radius: 10px; pointer-events: none; opacity: 0; transition: opacity .12s; line-height: 1.65; box-shadow: var(--shadow); }

/* 表格 */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { border-bottom: 1px solid var(--line); padding: 15px 17px; text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: none; }
th { background: var(--paper-2); font-family: var(--sans); font-size: 12px; color: var(--ink-2); }
td.pending { color: var(--gold); font-family: var(--sans); font-size: 13px; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(16,28,21,.58); backdrop-filter: blur(8px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--surface); max-width: 640px; width: 100%; max-height: 88vh; overflow: auto; border: 1px solid var(--line); padding: 36px 38px; position: relative; border-radius: 22px; box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.modal .stamp { display: inline-block; color: var(--seal); background: #edf7f0; font-weight: 700; font-size: 11px; padding: 4px 10px; border-radius: 999px; letter-spacing: .08em; margin-bottom: 18px; }
.modal h3 { font-size: 23px; margin-bottom: 16px; }
.modal p { color: var(--ink-2); font-size: 14px; }
.modal .foot { margin-top: 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* 表单 */
input[type=text], textarea, select { font-family: var(--sans); font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 11px 13px; width: 100%; border-radius: 10px; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(30,107,79,.12); border-color: var(--seal); }
label { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-2); display: block; margin: 15px 0 6px; }

/* 页脚 */
footer.site { border-top: 1px solid var(--line); margin-top: 30px; padding: 32px 0 44px; font-size: 12px; color: var(--ink-2); font-family: var(--sans); }
footer.site .disclaimer { max-width: 860px; line-height: 1.9; }
footer.site a { text-decoration: underline; text-underline-offset: 3px; }

/* 打卡与结果 */
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 7px; margin: 18px 0; }
.cal i { aspect-ratio: 1; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 9px; }
.cal i.done { background: var(--seal); color: #fff; border-color: var(--seal); }
.cal i.today { outline: 2px solid var(--gold); outline-offset: 2px; }
.badge-row { display: flex; gap: 14px; flex-wrap: wrap; }
.badge { width: 112px; min-height: 104px; border-radius: 16px; border: 1px solid var(--line); display: grid; place-items: center; text-align: center; font-size: 12px; font-family: var(--sans); color: var(--ink-2); background: var(--surface); padding: 12px 8px; line-height: 1.5; }
.badge.got { border-color: var(--seal); color: var(--seal); font-weight: 700; background: #eef7f1; }
.bar { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--seal); border-radius: inherit; }
.score-big { font-size: 70px; font-weight: 750; font-family: var(--sans); letter-spacing: -.06em; color: var(--seal); line-height: 1; }

/* 首页 */
.home-hero { padding: 72px 0 48px; overflow: hidden; }
.home-hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 650 11px var(--mono); letter-spacing: .11em; color: var(--seal); text-transform: uppercase; margin-bottom: 24px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--seal); }
.hero-copy h1 { max-width: 650px; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.22; letter-spacing: -.01em; }
.hero-copy .lede { margin-top: 24px; max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 16px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { position: relative; padding-left: 14px; }
.hero-note span::before { content: ""; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--seal); }
.daily-preview { background: var(--ink); color: #fff; border-radius: 26px; padding: 30px; box-shadow: 0 30px 70px rgba(23,36,29,.17); position: relative; }
.daily-preview::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--lime); filter: blur(90px); opacity: .12; top: -40px; right: -30px; }
.daily-preview .preview-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 600 11px var(--mono); color: #b8c5bc; letter-spacing: .08em; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(223,242,120,.1); }
.daily-preview h3 { font-size: 26px; margin: 42px 0 22px; line-height: 1.45; letter-spacing: -.025em; }
.daily-preview .preview-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.daily-preview .preview-meta div { border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; }
.daily-preview .preview-meta span { display: block; color: #9eaea4; font-size: 11px; margin-bottom: 4px; }
.daily-preview .preview-meta b { font-size: 13px; font-weight: 550; }
.daily-preview .preview-link { display: flex; justify-content: space-between; align-items: center; color: var(--lime); font-size: 13px; font-weight: 650; margin-top: 24px; }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { padding: 24px 26px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: none; }
.metric b { display: block; font-size: 28px; letter-spacing: -.05em; line-height: 1.2; }
.metric span { color: var(--ink-2); font-size: 12px; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 30px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { max-width: 440px; }
.section-kicker { color: var(--seal); font: 650 11px var(--mono); letter-spacing: .1em; margin-bottom: 12px; }
.asset-card { min-height: 230px; display: flex; flex-direction: column; }
.asset-card .asset-no { width: 38px; height: 38px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; color: var(--seal); font: 650 12px var(--mono); }
.asset-card p { margin-top: auto; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.method-item { padding: 28px; border-right: 1px solid var(--line); }
.method-item:last-child { border-right: none; }
.method-item .method-label { font: 650 11px var(--mono); color: var(--seal); letter-spacing: .09em; }
.method-item h3 { margin: 18px 0 10px; }
.archive-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.archive-preview .entry { margin: 0; display: flex; flex-direction: column; }
.archive-preview .entry dl { grid-template-columns: 1fr; }
.archive-preview .entry dt { margin-top: 8px; }
.archive-preview .entry dd:last-child { display: none; }
.token-panel { background: var(--ink); color: #fff; border-radius: 26px; padding: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.token-panel .section-kicker { color: var(--lime); }
.token-panel h2 { max-width: 440px; }
.token-panel p { color: #b5c2b9; }
.token-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.token-fact { border: 1px solid rgba(255,255,255,.12); padding: 18px; border-radius: 14px; }
.token-fact span { display: block; color: #9eaea4; font-size: 11px; margin-bottom: 6px; }
.token-fact b { font: 650 18px var(--mono); }
.token-panel .text-link { color: var(--lime); display: inline-block; margin-top: 22px; font-size: 13px; }
.final-cta { text-align: center; padding: 84px 0; }
.final-cta h2 { max-width: 640px; margin: 0 auto 18px; }
.final-cta p { margin: 0 auto 26px; }

@media (max-width: 1000px) {
  header.site .wrap { gap: 14px; }
  nav.main { gap: 14px; font-size: 13px; }
  .logo > span:last-child { display: none; }
  .home-hero-grid { gap: 34px; }
  .grid3, .archive-preview { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  header.site { position: relative; }
  header.site .wrap { padding-top: 14px; padding-bottom: 12px; flex-wrap: wrap; }
  nav.main { order: 3; width: 100%; overflow-x: auto; gap: 20px; padding-bottom: 2px; }
  nav.main a { padding: 5px 0 9px; }
  nav.main a.on::after { bottom: 2px; }
  #langChip { margin-left: auto; }
  #walletChip { margin-left: 8px; }
  #xLink { margin-left: 8px; }
  section { padding: 52px 0; }
  .home-hero { padding-top: 44px; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .daily-preview { padding: 24px; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid3, .archive-preview, .method-grid, .token-panel { grid-template-columns: 1fr; }
  .method-item { border-right: none; border-bottom: 1px solid var(--line); }
  .method-item:last-child { border-bottom: none; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .token-panel { padding: 28px 24px; gap: 30px; }
  .modal { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
