
:root{--paper:#fdfbf5;--cream:#f0eee6;--ink:#173c37;--gold:#b79a63;--gold-dark:#876639;--serif:"STKaiti","Kaiti SC","FangSong","Songti SC","Noto Serif CJK SC",serif}
body{background-color:#f6f2e7;background-image:radial-gradient(ellipse at 0% 18%,rgba(61,102,102,.08),transparent 42%),radial-gradient(ellipse at 100% 62%,rgba(188,158,113,.11),transparent 45%);color:#243c37}
.announcement{background:#e8e2d3;color:#5e6b5e;border-bottom:1px solid #d2c7ac;height:30px;font-family:var(--serif)}.announcement .muted{color:#838774}
.site-header{background:#faf8f0f5;border-bottom:1px solid #dacdb7;box-shadow:0 4px 25px #1e40300b}.head-inner{height:76px}.container{max-width:1370px}
.brand-mark{background:#f9f2e3;border:0;border-radius:0;color:#77613c;width:48px;height:48px;font-size:39px}.brand strong{font-family:var(--serif);font-weight:700;font-size:27px;color:#142e2d}.brand small{font-size:9px;letter-spacing:1px;color:#9d8872;font-family:var(--serif)}.navigation{gap:23px}.navigation a{font-size:14px;font-family:var(--serif);font-weight:bold;color:#344a44}.navigation a.active{color:#153d35;border-bottom:2px solid #1f5041;padding-bottom:7px}.navigation .nav-cta{padding:10px 17px;background:#173d37;color:#fff;border:1px solid #b5a075}
.hero{color:#183a35;min-height:585px;background:#e8e6dd;background-image:linear-gradient(90deg,#f5f2e8 0%,#edeae0 43%,#dae0d9 100%);border-bottom:2px solid #d3bd94}.hero::before{background:radial-gradient(ellipse at 16% 82%,#98abb02c,transparent 48%),linear-gradient(0deg,rgba(234,236,228,.86),transparent 60%)}.hero::after{border-color:#8f9f931e}.hero-grid{grid-template-columns:minmax(0,1.07fr) minmax(0,.93fr);min-height:560px}.hero-copy{padding:68px 0 77px}.hero h1{font-weight:800;font-size:clamp(40px,4.1vw,65px);line-height:1.42;letter-spacing:4px;color:#162e2a;margin:18px 0 7px;text-shadow:0 2px #fff5}.hero h1 em{color:#99794b}.hero-en{font-family:var(--serif);font-style:normal;color:#856d48;letter-spacing:5px}.hero-lead{color:#596c66;max-width:620px;font-size:15px}.eyebrow,.overline{color:#a68450}.tiny-line{background:#aa9468}.hero-points{color:#688176;font-size:12px}.hero-bottom{color:#5e7970;border-top:1px solid #acb4aa85;background:#f2eee73b}.sky-visual{width:560px;height:495px;background-image:linear-gradient(90deg,#e9ece600,transparent),url('ink-home.webp');background-position:47% 55%;background-size:cover;border-radius:50%;filter:drop-shadow(0 12px 29px #16433d2d);mask-image:radial-gradient(ellipse at 50% 49%,#000 28%,#000c 56%,transparent 76%)}.sky-visual .orbit,.sky-visual .core,.sky-visual .compass-point,.sky-visual .visual-caption{display:none}.hero .button-primary{background:#1d463e;color:#f6efe2;border-color:#c9b990}.hero .button-outline{color:#385a4e;border-color:#a9a393;background:#ffffffb6}.hero .button-outline:hover{background:#fff}.hero-points{font-family:var(--serif)}.hero .grain{opacity:.3}
.module-intro{padding:67px 0 78px;position:relative;background-image:radial-gradient(ellipse at 12% 85%,#779f991c,transparent 41%),linear-gradient(#f6f2e7,#efece1)}.section-heading.centered{margin-bottom:30px}.section-heading h2,.tool-intro h2{font-weight:700}.feature-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.feature-card{height:345px;min-height:unset;padding:22px 22px 22px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden;border:1px solid #dbccb5;background-color:#f2eee3;background-size:cover;background-position:center;isolation:isolate;box-shadow:0 6px 17px #304d3817;border-radius:8px}.feature-card:before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(0deg,#fff9ed 4%,#fff9edea 31%,#fdf8f24d 66%,transparent 100%);}.feature-bazi{background-image:url('ink-bazi.webp')}.feature-naming{background-image:url('ink-naming.webp')}.feature-stars{background-image:url('ink-stars.webp');background-color:#183d45}.feature-feng{background-image:url('ink-fengshui.webp')}.feature-glyph{font-size:28px;height:auto;margin:auto 0 0;color:#805b2c;text-shadow:0 1px #fff}.feature-glyph span{font-size:23px}.feature-glyph.zodiac{font-size:40px}.feature-glyph.zodiac span{font-size:20px}.feature-card h3{font-weight:700;font-size:25px;color:#1b3930;margin:4px 0}.feature-card p{color:#51695e;font-size:12px;line-height:1.8}.feature-top{position:absolute;top:0;left:0;right:0;padding:17px 19px;color:#fdf5dc;text-shadow:0 1px 4px #0007;background:linear-gradient(#0c292d88,transparent)}.feature-num{letter-spacing:1px}.feature-arrow{font-size:22px}.feature-card .text-link{color:#7b5a30}.culture-strip{margin-top:22px;display:grid;grid-template-columns:repeat(4,1fr);align-items:center;border:1px solid #ded0b4;background:#fdfaf1d9;padding:18px 8px;color:#795f38;text-align:center;font-family:var(--serif);font-size:14px}
.page-banner{position:relative;min-height:225px;background-color:#f0ece1;overflow:hidden;border-top:1px solid #e4d9c4;border-bottom:1px solid #d8c39d;display:flex;align-items:center;isolation:isolate}.page-banner:after{position:absolute;z-index:-1;content:"";right:0;top:-20%;bottom:-20%;width:58%;background-image:linear-gradient(90deg,#f1eee5 0%,#f1eee533 16%,transparent 42%),var(--banner-image);background-position:center;background-size:cover;mask-image:linear-gradient(90deg,transparent,#000 24%,#000 90%,transparent)}.page-banner:before{content:"";position:absolute;inset:0;z-index:-1;background-image:radial-gradient(ellipse at 18% 110%,#718e8f28,transparent 53%)}.page-banner .banner-content{width:100%;padding:29px 25px}.banner-small{font-family:var(--serif);font-size:11px;color:#96845f;letter-spacing:2px}.banner-content h2{font:700 44px var(--serif);color:#183d38;letter-spacing:7px;margin:8px 0 5px}.banner-content p{font:15px var(--serif);letter-spacing:2px;color:#657269;margin:0}.banner-underline{margin-top:13px;background:#aa8c53;height:2px;width:90px}
.tool-section{padding:0 0 88px;background:#f5f1e8;background-image:radial-gradient(ellipse at 0 70%,#819b981a,transparent 42%)}.tool-section>.container{padding-top:40px}.tool-intro h2{font-size:33px}.panel{border:1px solid #dbcbb0;background:#fffcf5;border-radius:7px;box-shadow:0 8px 24px #253d2810}.form-panel{background-image:radial-gradient(circle at 10% 100%,#b7d1c329,transparent 45%)}.form-panel h3,.result-title{font-weight:700}.button-primary{background:#204b41;border-color:#c7b078;color:#fff8e7;border-radius:5px}.button-primary:hover{background:#396953}.name-card{border:1px solid #decfb2;background:#fcf9f0;border-radius:6px;box-shadow:0 3px 15px #1025180a}.name-word{font-weight:800}.result-title,.subhead,.name-word{font-family:var(--serif)}.stars-section{background:#0d292f;background-image:radial-gradient(ellipse at 86% 45%,#47647175,transparent 53%),linear-gradient(#112d34,#0d2528)}.stars-section .page-banner{background:#162b3b;border-color:#8c744c}.stars-section .page-banner:after{opacity:.8}.stars-section .banner-content h2,.stars-section .banner-content p{color:#ffefce;text-shadow:0 1px 4px #0008}.stars-section .banner-small{color:#cbb184}.stars-section .tool-intro{margin-top:0}
.fengshui-section{background:#f4f0e6;padding:0 0 87px}.feng-body{padding-top:41px}.feng-main{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(290px,1fr);gap:20px}.room-panel,.compass-panel{padding:25px}.room-panel h3,.compass-panel h3{font:700 23px var(--serif);color:#1c493d;margin:0 0 7px}.room-selector{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.room-tile{border:1px solid #dfd5c4;background:linear-gradient(160deg,#fff9ef,#f5eee2);padding:15px 3px 12px;display:flex;align-items:center;gap:3px;flex-direction:column;color:#31564b;border-radius:6px;transition:transform .2s}.room-tile:hover{transform:translateY(-2px)}.room-tile.active{background:#1a453e;border-color:#a98851;color:#fff5da}.room-icon{font:35px var(--serif)}.room-tile strong{font:16px var(--serif)}.room-tile small{font:10px var(--serif)}.room-detail{border:1px solid #e4d7bc;background:#f9f6eb;padding:24px 28px;margin-top:19px;border-radius:6px;position:relative}.room-detail-flag{font-size:10px;letter-spacing:2px;color:#967343}.room-detail h4{font:26px var(--serif);margin:9px 0;color:#214b40}.room-detail p{font-size:13px;color:#60726a;line-height:2}.room-tags{display:flex;flex-wrap:wrap;gap:9px}.room-tags span{background:#e8efe7;border:1px solid #c6d5c2;padding:5px 11px;font-size:11px;color:#52735c;border-radius:12px}.feng-knowledge{padding:16px 5px 0}.feng-knowledge h4{font:20px var(--serif);margin:0;color:#856e49}.feng-knowledge p{font-size:12px;line-height:1.9;color:#7d8071}.compass-panel .panel-tip{line-height:1.9}.bagua-ui{height:285px;width:285px;max-width:100%;margin:15px auto;position:relative;display:grid;place-items:center}.bagua-layers{height:195px;width:195px;border:3px double #a99260;border-radius:50%;display:grid;place-items:center;position:relative;background:repeating-conic-gradient(from 0deg,#b9a77a5e 0deg 1deg,transparent 1deg 22.5deg),radial-gradient(circle,#efe9d9 50%,#f9f6ea)}.bagua-layers::before{content:"乾 ☰   坎 ☵   艮 ☶   震 ☳  巽 ☴   离 ☲   坤 ☷   兑 ☱";position:absolute;inset:8px;border-radius:50%;font:12px var(--serif);color:#887044;letter-spacing:1px;text-align:center;padding-top:12px}.bagua-layers:after{content:"";border:1px dashed #ab9c74;position:absolute;inset:24px;border-radius:50%}.bagua-inner{background:#19463e;border:1px solid #d7b879;color:#e5cd96;display:grid;place-items:center;font-size:65px;border-radius:50%;width:105px;height:105px;z-index:1}.direction{position:absolute;line-height:1;font:12px var(--serif);color:#647466}.dir-n{top:0}.dir-s{bottom:0}.dir-e{right:0}.dir-w{left:0}.dir-nw{left:38px;top:34px}.dir-ne{right:38px;top:34px}.dir-sw{left:38px;bottom:34px}.dir-se{right:38px;bottom:34px}.compass-help{background:#eef2e7;padding:15px 18px;border:1px solid #d9dfcb}.compass-help strong{font-family:var(--serif);color:#284d41}.compass-help p{font-size:11px;color:#6d796f;line-height:1.9;margin:4px 0}.library-section{background:#faf7ef}
@media(max-width:1120px){.navigation{gap:14px}.navigation a{font-size:12px}.brand small{font-size:7px}.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-card{height:300px}.sky-visual{width:420px;height:420px}.hero-grid{grid-template-columns:1.1fr .9fr}.hero h1{font-size:48px}.culture-strip{grid-template-columns:repeat(2,1fr);row-gap:10px}}
@media(max-width:760px){.announcement{font-size:9px}.head-inner{height:66px}.brand strong{font-size:21px}.navigation{top:66px}.navigation a.active{border:0}.hero{min-height:auto}.hero-grid{display:flex;flex-direction:column}.hero-copy{padding:42px 0 0}.hero h1{font-size:clamp(36px,10vw,48px)}.hero-lead{font-size:12px}.sky-visual{height:288px;width:355px;margin:-1px auto 44px}.hero-bottom{padding:0 20px}.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.feature-card{height:288px;padding:13px}.feature-glyph{font-size:20px}.feature-glyph span{font-size:17px}.feature-card h3{font-size:20px}.feature-card p{font-size:11px;margin-bottom:12px}.feature-top{padding:10px;font-size:8px}.culture-strip{font-size:11px;padding:12px 0}.page-banner{min-height:165px}.page-banner:after{width:69%;opacity:.83}.page-banner .banner-content{padding:25px 19px}.banner-content h2{font-size:29px;letter-spacing:2px}.banner-content p{font-size:11px}.banner-small{font-size:8px}.tool-section>.container,.feng-body{padding-top:30px}.feng-main{grid-template-columns:1fr;gap:12px}.room-panel,.compass-panel{padding:18px}.room-selector{grid-template-columns:repeat(3,1fr)}.room-tile{padding:9px 0}.room-icon{font-size:25px}.room-tile small{font-size:9px}.bagua-ui{height:250px;width:250px}.bagua-layers{width:172px;height:172px}.fengshui-section{padding-bottom:60px}.hero .button{font-size:12px;padding:12px 11px}.star-sky{min-height:265px}}
@media(max-width:370px){.feature-grid{grid-template-columns:1fr}.feature-card{height:240px}.hero h1{font-size:34px}.sky-visual{width:280px;height:258px}}

/* V3: responsive observation date navigation */
.star-controls .date-shift{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0 20px}
.star-controls .date-shift-btn,.star-controls .year-jump-btn{background:#f5f1e5;border:1px solid #cfc5ac;color:#25463f;border-radius:5px;padding:11px 5px;font-size:12px;cursor:pointer}
.star-controls .date-shift-btn:hover,.star-controls .year-jump-btn:hover{background:#e6e8d8}
.star-controls .year-jump{display:grid;grid-template-columns:minmax(0,1fr) 98px;gap:8px;margin:0 0 22px}
.star-controls .year-jump input{margin:0;min-width:0}
.star-controls .year-jump-btn{background:#e9e4d4;font-size:12px;font-weight:600}
@media(max-width:390px){.star-controls .date-shift-btn{font-size:11px;padding:10px 2px}.star-controls .year-jump{grid-template-columns:minmax(0,1fr) 85px}}
