@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600&display=swap');

:root {
  --green: #47745b;
  --green-dark: #2e503e;
  --green-pale: #edf3ec;
  --ink: #313d35;
  --muted: #8b948d;
  --line: #e8ece5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f3f5f0;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, a, textarea { outline-offset: 4px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--green); }
button { color: inherit; }
button:disabled { cursor: default; }
button, a { touch-action: manipulation; }
button { transition: background-color .18s, color .18s, border-color .18s, transform .18s; }
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-topline, .page-footer { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.page-topline { height: 76px; padding: 0 4px; }
.wordmark { display: flex; align-items: center; gap: 12px; color: #405644; text-decoration: none; font-size: 15px; font-weight: 600; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: #648469; }
.wordmark-divider { margin: 0 4px; color: #c0c8bd; font-weight: 400; }
.topline-caption { font-size: 12px; font-weight: 400; letter-spacing: 1px; color: #939c90; }
.page-edition { font-size: 9px; letter-spacing: 2.2px; color: #98a18f; }
.app-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); max-width: 1200px; height: calc(100dvh - 134px); min-height: 560px; max-height: 900px; margin: 0 auto; overflow: hidden; border: 1px solid #e1e7dc; border-radius: 18px; background: white; box-shadow: 0 12px 48px #384f3510, 0 2px 6px #384f3503; }
.sidebar { display: flex; flex-direction: column; min-height: 0; background: #f9faf6; border-right: 1px solid var(--line); padding: 32px 22px 0; }
.sidebar-brand { display: flex; align-items: center; gap: 13px; padding: 0 8px; }
.brand-logo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; background: var(--green-dark); color: #f3f5e8; }
.brand-logo .icon { width: 26px; height: 26px; stroke-width: 1.3; }
.sidebar-brand h1 { font-family: "Noto Serif SC", "Songti SC", SimSun, serif; margin: -3px 0 5px; font-size: 25px; letter-spacing: 3px; font-weight: 600; white-space: nowrap; }
.sidebar-brand span { font-size: 8px; letter-spacing: 1.25px; color: #929c8b; white-space: nowrap; }
.sidebar-rule { height: 1px; background: var(--line); margin: 29px 8px 23px; }
.navigation { display: grid; gap: 7px; }
.nav-item { border: 0; background: transparent; width: 100%; height: 48px; border-radius: 8px; display: flex; align-items: center; gap: 14px; padding: 0 15px; color: #7c8679; font-size: 13px; }
.nav-item:hover { background: #eef1e9; color: var(--green-dark); }
.nav-item.active { background: #e6ede0; color: #3f6044; font-weight: 500; }
.nav-item .icon { width: 19px; height: 19px; }
.nav-live-dot { width: 6px; height: 6px; background: #6c8d57; border-radius: 50%; margin-left: auto; }
.nav-item .nav-arrow { margin-left: auto; width: 13px; height: 13px; opacity: .6; }
.sidebar-editorial { position: relative; margin-top: auto; padding: 45px 16px 24px; overflow: hidden; }
.eyebrow { font-size: 8px; letter-spacing: 1.65px; color: #9da68f; font-weight: 500; }
.sidebar-editorial h2 { font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 24px; line-height: 1.8; font-weight: 400; letter-spacing: 1px; color: #4c5c45; margin: 17px 0 12px; }
.sidebar-editorial p { color: #99a08f; font-size: 11px; line-height: 2.1; margin: 0; }
.plant-art { display: block; width: 186px; height: 200px; margin: 10px auto 0; }
.editorial-caption { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 9px; letter-spacing: 1px; color: #97a28c; margin: 3px 0 0; }
.editorial-caption span { width: 16px; height: 1px; background: #b6c0aa; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 22px 7px; font-size: 11px; color: #64725e; margin-top: auto; }
.certification { width: 25px; height: 25px; background: #edf0e7; color: #8a9e74; border-radius: 50%; display: grid; place-items: center; }
.certification .icon { width: 14px; height: 14px; }
.sidebar-footer span { display: block; font-size: 9px; color: #a6ad9e; margin-top: 5px; }
.footer-leaf { width: 18px; height: 18px; color: #a7b299; margin-left: auto; }
.chat-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #f5f7f3; }
.chat-header { display: flex; align-items: center; gap: 14px; min-height: 90px; padding: 19px 31px; background: #fff; border-bottom: 1px solid var(--line); }
.account-avatar, .message-avatar { display: grid; place-items: center; border-radius: 11px; background: #e5ecdf; color: #658054; flex-shrink: 0; }
.account-avatar { width: 46px; height: 46px; }
.account-avatar .icon { width: 26px; height: 26px; }
.account-heading { flex: 1; min-width: 0; }
.account-title { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.official-badge { flex-shrink: 0; white-space: nowrap; font-size: 9px; font-weight: 400; letter-spacing: 0; color: #89967d; border: 1px solid #e3e9dc; border-radius: 4px; padding: 2px 5px; }
.account-subtitle { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #9aA190; margin-top: 7px; }
.account-subtitle > span:first-child { width: 5px; height: 5px; background: #80a363; border-radius: 50%; }
.subtitle-separator { margin: 0 1px; color: #b7bdaf; }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-button { border: 0; background: transparent; padding: 8px; border-radius: 8px; color: #8b9587; display: inline-flex; align-items: center; justify-content: center; }
.icon-button:hover { color: var(--green); background: #f0f4ed; }
.icon-button .icon { width: 20px; height: 20px; }
.conversation-status { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 31px; border-bottom: 1px solid #eaf0e5; color: #929d88; font-size: 10px; background: #f0f4ec; }
.conversation-status .icon { width: 13px; height: 13px; }
#conversation-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-spacer { flex: 1; }
.saved-label { color: #a8b09f; white-space: nowrap; font-size: 9px; }
.message-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 23px 32px 28px; scrollbar-width: thin; scrollbar-color: #dce3d6 transparent; }
.date-separator { display: flex; align-items: center; justify-content: center; gap: 12px; color: #adb4a6; font-size: 10px; margin: 0 0 23px; }
.date-separator::before, .date-separator::after { content: ""; width: 25px; height: 1px; background: #e3e9de; }
.message-row { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; animation: enter-message .3s ease-out; }
.message-avatar { width: 33px; height: 33px; border-radius: 9px; margin-top: 2px; }
.message-avatar .icon { width: 21px; height: 21px; stroke-width: 1.4; }
.message-body { max-width: min(88%, 500px); min-width: 0; }
.message-name { font-size: 10px; margin: 0 0 7px 2px; color: #9ba491; }
.message-bubble { border: 1px solid #e7ebe2; border-radius: 0 12px 12px; background: #fff; padding: 13px 17px; font-size: 12px; line-height: 1.95; color: #61695b; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-row.outgoing { flex-direction: row-reverse; }
.outgoing .message-avatar { background: #e9e6df; color: #8c8575; font-size: 11px; }
.outgoing .message-body { max-width: 78%; }
.outgoing .message-name { text-align: right; margin-right: 2px; }
.outgoing .message-bubble { border-radius: 12px 0 12px 12px; background: #e1edda; border-color: #dbe6d4; color: #43573d; }
.message-time { display: block; font-size: 9px; color: #a6af9f; margin-top: 6px; text-align: right; }
.article-card { width: 402px; max-width: 100%; display: block; padding: 0; text-align: left; border: 1px solid #e1e7da; border-radius: 11px; background: white; overflow: hidden; box-shadow: 0 3px 7px #34452b03; }
.article-card:hover { border-color: #b9c8ab; transform: translateY(-2px); box-shadow: 0 6px 15px #34452b09; }
.article-image { position: relative; height: 164px; background: #c4c7b7; overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; filter: saturate(.65) brightness(.85); }
.article-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #1e291918, #1c281c05 30%, #1c281c55); }
.image-overline { position: absolute; z-index: 1; top: 17px; left: 19px; color: #ffffffe3; font-size: 9px; letter-spacing: 1.4px; }
.image-stamp { position: absolute; z-index: 1; top: 16px; right: 17px; color: #ffffffb8; border: 1px solid #ffffff61; padding: 3px 7px; font-size: 8px; letter-spacing: 1px; }
.image-quote { position: absolute; z-index: 1; bottom: 20px; left: 20px; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 24px; line-height: 1.6; letter-spacing: 2px; color: #fff; }
.article-copy { padding: 15px 19px 0; }
.article-copy h3 { margin: 0 0 7px; font-size: 14px; font-weight: 500; letter-spacing: .5px; }
.article-copy p { font-size: 10px; color: #a2a696; margin: 0 0 14px; }
.article-meta { display: flex; align-items: center; border-top: 1px solid #edf0e8; padding: 11px 0; color: #99a48e; font-size: 9px; }
.article-tag { margin-right: 8px; color: #678159; }
.article-meta .icon { width: 14px; height: 14px; margin-left: auto; }
.suggestions-message { margin-bottom: 4px; }
.suggestion-intro { margin: 3px 0 12px; font-size: 12px; color: #828d78; }
.suggestion-list { display: flex; flex-wrap: wrap; gap: 8px; }
.suggestion-chip { display: flex; align-items: center; gap: 9px; padding: 8px 12px; font-size: 10px; color: #6f825f; border: 1px solid #dfe6d7; background: #fafbf8; border-radius: 6px; }
.suggestion-chip:hover { background: #e8efdf; border-color: #bdccae; }
.suggestion-chip .icon { width: 12px; height: 12px; }
.composer-area { flex-shrink: 0; position: relative; background: white; border-top: 1px solid var(--line); padding: 19px 27px 12px; }
.composer-toolbar { display: flex; gap: 14px; align-items: center; }
.mode-toggle { display: grid; place-items: center; flex-shrink: 0; width: 43px; height: 43px; border: 1px solid #e0e7da; border-radius: 10px; color: #738568; background: #f8faf5; }
.mode-toggle:hover, .mode-toggle[aria-expanded="true"] { background: #e7efdf; color: #4d703d; border-color: #c9d7bb; }
.mode-toggle .icon { width: 23px; height: 23px; }
.composer-divider { height: 23px; width: 1px; background: #e6eadf; flex-shrink: 0; }
.message-form { display: flex; align-items: flex-end; flex: 1; min-width: 0; gap: 12px; }
.input-wrap { display: flex; align-items: flex-end; flex: 1; min-width: 0; border: 1px solid #e7ebe2; background: #f7f9f4; border-radius: 8px; transition: border-color .2s, box-shadow .2s; padding-right: 5px; }
.input-wrap:focus-within { border-color: #b0c09f; box-shadow: 0 0 0 3px #8193660a; }
#message-input { resize: none; width: 100%; max-height: 110px; min-height: 42px; padding: 11px 12px; border: 0; outline: 0; background: transparent; color: #4d6042; font-size: 12px; line-height: 20px; scrollbar-width: thin; }
#message-input::placeholder { color: #a5af99; }
.emoji-toggle { flex: 0 0 81px; width: 81px; height: 30px; margin-bottom: 4px; padding: 6px; }
.emoji-toggle .icon { width: 17px; height: 17px; color: #99a58d; }
.send-button { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 9px; height: 44px; min-width: 81px; padding: 0 14px; background: #57794a; color: white; border: 0; border-radius: 8px; font-size: 12px; }
.send-button:hover:not(:disabled) { background: #416637; }
.send-button:disabled { background: #94aa83; color: #ffffffd9; }
.send-button .icon { width: 16px; height: 16px; }
.composer-caption { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: #aab29f; margin-top: 11px; padding-left: 2px; }
#composer-hint { display: flex; align-items: center; gap: 3px; }
#composer-hint .icon { width: 10px; height: 10px; }
.keyboard-hint { color: #b5bbad; font-size: 8px; }
.history-panel { position: absolute; bottom: 100%; left: 0; right: 0; padding: 26px 30px 16px; background: #fffffffa; backdrop-filter: blur(18px); border-top: 1px solid #dfe7d7; box-shadow: 0 -12px 35px #3b502711; animation: enter-panel .22s ease-out; }
.history-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.history-panel-heading h2 { font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 19px; font-weight: 500; margin: 8px 0 0; color: #495c3f; }
.new-conversation { display: flex; align-items: center; gap: 5px; border: 1px solid #dfe7d7; border-radius: 6px; padding: 8px 11px; color: #688359; background: #f4f7ef; font-size: 10px; }
.new-conversation:hover { background: #e5eddd; }
.new-conversation .icon { width: 14px; height: 14px; }
.history-list { display: grid; gap: 7px; max-height: min(260px, 35dvh); overflow-y: auto; scrollbar-width: thin; }
.history-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; background: #fafbf8; border: 1px solid #edf0e7; border-radius: 9px; }
.history-item:hover { border-color: #bbcbaa; background: #f4f7ef; }
.history-item.selected { border-color: #c4d3b7; background: #eff4e9; }
.history-item-icon { width: 34px; height: 34px; border-radius: 8px; background: #e9efe1; display: grid; place-items: center; color: #80946d; flex-shrink: 0; }
.history-item-icon .icon { width: 17px; height: 17px; }
.history-item-content { flex: 1; min-width: 0; }
.history-item-content strong { display: block; font-size: 12px; font-weight: 500; color: #637257; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item-content p { margin: 0; color: #a1aa96; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item-end { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; flex-shrink: 0; color: #a2ac97; font-size: 9px; }
.history-item-end .icon { color: #7b9569; width: 16px; height: 16px; }
.history-note { font-size: 9px; color: #b0b6a6; text-align: center; margin: 16px 0 0; }
.history-toolbar { display: flex; gap: 9px; align-items: center; flex: 1; color: #6e835f; font-size: 13px; }
.history-toolbar > .icon { width: 18px; height: 18px; }
.history-toolbar-tip { font-size: 10px; color: #a7b29b; margin-left: auto; }
.emoji-panel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; position: absolute; right: 104px; bottom: calc(100% - 8px); padding: 12px; border: 1px solid #e1e8d8; background: white; border-radius: 12px; box-shadow: 0 8px 30px #34452b15; z-index: 2; }
.emoji-option { background: none; border: 0; padding: 7px; font-size: 23px; border-radius: 6px; }
.emoji-option:hover { background: #edf3e7; }
.page-footer { height: 58px; padding: 0 4px; color: #a6ad9d; font-size: 9px; letter-spacing: .5px; }
.tiny-leaf { color: #91a77e; margin-left: 7px; }
.content-dialog { width: min(590px, calc(100% - 32px)); padding: 0; border: 1px solid #e5eadf; border-radius: 17px; background: #fcfdf9; color: var(--ink); box-shadow: 0 25px 100px #22321725; max-height: 85dvh; }
.content-dialog::backdrop { background: #26341f55; backdrop-filter: blur(5px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dialog-brand { display: flex; align-items: center; gap: 9px; color: #6e815e; font-size: 11px; }
.dialog-brand .icon { width: 18px; height: 18px; }
#dialog-content { padding: 30px; }
.dialog-title { font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 26px; font-weight: 500; color: #3f5734; margin: 12px 0 21px; line-height: 1.7; }
.dialog-prose { font-size: 13px; line-height: 2; color: #79816e; }
.dialog-prose h3 { font-size: 15px; font-weight: 500; color: #617151; margin: 24px 0 8px; }
.dialog-prose p { margin: 0 0 14px; }
.dialog-prose .demo-note { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 25px; color: #a0aa94; font-size: 11px; }
.collection-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; text-align: left; width: 100%; background: #f2f5ed; border: 1px solid #e4eadb; border-radius: 9px; padding: 19px; margin-top: 12px; }
.collection-item:hover { background: #e9f0e1; }
.collection-item small { display: block; color: #98a58a; font-size: 9px; margin-bottom: 8px; letter-spacing: 1px; }
.collection-item strong { font-size: 13px; font-weight: 500; color: #647754; }
.collection-item .icon { width: 18px; height: 18px; color: #849772; }
.toast { position: fixed; bottom: 35px; left: 50%; transform: translateX(-50%); border-radius: 9px; background: #344b30; color: #fff; font-size: 12px; padding: 12px 21px; box-shadow: 0 5px 25px #20371920; z-index: 10; max-width: 90vw; }
@keyframes enter-message { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes enter-panel { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1400px) { .app-shell, .page-topline, .page-footer { max-width: 1240px; } .app-shell { grid-template-columns: 280px minmax(0, 1fr); } .message-list { padding-left: 40px; } .article-card { width: 440px; } .article-image { height: 183px; } }
@media (max-height: 850px) and (min-width: 761px) { .sidebar-editorial { padding-top: 25px; padding-bottom: 20px; } .sidebar-editorial h2 { font-size: 21px; margin-top: 12px; } .plant-art { height: 145px; margin-top: 0; } .sidebar-editorial p { font-size: 10px; } .sidebar-footer { padding-top: 16px; padding-bottom: 16px; } }
@media (max-height: 710px) and (min-width: 761px) { .plant-art { height: 94px; } .sidebar-editorial { padding-top: 18px; } .sidebar-brand { margin-top: -10px; } .sidebar-rule { margin: 22px 8px 16px; } }
@media (max-width: 1280px) and (min-width: 761px) { .app-shell, .page-topline, .page-footer { margin-left: 32px; margin-right: 32px; } }
@media (max-width: 960px) and (min-width: 761px) { .app-shell { grid-template-columns: 226px minmax(0, 1fr); } .sidebar { padding-left: 15px; padding-right: 15px; } .sidebar-editorial { padding-left: 12px; padding-right: 12px; } .sidebar-editorial h2 { font-size: 22px; } .message-list { padding-left: 22px; padding-right: 22px; } .chat-header { padding-left: 23px; padding-right: 23px; } .composer-area { padding-left: 20px; padding-right: 20px; } .composer-toolbar { gap: 10px; } .history-toolbar-tip { font-size: 9px; } .keyboard-hint { display: none; } }
@media (max-width: 760px) {
  body { background: #f5f7f3; }
  .page-topline, .page-footer, .sidebar { display: none; }
  .app-shell { display: flex; width: 100%; height: 100dvh; min-height: 0; max-height: none; border: 0; border-radius: 0; margin: 0; box-shadow: none; }
  .chat-panel { flex: 1; }
  .chat-header { padding: 15px 20px; min-height: 79px; gap: 12px; }
  .account-avatar { width: 42px; height: 42px; }
  .account-title { font-size: 17px; }
  .account-subtitle { font-size: 9px; }
  .header-actions { gap: 7px; }
  .conversation-status { padding: 0 20px; min-height: 34px; }
  .message-list { padding: 23px 18px; }
  .message-row { gap: 9px; margin-bottom: 20px; }
  .message-avatar { width: 31px; height: 31px; }
  .message-body { max-width: calc(100% - 42px); }
  .message-bubble { font-size: 12px; padding: 12px 14px; }
  .article-card { width: 402px; }
  .article-image { height: 172px; }
  .article-copy h3 { font-size: 13px; }
  .image-quote { font-size: 23px; }
  .composer-area { padding: 13px 15px max(12px, env(safe-area-inset-bottom)); }
  .composer-toolbar { gap: 10px; }
  .composer-divider { display: none; }
  .mode-toggle { flex: 0 0 42px; width: 42px; height: 44px; }
  .message-form { gap: 8px; }
  .send-button { flex: 0 0 62px; width: 62px; min-width: 62px; height: 44px; padding: 0; gap: 0; }
  .emoji-toggle { flex-basis: 62px; width: 62px; }
  .send-button .icon { display: none; }
  #message-input { padding-left: 10px; font-size: 16px; }
  #message-input::placeholder { font-size: 12px; }
  .composer-caption { justify-content: center; margin-top: 9px; font-size: 8px; }
  .keyboard-hint { display: none; }
  .history-panel { padding: 22px 18px 15px; }
  .history-toolbar { gap: 7px; }
  .history-toolbar-tip { font-size: 9px; }
  .history-toolbar > .icon { display: none; }
  .history-panel-heading h2 { font-size: 18px; }
  .emoji-panel { right: 15px; }
  #dialog-content { padding: 23px; }
  .dialog-title { font-size: 23px; }
}
@media (max-width: 360px) { .chat-header { padding-left: 15px; padding-right: 10px; } .account-subtitle { font-size: 8px; } .message-list { padding-left: 12px; padding-right: 12px; } .article-image { height: 150px; } .image-quote { font-size: 20px; } .image-overline { font-size: 8px; } .image-stamp { display: none; } .history-toolbar-tip { font-size: 8px; } .suggestion-chip { padding-left: 9px; padding-right: 9px; font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
