:root {
  --bg: #050810;
  --surface: rgba(15, 23, 42, .78);
  --surface-2: rgba(23, 33, 53, .82);
  --line: rgba(148, 163, 184, .16);
  --text: #e8eef8;
  --muted: #8e9bb0;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --violet: #a78bfa;
  --shadow: 0 22px 70px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at 12% 0%, rgba(34,211,238,.08), transparent 27%), radial-gradient(circle at 92% 18%, rgba(59,130,246,.10), transparent 30%), #050810; position: relative; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .24; background-image: linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(110px); opacity: .09; pointer-events: none; }
.ambient-one { background: var(--cyan); left: -220px; top: 40%; }
.ambient-two { background: var(--blue); right: -240px; top: 10%; }
.topbar { height: 76px; padding: 0 max(24px, calc((100vw - 1240px)/2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(5,8,16,.78); backdrop-filter: blur(18px); position: relative; z-index: 10; }
.brand { display: inline-flex; gap: 12px; align-items: center; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(34,211,238,.55); color: var(--cyan); background: rgba(34,211,238,.09); font-weight: 800; clip-path: polygon(20% 0, 80% 0, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0 80%, 0 20%); }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .01em; }
.brand small { margin-top: 3px; font: 600 8px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); letter-spacing: .16em; }
.nav-actions { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.nav-actions > a:first-child { color: var(--muted); }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, rgba(34,211,238,.25), rgba(59,130,246,.22)); border: 1px solid rgba(34,211,238,.35); color: #d9fbff; font-weight: 700; }
.user-copy strong, .user-copy small { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: 12px; }.user-copy small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.page-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; min-height: calc(100vh - 136px); padding: 52px 0 70px; position: relative; z-index: 1; }
.footer { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0 30px; border-top: 1px solid var(--line); color: #64748b; font-size: 11px; display: flex; justify-content: space-between; position: relative; z-index: 1; }
.panel { position: relative; background: linear-gradient(145deg, rgba(18,27,46,.92), rgba(9,15,27,.94)); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.eyebrow, .kicker, .section-label { color: var(--cyan); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; }
.pulse { width: 7px; height: 7px; display: inline-block; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(52,211,153,.1), 0 0 18px rgba(52,211,153,.65); }
.login-layout { min-height: 650px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 90px; align-items: center; }
.hero-copy h1 { margin: 20px 0 24px; font-size: clamp(44px, 5vw, 72px); line-height: 1.06; letter-spacing: -.055em; }
.hero-copy h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(34,211,238,.9); text-shadow: 0 0 34px rgba(34,211,238,.13); }
.hero-copy > p { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.feature-row { display: flex; gap: 44px; margin-top: 46px; }
.feature-row div { display: grid; gap: 7px; }
.feature-row strong { color: var(--cyan); font: 700 11px ui-monospace, monospace; }
.feature-row span { color: #cbd5e1; font-size: 13px; }
.login-card { padding: 48px; overflow: hidden; }
.panel-glow { position: absolute; width: 180px; height: 180px; right: -70px; top: -80px; background: var(--cyan); filter: blur(90px); opacity: .12; }
.lock-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 28px; color: var(--cyan); border: 1px solid rgba(34,211,238,.35); transform: rotate(45deg); background: rgba(34,211,238,.07); }
.lock-icon::first-letter { transform: rotate(-45deg); }
.login-card h2 { margin: 9px 0 12px; font-size: 28px; letter-spacing: -.03em; }
.login-card > p:not(.kicker) { color: var(--muted); line-height: 1.65; font-size: 14px; }
.button { border: 1px solid transparent; border-radius: 7px; min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-weight: 650; font-size: 13px; transition: .18s ease; color: var(--text); background: transparent; }
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button-primary { background: linear-gradient(135deg, #0891b2, #2563eb); border-color: rgba(103,232,249,.34); box-shadow: 0 8px 24px rgba(37,99,235,.2); }
.button-secondary { background: rgba(34,211,238,.09); border-color: rgba(34,211,238,.28); color: #b9f5fd; }
.button-ghost { border-color: var(--line); color: #aeb9ca; }
.button-small { min-height: 34px; padding: 0 12px; font-size: 11px; }
.button-microsoft { width: 100%; margin-top: 28px; min-height: 52px; background: #f8fafc; color: #172033; }
.ms-grid { display: grid; grid-template-columns: repeat(2, 7px); gap: 2px; }.ms-grid i { width: 7px; height: 7px; background: #f25022; }.ms-grid i:nth-child(2) { background: #7fba00; }.ms-grid i:nth-child(3) { background: #00a4ef; }.ms-grid i:nth-child(4) { background: #ffb900; }
.secure-note { color: #708096; font-size: 10px; text-align: center; margin-top: 20px; }.secure-note span { color: var(--green); }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; gap: 30px; }
.page-heading.compact { align-items: center; }.page-heading h1 { font-size: 38px; letter-spacing: -.04em; margin: 10px 0 8px; }.page-heading p { color: var(--muted); margin: 0; }.heading-actions { display: flex; gap: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(15,23,42,.62); display: flex; justify-content: space-between; align-items: center; transition: .18s ease; }.stat-card:hover,.stat-card.active { border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.07); }.stat-card span { color: var(--muted); font-size: 12px; }.stat-card strong { font: 700 23px ui-monospace, monospace; color: #dffbff; }
.table-panel { overflow: hidden; }
.filters { padding: 17px; display: flex; gap: 10px; border-bottom: 1px solid var(--line); }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 230px; padding: 0 13px; border: 1px solid var(--line); background: rgba(2,6,23,.48); border-radius: 7px; color: var(--muted); }.search-field input { width: 100%; border: 0; padding: 11px 0; color: var(--text); background: transparent; outline: none; }
select, input, textarea { border: 1px solid rgba(148,163,184,.2); background: #0b1220; color: var(--text); border-radius: 7px; padding: 11px 12px; outline: none; }select:focus,input:focus,textarea:focus { border-color: rgba(34,211,238,.65); box-shadow: 0 0 0 3px rgba(34,211,238,.08); }.clear-link { align-self: center; color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th { padding: 13px 18px; color: #708096; font: 700 9px ui-monospace, monospace; letter-spacing: .12em; text-align: left; text-transform: uppercase; background: rgba(2,6,23,.32); }td { padding: 16px 18px; border-top: 1px solid rgba(148,163,184,.09); color: #b9c4d4; font-size: 12px; }tbody tr:hover { background: rgba(34,211,238,.025); }.ticket-link small,.ticket-link strong { display: block; }.ticket-link small { color: var(--cyan); font: 700 9px ui-monospace, monospace; margin-bottom: 5px; }.ticket-link strong { color: var(--text); font-size: 13px; max-width: 360px; }
.status,.priority { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 700; border: 1px solid var(--line); white-space: nowrap; }.status-新建 { color: #93c5fd; background: rgba(59,130,246,.1); }.status-处理中 { color: #67e8f9; background: rgba(34,211,238,.1); }.status-等待反馈 { color: #fde68a; background: rgba(251,191,36,.1); }.status-已解决 { color: #6ee7b7; background: rgba(52,211,153,.1); }.status-已关闭 { color: #94a3b8; background: rgba(148,163,184,.08); }.priority-低 { color: #94a3b8; }.priority-中 { color: #67e8f9; }.priority-高 { color: #fbbf24; }.priority-紧急 { color: #fb7185; background: rgba(251,113,133,.08); }
.empty-state { padding: 76px 20px; text-align: center; }.empty-state > span { color: var(--cyan); font: 700 36px ui-monospace, monospace; }.empty-state h3,.empty-state h1 { margin: 12px 0 7px; }.empty-state p { color: var(--muted); margin: 0 0 24px; }.empty-state.standalone { min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.form-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 30px; }.field { display: grid; gap: 8px; }.field.full,.form-actions.full { grid-column: 1 / -1; }.field label { color: #aeb9ca; font-size: 12px; font-weight: 650; }.field label b { color: var(--red); }.field textarea { resize: vertical; line-height: 1.6; }.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; }.ticket-body,.metadata-card { padding: 28px; }.section-label { margin-bottom: 18px; }.section-label span { color: var(--muted); }.description { color: #cbd5e1; line-height: 1.8; white-space: pre-wrap; }.divider { height: 1px; background: var(--line); margin: 32px 0; }.comments { display: grid; gap: 22px; }.comment { display: flex; gap: 12px; }.comment-meta { display: flex; align-items: baseline; gap: 10px; }.comment-meta time { color: #64748b; font-size: 10px; }.comment p { margin: 7px 0 0; color: #b9c4d4; line-height: 1.6; white-space: pre-wrap; }.comment-form { display: grid; gap: 10px; margin-top: 26px; }.comment-form .button { justify-self: end; }.muted { color: var(--muted); }.metadata-card { align-self: start; }.metadata-card dl { margin: 0; }.metadata-card dl > div { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid rgba(148,163,184,.1); }.metadata-card dt { color: var(--muted); font-size: 11px; }.metadata-card dd { margin: 0; color: #dbe4ef; font-size: 12px; text-align: right; }
.flash-stack { position: fixed; z-index: 30; top: 90px; right: 24px; display: grid; gap: 8px; }.flash { min-width: 260px; padding: 13px 16px; border-radius: 8px; border: 1px solid var(--line); background: #101827; box-shadow: var(--shadow); font-size: 12px; }.flash-success { border-color: rgba(52,211,153,.38); color: #a7f3d0; }.flash-error { border-color: rgba(251,113,133,.38); color: #fecdd3; }
@media (max-width: 900px) { .login-layout { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }.hero-copy h1 { font-size: 48px; }.stats-grid { grid-template-columns: repeat(2,1fr); }.detail-grid { grid-template-columns: 1fr; }.nav-actions > a:first-child,.user-copy { display: none; } }
@media (max-width: 620px) { .topbar { padding: 0 16px; }.page-shell,.footer { width: min(100% - 28px,1240px); }.page-shell { padding-top: 34px; }.nav-actions { gap: 7px; }.user-chip { padding-left: 0; border: 0; }.page-heading { align-items: flex-start; flex-direction: column; }.page-heading h1 { font-size: 32px; }.stats-grid { grid-template-columns: 1fr 1fr; }.filters { flex-direction: column; }.form-panel { grid-template-columns: 1fr; padding: 20px; }.field.full,.form-actions.full { grid-column: auto; }.table-panel { border-radius: 10px; }.login-card { padding: 30px 24px; }.hero-copy h1 { font-size: 39px; }.feature-row { gap: 24px; }.footer { flex-direction: column; gap: 7px; }.heading-actions { width: 100%; }.heading-actions .button { flex: 1; } }
