/* 页面级样式（2026-10-18 第八轮全新升级）：公司版登录与首页（cl / xh）、研究中心登录与首页（sl / sh-home）、
   钻头实验室（lab）、课题组（ac）、个人信息保护说明（privacy）。颜色只读 --ds-* 变量。 */

/* ================================================================ 公司版登录 */
body.ds .cl { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 460px); max-width: 1120px; min-height: 600px; margin: 16px auto 0;
    border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(16, 24, 40, .14); border: 1px solid var(--ds-border); }
.cl__brand { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 44px 46px; color: #e8edf7;
    background: radial-gradient(120% 90% at 100% 0%, rgba(36, 89, 240, .45) 0%, rgba(36, 89, 240, 0) 55%), linear-gradient(160deg, #0d1320 0%, #111a2d 60%, #0f1f45 100%); }
.cl__brand > * { position: relative; z-index: 1; }
.cl__brand::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent); }
.cl__brand-top { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: #fff; }
.cl__logo { display: grid; place-items: center; height: 32px; padding: 0 9px; border-radius: 8px; background: #fff; }
.cl__logo img { height: 18px; display: block; }
.cl__title { margin: 56px 0 0; font-size: 34px; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; color: #fff; }
.cl__lead { margin: 14px 0 0; max-width: 420px; color: #a9b6cc; font-size: 15px; line-height: 1.75; }
.cl__list { margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.cl__list li { display: flex; gap: 14px; align-items: flex-start; }
.cl__list li > span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #9db8ff; }
.cl__list strong { display: block; color: #fff; font-size: 14.5px; }
.cl__list em { display: block; margin-top: 2px; color: #8c99b1; font-style: normal; font-size: 13px; }
.cl__glow { position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(36, 89, 240, .35), transparent 70%); }
body.ds .cl__card { margin: 0; width: auto; max-width: none; padding: 52px 44px 40px; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
body.ds .cl__card .login-head { text-align: left; margin-bottom: 22px; }
body.ds .cl__card .login-kicker { margin: 0; color: var(--ds-primary); font-weight: 600; font-size: 13px; letter-spacing: .04em; }
body.ds .cl__card h1 { margin: 6px 0 0; font-size: 26px; font-weight: 750; }
body.ds .cl__card .xc-login__links { display: flex; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ds-border); font-size: 13px; }
body.ds .captcha-row { display: flex; gap: 8px; }
body.ds .captcha-prompt { flex: 1; display: flex; align-items: center; padding: 0 12px; border: 1px dashed var(--ds-border-strong); border-radius: var(--ds-radius-sm);
    background: var(--ds-surface-2); font: 600 15px var(--ds-mono); letter-spacing: .1em; }
body.xc--guest .login-shell { min-height: 0; padding: 20px 0; }
body.ds.xc--guest .login-card { margin: 0 auto; }

/* ================================================================ 公司版首页 */
.xh { display: flex; flex-direction: column; gap: 20px; }
.xh-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.xh-head__date { margin: 0; color: var(--ds-text-3); font-size: 13px; }
.xh-head h1 { margin: 4px 0 0; font-size: 28px; font-weight: 750; letter-spacing: -.015em; }
.xh-head__desc { margin: 6px 0 0; max-width: 760px; color: var(--ds-text-2); }
.xh-head__actions { display: flex; gap: 10px; }
.xh-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.xh-kpi { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg);
    background: #fff; color: var(--ds-text) !important; text-decoration: none; box-shadow: var(--ds-shadow-sm); transition: border-color .15s, box-shadow .15s; }
a.xh-kpi:hover { border-color: #c9d6fb; box-shadow: var(--ds-shadow); }
.xh-kpi__label { color: var(--ds-text-2); font-size: 13px; }
.xh-kpi strong { font-size: 30px; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.xh-kpi strong small { color: var(--ds-text-3); font-size: 14px; font-weight: 500; }
.xh-kpi__icon { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.xh-kpi__icon .svg-icon { width: 18px; height: 18px; }
.xh-kpi__icon--blue { background: #ecf1ff; color: #2459f0; } .xh-kpi__icon--cyan { background: #e6f7fa; color: #0e8aa6; }
.xh-kpi__icon--violet { background: #f1edfe; color: #6941c6; } .xh-kpi__icon--amber { background: #fff4e3; color: #c46a00; }
.xh-kpi__icon--green { background: #e7f6ef; color: #12805c; }
.xh-brief { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.xh-brief h3 { margin: 0 0 6px; font-size: 13px; color: var(--ds-text-3); font-weight: 600; }
.xh-brief p { margin: 0 0 4px; }
.xh-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: var(--ds-radius-lg);
    background: linear-gradient(120deg, #101a33 0%, #1c2f63 100%); color: #dfe6f5; }
.xh-cta h2 { margin: 0; color: #fff; font-size: 18px; }
.xh-cta p { margin: 4px 0 0; color: #a9b6cc; }
.xh-cta__ops { display: flex; flex-wrap: wrap; gap: 8px; }
body.ds .xh-cta .button:not(.button--primary) { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }
body.ds .xh-cta .button:not(.button--primary):hover { background: rgba(255, 255, 255, .16); }
.xh-well { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--ds-primary-soft); color: var(--ds-primary-ink) !important;
    font-weight: 600; text-decoration: none; }
.xh-well span { color: var(--ds-text-2); font-weight: 400; font-size: 12.5px; }
.xh-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 0; padding: 18px 20px 20px; list-style: none; }
.xh-steps a { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius); color: var(--ds-text) !important; text-decoration: none; transition: border-color .15s, background .15s; }
.xh-steps a:hover { border-color: var(--ds-primary); background: var(--ds-primary-soft); }
.xh-steps__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ds-surface-2); color: var(--ds-primary); }
.xh-steps__no { position: absolute; right: 12px; top: 10px; color: var(--ds-text-3); font: 600 12px var(--ds-mono); }
.xh-steps strong { font-size: 13.5px; }
.xh-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; }
.xh-runs { margin: 0; padding: 4px 0; list-style: none; }
.xh-runs li { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--ds-border); }
.xh-runs li:last-child { border-bottom: 0; }
.xh-runs li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xh-runs a { color: var(--ds-text) !important; font-weight: 600; text-decoration: none; }
.xh-runs em, .xh-runs time { color: var(--ds-text-3); font-style: normal; font-size: 12px; }
.xh-runs__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ds-text-3); }
.xh-runs__dot--completed { background: var(--ds-success); } .xh-runs__dot--failed { background: var(--ds-danger); } .xh-runs__dot--running, .xh-runs__dot--pending { background: var(--ds-primary); }
.xh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 18px 20px 20px; }
.xh-tiles a { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 2px; padding: 14px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius);
    color: var(--ds-text) !important; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.xh-tiles a:hover { border-color: #c9d6fb; box-shadow: var(--ds-shadow-sm); }
.xh-tiles .svg-icon { grid-row: span 2; width: 34px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 9px; background: var(--ds-surface-2); color: var(--ds-primary); }
.xh-tiles strong { font-size: 14px; }
.xh-tiles span { color: var(--ds-text-2); font-size: 12.5px; line-height: 1.55; }

/* ================================================================ 研究中心登录 */
.sl { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, 440px); gap: 28px; align-items: stretch; }
.sl__intro { position: relative; overflow: hidden; padding: 44px 46px; border-radius: 18px; color: #fff; background: linear-gradient(140deg, #2b3354 0%, #3b456f 60%, #4a5585 100%); }
.sl__intro > :not(.sl__art) { position: relative; z-index: 1; }
.sl__kicker { margin: 0; color: rgba(255, 255, 255, .78); font-family: var(--ds-font-head); letter-spacing: .3em; }
.sl__title { margin: 10px 0 0; max-width: 620px; color: #fff; font-family: var(--ds-font-head); font-size: 28px; line-height: 1.4; letter-spacing: .03em; }
.sl__lead { margin: 14px 0 0; max-width: 480px; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.8; }
.sl__points { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 470px; }
.sl__points li { display: flex; gap: 12px; }
.sl__dot { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.sl__points strong { display: block; font-size: 15px; }
.sl__points span:not(.sl__dot) { display: block; color: rgba(255, 255, 255, .72); font-size: 13px; }
.sl__art { position: absolute; right: -90px; bottom: -90px; width: 380px; height: 380px; color: rgba(255, 255, 255, .5); opacity: .55; }
.sl__art svg { width: 100%; height: 100%; }
.sl__card { align-self: center; padding: 36px 32px; border: 1px solid var(--ds-border); border-radius: 18px; background: #fff; box-shadow: var(--ds-shadow); }
.sl__card h2 { margin: 0; font-family: var(--ds-font-head); font-size: 24px; color: var(--ds-primary-ink); }
.sl__card-sub { margin: 6px 0 22px; color: var(--ds-text-2); }
.sl__card .flash { margin-bottom: 14px; }
.sl__notes { margin: 20px 0 0; padding: 16px 0 0 18px; border-top: 1px solid var(--ds-border); color: var(--ds-text-2); font-size: 13px; line-height: 1.8; }
.sl__privacy { margin: 14px 0 0; color: var(--ds-text-3); font-size: 12px; }

/* ================================================================ 研究中心首页 */
.sh-home { display: flex; flex-direction: column; gap: 22px; }
.sh-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: 24px; padding: 34px 40px;
    border-radius: 18px; color: #fff; background: linear-gradient(135deg, #2b3354 0%, #3b456f 55%, #56619a 100%); }
.sh-hero__kicker { margin: 0; color: rgba(255, 255, 255, .72); font-size: 13px; letter-spacing: .12em; }
.sh-hero h1 { margin: 8px 0 0; color: #fff; font-family: var(--ds-font-head); font-size: 30px; letter-spacing: .02em; }
.sh-hero__lead { margin: 10px 0 0; max-width: 620px; color: rgba(255, 255, 255, .84); line-height: 1.8; }
.sh-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
body.ds .sh-hero .button--primary { background: #fff; border-color: #fff; color: var(--ds-primary-ink); }
body.ds .sh-hero .button--primary:hover { background: #eef0f8; color: var(--ds-primary-ink); }
body.ds .sh-hero__ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: #fff; box-shadow: none; }
body.ds .sh-hero__ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.sh-hero__well { display: inline-flex; flex-direction: column; margin-top: 20px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; color: #fff !important; text-decoration: none; }
.sh-hero__well span { font-size: 12px; opacity: .7; } .sh-hero__well strong { font-size: 16px; } .sh-hero__well em { font-style: normal; font-size: 12px; opacity: .75; }
.sh-hero__art { width: 300px; height: 300px; justify-self: end; color: rgba(255, 255, 255, .92); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .25)); }
.sh-hero__art svg { width: 100%; height: 100%; }
.sh-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sh-panel { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); background: #fff; box-shadow: var(--ds-shadow-sm); }
.sh-panel header { display: flex; gap: 14px; align-items: flex-start; }
.sh-panel__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--ds-primary); color: #fff; }
.sh-panel__icon .svg-icon { width: 22px; height: 22px; }
.sh-panel--lab .sh-panel__icon { background: #56619a; }
.sh-panel h2 { margin: 0; font-family: var(--ds-font-head); font-size: 20px; color: var(--ds-primary-ink); }
.sh-panel header p { margin: 4px 0 0; color: var(--ds-text-2); font-size: 13px; }
.sh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius); overflow: hidden; background: var(--ds-border); }
.sh-stats div { padding: 12px 14px; background: var(--ds-surface-2); }
.sh-stats strong { display: block; font-size: 26px; font-family: var(--ds-font-head); color: var(--ds-primary-ink); }
.sh-stats span { color: var(--ds-text-2); font-size: 12.5px; }
.sh-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--ds-border-strong); border-radius: 999px; color: var(--ds-primary-ink) !important;
    font-size: 13px; text-decoration: none; }
.sh-links a:hover { background: var(--ds-primary-soft); border-color: var(--ds-primary); }
.sh-links .svg-icon { width: 15px; height: 15px; }
.sh-runs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ds-border); }
.sh-runs li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 70px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ds-border); font-size: 13px; }
.sh-runs a { color: var(--ds-text) !important; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-runs span:not(.ds-chip) { color: var(--ds-text-2); font-size: 12.5px; }
.sh-runs em { color: var(--ds-text-3); font-style: normal; font-size: 12px; text-align: right; }
.sh-empty { margin: 0; color: var(--ds-text-2); font-size: 13px; }
.sh-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 20px; list-style: none; counter-reset: none; }
.sh-flow li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 16px; border-left: 1px solid var(--ds-border); }
.sh-flow li:first-child { border-left: 0; padding-left: 0; }
.sh-flow li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ds-primary); color: #fff; font: 600 13px var(--ds-font-head); }
.sh-flow strong { margin-top: 6px; font-family: var(--ds-font-head); font-size: 16px; }
.sh-flow em { color: var(--ds-text-2); font-style: normal; font-size: 12.5px; }
.sh-flow a { font-size: 12.5px; text-decoration: none; }
.sh-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.sh-groups p { margin: 0 0 14px; color: var(--ds-text-2); }

/* ================================================================ 钻头实验室 */
.lab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 140px)) minmax(0, 1fr); gap: 12px; }
.lab-stat { display: flex; flex-direction: column; justify-content: center; padding: 14px 16px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius); background: #fff; }
.lab-stat strong { font-size: 24px; font-family: var(--ds-font-head, var(--ds-font)); color: var(--ds-primary-ink); }
.lab-stat span { color: var(--ds-text-2); font-size: 12.5px; }
.lab-stat--types { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.lab-stat--types span b { color: var(--ds-primary-ink); }
.lab-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ds-border); }
.lab-filter label { display: grid; gap: 4px; color: var(--ds-text-2); font-size: 12.5px; }
.lab-filter__q input { width: 240px; }
.lab-form { display: grid; gap: 16px; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 18px; }
.lab-grid label { display: grid; gap: 6px; color: var(--ds-text-2); font-size: 13px; font-weight: 500; }
.lab-grid label em { color: var(--ds-danger); font-style: normal; }
.lab-grid__wide { grid-column: 1 / -1; }
.lab-actions { display: flex; justify-content: flex-end; gap: 10px; }
.lab-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lab-detail__wide { grid-column: 1 / -1; }
.lab-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 18px; margin: 0; }
.lab-dl dt { color: var(--ds-text-3); font-size: 12px; }
.lab-dl dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.lab-conclusion { white-space: pre-wrap; line-height: 1.8; }
.lab-files { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.lab-files li { display: flex; align-items: center; gap: 12px; }
.lab-files form { margin: 0; }
.lab-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--ds-border); }
.lab-danger { display: flex; justify-content: flex-end; }

/* ================================================================ 课题组 */
.ac-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ac-howto ol { margin: 0; padding: 16px 20px 18px 38px; color: var(--ds-text-2); line-height: 1.9; }
.ac-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ac-group { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius); color: var(--ds-text) !important; text-decoration: none; }
.ac-group:hover { border-color: var(--ds-primary); background: var(--ds-primary-soft); }
.ac-group__icon { color: var(--ds-primary); }
.ac-group strong { font-size: 16px; }
.ac-group__foot { display: flex; justify-content: space-between; color: var(--ds-text-3); font-size: 12px; }
.ac-members { margin: 0; list-style: none; display: grid; gap: 10px; }
.ac-members li { display: flex; align-items: center; gap: 10px; }
.ac-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ds-primary-soft); color: var(--ds-primary-ink); font-weight: 700; }
.ac-members strong { flex: 1; }
.ac-share { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; border-top: 1px solid var(--ds-border); }
.ac-share label { display: grid; gap: 4px; color: var(--ds-text-2); font-size: 12.5px; }
.ac-ops form { margin: 0; }

/* ================================================================ 个人信息保护说明 */
.privacy__body h2 { margin: 22px 0 8px; font-size: 16px; }
.privacy__body h2:first-child { margin-top: 0; }
.privacy__body p, .privacy__body li { line-height: 1.9; font-size: 14px; color: var(--ds-text); }

@media (max-width: 1020px) {
    body.ds .cl, .sl, .sh-hero, .sh-feature, .sh-cols, .ac-top, .lab-detail { grid-template-columns: 1fr; }
    .cl__brand { padding: 28px; } .cl__title { margin-top: 24px; font-size: 26px; } .cl__list { display: none; }
    body.ds .cl__card { padding: 30px 24px; }
    .sh-hero { padding: 26px 22px; } .sh-hero__art { display: none; }
    .sl__intro { padding: 28px 24px; } .sl__points, .sl__art { display: none; }
    .sh-flow { grid-template-columns: 1fr; gap: 14px; } .sh-flow li { border-left: 0; padding: 0; }
    .lab-stats { grid-template-columns: repeat(2, 1fr); } .lab-stat--types { grid-column: 1 / -1; }
    .xh-cols { grid-template-columns: 1fr; } .xh-brief { grid-template-columns: 1fr; }
    .xh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .xh-kpi strong { font-size: 24px; }
    .xh-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .xh-steps a { padding: 10px 8px; }
    .xh-head h1 { font-size: 22px; }
}
