﻿/* 财台 V22.2: quieter layouts, clear task hierarchy, existing jade identity. */
:root{--refresh-ink:#173f35;--refresh-muted:#596b62;--refresh-line:#dce3db;--refresh-gold:#b69a58}
body{background:#f7f8f4;color:#233f35;font-family:"Microsoft YaHei","PingFang SC",sans-serif;line-height:1.7}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible{outline:3px solid #b69a58;outline-offset:4px}
body.chapter-cover .main-content{display:block;padding:0 32px 40px;min-height:0;background:#f7f8f4}
.refresh-home{max-width:1280px;margin:0 auto;width:100%}
.refresh-nav{height:98px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:24px}
.refresh-brand{font:38px var(--serif);color:var(--refresh-ink);text-decoration:none;display:flex;align-items:center;gap:22px;white-space:nowrap}
.refresh-brand span{font:16px/1.5 var(--sans);padding-left:22px;border-left:1px solid #cdd7cd;letter-spacing:1px}
.refresh-nav>div{display:flex;gap:30px;align-items:center;font-size:17px}
.refresh-nav a{color:var(--refresh-ink);text-decoration:none}
.refresh-nav button{background:none;border:1px solid #bdcbbd;border-radius:7px;padding:10px 18px;color:var(--refresh-ink);font-size:16px}
.refresh-hero{position:relative;overflow:hidden;min-height:430px;border-radius:12px;background:linear-gradient(90deg,#eff1e6 0%,#eff1e6f2 32%,#eff1e621 75%),url('jiangnan-scroll.webp') center right/cover;border:1px solid #dce0d1}
.refresh-hero-copy{position:relative;padding:48px 54px;max-width:700px;z-index:1}
.refresh-kicker{font-size:15px;font-weight:600;letter-spacing:2px;color:#657850;margin:0 0 18px}
.refresh-hero h1{font:500 clamp(38px,4vw,58px)/1.35 var(--serif);color:#153f34;letter-spacing:2px;margin:0 0 22px}
.refresh-lead{font-size:19px;line-height:1.9;color:#405b4d;margin:0 0 28px}
.refresh-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:26px}
.refresh-actions .button{font-size:18px;min-height:52px;padding:13px 22px;text-decoration:none;border-radius:7px;display:inline-flex;align-items:center;justify-content:center}
.refresh-actions .primary{background:#244f40;color:#fff;border:1px solid #244f40;box-shadow:none}
.refresh-actions .secondary{background:#fffdf4eb;color:#244f40;border:1px solid #91a78e}
.refresh-hero-caption{position:absolute;right:30px;bottom:22px;font:16px var(--serif);letter-spacing:3px;color:#2e5744;background:#fffdf5c9;padding:8px 14px}
.refresh-entry{padding:44px 0 30px}
.refresh-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:24px}
.refresh-heading .refresh-kicker{margin-bottom:8px}
.refresh-heading h2{font:500 30px/1.5 var(--serif);margin:0;color:#173f35}
.refresh-heading>p{font-size:17px;color:#647166;margin:0 0 6px}
.refresh-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.refresh-entry-card{padding:30px 34px;background:#fffefa;border:1px solid var(--refresh-line);border-radius:10px;display:block;text-decoration:none;color:var(--refresh-ink);transition:transform .18s,border-color .18s;box-shadow:0 4px 16px #233f3505}
.refresh-entry-card:hover{transform:translateY(-3px);border-color:#7f9d84;box-shadow:0 10px 25px #233f350b}
.refresh-card-label{font-size:16px;color:#68775a;display:flex;gap:12px;align-items:center}
.refresh-card-label>span{color:#ad914d;border-left:3px solid #baa15f;padding-left:12px;font-weight:600}
.refresh-entry-card h3{font-size:28px;font-weight:600;margin:16px 0 10px}
.refresh-entry-card p{font-size:18px;line-height:1.8;color:var(--refresh-muted);margin:0;max-width:500px}
.refresh-tags{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 25px}
.refresh-tags span{font-size:15px;color:#506648;padding:5px 12px;border-radius:4px;background:#f0f3e8}
.refresh-entry-card>strong{border-top:1px solid #e5e9df;padding-top:20px;display:flex;justify-content:space-between;font-size:18px;font-weight:600}
.refresh-bottom{padding:26px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:10px;background:#eaf0e5;margin-bottom:16px}
.refresh-bottom h3{font-size:21px;margin:0 0 5px;font-weight:500}
.refresh-bottom p{font-size:17px;color:#596b55;margin:0}
.refresh-bottom .button{white-space:nowrap;background:#fffefa;border-color:#c9d4bf}
.sidebar{background:#f0f3e9;border-right:1px solid #dde4d7}
.nav-item{min-height:46px;line-height:1.6;border-radius:7px}
.nav-item.active{background:#dee8d6;color:#183f30}
.topbar{min-height:76px;border-bottom:1px solid #e0e5db;background:#fafbf7;padding-block:15px;height:auto}
.topbar-actions>span:first-child{font-size:14px!important;color:#657463!important}
.topbar-actions .header-avatar,.topbar-actions>.icon-button{display:none}
.topbar-actions .welcome-tools button{border-radius:6px;box-shadow:none}
.main-content{padding:32px clamp(24px,3vw,52px) 40px}
.pavilion-hero.ads-hero{height:auto;min-height:390px;border:1px solid #dfe3d8;border-radius:12px}
.ads-hero .pavilion-copy{padding:38px 44px;min-height:390px}
.ads-hero h1{font-size:clamp(34px,3.1vw,52px);line-height:1.4;letter-spacing:2px}
.ads-hero .pavilion-copy .ads-invitation{font-family:var(--sans);letter-spacing:2px;font-size:16px;margin-bottom:18px;color:#607455}
body[data-chapter="ads"] .ads-hero .pavilion-copy>p:not(.ads-invitation){font-size:18px;margin:18px 0 22px;line-height:1.8}
.ads-section-heading{margin:36px 0 22px}
.ads-section-heading h2,.pavilion-section-title h2{font-size:28px;letter-spacing:0}
.ads-section-heading .small-seal{display:none}
.ads-practice{gap:20px}
.ads-step:not(:last-child):after{display:none}
body[data-chapter="ads"] .ads-step{padding:30px 24px;min-height:170px;border-radius:9px;background:#fffefa}
body[data-chapter="ads"] .ads-step.first{border-top:3px solid #9eab79}
body[data-chapter="ads"] .ads-step h3{font-size:23px;letter-spacing:0}
.ads-step>small{display:none}
.ads-stats{border:0;border-radius:9px;background:#edf2e8;gap:30px;padding:24px 28px;margin:24px 0 38px}
.ads-stats-intro h3{font-size:21px}.ads-stats-intro p{font-size:16px;color:#607153}
.ads-stat>strong{font-size:30px}.ads-motto{display:none}
.restored-tools{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.restored-tools .tool-card-art{height:210px}.restored-tools .book-object{width:110px;height:150px}
.restored-tools .tool-card-content{padding:24px}.restored-tools .tool-card-title h3{font-size:23px}
body[data-chapter="ads"] .restored-tools .tool-card-content>p{font-size:18px;line-height:1.8}
.chapter-block.chapter-content{padding:0;border:0;background:none;margin-bottom:20px}
.chapter-content .chapter-heading{padding:44px;border:1px solid #dce3d4;border-radius:12px;background:linear-gradient(90deg,#eff2e8 10%,#eff2e8e8 50%,#eff2e833),url('jiangnan-scroll.webp') right center/cover;min-height:340px;margin-bottom:24px}
.chapter-content .chapter-heading h1{font:500 clamp(32px,3vw,48px)/1.4 var(--serif);color:#204836;margin:14px 0 18px}
.chapter-content .chapter-heading p:not(.eyebrow){font-size:18px;line-height:1.9;color:#506548}
.chapter-content .chapter-seal{display:none}
.chapter-content>.studio-bar{padding:18px 24px;background:#edf2e7;border-radius:8px;gap:20px;margin:0 0 28px;display:flex;flex-wrap:wrap}
.chapter-content .w2-badge{background:none;border:0;font-size:17px;padding:0;color:#4d6547}
.chapter-content .chapter-steps{gap:22px;grid-template-columns:repeat(3,minmax(0,1fr))}
.chapter-content .chapter-step{display:flex;padding:28px;border-radius:10px;min-height:275px;box-shadow:none}
.chapter-content .chapter-step-top{font-size:18px;color:#a38a4c;margin-bottom:18px}
.chapter-content .chapter-step strong{font:600 25px var(--sans)}
.chapter-content .chapter-step b{font-size:18px;margin-top:14px}
.chapter-content .chapter-step p{font-size:17px;color:#5e7055;line-height:1.8}
.chapter-content .chapter-next{font-size:18px;border-top:1px solid #e2e8da;padding-top:18px;display:block;width:100%}
.chapter-content .chapter-bottom{font-size:17px;margin-top:24px}.chapter-content .chapter-bottom small{font-size:16px}
.panel,.workspace-panel,.flow-panel{border-color:#dfe5d8;box-shadow:none}
.site-footer{border-top:1px solid #dfe5d8;padding-top:20px;color:#67775f}
@media(max-width:1100px){.refresh-nav>div{gap:16px}.refresh-brand span{display:none}.restored-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.chapter-content .chapter-steps{grid-template-columns:1fr}.chapter-content .chapter-step{min-height:0}.ads-stats{flex-wrap:wrap}}
@media(max-width:760px){body.chapter-cover .main-content{padding:0 18px 26px}.refresh-nav{height:auto;min-height:84px;flex-wrap:wrap;gap:10px;padding:16px 0}.refresh-brand{font-size:30px}.refresh-nav>div{font-size:15px;gap:14px}.refresh-nav button{padding:7px 10px;font-size:14px}.refresh-hero{min-height:400px}.refresh-hero-copy{padding:30px 24px}.refresh-hero-caption{display:none}.refresh-hero h1{font-size:39px}.refresh-lead{font-size:18px}.refresh-actions{gap:12px}.refresh-actions .button{font-size:17px;padding:12px 16px}.refresh-entry{padding-top:30px}.refresh-heading{display:block}.refresh-heading h2{font-size:27px}.refresh-heading>p{margin-top:8px}.refresh-entry-grid{grid-template-columns:1fr;gap:16px}.refresh-entry-card{padding:25px}.refresh-bottom{display:block;padding:24px}.refresh-bottom .button{margin-top:18px}.chapter-content .chapter-heading{padding:28px 22px}.chapter-content .chapter-heading h1{font-size:33px}.ads-hero .pavilion-copy{padding:28px 24px}.restored-tools{grid-template-columns:1fr}.ads-section-heading>div{gap:10px}.topbar-actions>span:first-child{display:none}.main-content{padding:24px 18px}.refresh-entry-card p{font-size:18px}}
@media(prefers-reduced-motion:reduce){.refresh-entry-card{transition:none}.refresh-entry-card:hover{transform:none}}

/* Clear functional typography throughout the entry screens. */
.refresh-hero h1,.refresh-heading h2,.ads-hero h1,.ads-section-heading h2,.chapter-content .chapter-heading h1{font-family:var(--sans);font-weight:600;letter-spacing:0}
.sidebar .sidebar-poem,.sidebar .sidebar-verse{display:none}
#generationTasks[hidden]{display:none!important}
.access-search{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:18px}.access-search label{flex:1;min-width:220px}.access-search button{margin-bottom:12px}.access-user-actions{display:flex;flex-direction:column;gap:10px;flex-shrink:0}.access-users small{font-size:16px;line-height:1.8}.access-login>.button{margin:8px 8px 0 0}.access-editor{margin-top:24px}@media(max-width:760px){.access-users article{align-items:flex-start;flex-direction:column}.access-user-actions{flex-direction:row;flex-wrap:wrap}}
.access-login{max-width:620px;margin:24px 0}.membership label{display:block;font-size:17px;margin:12px 0}.membership input:not([type=checkbox]){display:block;width:100%;padding:11px;border:1px solid #cbd6cc;border-radius:6px;margin-top:8px;font:inherit}.access-heading,.access-account{display:flex;align-items:center;justify-content:space-between;gap:20px}.access-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.access-features{display:flex;gap:10px 24px;flex-wrap:wrap}.access-features label{display:flex;align-items:center;gap:8px}.access-features input{width:18px;height:18px}.membership>form,.membership>section,.membership>details{margin:24px 0}.access-users article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 0;border-top:1px solid #dce3db}.access-users p{margin:6px 0}.access-credentials{white-space:pre-wrap;overflow-wrap:anywhere;background:#edf3e8;padding:18px}.package-content{white-space:pre-line}.package-price{font-size:22px}.membership summary{cursor:pointer;font-size:22px;font-weight:600}@media(max-width:760px){.access-fields{grid-template-columns:1fr}.access-heading,.access-account{align-items:flex-start;flex-direction:column}}
@media(max-width:760px){
 .sidebar{padding:12px 16px;max-height:none!important;overflow:visible!important}
 .sidebar .brand{padding:0;margin:0 0 12px}.sidebar .brand-name{font-size:27px}
 .sidebar .brand small,.sidebar .brand-mark,.sidebar .nav-heading,.sidebar .sidebar-bottom,.sidebar .nav-section-label{display:none!important}
 .sidebar nav{display:flex!important;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:8px;padding-bottom:10px}
 .sidebar .nav-item{flex:0 0 auto;width:auto;min-height:44px;padding:8px 12px;font-size:17px;white-space:nowrap}
 .sidebar .chapter-return{margin:0;box-shadow:none;padding:8px 12px;min-height:44px;border-radius:6px}
 .sidebar .chapter-return small,.sidebar .chapter-return:after{display:none!important}
 .sidebar .chapter-return span{font-size:17px}.sidebar .chapter-return svg{display:none}
 .main-shell{margin-left:0;width:100%;min-width:0}.topbar{padding:12px 16px;gap:12px;flex-wrap:wrap}
 .topbar-actions{gap:8px}.topbar-actions .welcome-tools{gap:6px}.topbar-actions .welcome-tools button{font-size:15px;padding:7px 9px}
}

.membership h1{font:600 34px/1.4 var(--sans)}.membership-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0}.membership .panel{padding:26px;background:#fff;border:1px solid #dce3db;border-radius:10px}.membership h2{font:600 24px/1.5 var(--sans);margin:0 0 16px}.membership p{font-size:18px}.membership textarea{display:block;width:100%;margin:12px 0}.access-lock{margin-left:auto;font-size:14px;padding:2px 7px;background:#e9eae5;border-radius:4px;color:#6c7268}.feature-locked{color:#747c72}.access-user{overflow-wrap:anywhere}.access-current{color:#24563e;font-weight:bold}.membership .muted{color:#687369;font-size:16px}@media(max-width:1000px){.membership-grid{grid-template-columns:1fr}}

/* Login-first entry and complete feature directory. */
body.login-required .sidebar,body.login-required .topbar,body.login-required .welcome-tools,body.login-required .welcome-intro,body.login-required .tour-layer,body.login-required #taskDock{display:none!important}
body.login-required .main-shell{margin-left:0!important}body.login-required .main-content{padding:32px 20px!important;min-height:100vh}
.login-shell{max-width:540px!important;margin:5vh auto!important}.login-shell .access-login{margin:24px 0}.login-shell h1{font-size:36px;color:#224d3d}.login-shell .button{min-height:46px}

.account-menu{position:relative;order:99;flex-shrink:0;color:#244f3e}.account-menu summary{list-style:none;cursor:pointer;padding:10px 14px;border:1px solid #cbd6cc;border-radius:8px;font-size:17px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fff}.account-menu summary::-webkit-details-marker{display:none}.account-dropdown{position:absolute;right:0;top:calc(100% + 8px);min-width:170px;background:white;border:1px solid #dce3db;border-radius:10px;box-shadow:0 8px 28px #163a2926;padding:8px;z-index:300}.account-dropdown a,.account-dropdown button{display:block!important;width:100%;text-align:left;font:inherit!important;font-size:16px!important;background:white!important;color:#244f3e!important;border:0!important;border-radius:6px!important;padding:12px!important;text-decoration:none;cursor:pointer}.account-dropdown a:hover,.account-dropdown button:hover{background:#edf3e8!important}.account-auth-tabs{display:flex;gap:8px;margin:16px 0}.account-auth-tabs button{flex:1;padding:10px;border:1px solid #cbd6cc;border-radius:8px;background:#fff;color:#244f3e;cursor:pointer;font:inherit;font-size:15px}.account-auth-tabs button[aria-pressed=true]{background:#244f3e;color:#fff}.login-required .account-menu{display:none!important}.topbar-actions{flex-wrap:wrap}@media(max-width:560px){.account-menu summary{max-width:135px;font-size:15px}.account-auth-tabs{flex-direction:column}}

/* Align package actions independently of description length. */
.membership-grid{align-items:stretch}
.membership-grid>article.panel{display:flex;flex-direction:column;align-items:stretch;height:100%;box-sizing:border-box}
.membership-grid>article.panel>.package-content{flex:1;margin-bottom:20px}
.membership-grid>article.panel>.button{align-self:flex-start;display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;min-width:156px;box-sizing:border-box;margin-top:auto;padding:12px 20px!important;line-height:24px!important}
.topbar-actions{display:flex;align-items:center;gap:12px}
.topbar-actions>.account-menu>summary{min-height:48px;box-sizing:border-box;display:flex;align-items:center;gap:8px}
