
/* 智研网BERTopic 工作台 · 平台接入适配层 R17
   只负责外观和响应式，不触碰分析逻辑。 */
:root{
  --zy-primary:#5868f5;
  --zy-primary-2:#7a68f1;
  --zy-deep:#11172e;
  --zy-ink:#151927;
  --zy-muted:#7b8496;
  --zy-line:#e5e8f0;
  --zy-soft:#f7f8ff;
  --zy-shadow:0 18px 46px rgba(30,38,83,.075);
}
html,body{background:linear-gradient(180deg,#ffffff 0,#fbfcff 58%,#f7f8ff 100%);color:var(--zy-ink)}
.module-home-link{display:block;text-decoration:none;color:inherit;border-radius:14px}.module-home-link:focus-visible{outline:3px solid rgba(88,104,245,.22);outline-offset:3px}
.shell{background:transparent}.side{background:rgba(255,255,255,.88);color:var(--zy-ink);border-right:1px solid var(--zy-line);box-shadow:12px 0 42px rgba(32,38,76,.04);backdrop-filter:blur(18px)}
.brand{padding:0 8px 18px}.brand .mark,.mark{background:linear-gradient(135deg,#3346ee 0,#876df1 100%);border:0;color:#fff;box-shadow:0 8px 22px rgba(84,97,255,.22)}.brand b{color:#151927}.brand span{color:#8a92a3}.side .primary{background:linear-gradient(135deg,var(--zy-primary),var(--zy-primary-2));color:#fff;box-shadow:0 10px 20px rgba(93,98,245,.18)}.side .secondary{background:#fff;border-color:#e1e5ee;color:#334056;box-shadow:0 8px 20px rgba(34,42,78,.04)}.side-label{color:#9098a8}.project-item{color:#4b5568;background:#fff;border-color:#e7eaf0;box-shadow:0 7px 18px rgba(34,42,78,.035)}.project-item:hover{background:#f7f8ff;border-color:#dce2ff}.project-item.active{background:linear-gradient(135deg,#eef1ff,#fff);border-color:#cfd7ff;color:#1e2b4e}.project-item small{color:#8b94a5}.side-foot{border-top:1px solid #eef1f6;color:#8b94a5}.live{background:#32b66b;box-shadow:0 0 0 4px rgba(50,182,107,.12)}
.main{background:transparent}.top{height:86px;background:rgba(255,255,255,.86);border-bottom:1px solid var(--zy-line);backdrop-filter:blur(18px);box-shadow:0 8px 28px rgba(30,38,83,.035)}.top h1{font-size:21px;font-weight:760;letter-spacing:-.04em;color:#111827}.top-subtitle{color:#7b8496}.eyebrow{color:#6675f1}.version{background:#fff;border-color:#e3e7f0;color:#637087;box-shadow:0 8px 22px rgba(30,38,83,.055)}
.tabs{background:rgba(255,255,255,.78);border-bottom:1px solid var(--zy-line);gap:24px}.tab{color:#7b8496}.tab:hover,.tab.active{color:#5366ee}.tab.active{border-bottom-color:#5366ee}
.view{padding-top:34px}.page-head h2{font-size:24px;color:#131827;letter-spacing:-.055em}.page-head p{color:#778194}.card,.metric,.empty,.empty-result,.export-hero,.export-section,.chart-card,.visual-selector{border:1px solid #e6e9f1;border-radius:18px;background:rgba(255,255,255,.92);box-shadow:var(--zy-shadow)}.card{padding:22px 24px}.primary{background:linear-gradient(135deg,var(--zy-primary),var(--zy-primary-2));box-shadow:0 10px 22px rgba(90,105,244,.18)}.primary:hover{background:linear-gradient(135deg,#4e5fe8,#715ee8)}.secondary{border-color:#dfe4ef;background:#fff;color:#334056}.secondary:hover{background:#f6f7ff;border-color:#ccd4ff;color:#5164e9}.text-btn{color:#596ae9}.flow-row span{border-color:#e0e5f0;background:#fff}.metric strong{color:#182047}.config{top:104px}.config summary{color:#24304a}.api-notice,.visual-help{border-color:#dfe5f2;background:#f8f9ff}.api-notice b,.visual-help b{color:#5264e9}.visual-group .visual-tab.active{background:#eef1ff;border-color:#cbd3ff;color:#5264e9}.run-card:hover,.run-card.active{background:#f3f5ff;border-color:#cbd3ff}.chart-frame{border-color:#e4e9f2;background:#fff}.toast{background:#20284d}.native-figure-frame{border-color:#e4e9f2;border-radius:14px}
button,input,select,textarea{font:inherit}select,input,textarea{border-radius:12px!important;border-color:#dfe4ee!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(88,104,245,.22);outline-offset:3px}
@media(max-width:1120px){.shell{grid-template-columns:236px minmax(0,1fr)}.top,.tabs,.view{padding-left:26px;padding-right:26px}}
@media(max-width:760px){.side{display:none}.top{position:static}.tabs{padding-left:18px;padding-right:18px}.view{padding-left:18px;padding-right:18px}.top{padding-left:18px;padding-right:18px}.metric strong{font-size:25px}}

/* R18 · Dynamic-directory aligned module shell and select system */
:root{
  --zy-hero:#0f1531;
  --zy-hero-2:#6354d9;
  --zy-violet:#5966f2;
  --zy-violet-2:#8068f1;
}
.shell{grid-template-columns:274px minmax(0,1fr)!important;background:linear-gradient(180deg,#ffffff 0,#fbfcff 54%,#f7f8ff 100%)}
.side{background:rgba(255,255,255,.9)!important;color:var(--zy-ink)!important;border-right:1px solid #e7eaf3!important;box-shadow:14px 0 44px rgba(38,45,86,.045)!important;min-height:calc(100vh - 84px)!important}
.side .brand{padding:0 8px 20px!important}.side .brand b{font-size:17px!important;letter-spacing:-.03em!important}.side .brand span{font-size:10px!important;letter-spacing:.10em!important;color:#8b94a7!important}
.side-actions{display:grid!important;gap:10px!important;padding:0 2px!important}.side .primary.full{min-height:46px!important;border-radius:999px!important;background:linear-gradient(135deg,var(--zy-violet),var(--zy-violet-2))!important;box-shadow:0 14px 26px rgba(91,102,242,.22)!important}
.side .secondary.full{min-height:44px!important;border-radius:18px!important;background:#fff!important;border-color:#e4e8f1!important;color:#42506a!important;box-shadow:0 10px 24px rgba(42,48,86,.045)!important}
.project-item{border-radius:16px!important;padding:13px 14px!important;background:#fff!important;border-color:#e7ebf3!important;box-shadow:0 10px 24px rgba(42,48,86,.04)!important}.project-item.active{background:linear-gradient(135deg,#eef1ff,#fff)!important;border-color:#cdd6ff!important;color:#1e2a4a!important}
.top{height:86px!important}.tabs{height:54px!important}.view{padding-top:34px!important}.page-head{margin-bottom:20px!important}
.module-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:190px;margin:0 0 18px;padding:34px 40px;border-radius:28px;overflow:hidden;background:radial-gradient(circle at 72% 20%,rgba(121,111,255,.55),transparent 34%),linear-gradient(135deg,#111832 0%,#121a3a 52%,#4f45b5 100%);box-shadow:0 28px 58px rgba(23,30,73,.18);color:#fff}.module-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:38px 38px;opacity:.55}.module-hero>div{position:relative;z-index:1}.hero-eyebrow{display:block;margin-bottom:12px;color:#cbd4ff;font-size:11px;font-weight:800;letter-spacing:.15em}.module-hero h2{margin:0 0 12px;font-size:42px;line-height:1;letter-spacing:-.08em}.module-hero p{max-width:560px;margin:0;color:#d7dcff;line-height:1.75;font-size:14px}.hero-steps{display:flex;align-items:center;gap:13px;min-width:430px;padding:17px 20px;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:rgba(255,255,255,.12);backdrop-filter:blur(10px)}.hero-steps span{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;color:#fff;font-weight:800;white-space:nowrap}.hero-steps b{grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:rgba(255,255,255,.14);font-size:12px}.hero-steps small{grid-column:2;color:#aeb8ed;font-size:10px;font-weight:650}.hero-steps i{display:block;width:18px;height:1px;background:rgba(255,255,255,.28)}.hero-orbit{position:absolute!important;right:30px;top:24px;width:160px;height:160px;opacity:.85}.hero-orbit:before,.hero-orbit:after{content:"";position:absolute;inset:28px;border:1px solid rgba(212,218,255,.34);border-radius:50%;transform:rotate(20deg)}.hero-orbit:after{transform:rotate(-24deg) scale(1.12,.72)}.hero-orbit i{position:absolute;right:50px;top:50px;width:68px;height:68px;border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.20),rgba(255,255,255,.05));border:2px solid rgba(222,226,255,.68);transform:rotate(30deg);box-shadow:0 18px 34px rgba(0,0,0,.14)}.hero-orbit b,.hero-orbit em{position:absolute;width:14px;height:14px;border-radius:50%;background:#dfe5ff;box-shadow:0 0 0 10px rgba(198,205,255,.10)}.hero-orbit b{right:116px;top:70px}.hero-orbit em{right:20px;top:68px}
.topic-grid{grid-template-columns:380px minmax(0,1fr)!important;gap:20px!important}.config{border-radius:22px!important}.card{border-radius:22px!important}.empty,.empty-result{border-radius:26px!important;box-shadow:0 22px 54px rgba(36,44,86,.08)!important}.card-title h3{letter-spacing:-.04em}.metrics{gap:14px!important}.metric{border-radius:20px!important}.metric strong{letter-spacing:-.06em}.flow-row span{border-radius:999px!important;padding:9px 13px!important}.run-card{border-radius:16px!important;min-height:82px!important}.api-notice{border-radius:16px!important}

select{appearance:auto;-webkit-appearance:auto;cursor:pointer;min-width:0;max-width:100%}
select:not([data-zy-enhanced]){appearance:none;background-image:linear-gradient(45deg,transparent 50%,#7c86a1 50%),linear-gradient(135deg,#7c86a1 50%,transparent 50%);background-position:calc(100% - 18px) 51%,calc(100% - 12px) 51%;background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:40px!important}
@media(max-width:1120px){.module-hero{display:block;padding:30px}.hero-steps{margin-top:22px;min-width:0;max-width:100%;overflow:auto}.topic-grid{grid-template-columns:1fr!important}.config{position:static!important}}
@media(max-width:760px){.module-hero{border-radius:22px;padding:26px 22px}.module-hero h2{font-size:34px}.hero-steps{display:grid}.hero-steps i{display:none}.hero-orbit{display:none}.shell{display:block!important}.side{display:none!important}}


/* R19 · principled analysis feedback */
.analysis-error-card{max-width:920px;margin:0 auto;padding:30px 34px;border:1px solid #ffd8d8;border-radius:26px;background:linear-gradient(180deg,#fff,#fffafa);box-shadow:0 24px 58px rgba(146,49,49,.10);color:#263044;text-align:left}.analysis-error-card h3{margin:8px 0 12px;font-size:24px;letter-spacing:-.055em;color:#9f2f38}.analysis-error-card p{margin:0;color:#526071;line-height:1.85;white-space:pre-wrap}.analysis-error-card small{display:block;margin-top:14px;color:#8b6670;line-height:1.65}.param-suggestions{margin-top:18px;padding:16px 18px;border:1px solid #ffe1c5;border-radius:18px;background:#fff8ef}.param-suggestions b{display:block;margin-bottom:8px;color:#8a4a13}.param-suggestions ul{margin:0;padding-left:18px;color:#604330;line-height:1.8}.optional-inspect{opacity:.92}.optional-inspect:before{content:""}.page-head p{max-width:920px}.topic-grid{align-items:start}.preview{margin-top:18px}.module-hero h2{font-size:44px}.hero-steps span:nth-child(3){min-width:112px}

@media(max-width:760px){.shell{min-height:calc(100vh - 70px)!important}.side{min-height:calc(100vh - 70px)!important}}
.technical-error{margin-top:14px;border:1px solid #e7d9dd;border-radius:14px;background:#fff}.technical-error summary{cursor:pointer;padding:11px 14px;color:#73545d;font-size:12px;font-weight:700}.technical-error code{display:block;padding:0 14px 14px;color:#6b4a53;font-size:11px;line-height:1.65;white-space:pre-wrap;word-break:break-word}
