:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --surface: #fffdf8;
  --ink: #20211f;
  --muted: #6f716d;
  --line: #dcd8cf;
  --accent: #df5b3f;
  --accent-dark: #b73c28;
  --accent-soft: #f7ded6;
  --green: #234c3d;
  --radius: 12px;
  --shadow: 0 20px 50px rgba(44, 38, 28, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(rgba(32, 33, 31, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 33, 31, 0.025) 1px, transparent 1px), var(--paper);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(223, 91, 63, 0.32); outline-offset: 3px; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 216, 207, 0.88);
  background: rgba(245, 242, 235, 0.88);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark, .avatar, .profile-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
.brand-mark { width: 40px; height: 40px; border-radius: 8px; font-size: 20px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: 0.16em; line-height: 1.25; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.desktop-nav { display: flex; align-items: center; gap: 8px; }
.desktop-nav a { padding: 8px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a.active { border-color: var(--accent); color: var(--ink); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.mobile-nav nav a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 14px; font-weight: 650; text-decoration: none; }
.mobile-nav nav a:hover { background: var(--paper); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: end; gap: 56px; padding-block: 88px 72px; border-bottom: 1px solid var(--ink); }
.eyebrow, .section-index, .tool-type { color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; }
.hero h1 { max-width: 800px; margin: 20px 0 24px; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: clamp(44px, 6.8vw, 82px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.06; }
.hero-intro { max-width: 650px; margin: 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 750; text-decoration: none; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { border-color: var(--line); background: var(--surface); }
.button-secondary:hover { border-color: var(--ink); }
.now-card { padding: 26px; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.now-card-head { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #3b9b6f; box-shadow: 0 0 0 5px rgba(59, 155, 111, 0.12); }
.now-card p { margin: 18px 0 14px; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 20px; line-height: 1.65; }
.now-card time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.section { padding-top: 82px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2, .profile-card h2, .note-card h2 { margin: 6px 0 0; font-family: Georgia, "Songti SC", "SimSun", serif; font-weight: 500; letter-spacing: -0.025em; }
.section-heading h2 { font-size: clamp(34px, 4vw, 48px); }
.section-heading > a { color: var(--accent-dark); font-size: 13px; font-weight: 750; text-decoration: none; }
.tool-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.tool-card { min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform 160ms ease, border-color 160ms ease; }
.tool-card:hover { transform: translateY(-3px); border-color: rgba(183, 60, 40, 0.5); }
.tool-card-featured { background: var(--green); color: #f9f6ed; }
.tool-card-featured .tool-type, .tool-card-featured p, .tool-card-featured .card-link { color: rgba(249, 246, 237, 0.72); }
.tool-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 10px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 15px; font-weight: 800; }
.tool-card h3 { margin: 8px 0; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 28px; font-weight: 500; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-link { color: var(--muted); font-size: 13px; font-weight: 750; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr); gap: 56px; align-items: start; }
.moment-card, .profile-card, .note-card, .empty-note { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.moment-card { padding: 28px; }
.moment-meta { display: flex; align-items: center; gap: 13px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; }
.moment-meta strong { display: block; font-size: 14px; }
.moment-meta div div { display: flex; gap: 10px; color: var(--muted); font-size: 12px; }
.moment-card > p { margin: 24px 0; font-size: 17px; line-height: 1.9; }
.moment-card footer { display: flex; flex-wrap: wrap; gap: 8px; }
.moment-card footer span { padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.empty-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; padding: 22px; border-style: dashed; color: var(--muted); font-size: 13px; }
.empty-note p { margin: 0; }
.sidebar { position: sticky; top: 98px; }
.profile-card, .note-card { padding: 26px; }
.profile-mark { width: 64px; height: 64px; border-radius: 16px; font-size: 28px; }
.profile-card h2 { font-size: 28px; }
.profile-card > p { margin: 8px 0 24px; color: var(--muted); font-size: 14px; }
.profile-card dl { margin: 0; }
.profile-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.profile-card dt { color: var(--muted); }
.profile-card dd { margin: 0; text-align: right; }
.note-card { margin-top: 16px; background: #ece8df; }
.note-card h2 { font-size: 23px; }
.note-card ul { margin: 20px 0 0; padding: 0; list-style: none; }
.note-card li { padding: 10px 0; border-top: 1px solid rgba(32, 33, 31, 0.1); color: var(--muted); font-size: 13px; }
.note-card li span { display: inline-block; min-width: 46px; color: var(--ink); font-weight: 800; }

.site-footer { margin-top: 96px; border-top: 1px solid var(--line); }
.footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; }

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-block: 64px 56px; }
  .now-card { max-width: 520px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-card-featured { grid-column: 1 / -1; }
  .content-layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar { position: static; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 68px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(39px, 12vw, 56px); }
  .hero-intro { font-size: 16px; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .section { padding-top: 64px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card-featured { grid-column: auto; }
  .tool-card { min-height: 280px; }
  .moment-card, .profile-card, .note-card, .now-card { padding: 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
  .footer-inner p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
