@font-face{font-family:HerbalinnSong;src:local("Noto Serif CJK SC"),local("Source Han Serif SC"),local("Songti SC"),local("SimSun");font-display:swap}
:root{--paper:#f7f7f2;--pine:#274e43;--ink:#283b33;--sage:#89967b;--muted:#747c70;--line:#d8dccf;--bronze:#947843;--serif:HerbalinnSong,"Songti SC","STSong","SimSun",serif;--sans:"Microsoft YaHei","PingFang SC",system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.7 var(--sans)}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--bronze);outline-offset:4px}::selection{background:#d9e2d0}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--serif);font-weight:500}svg{width:20px;height:20px;vertical-align:middle}button svg{pointer-events:none}.skip{position:absolute;top:-60px;left:20px;background:white;padding:10px;z-index:99}.skip:focus{top:10px}
.site-header{height:94px;display:flex;align-items:center;justify-content:space-between;padding:0 4%;border-bottom:1px solid var(--line);gap:30px;background:rgba(247,247,242,.96)}.brand{display:flex;align-items:center;gap:13px;flex-shrink:0}.brand strong{font:600 28px/1.25 var(--serif);letter-spacing:3px;color:var(--pine)}.brand small{display:block;font:13px/1.6 Georgia,serif;letter-spacing:.7px}.site-header nav{display:flex;gap:40px;height:100%;align-items:center}.site-header nav a{position:relative;display:flex;align-items:center;height:100%;font-size:15px;white-space:nowrap}.site-header nav a[aria-current="page"]{color:var(--pine);font-weight:600}.site-header nav a[aria-current="page"]:after{content:"";position:absolute;bottom:19px;left:16%;right:16%;height:2px;background:var(--pine)}.parent-brand{font:19px var(--serif);color:var(--bronze);border-left:1px solid #c7c6b6;padding-left:22px;letter-spacing:3px}.parent-brand span{display:block;font:10px/2 var(--sans);letter-spacing:1px}.site-footer{min-height:52px;display:flex;align-items:center;justify-content:center;gap:28px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);padding:12px 22px}.site-footer button{border:0;background:none;font-size:11px;padding:0 0 0 25px;border-left:1px solid var(--line)}
.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;min-height:calc(100svh - 146px);max-width:1800px;margin:auto}.chat-space{position:relative;display:flex;flex-direction:column;min-width:0;padding:22px 38px 23px 18%;background:none left center/cover no-repeat;min-height:690px}.chat-space:has(.messages:not([hidden])){background-size:auto 100%;background-position:left center}.chat-head{height:28px;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;color:var(--muted)}.mode-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--sage);margin-right:7px}.plain{background:none;border:0;padding:5px;color:var(--muted);font-size:12px}.plain:hover{color:var(--pine)}.welcome{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:55px 0 80px;min-height:440px}.welcome .emblem{width:100px;height:100px;margin-bottom:28px}.welcome h1{font-size:clamp(28px,3.1vw,47px);line-height:1.5;color:var(--pine);letter-spacing:3px;margin-bottom:12px;white-space:nowrap}.welcome p{font:17px/1.8 var(--serif);color:#697164;letter-spacing:1px;margin-bottom:45px}.suggestions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.suggestions button{background:#f7f7f2bd;border:1px solid #aab39c;border-radius:24px;padding:11px 16px;font:14px var(--serif);display:flex;align-items:center;gap:8px;transition:background .18s}.suggestions button:hover{background:#e9eddf}.suggestions svg{width:19px;height:19px;color:#7c8a6a}.composer-wrap{width:100%;margin-top:auto}.composer{display:flex;gap:12px;align-items:flex-end;background:rgba(255,255,252,.94);padding:12px 13px 12px 22px;border:1px solid #99a88e;border-radius:26px;box-shadow:0 8px 25px #314d3710}.composer textarea{background:none;border:0;outline:none;resize:none;min-height:40px;max-height:130px;line-height:24px;padding:8px 0;width:100%;font-size:14px;color:var(--ink)}.send{width:43px;height:43px;border-radius:50%;border:0;background:var(--pine);color:white;display:grid;place-items:center;flex-shrink:0}.composer-note{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);padding:8px 15px 0;gap:12px}.composer-note button{font-size:10px;background:none;border:0;padding:0;color:var(--muted)}.today-rail{padding:35px 32px;margin:26px 0;border-left:1px solid #c6cfbc;position:relative}.calendar-date{font:18px var(--serif);margin:0 0 8px}.calendar-lunar{font-size:11px;color:var(--muted);margin-bottom:22px}.term-title{font-size:65px;line-height:1.3;color:var(--pine);letter-spacing:12px;margin-bottom:18px}.gold-line{width:28px;height:2px;background:var(--bronze);margin:0 0 22px}.term-line{font:19px/1.9 var(--serif);letter-spacing:1px;margin-bottom:17px}.term-next{color:var(--muted);font-size:11px}.rail-divider{height:1px;background:var(--line);margin:30px 0}.today-rail h3{font-size:23px;letter-spacing:3px;margin-bottom:21px}.hex-row{display:flex;align-items:center;gap:23px;margin-bottom:17px}.hexagram{width:58px;display:flex;flex-direction:column;gap:5px;flex-shrink:0}.hexagram .yao{display:flex;gap:8px;height:6px}.yao i{background:#647660;flex:1}.hex-title{font:27px var(--serif);letter-spacing:3px}.tiny{font-size:11px;color:var(--muted)}.text-link{display:inline-flex;align-items:center;gap:8px;border:0;border-bottom:1px solid #b6a581;padding:4px 0;color:#826636;background:none;font-size:13px}.text-link svg{width:15px;height:15px}.rail-bottom{margin-top:30px;font:13px/2 var(--serif);color:var(--muted)}
.messages{overflow:auto;flex:1;max-height:calc(100svh - 300px);min-height:390px;padding:30px 8px 25px;scroll-behavior:smooth}.message{margin:0 0 26px;max-width:100%;animation:appear .2s ease}.message-label{font-size:11px;color:#697967;margin-bottom:7px;display:flex;align-items:center;gap:8px}.message-label img{width:25px;height:25px}.message-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.95;padding:17px 21px;border-radius:3px 17px 17px;background:#ffffffed;border:1px solid #e1e5d8}.message.user{margin-left:16%}.message.user .message-label{justify-content:flex-end}.message.user .message-body{background:#e6ecdf;border:0;border-radius:17px 3px 17px 17px}.message.error .message-body{border-color:#b58b66;background:#fff9f0}.message-tools{display:flex;gap:16px;margin-top:8px}.message-tools button{border:0;background:none;color:var(--muted);font-size:11px;padding:2px}.message-tools button:hover{color:var(--pine)}.thinking{color:var(--muted)}.feedback{margin-top:8px;color:var(--bronze);font-size:11px}[hidden]{display:none!important}
.content-page{max-width:1150px;margin:0 auto;padding:52px 32px 75px;min-height:calc(100svh - 146px)}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:36px;gap:24px}.page-heading h1{font-size:38px;letter-spacing:4px;margin-bottom:8px;color:var(--pine)}.page-heading p{color:var(--muted);font-size:13px;margin:0}.pill{font-size:11px;border:1px solid #cbd3c1;color:#68765e;padding:4px 12px;border-radius:20px;white-space:nowrap}.daily-feature{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fcfcf8}.season-panel{min-height:360px;padding:34px;position:relative;background:none left center/cover;display:flex;flex-direction:column;align-items:flex-end}.season-panel h2{font-size:65px;color:var(--pine);margin:25px 0 12px;letter-spacing:12px}.season-panel p{font-family:var(--serif);font-size:18px;max-width:200px;text-align:right}.daily-reading{padding:34px 38px}.daily-reading h2{font-size:29px;margin-bottom:18px}.daily-reading .hex-row{margin:21px 0}.daily-reading p{color:#626d5f;font-size:13px;line-height:1.95}.section-title{display:flex;justify-content:space-between;align-items:center;margin:38px 0 18px}.section-title h2{font-size:25px;letter-spacing:2px;margin:0}.editorial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}.editorial-item{border-top:1px solid #bbc7b0;padding:20px 0}.editorial-item .category{font-size:11px;color:var(--bronze)}.editorial-item h3{font-size:22px;margin:12px 0}.editorial-item p{font-size:13px;color:var(--muted);line-height:1.95}.soft-note{font-size:12px;background:#edf0e6;padding:15px 20px;margin-top:30px;border-radius:4px;color:#68725d}.toolbar{display:flex;justify-content:space-between;gap:20px;margin-bottom:24px;align-items:center}.filters{display:flex;gap:8px;flex-wrap:wrap}.filters button{padding:7px 18px;border:1px solid transparent;background:none;border-radius:20px;font-size:13px}.filters button.active{background:var(--pine);color:white}.search{background:#fffefa;border:1px solid var(--line);padding:9px 13px;border-radius:4px;max-width:240px;width:100%}.knowledge-list{display:grid;grid-template-columns:1fr 1fr;gap:0 36px}.article-item{display:grid;grid-template-columns:66px 1fr;gap:20px;padding:25px 0;border-top:1px solid var(--line);text-align:left;background:none;border-right:0;border-bottom:0;border-left:0;width:100%}.article-item:hover h2{color:var(--bronze)}.article-symbol{width:65px;height:70px;background:#e8ede0;border-radius:3px;color:#697b5e;display:grid;place-items:center;font:32px var(--serif)}.article-item h2{font-size:21px;margin:4px 0 8px}.article-item p{font-size:12px;color:var(--muted);margin:0}.article-meta{font-size:10px;color:var(--bronze)}.empty{padding:60px;text-align:center;color:var(--muted)}.brand-relation{display:flex;align-items:center;gap:25px;margin:35px 0;font:24px var(--serif);color:var(--pine)}.brand-relation small{font:11px var(--sans);color:var(--muted);display:block}.brand-relation svg{width:25px}.primary{border:1px solid var(--pine);background:var(--pine);color:white;padding:11px 23px;border-radius:4px;font-size:13px}.secondary{border:1px solid #a9b59e;background:none;padding:10px 20px;border-radius:4px;font-size:13px}.actions{display:flex;gap:12px;flex-wrap:wrap}
dialog{border:1px solid #c6cfbb;border-radius:8px;background:#fafaf5;color:var(--ink);width:min(680px,calc(100% - 28px));max-height:85svh;padding:0;box-shadow:0 24px 100px #18372a30}dialog::backdrop{background:#1b302856;backdrop-filter:blur(4px)}.dialog-top{position:sticky;top:0;background:#fafaf5;border-bottom:1px solid var(--line);padding:14px 25px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);z-index:1}.dialog-top button{border:0;background:none;font-size:20px;width:30px;height:30px}#dialog-content{padding:30px}.article-content h1{font-size:30px;color:var(--pine);line-height:1.5}.article-content h2{font-size:21px;margin-top:28px}.article-content p{line-height:2;font-size:14px}.article-content blockquote{margin:22px 0;padding:12px 20px;border-left:2px solid var(--sage);background:#eef1e7;font:20px/1.8 var(--serif)}.article-content .source{font-size:11px;color:var(--muted);margin-top:25px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.form-grid label{display:flex;flex-direction:column;gap:8px;font-size:12px}.form-grid input,.form-grid select{padding:10px;border:1px solid #c6cfbb;border-radius:3px;background:white;min-width:0}.check-label{display:flex;align-items:flex-start;gap:9px;font-size:12px;margin:18px 0}.bazi-result{padding:18px;background:#e8eddf;margin:20px 0;line-height:2;white-space:pre-wrap}.editor-form{display:grid;gap:15px;max-width:780px}.editor-form label{display:flex;flex-direction:column;gap:6px}.editor-form input,.editor-form textarea{padding:13px;border:1px solid #c6cfbb;background:white;border-radius:4px}.editor-form textarea{min-height:220px}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,20px);background:var(--pine);color:#fff;padding:11px 22px;border-radius:5px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:100;font-size:13px}.toast.show{opacity:1;transform:translate(-50%,0)}
.chat-head #mode-label{background:#f7f7f2ed;border:1px solid #dce2d4;padding:3px 10px;border-radius:20px;white-space:nowrap}.welcome h1{font-weight:600}.site-header nav a{font-size:16px}.composer textarea{font-size:15px}.suggestions button{font-size:16px;padding:13px 18px}.chat-layout{grid-template-columns:minmax(0,1fr) 340px}.tiny{font-size:12px}.calendar-lunar,.term-next{font-size:12px}.composer-note,.composer-note button{font-size:11px}
.message{animation:none}.message-body{font-size:15px}.messages{max-height:calc(100svh - 340px)}.chat-space:has(.messages:not([hidden])){background-image:none}
@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1600px){.chat-space{padding-left:24%}.welcome h1{font-size:48px}}
@media(max-width:1150px){.site-header{padding:0 25px;gap:20px}.site-header nav{gap:25px}.parent-brand{display:none}.chat-layout{grid-template-columns:minmax(0,1fr) 250px}.chat-space{padding-left:12%;padding-right:25px}.today-rail{padding:30px 25px}.welcome h1{font-size:32px;letter-spacing:1px}.suggestions{gap:8px}.suggestions button{font-size:13px;padding:10px 12px}.welcome p{font-size:15px}.term-title{font-size:55px}}
@media(max-width:800px){.site-header{height:auto;min-height:112px;padding:15px 20px 0;flex-direction:column;gap:8px}.brand img{width:37px;height:37px}.brand strong{font-size:23px}.brand small{font-size:10px}.site-header nav{gap:27px;min-height:43px}.site-header nav a{height:43px;font-size:13px}.site-header nav a[aria-current="page"]:after{bottom:0}.chat-layout{display:block;min-height:calc(100svh - 164px)}.chat-space{min-height:calc(100svh - 164px);padding:15px 22px 20px;background-position:14% center}.welcome{padding:45px 0 55px;min-height:400px}.welcome .emblem{width:85px;height:85px;margin-bottom:25px}.welcome h1{font-size:32px}.welcome p{font-size:14px;letter-spacing:0;margin-bottom:28px}.suggestions{max-width:400px;gap:9px}.suggestions button{font-family:var(--sans);font-size:11px;background:#fafbf5df}.today-rail{display:none}.composer-note{font-size:10px;padding:9px 3px 0}.composer-note span{max-width:75%}.composer{border-radius:22px;padding-left:17px}.composer textarea{font-size:13px}.site-footer{font-size:10px;gap:14px;flex-wrap:wrap;padding:10px 16px}.site-footer button{padding-left:14px;font-size:10px}.messages{min-height:330px;max-height:calc(100svh - 330px)}.message-body{font-size:13px;padding:14px 16px}.content-page{padding:35px 22px 50px}.page-heading{align-items:flex-start;margin-bottom:26px}.page-heading h1{font-size:30px}.page-heading p{font-size:12px}.daily-feature{grid-template-columns:1fr}.season-panel{min-height:260px;padding:25px}.daily-reading{padding:28px}.editorial-grid{grid-template-columns:1fr;gap:0}.knowledge-list{grid-template-columns:1fr}.toolbar{flex-direction:column;align-items:stretch;gap:17px}.search{max-width:none}.filters{gap:2px}.filters button{padding:7px 14px;font-size:12px}.page-heading .pill{font-size:10px}#dialog-content{padding:22px}.form-grid{gap:12px}.article-content h1{font-size:25px}.chat-head{font-size:10px}}
@media(max-width:800px){.chat-space{background-size:100% auto;background-position:left bottom}.welcome p{font-size:14px}.message-body{font-size:14px}.message-label{font-size:12px}}
@media(max-width:380px){.site-header nav{gap:20px}.welcome h1{font-size:27px}.welcome p{font-size:12px}.chat-space{padding-left:16px;padding-right:16px}.suggestions button{padding:9px 10px}.composer-note{gap:5px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
