:root {
  color-scheme: light;
  --ink: #162d3d;
  --muted: #647682;
  --navy: #0b3b5a;
  --teal: #087f73;
  --sky: #eaf4f8;
  --mint: #e8f6f3;
  --sand: #fff6df;
  --danger: #b42318;
  --line: #dce5ea;
  --surface: #ffffff;
  --canvas: #f4f7f8;
  --shadow: 0 14px 36px rgb(27 53 68 / 9%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 50; background: var(--surface); padding: .7rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.topbar { height: 72px; display: flex; align-items: center; gap: 1.5rem; padding: 0 max(1.25rem, calc((100vw - 1320px)/2)); color: white; background: linear-gradient(112deg, #082f49, #0d5366 72%, #087f73); box-shadow: 0 3px 14px rgb(8 47 73 / 24%); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: .75rem; color: white; border: 0; background: none; text-align: left; padding: 0; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #dff6f0; color: var(--navy); font-weight: 800; letter-spacing: -.08em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; letter-spacing: .03em; }
.brand small { margin-top: .16rem; font-size: .65rem; opacity: .72; }
.nav { display: flex; align-items: center; gap: .3rem; flex: 1; }
.nav button { border: 0; color: rgb(255 255 255 / 76%); background: transparent; padding: .65rem .8rem; border-radius: .55rem; }
.nav button:hover, .nav button.active { color: white; background: rgb(255 255 255 / 13%); }
.account { display: flex; align-items: center; gap: .6rem; font-size: .84rem; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--navy); background: #dff6f0; }
.account button { color: white; border: 1px solid rgb(255 255 255 / 32%); background: transparent; border-radius: .45rem; padding: .42rem .65rem; }
#main { max-width: 1320px; margin: 0 auto; padding: 2rem 1.25rem 4rem; min-height: calc(100vh - 72px); }
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.45fr .55fr; gap: 2rem; min-height: 230px; border-radius: 24px; padding: 2.7rem; color: white; background: linear-gradient(125deg, #0a3b59, #106774 78%, #0b887a); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -70px; top: -130px; border: 50px solid rgb(255 255 255 / 8%); border-radius: 50%; }
.eyebrow { color: #86d9cd; text-transform: uppercase; font-size: .76rem; font-weight: 750; letter-spacing: .13em; }
.hero h1 { max-width: 720px; margin: .6rem 0 .85rem; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.12; letter-spacing: -.035em; }
.hero p { max-width: 720px; margin: 0; color: rgb(255 255 255 / 78%); line-height: 1.7; }
.hero-stat { align-self: end; justify-self: end; min-width: 190px; padding: 1.2rem; border: 1px solid rgb(255 255 255 / 18%); border-radius: 16px; background: rgb(255 255 255 / 9%); backdrop-filter: blur(12px); }
.hero-stat strong { display: block; font-size: 2.2rem; }
.hero-stat span { color: rgb(255 255 255 / 70%); font-size: .82rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.toolbar h1, .toolbar h2 { margin: 0; }
.search { position: relative; min-width: min(100%, 390px); }
.search input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 0 1rem 0 2.7rem; outline: none; }
.search::before { content: "⌕"; position: absolute; left: 1rem; top: .52rem; color: var(--muted); font-size: 1.25rem; }
.search input:focus, input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(8 127 115 / 13%); outline: none; }
.section-title { margin: 2rem 0 1rem; display: flex; align-items: baseline; justify-content: space-between; }
.section-title h2 { margin: 0; font-size: 1.25rem; }
.section-title span { color: var(--muted); font-size: .82rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.catalog-card { position: relative; text-align: left; min-height: 190px; padding: 1.35rem; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 5px 18px rgb(27 53 68 / 4%); transition: transform .18s, box-shadow .18s, border-color .18s; }
.catalog-card:hover { transform: translateY(-3px); border-color: #96c8c2; box-shadow: var(--shadow); }
.catalog-card .domain { color: var(--teal); font-size: .72rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.catalog-card h3 { margin: .65rem 0 .45rem; font-size: 1.08rem; }
.catalog-card p { color: var(--muted); line-height: 1.55; font-size: .88rem; margin: 0 0 1rem; }
.meta { display: flex; flex-wrap: wrap; gap: .45rem; color: var(--muted); font-size: .72rem; }
.pill { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .25rem .55rem; background: var(--sky); color: #245873; font-size: .72rem; font-weight: 650; }
.pill.attention { background: var(--sand); color: #805b14; }
.pill.status { background: var(--mint); color: #0a6b61; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 7px 24px rgb(27 53 68 / 5%); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.35rem; border-bottom: 1px solid var(--line); }
.panel-header h2, .panel-header h3 { margin: 0; }
.panel-body { padding: 1.35rem; }
.login-wrap { min-height: calc(100vh - 150px); display: grid; place-items: center; }
.login-card { display: grid; grid-template-columns: 1fr 1fr; width: min(960px, 100%); overflow: hidden; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.login-copy { padding: 3.5rem; color: white; background: linear-gradient(145deg, #092f49, #087f73); }
.login-copy h1 { margin: 1rem 0; font-size: 2.7rem; line-height: 1.15; }
.login-copy p { color: rgb(255 255 255 / 75%); line-height: 1.7; }
.login-form { padding: 3.5rem; }
.login-form h2 { margin-top: 0; }
.login-form label { display: block; margin: 1rem 0 .4rem; font-size: .82rem; font-weight: 700; }
.feishu-login { width: 100%; min-height: 48px; margin-top: 1.4rem; font-size: .95rem; }
.feishu-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: var(--teal); background: white; font-size: .78rem; font-weight: 850; }
.login-note { margin: .65rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.login-unavailable { display: grid; gap: .3rem; margin-top: 1.4rem; padding: .9rem 1rem; border: 1px dashed #b9cbd3; border-radius: 10px; background: var(--canvas); }
.login-unavailable.attention { border-style: solid; border-color: #e8c46d; background: var(--sand); }
.login-unavailable strong { font-size: .86rem; }
.login-unavailable span { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.login-divider { display: flex; align-items: center; gap: .7rem; margin: 1.35rem 0 .25rem; color: var(--muted); font-size: .72rem; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-login { width: 100%; margin-top: 1rem; }
.field, .login-form select { width: 100%; min-height: 44px; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
textarea.field { min-height: 110px; resize: vertical; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.2rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: .35rem; min-height: 40px; border: 1px solid transparent; border-radius: 10px; padding: .6rem .9rem; font-weight: 700; font-size: .84rem; }
.btn-primary { color: white; background: var(--teal); }
.btn-primary:hover { background: #066d63; }
.btn-secondary { color: var(--navy); border-color: var(--line); background: white; }
.btn-danger { color: var(--danger); border-color: #f0b8b3; background: #fff8f7; }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.form-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .42rem; font-size: .82rem; font-weight: 720; }
.required { color: var(--danger); }
.help { margin-top: .3rem; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.summary-list { margin: 0; padding: 0; list-style: none; }
.summary-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.summary-list li:last-child { border-bottom: 0; }
.summary-list span { color: var(--muted); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th { color: #49616f; background: #f5f8f9; font-size: .72rem; text-align: left; letter-spacing: .03em; }
th, td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfd; }
.link-button { border: 0; padding: 0; color: var(--teal); font-weight: 720; background: none; text-align: left; }
.empty { padding: 3rem; text-align: center; color: var(--muted); }
.detail-head { display: grid; grid-template-columns: 1fr auto; gap: 1rem; margin-bottom: 1rem; }
.detail-head h1 { margin: .4rem 0; font-size: 1.8rem; }
.detail-head p { margin: 0; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
.stack { display: grid; gap: 1rem; }
.description { white-space: pre-wrap; line-height: 1.7; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.25rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 12px; height: 12px; border: 2px solid white; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px #b6dad5; }
.timeline strong, .timeline small { display: block; }
.timeline small { margin-top: .25rem; color: var(--muted); }
.task { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task-head { display: flex; justify-content: space-between; gap: 1rem; }
.task p { margin: .5rem 0 0; color: var(--muted); font-size: .82rem; }
.adjustment-box { margin-top: .85rem; padding: .8rem .9rem; border: 1px solid #badbd6; border-radius: 10px; background: var(--mint); }
.adjustment-box > div { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.adjustment-box span { color: var(--muted); font-size: .72rem; }
.adjustment-box p { color: var(--ink); }
.file-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.file-chip { padding: .35rem .55rem; border-radius: 8px; color: var(--navy); background: var(--mint); font-size: .74rem; }
.file-error { width: 100%; color: var(--danger); font-size: .78rem; }
.attachment-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.attachment-row:last-of-type { margin-bottom: .8rem; }
.attachment-row small { color: var(--muted); }
.danger-link { color: var(--danger); }
.comment { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment-head { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; }
.comment p { white-space: pre-wrap; margin: .45rem 0 0; line-height: 1.55; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.stat-card span { color: var(--muted); font-size: .78rem; }
.stat-card strong { display: block; margin-top: .45rem; font-size: 2rem; color: var(--navy); }
.bars { display: grid; gap: .8rem; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 55px; align-items: center; gap: .8rem; font-size: .8rem; }
.bar { height: 10px; overflow: hidden; border-radius: 999px; background: #edf2f4; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--teal)); }
dialog { width: min(760px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(8 47 73 / 46%); backdrop-filter: blur(3px); }
.dialog-head, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.dialog-head { border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; }
.dialog-body { padding: 1.25rem; }
.dialog-actions { justify-content: flex-end; border-top: 1px solid var(--line); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.check-item { display: flex; align-items: center; gap: .5rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); font-size: .82rem; }
.check-item input { width: 17px; height: 17px; accent-color: var(--teal); }
.role-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.button-row.compact { margin-top: 0; gap: .4rem; }
.toast { position: fixed; left: 50%; bottom: -100px; z-index: 100; transform: translateX(-50%); max-width: min(90vw, 560px); padding: .8rem 1rem; border-radius: 10px; color: white; background: #183b4e; box-shadow: var(--shadow); transition: bottom .2s; }
.toast.show { bottom: 1.5rem; }
.toast.error { background: #842b24; }
.loading { display: grid; place-items: center; min-height: 300px; color: var(--muted); }
.loading::before { content: ""; width: 28px; height: 28px; margin-right: .8rem; border: 3px solid #cbdade; border-top-color: var(--teal); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 980px) {
  .nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; justify-content: space-around; color: var(--ink); background: white; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgb(27 53 68 / 8%); }
  .nav button { flex: 1; color: var(--muted); border-radius: 0; }
  .nav button:hover, .nav button.active { color: var(--teal); background: var(--mint); }
  #main { padding-bottom: 6rem; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .form-layout, .detail-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .topbar { height: 62px; padding: 0 .8rem; }
  .brand small, .account .account-copy { display: none; }
  #main { padding: 1rem .8rem 5.5rem; }
  .hero { grid-template-columns: 1fr; padding: 1.6rem; border-radius: 18px; }
  .hero-stat { justify-self: stretch; }
  .catalog-grid, .form-grid, .login-card { grid-template-columns: 1fr; }
  .login-copy { padding: 2rem; }
  .login-form { padding: 2rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .detail-head { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 90px 1fr 40px; }
  .check-grid { grid-template-columns: 1fr; }
}
