/* BUILD507(页面设置):门户页跟着页面设置走——颜色变量来自 /theme-tokens.css(网站从 style.css 文件头原样切出来发,颜色只住那一处),
   这里只剩门户页自己的几样(--pt-*:浅色照原来的样子不变,深色借文件头的面和底);主题色一律 --pri 一系、主色字 --accent。 */
:root{--pt-page:#f4f2ec;--pt-card:#fff;--pt-hover:#f0ead8;--pt-chip:#efe9db;--pt-chip-ink:#4a4636;--pt-shadow:rgb(var(--pri-deep) / .10);--pt-shadow-soft:rgba(47,64,52,.05);--pt-on-danger:#fff;--radius:18px;font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);background:var(--pt-page);font-synthesis:none}
html[data-theme="dark"]{--pt-page:var(--bg);--pt-card:var(--face);--pt-hover:var(--sunk);--pt-chip:var(--sunk);--pt-chip-ink:var(--ink2);--pt-shadow:rgba(0,0,0,.40);--pt-shadow-soft:rgba(0,0,0,.30);--pt-on-danger:#1E1E20}
html[data-theme="dark"] .brand-logo{padding:2px 6px;border-radius:9px;background:linear-gradient(180deg,#EFE8DC,#D9D0C2);box-sizing:content-box}
dialog{background:var(--pt-card)}

*{box-sizing:border-box}body{margin:0}button,input,a{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}::placeholder{color:var(--ink-off);opacity:1}*,*::before,*::after{scrollbar-width:none!important;-ms-overflow-style:none}::-webkit-scrollbar,*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--pri-line);outline-offset:3px}button,input{border-radius:10px}button{border:0}h1,h2,h3,p{margin:0}button svg,a svg{width:18px;height:18px;flex-shrink:0}svg{fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round} .primary,.secondary,.plain{display:inline-flex;gap:9px;align-items:center;justify-content:center;padding:12px 20px;min-height:46px;font-weight:600}.primary{background:var(--pri);color:var(--on-pri);box-shadow:0 4px 12px var(--pt-shadow)}.primary:hover{background:var(--pri-hi)}.secondary{background:var(--pt-card);border:1px solid var(--line)}.secondary:hover{background:var(--pt-hover)}.plain{background:transparent;color:var(--muted)}.plain:hover{background:var(--pri-soft);color:var(--accent)}.small{padding:8px 13px;min-height:36px;font-size:14px}.danger{color:var(--danger-ink)}.muted{color:var(--muted)}.brand{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:20px;white-space:nowrap}.brand-mark{width:35px;height:35px;display:grid;place-items:center;background:var(--pri);color:var(--on-pri);border-radius:11px}.brand-mark svg{width:24px;height:24px}.brand-tag{border-left:1px solid var(--line);margin-left:10px;padding-left:20px;font-size:13px;font-weight:400;color:var(--muted)}.site-header{height:84px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 6vw;border-bottom:1px solid var(--line);background:var(--pt-page)}.header-actions{display:flex;align-items:center;gap:10px;font-size:14px}.site-footer{display:flex;justify-content:space-between;gap:15px;padding:19px 6vw;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}.home-shell{min-height:100svh;display:flex;flex-direction:column}.home-main{max-width:1440px;width:100%;padding:clamp(30px,5vh,65px) 6vw;margin:auto;display:grid;grid-template-columns:1.05fr 1fr;gap:6vw;align-items:center;flex:1}.eyebrow{display:inline-flex;align-items:center;gap:8px;background:var(--pri-soft);color:var(--accent);border:1px solid var(--pri-line);border-radius:30px;padding:7px 13px;font-size:13px;margin-bottom:25px}.eyebrow i{width:6px;height:6px;background:var(--accent);border-radius:50%}.hero h1{font-size:clamp(36px,4.1vw,61px);line-height:1.3;letter-spacing:-1.7px;font-weight:700}.hero h1 em{font-style:normal;color:var(--accent)}.hero-description{font-size:16px;line-height:1.95;color:var(--muted);max-width:460px;margin-top:23px}.hero-cta{margin-top:32px;display:flex;align-items:center;gap:17px}.hero-note{font-size:12px;color:var(--muted);margin-top:13px}.home-points{display:flex;gap:21px;margin-top:39px;color:var(--muted);font-size:12px}.home-points span{display:flex;gap:7px;align-items:center}.home-points svg{width:16px;height:16px;color:var(--accent)}.story-demo{position:relative;padding:25px 0 20px}.demo-card{position:relative;background:var(--pt-card);border:1px solid var(--line);border-radius:20px;padding:25px;box-shadow:0 20px 70px var(--pt-shadow-soft)}.demo-top{display:flex;justify-content:space-between;align-items:center;padding-bottom:20px;border-bottom:1px solid var(--line);font-size:13px}.demo-label{font-size:11px;color:var(--muted);padding:4px 8px;border:1px solid var(--line);border-radius:5px}.demo-idea{padding:23px 0 20px}.demo-caption{font-size:11px;color:var(--muted);margin-bottom:9px}.demo-idea p{font-size:18px;line-height:1.8;font-weight:600}.demo-path{display:flex;align-items:center;gap:8px;padding:12px 0 22px;color:var(--muted);font-size:12px}.demo-path span{background:var(--pt-chip);padding:7px 10px;border-radius:7px;color:var(--pt-chip-ink)}.demo-sheet{background:var(--pt-page);border:1px solid var(--line);border-radius:12px;padding:18px 20px;min-height:134px}.demo-sheet h3{font-size:14px}.demo-sheet p{font-size:12px;line-height:1.9;margin-top:11px;color:var(--muted)}.demo-bottom{display:flex;gap:10px;align-items:center;margin-top:18px;color:var(--muted);font-size:12px}.demo-bottom svg{width:23px;height:23px;color:var(--accent)}.demo-spark{position:absolute;right:-12px;top:3px;color:#c9b98a;font-size:38px}.auth-shell{min-height:100svh;display:flex;flex-direction:column}.auth-main{flex:1;display:grid;place-items:center;padding:36px 20px}.auth-card{background:var(--pt-card);border:1px solid var(--line);border-radius:24px;width:100%;max-width:440px;padding:36px;box-shadow:0 12px 45px var(--pt-shadow-soft)}.auth-symbol{width:46px;height:46px;border-radius:14px;background:var(--pri-soft);color:var(--accent);display:grid;place-items:center;margin-bottom:21px}.auth-symbol svg{width:25px;height:25px}.auth-card h1{font-size:25px}.auth-subtitle{color:var(--muted);font-size:13px;line-height:1.8;margin:9px 0 27px}.field{display:block;margin-top:18px;font-size:13px;font-weight:600}.field input{display:block;width:100%;margin-top:8px;padding:13px 14px;border:1px solid var(--line2);background:var(--pt-card);font-size:15px;color:var(--ink)}.field input:focus{border-color:var(--accent)}.field-note{font-size:11px;line-height:1.8;margin-top:6px;color:var(--muted);font-weight:400}.form-submit{margin-top:25px;width:100%}.form-error{font-size:13px;line-height:1.7;color:var(--danger-ink);background:var(--danger-soft);border-radius:9px;padding:10px 12px;margin-top:15px}.form-error:empty{display:none}.auth-switch{margin-top:24px;text-align:center;font-size:13px;color:var(--muted)}.auth-switch a{color:var(--accent);font-weight:600}.setup-note{background:var(--pri-soft);color:var(--accent);padding:12px;border-radius:10px;line-height:1.8;font-size:12px}.projects-shell{min-height:100svh;display:flex;flex-direction:column}.projects-main{width:100%;max-width:1230px;padding:42px 5vw 28px;margin:0 auto;flex:1}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:30px}.page-heading h1{font-size:29px}.page-heading p{font-size:13px;color:var(--muted);margin-top:9px}.filters{display:flex;justify-content:space-between;gap:20px;margin-bottom:23px;align-items:center}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--line)}.tab{padding:12px 16px;background:none;border-radius:0;color:var(--muted);font-size:14px;border-bottom:2px solid transparent}.tab.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}.search-box{display:flex;align-items:center;gap:9px;background:var(--pt-card);border:1px solid var(--line);padding:9px 13px;border-radius:10px;width:280px}.search-box svg{width:17px;height:17px;color:var(--muted)}.search-box input{min-width:0;width:100%;border:0;outline:none;background:transparent;font-size:13px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.project-card{background:var(--pt-card);border:1px solid var(--line);border-radius:var(--radius);padding:23px;transition:border-color .2s,box-shadow .2s;min-width:0}.project-card:hover{border-color:var(--pri-line);box-shadow:0 8px 25px var(--pt-shadow-soft)}.project-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.project-symbol{width:41px;height:44px;background:var(--pri-soft);color:var(--accent);border:1px solid var(--pri-line);display:grid;place-items:center;border-radius:8px}.project-symbol svg{width:23px;height:23px}.status-pill{font-size:11px;background:var(--pt-chip);color:var(--muted);border-radius:20px;padding:5px 9px}.status-pill.running{background:var(--ok-soft);color:var(--ok-ink)}.project-card h2{font-size:17px;line-height:1.6;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:54px}.project-meta{font-size:12px;color:var(--muted);line-height:1.9;margin-top:9px}.project-actions{display:flex;align-items:center;gap:4px;border-top:1px solid var(--line);padding-top:17px;margin-top:20px}.project-actions .open{margin-right:auto;color:var(--accent);font-weight:600;font-size:13px}.project-actions button{padding:6px 8px;background:none;color:var(--muted);font-size:12px}.project-actions button:hover{background:var(--pri-soft);color:var(--accent)}.empty-state{text-align:center;grid-column:1/-1;background:var(--pt-card);border:1px dashed var(--line2);border-radius:20px;padding:55px 20px;color:var(--muted)}.empty-state .auth-symbol{margin:0 auto 18px}.empty-state h2{font-size:19px;color:var(--ink)}.empty-state p{font-size:13px;line-height:1.9;margin:10px auto 22px;max-width:380px}.pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin:27px 0;font-size:12px;color:var(--muted)}.message{border-radius:10px;background:var(--pri-soft);color:var(--accent);font-size:13px;padding:12px 15px;margin:0 0 20px}.message:empty{display:none}.user-name{font-size:13px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.new-card{max-width:580px}.new-card textarea{font:inherit}.back-link{font-size:13px;color:var(--muted);display:inline-flex;align-items:center;gap:5px;margin-bottom:22px}.back-link svg{width:16px;height:16px}dialog{border:1px solid var(--line);border-radius:20px;max-width:440px;width:calc(100% - 40px);padding:28px;color:var(--ink);box-shadow:0 24px 90px rgba(0,0,0,.18)}dialog::backdrop{background:rgba(20,16,10,.30)}dialog h2{font-size:20px}dialog p{font-size:13px;line-height:1.9;color:var(--muted);margin-top:13px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.spinner{width:15px;height:15px;display:inline-block;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}.loading-line{display:flex;justify-content:center;align-items:center;gap:10px;min-height:120px;color:var(--muted);grid-column:1/-1;font-size:13px}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:900px) and (min-height:680px){.home-shell{height:100svh;min-height:0}.home-main{flex:1;min-height:0}.demo-card{padding:22px}.demo-idea{padding:20px 0 15px}}
@media(max-width:1000px){.home-main{gap:35px}.hero h1{font-size:43px}.home-points{gap:13px;flex-wrap:wrap}.brand-tag{display:none}.demo-path{gap:5px}.demo-path span{padding:7px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.site-header{height:70px;padding:0 22px}.brand{font-size:18px}.header-actions{gap:3px}.home-main{grid-template-columns:1fr;padding:36px 25px;gap:22px}.hero h1{font-size:39px}.hero-description{font-size:14px}.home-points{margin-top:24px}.story-demo{padding:8px 0}.demo-spark{display:none}.site-footer{padding:17px 22px;flex-wrap:wrap;line-height:1.7}.auth-card{padding:28px 24px}.projects-main{padding:28px 22px}.page-heading h1{font-size:24px}.page-heading p{max-width:220px;line-height:1.8}.filters{align-items:stretch;flex-direction:column;gap:15px}.search-box{width:100%}.project-grid{grid-template-columns:1fr}.user-name{max-width:90px}.auth-main{padding:24px 16px}.project-card{padding:22px}.project-card h2{min-height:0}.home-points span{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.spinner{animation-duration:2s}}
/* 桌面项目列表只在内容区滚动，主导航与翻页始终可见。 */
.primary,.secondary,.plain{border-radius:10px}
@media(min-width:701px){.projects-shell{height:100svh;min-height:0}.projects-main{display:flex;flex-direction:column;min-height:0;overflow:hidden}.project-grid{min-height:0;overflow:auto;padding:2px 6px 10px 2px;align-content:start;flex:1}.page-heading,.filters,.pagination,.projects-main>p{flex-shrink:0}.pagination{margin:17px 0 0}.projects-shell .site-footer{padding-top:14px;padding-bottom:14px;flex-shrink:0}}

button.danger{background:var(--danger);color:var(--pt-on-danger)}.project-actions button.delete-project{color:var(--danger-ink);font-weight:600}.project-actions button.delete-project:hover{background:var(--danger-soft);color:var(--danger-ink)}/* 界面改版4:三张卡的删除字一个颜色、略加粗(原来细字红色在小字号下被屏幕渲染成红/灰/紫不一样;悬停时也不变成主题绿) */
/* 2026-10-07页面整理:项目卡片显示做到哪一站/正文第几集/最后修改;额度入口与工作台一样是小标签 */
.project-meta{display:flex;flex-direction:column;gap:2px}.project-meta b{color:var(--ink);font-weight:600}
.header-actions #usageLink{font-size:12px;color:var(--accent);background:var(--pri-soft);border:1px solid var(--pri-line);border-radius:999px;padding:3px 10px;min-height:0;font-weight:400}.header-actions #usageLink:hover{background:var(--pt-hover)}
/* 2026-10-09:手机宽度顶栏放不下(我的账号/铃铛/反馈/名字/退出)就换行,不再挤出屏幕 */@media(max-width:700px){.site-header{height:auto;min-height:70px;padding-top:10px;padding-bottom:10px}.header-actions{flex:1 1 auto;min-width:0;flex-wrap:wrap;justify-content:flex-end;row-gap:6px}}

/* 协议(2026-10-09):注册页必勾一行、页脚链接 */.agree-line{display:flex;gap:8px;align-items:flex-start;margin-top:18px;font-size:13px;line-height:1.7;color:var(--muted)}.agree-line input{margin-top:4px}.agree-line a{color:var(--accent);font-weight:600}.footer-links a{color:var(--accent)}

/* 页眉小猫logo(2026-10-09,规矩住brand.mjs) */.brand-logo{height:40px;width:auto;display:block}@media(max-width:700px){.brand-logo{height:30px}.brand{gap:8px}}

/* 首页中间大logo(10-21用户令:首页左上角不放logo,中间一张上猫下字;浅色绿图、深色白图) */.home-logo{flex:none;text-align:center;padding:18px 16px 0}.home-logo img{width:300px;max-width:80vw;height:auto;display:inline-block}.home-logo-dark{display:none!important}html[data-theme="dark"] .home-logo-light{display:none!important}html[data-theme="dark"] .home-logo-dark{display:inline-block!important}.home-logo-tag{margin:8px 0 0;font-size:15px;color:var(--muted);letter-spacing:2px}@media(max-width:700px){.home-logo img{width:260px}}.home-shell{height:auto!important;min-height:100svh}/* 加了大logo后一屏放不下,页面往下长,别让"不必懂编剧术语"那行压到页脚上 */
