:root {
  color-scheme: light;
  --paper: #faf8f2;
  --canvas: #f2efe6;
  --ink: #243c38;
  --muted: #687b70;
  --line: #d9ddd3;
  --sage: #dce7de;
  --accent: #31594f;
  --accent-hover: #24483f;
  --soft: #eef1e9;
  --danger: #9a4d42;
  font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); min-height: 100vh; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.site-header {
  min-height: 76px; padding: 12px max(22px, calc((100vw - 1120px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(36,60,56,.1); background: rgba(250,248,242,.92);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent); color: white; font-size: 22px; font-weight: 700;
}
.brand strong { display: block; font-size: 16px; letter-spacing: .04em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.header-link, .back-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.header-link:hover, .back-link:hover { color: var(--accent); }
.page-shell { width: min(1120px, calc(100% - 44px)); margin: 0 auto; padding: 38px 0 72px; }
.view { animation: enter .22s ease-out; }
@keyframes enter { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.hero { max-width: 760px; padding: 44px 0 58px; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
h1, h2, p { overflow-wrap: anywhere; }
.hero h1 { margin: 0; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: clamp(34px, 5vw, 58px); line-height: 1.24; font-weight: 600; letter-spacing: -.04em; }
.hero-copy { max-width: 560px; margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.hero-home { max-width: 820px; padding: 22px 0 32px; }
.hero-home .hero-copy { margin-top: 14px; }
.home-ask { width: min(100%, 820px); padding: 28px 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 12px 32px rgba(30,50,43,.045); }
.home-ask-heading h2 { margin: 0; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: clamp(23px, 3.2vw, 31px); font-weight: 600; line-height: 1.4; }
.home-ask-heading > p:last-child { margin: 10px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.home-input-label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.home-question-form textarea { display: block; width: 100%; min-height: 122px; padding: 14px 16px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fffefa; font-size: 16px; line-height: 1.75; outline: none; }
.home-question-form textarea:focus { border-color: #8ca596; box-shadow: 0 0 0 3px rgba(140,165,150,.18); }
.home-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; }
.home-form-hint { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
.home-form-hint #home-input-count { font-size: 11px; }
.home-form-actions .button { min-width: 150px; }
.home-service-note { margin: 14px 0 0; color: var(--danger); font-size: 13px; }
.home-cards { margin-top: 58px; }
.section-description { margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: 27px; font-weight: 600; }
.draft-label { display: inline-flex; align-items: center; border: 1px solid #d7dfd4; border-radius: 999px; padding: 6px 11px; color: #65766a; background: #eef2e9; font-size: 11px; white-space: nowrap; }
.card-grid, .share-card-grid { display: grid; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card-tile, .share-option { min-width: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: 0 6px 20px rgba(30,50,43,.035); }
.card-tile-button, .share-option-button { display: block; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; }
.card-tile-button:hover .card-one-line-quote, .share-option-button:hover .card-one-line-quote { color: var(--accent); }
.card-one-line-cover {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  width: 100%; min-width: 0; aspect-ratio: 1 / 1.08; padding: 20px 18px;
  text-align: left; background: var(--paper);
}
.card-one-line-topic { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.card-one-line-quote {
  display: block; font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(16px, 1.7vw, 22px); font-weight: 650; line-height: 1.6;
  letter-spacing: .01em; overflow-wrap: anywhere;
}
.card-one-line-brand { color: var(--muted); font-size: 10px; letter-spacing: .03em; }
.card-page-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); align-items: center; gap: 46px; margin-top: 24px; min-width: 0; }
.card-page-grid > * { min-width: 0; }
.thought-card { width: 100%; min-width: 0; }
.thought-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 16px 42px rgba(30,50,43,.07); }
.card-cover { display: block; width: 100%; max-width: 540px; height: auto; margin: 0 auto; }
.card-copy { padding: 28px 34px 34px; }
.card-copy h1 { margin: 0 0 18px; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: clamp(29px, 4vw, 42px); line-height: 1.35; }
.card-body { margin: 0; color: #42544c; font-size: 16px; line-height: 2; white-space: pre-wrap; }
.card-question { margin-top: 26px; padding: 18px 20px; border-left: 3px solid #92a99a; background: var(--soft); }
.card-question span { color: var(--muted); font-size: 12px; }
.card-question p { margin: 8px 0 0; font-size: 16px; line-height: 1.8; }
.entry-aside { max-width: 390px; }
.entry-aside h2 { margin: 20px 0 12px; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: 29px; line-height: 1.4; }
.entry-aside > p { color: var(--muted); font-size: 15px; line-height: 1.9; }
.button { min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 650; transition: background .15s ease, transform .15s ease; }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { color: white; background: var(--accent); }
.button-primary:hover:not(:disabled) { background: var(--accent-hover); }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--paper); }
.button-secondary:hover:not(:disabled), .button-quiet:hover:not(:disabled) { background: var(--soft); }
.button-quiet { color: var(--muted); border-color: transparent; background: transparent; }
.entry-aside .button { display: block; width: 100%; margin-top: 12px; text-align: center; text-decoration: none; }
.entry-aside .entry-download { margin-top: 18px; }
.entry-aside .entry-copy { margin-top: 6px; }
.entry-aside .aside-note { font-size: 12px; }
.chat-view, .answer-view, .share-view { max-width: 790px; margin: 0 auto; }
.chat-heading { padding: 26px 0 20px; }
.chat-heading .back-link { display: inline-block; margin-bottom: 28px; }
.chat-heading h1, .answer-view h1, .share-view h1 { margin: 0 0 12px; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: clamp(30px, 4.5vw, 43px); line-height: 1.35; }
.chat-heading > p:last-child, .share-intro { color: var(--muted); line-height: 1.9; }
.conversation { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.message { max-width: 88%; padding: 15px 18px; border-radius: 17px; white-space: pre-wrap; line-height: 1.85; font-size: 15px; }
.message-assistant { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-top-left-radius: 5px; }
.message-user { align-self: flex-end; color: white; background: var(--accent); border-top-right-radius: 5px; }
.message-label { display: block; margin-bottom: 5px; font-size: 10px; letter-spacing: .08em; opacity: .72; }
.question-form { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.question-form label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.question-form textarea { display: block; width: 100%; min-height: 112px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; color: var(--ink); background: #fffefa; font-size: 15px; line-height: 1.8; outline: none; }
.question-form textarea:focus { border-color: #8ca596; box-shadow: 0 0 0 3px rgba(140,165,150,.18); }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.form-bottom span { color: var(--muted); font-size: 11px; }
.privacy-note, .answer-boundary { color: var(--muted); font-size: 12px; line-height: 1.8; }
.status-line { min-height: 22px; color: var(--muted); font-size: 13px; }
#answer-without-more { margin-top: 12px; }
.chat-recovery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.answer-view { padding-top: 24px; }
.answer-card { margin: 26px 0 16px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.answer-text { white-space: pre-wrap; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.answer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.share-view { padding-top: 16px; }
.share-view .back-link { display: inline-block; margin-bottom: 28px; }
.share-intro { margin: 12px 0 22px; }
.share-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.share-option { border-radius: 14px; }
.share-option.selected { outline: 3px solid #91aa99; outline-offset: 2px; }
.share-preview { margin-top: 34px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.preview-frame { width: min(100%, 360px); margin: 0 auto; background: var(--canvas); }
.preview-frame img { display: block; width: 100%; height: auto; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.share-link-label { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; width: min(1120px, calc(100% - 44px)); margin: 0 auto; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100vw - 36px); padding: 11px 16px; border-radius: 999px; color: white; background: #243c38; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.toast.visible { opacity: 1; }
.clipboard-helper { position: fixed; left: -10000px; top: 0; opacity: 0; }
@media (max-width: 760px) {
  .site-header { min-height: 66px; padding: 10px 18px; }
  .page-shell { width: calc(100% - 32px); max-width: 620px; padding: 22px 0 54px; }
  .hero { padding: 34px 0 40px; }
  .hero-home { padding: 10px 0 24px; }
  .home-ask { padding: 22px 18px; border-radius: 20px; }
  .home-ask-heading > p:last-child { margin-bottom: 16px; }
  .home-question-form textarea { min-height: 116px; }
  .home-form-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .home-form-hint { flex-direction: row; justify-content: space-between; gap: 8px; }
  .home-form-actions .button { width: 100%; }
  .home-cards { margin-top: 46px; }
  .home-cards .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .hero-copy { font-size: 14px; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 22px; }
  .card-grid, .share-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-tile { border-radius: 14px; }

  .card-page-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 18px; }
  .thought-card { border-radius: 18px; }
  .card-copy { padding: 22px 22px 25px; }
  .entry-aside { max-width: none; padding: 0 4px; }
  .entry-aside h2 { margin-top: 12px; font-size: 25px; }
  .chat-heading { padding-top: 12px; }
  .chat-heading .back-link { margin-bottom: 24px; }
  .message { max-width: 94%; font-size: 14px; }
  .question-form { padding: 14px; }
  .answer-card { padding: 20px; }
  .share-preview { padding: 14px; }
  .share-actions { flex-direction: column; }
  .share-actions .button { width: 100%; }
  .site-footer { width: calc(100% - 32px); }
}
@media (max-width: 420px) {
  .brand-mark { width: 36px; height: 36px; }
  .header-link { font-size: 12px; }
  .card-grid, .share-card-grid { gap: 9px; }
  .draft-label { padding: 5px 8px; font-size: 10px; }
  .form-bottom { align-items: flex-end; }
  .form-bottom .button { min-width: 116px; padding-inline: 14px; }
  .chat-recovery-actions { flex-direction: column; }
  .chat-recovery-actions .button { width: 100%; }
  .answer-actions { flex-direction: column; }
  .answer-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
