/* 星通云前端视觉（2026-10-18 第五轮 UI 升级）
   风格：深蓝工业控制台。圆角卡片、柔和阴影、蓝青强调色、数据看板式首页、左右分栏登录页。
   只在星通云外壳（shell_xingtong.html）加载；研究中心前端用 cdut.css，两边互不影响。 */
:root {
    --xt-navy: #0a2352;
    --xt-navy-2: #0d306b;
    --xt-blue: #1268f3;
    --xt-cyan: #13a8c9;
    --xt-ink: #16223a;
    --xt-muted: #6b7690;
    --xt-line: #e3e8f1;
    --xc-page: #f2f5fa;
    --xc-radius: 8px;
    --xc-shadow-card: 0 1px 2px rgba(16, 36, 80, .05), 0 4px 14px rgba(16, 36, 80, .05);
}
body.xc:not(.cd) { background: var(--xc-page); }
body.xc:not(.cd) .xc-card,
body.xc:not(.cd) .panel,
body.xc:not(.cd) .page-head { border-radius: 10px; }
body.xc:not(.cd) .xc-card__head { border-bottom-color: var(--xt-line); }
body.xc:not(.cd) .xc-card__title { font-size: 16px; font-weight: 650; color: var(--xt-ink); }
body.xc:not(.cd) .xc-page__title { font-size: 22px; font-weight: 700; color: var(--xt-ink); letter-spacing: .01em; }
body.xc:not(.cd) .button { border-radius: 6px; }
body.xc:not(.cd) .button--primary { background: linear-gradient(180deg, #1f78ff, #0f62e6); border-color: #0f62e6; box-shadow: 0 1px 2px rgba(15, 98, 230, .25); }
body.xc:not(.cd) .button--primary:hover { background: linear-gradient(180deg, #3b8bff, #1a6ef2); }
body.xc:not(.cd) .xc-entry { border-radius: 10px; transition: border-color .15s, box-shadow .15s, transform .15s; }
body.xc:not(.cd) .xc-entry:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16, 36, 80, .08); }
body.xc:not(.cd) table thead th { background: #f6f8fc; color: #4b5873; font-weight: 600; }

/* 页脚：原来行内写死纯黑字，这里改成柔和的灰蓝 */
.xc-footer.site-operator { color: #9aa3b5; padding: 16px 12px 20px; font-size: 11px; line-height: 1.8; text-align: center; }
.xc-footer.site-operator a { color: #7a859c; }
.xc-footer.site-operator a.icp { text-decoration: none; border-bottom: 1px dotted #9aa4b8; }

/* ---------------------------------------------------------------- 首页看板 */
.xt-home { display: flex; flex-direction: column; gap: 16px; }
.xt-home > .xc-card + .xc-card { margin-top: 0; }
.xt-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
    padding: 26px 30px; border-radius: 14px; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, rgba(19, 168, 201, .35) 0%, rgba(19, 168, 201, 0) 55%),
                linear-gradient(115deg, #0a2352 0%, #0d306b 50%, #1450b4 100%);
    box-shadow: 0 10px 30px rgba(10, 35, 82, .22); }
.xt-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
    background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
    background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); }
.xt-hero > * { position: relative; }
.xt-hero__text { flex: 1 1 420px; min-width: 0; }
.xt-hero__kicker { color: #8fd3ff; font-size: 12px; letter-spacing: .12em; }
.xt-hero__title { margin: 6px 0 0; color: #fff; font-size: 24px; font-weight: 700; }
.xt-hero__desc { margin: 8px 0 0; max-width: 720px; color: rgba(255, 255, 255, .8); font-size: 13px; line-height: 1.8; }
.xt-hero__actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; flex: 0 1 340px; }
.xt-hero__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.xt-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.xt-btn .svg-icon { width: 15px; height: 15px; }
.xt-btn--light { background: #fff; color: var(--xt-navy-2); }
.xt-btn--light:hover { background: #e8f1ff; }
.xt-btn--ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); }
.xt-btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.xt-continue { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; column-gap: 12px; padding: 12px 16px; border-radius: 10px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none; backdrop-filter: blur(4px); }
.xt-continue:hover { background: rgba(255, 255, 255, .16); }
.xt-continue__label { color: #8fd3ff; font-size: 12px; }
.xt-continue strong { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-continue__meta { color: rgba(255, 255, 255, .72); font-size: 12px; }
.xt-continue .svg-icon { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 20px; height: 20px; }

.xt-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.xt-kpi { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: #fff; box-shadow: var(--xc-shadow-card);
    color: var(--xt-ink); text-decoration: none; border: 1px solid transparent; }
a.xt-kpi:hover { border-color: #cfdcf3; }
.xt-kpi__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; }
.xt-kpi__icon .svg-icon { width: 21px; height: 21px; }
.xt-kpi strong { display: block; font-size: 26px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.xt-kpi strong small { font-size: 13px; color: var(--xt-muted); font-weight: 500; }
.xt-kpi em { display: block; margin-top: 4px; color: var(--xt-muted); font-style: normal; font-size: 12px; }
.xt-kpi--blue .xt-kpi__icon { background: #e7f0ff; color: #1268f3; }
.xt-kpi--cyan .xt-kpi__icon { background: #e2f6fa; color: #0f93b2; }
.xt-kpi--violet .xt-kpi__icon { background: #efeafe; color: #6a4bd8; }
.xt-kpi--amber .xt-kpi__icon { background: #fff2e0; color: #d97a06; }
.xt-kpi--green .xt-kpi__icon { background: #e4f7ec; color: #12985a; }

.xt-flow .xc-card__head { flex-wrap: wrap; gap: 6px 14px; }
.xt-flow__hint { color: var(--xt-muted); font-size: 12px; }
.xt-flow__steps { counter-reset: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 0; margin: 0; padding: 18px 18px 20px; list-style: none; }
.xt-flow__steps li { position: relative; }
.xt-flow__steps li + li::before { content: ""; position: absolute; top: 30px; left: -50%; right: 50%; height: 2px; background: linear-gradient(90deg, #cfe0ff, #b6d0ff); z-index: 0; }
.xt-flow__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px; color: var(--xt-ink); text-align: center; text-decoration: none; }
.xt-flow__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-top: 8px; border-radius: 50%; background: #fff; border: 2px solid #b6d0ff; color: var(--xt-blue);
    transition: background .15s, color .15s, border-color .15s; }
.xt-flow__icon .svg-icon { width: 20px; height: 20px; }
.xt-flow__num { position: absolute; top: 0; left: calc(50% + 10px); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--xt-navy-2); color: #fff; font-size: 11px; line-height: 18px; z-index: 2; }
.xt-flow__step strong { margin-top: 4px; font-size: 13px; }
.xt-flow__step em { color: var(--xt-muted); font-style: normal; font-size: 12px; line-height: 1.5; }
.xt-flow__step:hover .xt-flow__icon { background: var(--xt-blue); border-color: var(--xt-blue); color: #fff; }

.xt-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.xt-panel { min-width: 0; overflow: hidden; }
.xt-cols > .xc-card { margin-top: 0; }
.xt-more { color: var(--xt-blue); font-size: 13px; text-decoration: none; }
.xt-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 13px; }
.xt-table th, .xt-table td { padding: 9px 18px; border-bottom: 1px solid var(--xt-line); text-align: left; }
.xt-table tbody tr:last-child td { border-bottom: 0; }
.xt-table tbody tr:hover { background: #f7f9fd; }
.xt-table a { color: var(--xt-ink); font-weight: 600; text-decoration: none; }
.xt-table a:hover { color: var(--xt-blue); }
.xt-muted { color: var(--xt-muted); }
.xt-chip { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #eef2f8; color: #4b5873; font-size: 12px; line-height: 18px; }
.xt-chip--completed { background: #e4f7ec; color: #12804d; }
.xt-chip--running, .xt-chip--pending { background: #e7f0ff; color: #1258c9; }
.xt-chip--failed { background: #fdecec; color: #c0392b; }
.xt-runs { margin: 0; padding: 4px 0; list-style: none; }
.xt-runs li { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--xt-line); }
.xt-runs li:last-child { border-bottom: 0; }
.xt-runs__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9aa4b8; }
.xt-runs__dot--completed { background: #12985a; }
.xt-runs__dot--running, .xt-runs__dot--pending { background: #1268f3; }
.xt-runs__dot--failed { background: #e54545; }
.xt-runs__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xt-runs__main a { color: var(--xt-ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-runs__main em, .xt-runs__side em { color: var(--xt-muted); font-style: normal; font-size: 12px; }
.xt-runs__side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.xt-empty { margin: 0; padding: 22px 18px; color: var(--xt-muted); font-size: 13px; }
.xt-empty a { color: var(--xt-blue); }

/* ---------------------------------------------------------------- 登录页：左品牌栏 + 右表单 */
body.xc--guest .login-shell--split { display: grid; place-items: stretch; min-height: 0; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 440px); align-items: stretch; max-width: 1040px; margin: 28px auto;
    padding: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(10, 35, 82, .14); }
body.xc--guest .login-shell--split .login-card.panel { margin: 0; max-width: none; width: auto; border-radius: 0; box-shadow: none; padding: 40px 40px 34px; }
.login-brand--xingtong { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 40px 40px 30px; color: #fff;
    background: radial-gradient(90% 80% at 100% 100%, rgba(19, 168, 201, .4) 0%, rgba(19, 168, 201, 0) 60%), linear-gradient(140deg, #0a2352 0%, #0d306b 55%, #1450b4 100%); }
.login-brand--xingtong::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px); background-size: 32px 32px; }
.login-brand--xingtong > * { position: relative; }
.login-brand--xingtong .login-brand__logo { align-self: flex-start; padding: 6px 10px; border-radius: 8px; background: #fff; }
.login-brand--xingtong .login-brand__logo img { display: block; height: 26px; }
.login-brand--xingtong .login-brand__title { margin: 26px 0 0; color: #fff; font-size: 34px; font-weight: 800; letter-spacing: .06em; }
.login-brand--xingtong .login-brand__lead { margin: 6px 0 0; color: #8fd3ff; font-size: 15px; letter-spacing: .08em; }
.login-brand--xingtong .login-brand__list { margin: 30px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.login-brand--xingtong .login-brand__list li { padding-left: 16px; border-left: 3px solid rgba(143, 211, 255, .7); }
.login-brand--xingtong .login-brand__list strong { display: block; font-size: 15px; }
.login-brand--xingtong .login-brand__list span { display: block; margin-top: 2px; color: rgba(255, 255, 255, .75); font-size: 13px; line-height: 1.6; }
.login-brand--xingtong .login-brand__foot { margin: auto 0 0; padding-top: 30px; color: rgba(255, 255, 255, .55); font-size: 12px; }
body.xc--guest:not(.cd) .login-head__mark { background: #e7f0ff; color: var(--xt-blue); }

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 1200px) { .xt-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
    body.xc--guest .login-shell--split { grid-template-columns: 1fr; margin: 12px auto; border-radius: 12px; }
    body.xc--guest .login-shell--split .login-card.panel { padding: 26px 22px; }
    .login-brand--xingtong { padding: 22px 22px 18px; }
    .login-brand--xingtong .login-brand__title { margin-top: 12px; font-size: 24px; }
    .login-brand--xingtong .login-brand__list, .login-brand--xingtong .login-brand__foot { display: none; }
}
@media (max-width: 720px) {
    .xt-hero { padding: 20px 18px; border-radius: 12px; }
    .xt-hero__title { font-size: 20px; }
    .xt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .xt-kpi { padding: 12px; gap: 10px; }
    .xt-kpi strong { font-size: 22px; }
    .xt-flow__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; padding: 14px 8px 16px; }
    .xt-flow__steps li:nth-child(4n + 1)::before { display: none; }
    .xt-flow__step em { display: none; }
    .xt-cols { grid-template-columns: 1fr; }
    .xt-table th, .xt-table td { padding: 8px 12px; }
}
