:root {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #17271f;
  background: #f1f2ea;
  --ink: #17271f;
  --muted: #738078;
  --green: #244536;
  --green-2: #315a46;
  --lime: #d9f0aa;
  --paper: #fbfcf7;
  --line: #dce2d7;
  --danger: #b94b43;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 20px 60px rgba(43, 60, 48, .12);
}
* { box-sizing: border-box; }
html { background: #eef0e7; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 90% 8%, rgba(185,220,149,.23), transparent 23%), #f1f2ea; }
body.layer-open { overflow: hidden; }
html, body, .modal, .agent-dialog, .mobile-nav { -ms-overflow-style: none; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .modal::-webkit-scrollbar, .agent-dialog::-webkit-scrollbar, .mobile-nav::-webkit-scrollbar { width: 0; background: transparent; }
button, input { font: inherit; }
button, a, label[tabindex] { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(70,122,93,.28); outline-offset: 2px; }
[hidden] { display: none !important; }
.demo-ribbon { position: fixed; z-index: 100; right: 16px; bottom: 15px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(34,69,54,.16); border-radius: 999px; color: #405449; background: rgba(250,252,246,.9); box-shadow: 0 10px 35px rgba(32,54,42,.14); backdrop-filter: blur(16px); font-size: 10px; font-weight: 800; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: #efa939; box-shadow: 0 0 0 4px rgba(239,169,57,.14); }
.eyebrow { color: #8b998f; font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; color: #eff7e9; background: var(--green); font-size: 13px; font-weight: 900; }

/* 登录 */
.login-view { width: min(1320px, calc(100% - 28px)); min-height: calc(100vh - 28px); margin: 14px auto; overflow: hidden; border: 1px solid rgba(73,94,80,.16); border-radius: 28px; background: rgba(251,252,247,.9); box-shadow: var(--shadow); }
.login-brand { display: flex; align-items: center; gap: 10px; padding: 26px 30px; font-weight: 900; letter-spacing: -.025em; }
.login-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: stretch; min-height: calc(100vh - 116px); padding: 0 30px 30px; }
.login-story { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 110px) clamp(34px, 6vw, 80px); border-radius: 24px; color: #edf6e8; background: var(--green); }
.login-story::before, .login-story::after { content: ''; position: absolute; border: 1px solid rgba(216,240,169,.18); border-radius: 50%; }
.login-story::before { width: 520px; height: 520px; right: -230px; bottom: -250px; }
.login-story::after { width: 330px; height: 330px; right: -135px; bottom: -155px; border-width: 60px; }
.login-story .eyebrow { color: #a7c0ad; }
.login-story h1 { position: relative; z-index: 1; margin: 24px 0 20px; font-family: Georgia, "Songti SC", serif; font-size: clamp(46px, 6vw, 78px); font-weight: 500; line-height: 1.02; letter-spacing: -.06em; }
.login-story > p { position: relative; z-index: 1; max-width: 520px; color: #b8cabc; font-size: 13px; line-height: 1.8; }
.story-cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 600px; margin-top: 70px; border-top: 1px solid rgba(216,240,169,.22); }
.story-cards div { padding: 18px 12px 0 0; }
.story-cards strong { display: block; color: var(--lime); font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.story-cards span { display: block; margin-top: 8px; color: #9eb4a4; font-size: 11px; }
.login-card { align-self: center; width: min(390px, calc(100% - 40px)); margin: auto; padding: 36px; }
.login-card-head { margin-bottom: 28px; }
.login-card-head h2 { margin: 10px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 29px; font-weight: 500; letter-spacing: -.03em; }
.login-card-head p { margin: 0 0 28px; color: var(--muted); font-size: 12px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; color: #425249; font-size: 11px; font-weight: 800; }
.field input { width: 100%; height: 45px; padding: 0 13px; border: 1px solid #d5ddd3; border-radius: 10px; outline: none; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s; }
.field input::placeholder { color: #a4ada6; font-weight: 600; opacity: 1; }
.field input:focus { border-color: #658873; box-shadow: 0 0 0 4px rgba(64,112,84,.1); }
.field.is-invalid input { border-color: #d88b84; box-shadow: 0 0 0 4px rgba(185,75,67,.09); }
.form-validation-message { display: block; margin-top: 1px; color: #a44841; font-size: 9px; font-weight: 700; line-height: 1.5; }
.custom-select { position: relative; }
.custom-select-trigger { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; height: 45px; padding: 0 13px; border: 1px solid #d5ddd3; border-radius: 10px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 700; text-align: left; transition: border-color .18s, box-shadow .18s, background .18s; }
.custom-select-trigger:hover { border-color: #aebcaf; background: #fbfcf9; }
.custom-select-trigger:focus, .custom-select.open .custom-select-trigger { border-color: #658873; box-shadow: 0 0 0 4px rgba(64,112,84,.1); }
.custom-select.is-invalid .custom-select-trigger { border-color: #d88b84; box-shadow: 0 0 0 4px rgba(185,75,67,.09); }
.select-chevron { position: relative; display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; overflow: hidden; color: transparent; font-size: 0; line-height: 1; }
.select-chevron::before { content: ''; width: 7px; height: 7px; border-right: 2px solid #617068; border-bottom: 2px solid #617068; transform: translateY(-2px) rotate(45deg); transform-origin: center; transition: transform .18s var(--ease); }
.custom-select.open .select-chevron::before { transform: translateY(2px) rotate(225deg); }
.custom-select-menu { position: absolute; z-index: 35; top: calc(100% + 7px); right: 0; left: 0; overflow: hidden; padding: 6px; border: 1px solid #d5ddd3; border-radius: 12px; background: #fff; box-shadow: 0 18px 42px rgba(31,52,40,.16); transform-origin: top center; animation: select-in .18s var(--ease); }
.custom-select-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; color: #415148; background: transparent; font-size: 11px; font-weight: 700; text-align: left; transition: color .15s, background-color .15s; }
.custom-select-option:hover, .custom-select-option:focus { color: #244536; background: #f0f5eb; outline: none; }
.custom-select-option[aria-selected="true"] { color: #244536; background: #e5efd9; }
.custom-select-option[aria-selected="true"]::after { content: ''; width: 6px; height: 10px; margin: 0 4px 3px 2px; flex: 0 0 6px; border-right: 2px solid #315a46; border-bottom: 2px solid #315a46; transform: rotate(45deg); }
.custom-select-option small { margin-left: auto; color: #89968d; font-size: 9px; font-weight: 500; }
@keyframes select-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } }
.captcha-field { display: grid; grid-template-columns: 1fr 105px; gap: 8px; }
.captcha { border: 1px solid #d5ddd3; border-radius: 10px; color: #274b39; background: #ebf1df; font-family: Georgia, serif; font-size: 17px; font-weight: 700; letter-spacing: .13em; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 43px; padding: 0 16px; border-radius: 10px; font-size: 12px; font-weight: 800; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { border: 1px solid var(--green); color: #f7faef; background: var(--green); box-shadow: 0 10px 24px rgba(36,69,54,.18); }
.button.primary:hover { background: var(--green-2); box-shadow: 0 14px 28px rgba(36,69,54,.23); }
.button.ghost { border: 1px solid #d7ded5; color: #56645c; background: #fff; }
.button.danger { border: 1px solid #e2b6b0; color: #9f4039; background: #fff6f5; }
.button.primary.danger { border-color: #b94b43; color: #fffaf8; background: #b94b43; box-shadow: 0 10px 24px rgba(151,55,49,.18); }
.button.primary.danger:hover { border-color: #9f4039; color: #fff; background: #9f4039; box-shadow: 0 14px 28px rgba(151,55,49,.24); }
.button.primary.danger:active { transform: translateY(0); background: #87362f; box-shadow: 0 7px 18px rgba(151,55,49,.2); }
.button.primary.danger:focus-visible { outline-color: rgba(185,75,67,.32); }
.button.wide { width: 100%; }
.button:disabled { cursor: default; opacity: .55; transform: none; }
.login-hint { margin: 17px 0 0; color: #99a49c; font-size: 10px; text-align: center; }

/* 应用框架 */
.app-view { width: min(1420px, calc(100% - 24px)); min-height: calc(100vh - 24px); margin: 12px auto; overflow: clip; border: 1px solid rgba(73,94,80,.17); border-radius: 24px; background: rgba(251,252,247,.94); box-shadow: var(--shadow); }
.app-header { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; padding: 0 26px; border-bottom: 1px solid var(--line); background: rgba(251,252,247,.9); backdrop-filter: blur(18px); }
.app-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 900; text-decoration: none; letter-spacing: -.02em; }
.desktop-nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.desktop-nav a { padding: 8px 16px; border-radius: 999px; color: #6f7c74; font-size: 11px; font-weight: 800; text-decoration: none; transition: color .18s, background-color .18s; }
.desktop-nav a:hover { color: #294335; background: #f2f5ee; }
.desktop-nav a.active { color: #f5f9ee; background: var(--green); }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 9px; }
.account-button { display: flex; align-items: center; gap: 8px; padding: 4px 7px 4px 4px; border: 0; border-radius: 999px; color: #516057; background: transparent; font-size: 10px; }
.account-button:hover { background: #eef2ea; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #2f513f; background: #deebce; font-size: 10px; font-weight: 900; }
.account-menu { position: absolute; z-index: 70; top: 66px; right: 26px; display: grid; gap: 5px; width: 168px; padding: 8px; border: 1px solid rgba(73,94,80,.16); border-radius: 17px; background: rgba(255,255,252,.97); box-shadow: 0 20px 48px rgba(31,47,38,.18); backdrop-filter: blur(18px); transform-origin: top right; animation: account-menu-in .28s var(--ease); }
.account-menu::before { content: ''; position: absolute; top: -5px; right: 24px; width: 10px; height: 10px; border-top: 1px solid rgba(73,94,80,.16); border-left: 1px solid rgba(73,94,80,.16); background: rgba(255,255,252,.97); transform: rotate(45deg); }
.account-menu a, .account-menu button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 42px; padding: 0 11px; border: 0; border-radius: 11px; color: #405148; background: #f3f6ef; font-size: 11px; font-weight: 800; text-align: left; text-decoration: none; transition: color .22s var(--ease), background-color .22s var(--ease), transform .22s var(--ease); }
.account-menu a::before, .account-menu button::before { content: ''; width: 23px; height: 23px; flex: 0 0 23px; border-radius: 8px; }
.account-menu a::before { background: radial-gradient(circle, #315a46 0 3px, #e3efd7 4px); }
.account-menu button { color: #9d4540; background: #fff2f0; }
.account-menu button::before { background: radial-gradient(circle, #a54842 0 3px, #fbdedb 4px); }
.account-menu .logout-link { color: #9d4540; background: #fff2f0; }
.account-menu .logout-link::before { background: radial-gradient(circle, #a54842 0 3px, #fbdedb 4px); }
.account-menu a:hover, .account-menu a:focus-visible { color: #203c2f; background: #eaf1e3; transform: translateX(2px); }
.account-menu button:hover, .account-menu button:focus-visible { color: #8f352f; background: #fde6e3; transform: translateX(2px); }
.account-menu .logout-link:hover, .account-menu .logout-link:focus-visible { color: #8f352f; background: #fde6e3; transform: translateX(2px); }
@keyframes account-menu-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.mobile-menu { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mobile-nav { position: fixed; z-index: 60; top: 88px; right: 24px; left: 24px; display: none; max-height: calc(100vh - 112px); overflow: auto; padding: 10px; border: 1px solid rgba(73,94,80,.18); border-radius: 16px; opacity: 0; visibility: hidden; background: rgba(251,252,247,.96); box-shadow: 0 16px 42px rgba(31,47,38,.1); backdrop-filter: blur(18px); pointer-events: none; transform: translateY(-12px) scale(.985); transform-origin: top center; transition: opacity .34s ease, transform .42s var(--ease), box-shadow .42s var(--ease), visibility 0s linear .42s; }
.mobile-nav a { padding: 10px; border-radius: 9px; color: #657168; font-size: 11px; font-weight: 800; text-decoration: none; }
.mobile-nav a.active { color: #fff; background: var(--green); }
#page-root { min-height: calc(100vh - 150px); outline: none; }
footer { padding: 28px 20px 35px; color: #929c94; font-size: 10px; text-align: center; }

/* 页面通用 */
.page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 60px; animation: page-in .36s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 26px; }
.page-heading h1 { margin: 8px 0 7px; font-family: Georgia, "Songti SC", serif; font-size: clamp(34px, 5vw, 52px); font-weight: 500; line-height: 1.08; letter-spacing: -.05em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.hero-action { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 17px; border: 0; border-radius: 999px; color: #eef8e8; background: var(--green); font-size: 11px; font-weight: 800; }
.hero-action-icon { position: relative; display: block; width: 34px; height: 34px; flex: 0 0 34px; padding: 0; overflow: hidden; border-radius: 50%; color: transparent; background: var(--lime); font-size: 0; }
.hero-action-icon::before, .hero-action-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 13px; height: 2px; border-radius: 999px; background: var(--green); transform: translate(-50%, -50%) rotate(0deg); transform-origin: center; transition: transform .22s var(--ease); }
.hero-action-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.hero-action:hover .hero-action-icon::before { transform: translate(-50%, -50%) rotate(90deg); }
.hero-action:hover .hero-action-icon::after { transform: translate(-50%, -50%) rotate(180deg); }
.card { position: relative; overflow: hidden; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: transform .24s var(--ease), box-shadow .24s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(37,54,43,.09); }
.summary-card { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 190px; overflow: hidden; padding: 26px 22px; border: 1px solid #315b47; border-radius: 22px; color: #edf6e9; background: var(--green); box-shadow: 0 16px 36px rgba(36,69,54,.13); }
.summary-card::after { content: ''; position: absolute; right: -105px; bottom: -165px; width: 330px; height: 330px; border: 62px solid rgba(216,240,169,.13); border-radius: 50%; }
.summary-metric { position: relative; z-index: 1; display: flex; min-width: 0; padding: 2px 24px; border-right: 1px solid rgba(216,240,169,.18); align-items: center; flex-direction: column; text-align: center; }
.summary-metric:last-child { border-right: 0; }
.summary-metric .eyebrow { color: #a9c0ae; }
.summary-value { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin: 24px 0 13px; font-family: Georgia, "Times New Roman", serif; font-size: 48px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; line-height: 48px; letter-spacing: 0; }
.summary-note { display: flex; align-items: center; justify-content: center; width: 100%; gap: 7px; margin-top: auto; color: #b8cbbd; font-size: 10px; font-weight: 600; }
.summary-rate { gap: 2px; flex-direction: column; line-height: 1.25; }
.summary-rate strong { color: #edf6e9; font-size: 12px; font-variant-numeric: tabular-nums; }
.summary-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(216,240,169,.12); }
.section-card { margin-top: 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 19px 21px; border-bottom: 1px solid #e8ece5; }
.section-head h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 18px; font-weight: 500; }
.section-heading-copy { min-width: 0; }
.task-hint { display: flex; align-items: center; gap: 8px; max-width: 570px; margin: 8px 0 0; color: #758178; font-size: 9px; line-height: 1.65; }
.task-hint-icon { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; color: #b42318; background: #fee4e2; font-family: Georgia, serif; font-size: 11px; font-weight: 800; }
.filter-tabs { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #f1f4ee; }
.filter-slider { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 999px; background: var(--green); box-shadow: 0 5px 14px rgba(36,69,54,.14); pointer-events: none; transform: translateX(0); transition: width .46s var(--ease), transform .46s var(--ease), box-shadow .46s var(--ease); }
.filter-tabs button { position: relative; z-index: 1; padding: 6px 10px; border: 0; border-radius: 999px; color: #7b867e; background-color: transparent; font-size: 9px; font-weight: 800; transition: color .34s var(--ease); }
.filter-tabs button.active { color: #fff; background-color: transparent; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 11px; }
.data-table th { padding: 11px 20px; color: #93a097; background: #fafbf8; font-size: 9px; text-align: left; text-transform: uppercase; letter-spacing: .1em; }
.data-table td { padding: 15px 20px; border-top: 1px solid #ecefe9; vertical-align: middle; }
.data-table tbody tr { transition: background .16s; }
.data-table tbody tr:hover { background: #fafcf7; }
.file-cell { display: flex; align-items: center; gap: 11px; }
.file-icon { display: grid; place-items: center; width: 33px; height: 38px; flex: 0 0 auto; border-radius: 8px; color: #b65049; background: #fff0ee; font-size: 8px; font-weight: 900; }
.file-cell strong { display: block; font-size: 11px; white-space: nowrap; }
.file-cell small { display: block; margin-top: 4px; color: #99a39c; font-size: 9px; }
.state { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; word-break: keep-all; writing-mode: horizontal-tb; }
.state::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.state.submitted, .state.completed, .state.online { color: #387454; background: #e9f5eb; }
.state.queued { color: #6f7b73; background: #edf0ed; }
.state.waiting_conversion, .state.converting, .state.waiting, .state.processing { color: #8b681d; background: #fff5d9; }
.state.printing { color: #3d669a; background: #eaf1fb; }
.state.failed, .state.disabled { color: #a5443d; background: #fff0ee; }
.state.cancelled, .state.offline { color: #6f7b73; background: #edf0ed; }
.state.abnormal { color: #a5443d; background: #fff0ee; }
.state.unknown { color: #8b681d; background: #fff5d9; }
.task-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; padding: 20px 18px 24px; border-top: 1px solid #edf0e9; }
.page-button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 11px; border: 1px solid #dce4d8; border-radius: 999px; color: #52635a; background: #fff; font-size: 9px; font-weight: 800; text-decoration: none; transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease; }
.page-button:hover { color: #fff; border-color: var(--green); background: var(--green); transform: translateY(-1px); }
.page-button.active { color: #fff; border-color: var(--green); background: var(--green); box-shadow: 0 8px 18px rgba(31,78,57,.16); }
.page-button.disabled { color: #aab3ad; border-color: #e7ebe4; background: #f5f7f3; pointer-events: none; }
.action-group { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.text-action { padding: 6px 8px; border: 0; border-radius: 7px; color: #355e48; background: #eef4ea; font-size: 9px; font-weight: 800; }
.text-action:hover { background: #deead9; }
.text-action.danger { color: #a5443d; background: #fff0ee; }
.empty { padding: 50px 20px; color: #8c9890; font-size: 11px; text-align: center; }

/* 打印电脑 */
.agent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.agent-card { --agent-bg: linear-gradient(145deg, #eef5e6, #fbfcf8 72%); --agent-border: #d5e3cf; --agent-orb: rgba(91,137,106,.12); --agent-ring: rgba(67,108,81,.18); --agent-icon-bg: #315a46; isolation: isolate; display: flex; min-height: 250px; border-color: var(--agent-border); background: var(--agent-bg); flex-direction: column; }
.agent-card::before { content: ''; position: absolute; z-index: 0; top: -92px; right: -66px; width: 230px; height: 230px; border-radius: 50%; background: var(--agent-orb); pointer-events: none; }
.agent-card::after { content: ''; position: absolute; z-index: 0; top: -42px; right: -18px; width: 132px; height: 132px; border: 1px solid var(--agent-ring); border-radius: 50%; pointer-events: none; }
.agent-card > * { position: relative; z-index: 1; }
.agent-card.agent-theme-1 { --agent-bg: linear-gradient(145deg, #eaf4e3 0%, #fbfcf7 74%); --agent-border: #d1e1ca; --agent-orb: rgba(87,139,98,.14); --agent-ring: rgba(62,111,78,.2); --agent-icon-bg: #2e5a43; }
.agent-card.agent-theme-2 { --agent-bg: linear-gradient(145deg, #eaf3f2 0%, #fafcf9 74%); --agent-border: #cfdfdb; --agent-orb: rgba(72,129,124,.13); --agent-ring: rgba(56,105,101,.2); --agent-icon-bg: #315d58; }
.agent-card.agent-theme-3 { --agent-bg: linear-gradient(145deg, #f6efe1 0%, #fdfbf7 74%); --agent-border: #e5dac7; --agent-orb: rgba(167,126,72,.12); --agent-ring: rgba(137,98,54,.18); --agent-icon-bg: #705634; }
.agent-card.agent-theme-4 { --agent-bg: linear-gradient(145deg, #f5eae6 0%, #fcf9f6 74%); --agent-border: #e5d3cd; --agent-orb: rgba(158,96,82,.11); --agent-ring: rgba(132,77,66,.17); --agent-icon-bg: #755047; }
.agent-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.agent-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px; border-radius: 14px; color: #eaf4e5; background: var(--agent-icon-bg); box-shadow: 0 12px 24px rgba(43,72,55,.14); font-size: 20px; font-weight: 800; text-transform: uppercase; }
.agent-card.offline .agent-icon { color: #6e7b73; background: #e1e5df; }
.agent-card h2 { margin: 0 0 6px; font-family: Georgia, "Songti SC", serif; font-size: 22px; font-weight: 500; }
.agent-card > p { margin: 0; color: var(--muted); font-size: 10px; }
.agent-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 25px; padding-top: 18px; border-top: 1px solid #e8ece5; }
.agent-meta span { color: #95a098; font-size: 9px; }
.agent-meta strong { display: block; margin-top: 5px; color: #3f4e45; font-size: 10px; }
.agent-actions { display: flex; align-items: stretch; gap: 8px; margin-top: auto; padding-top: 20px; }
.agent-actions .button { min-width: 0; height: 44px; min-height: 44px; flex: 1 1 0; padding: 0 12px; white-space: nowrap; }
.printer-warning { display: flex; align-items: center; gap: 10px; margin: 15px 0 0; padding: 11px 13px; border: 1px solid rgba(214,139,130,.48); border-radius: 14px; color: #814039; background: linear-gradient(135deg, rgba(255,247,244,.94), rgba(250,230,225,.84)); box-shadow: 0 10px 24px rgba(137,71,62,.07); }
.printer-warning-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; color: #9e423b; background: #f6d3ce; font-family: Georgia, serif; font-size: 16px; font-weight: 700; }
.printer-warning > span:last-child { display: grid; gap: 2px; min-width: 0; }
.printer-warning strong { color: #7b3732; font-size: 10px; }
.printer-warning small { color: #98615c; font-size: 9px; line-height: 1.5; }
.printer-dot.online { background: #438463; }
.printer-dot.abnormal { background: #b94d45; }
.printer-dot.unknown { background: #a47b25; }

/* 软件 */
.software-hero { display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; min-height: 380px; border-radius: 24px; color: #eef7e9; background: var(--green); }
.software-copy { padding: clamp(30px, 6vw, 68px); }
.software-copy .eyebrow { color: #a8c0ae; }
.software-copy h1 { margin: 18px 0 15px; font-family: Georgia, "Songti SC", serif; font-size: clamp(38px, 5vw, 58px); font-weight: 500; line-height: 1.05; letter-spacing: -.05em; }
.software-copy p { max-width: 520px; color: #b8cbbd; font-size: 12px; line-height: 1.8; }
.version-chip { display: inline-flex; margin: 10px 0 22px; padding: 6px 9px; border: 1px solid rgba(216,240,169,.25); border-radius: 999px; color: var(--lime); font-size: 9px; font-weight: 800; }
.button.download-button { color: var(--green); background: var(--lime); box-shadow: none; }
.button.download-button:hover { background: #e4f6be; box-shadow: none; }
.software-visual { position: relative; display: grid; align-items: start; justify-items: end; padding: 38px 34px 34px 12px; background: radial-gradient(circle at 100% 0, rgba(216,240,169,.09), transparent 62%); }
.laptop { width: min(350px, 100%); padding: 12px 12px 20px; border: 2px solid rgba(216,240,169,.45); border-radius: 14px; transform: rotate(-3deg); transform-origin: top right; }
.laptop-screen { min-height: 185px; padding: 18px; border-radius: 7px; color: #1f3d2e; background: #e9f1dc; }
.laptop-screen span { display: block; font-size: 9px; }
.laptop-screen strong { display: block; margin: 35px 0 7px; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.laptop-line { height: 7px; margin-top: 8px; border-radius: 99px; background: #cadbb7; }
.laptop-line.short { width: 60%; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.step-card strong { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 32px; border-radius: 50%; color: #294737; background: #e8f2d7; font-family: Georgia, serif; font-weight: 500; }
.step-card h3 { margin: 0 0 8px; font-family: Georgia, "Songti SC", serif; font-size: 16px; font-weight: 500; }
.step-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.download-progress { height: 6px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.2); }
.download-progress span { display: block; width: var(--progress, 0%); height: 100%; background: var(--lime); transition: width .22s ease; }
.download-progress.indeterminate span { width: 34%; animation: download-indeterminate 1.15s ease-in-out infinite; }
@keyframes download-indeterminate { from { transform: translateX(-120%); } to { transform: translateX(310%); } }

/* 账号设置 */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-card { --settings-orb: rgba(72,126,91,.12); --settings-ring: rgba(55,103,72,.17); isolation: isolate; padding: 26px; border-color: #d5e2d0; background: linear-gradient(145deg, #eaf4e3 0%, #f9fbf6 62%, #fff 100%); }
.settings-card:nth-child(2) { --settings-orb: rgba(171,128,70,.11); --settings-ring: rgba(139,99,50,.16); border-color: #e4dac7; background: linear-gradient(145deg, #f6efdf 0%, #fcfaf5 62%, #fff 100%); }
.settings-card::before { content: ''; position: absolute; z-index: 0; top: -105px; right: -80px; width: 270px; height: 270px; border-radius: 50%; background: var(--settings-orb); pointer-events: none; }
.settings-card::after { content: ''; position: absolute; z-index: 0; top: -43px; right: -20px; width: 145px; height: 145px; border: 1px solid var(--settings-ring); border-radius: 50%; pointer-events: none; }
.settings-card > * { position: relative; z-index: 1; }
.settings-card .field input { border-color: rgba(109,133,115,.28); background: rgba(255,255,255,.76); backdrop-filter: blur(8px); }
.settings-card h2 { margin: 0 0 7px; font-family: Georgia, "Songti SC", serif; font-size: 22px; font-weight: 500; }
.settings-card > p { margin: 0 0 24px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.key-preview { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; margin-bottom: 17px; padding: 12px; border: 1px solid rgba(135,116,77,.22); border-radius: 10px; color: #4b5c52; background: rgba(255,255,255,.68); backdrop-filter: blur(8px); font-family: ui-monospace, Consolas, monospace; font-size: 10px; }
.key-preview span { min-width: 0; overflow-wrap: anywhere; }
.key-preview button { border: 0; color: #355e48; background: none; font-size: 10px; font-weight: 800; }
.security-note { display: flex; gap: 11px; margin-top: 16px; padding: 13px; border-radius: 10px; color: #766533; background: #fff8df; font-size: 10px; line-height: 1.6; }

/* 弹窗与通知 */
.modal-layer, .agent-dialog-layer { position: fixed; inset: 0; z-index: 90; background: rgba(21,39,30,.42); backdrop-filter: blur(7px); opacity: 0; transition: opacity .24s ease; }
.modal-layer { display: grid; place-items: center; padding: 18px; }
.modal-layer.open, .agent-dialog-layer.open { opacity: 1; }
.modal { width: min(580px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; padding: 25px; border: 1px solid rgba(255,255,255,.5); border-radius: 22px; background: var(--paper); box-shadow: 0 28px 80px rgba(21,38,29,.25); transform: translateY(14px) scale(.98); transition: transform .24s var(--ease); }
.open .modal { transform: none; }
.modal-head, .agent-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.modal-head h2, .agent-dialog-head h2 { margin: 8px 0 6px; font-family: Georgia, "Songti SC", serif; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.modal-head p { margin: 0; color: var(--muted); font-size: 10px; }
.icon-button { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: #68756d; background: #fff; font-size: 18px; }
.dropzone { display: grid; place-items: center; min-height: 145px; margin: 22px 0 17px; padding: 20px; border: 1.5px dashed #bccaba; border-radius: 15px; text-align: center; background: #f6f8f3; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.dropzone:hover, .dropzone.dragging { border-color: #4e8062; background: #edf4e7; transform: translateY(-2px); }
.dropzone.is-invalid { border-style: solid; border-color: #d88b84; background: #fff5f3; box-shadow: 0 0 0 4px rgba(185,75,67,.08); }
.drop-icon { display: grid; place-items: center; width: 42px; height: 48px; margin-bottom: 10px; border-radius: 9px; color: #a5453f; background: #ffe9e6; font-size: 9px; font-weight: 900; }
.dropzone strong { color: #3e5046; font-size: 11px; }
.dropzone small { margin-top: 6px; color: #929d95; font-size: 9px; }
.selected-files { display: grid; gap: 7px; max-height: 190px; margin: -6px 0 17px; overflow-y: auto; }
.selected-file { display: grid; grid-template-columns: 42px minmax(0, 1fr) 32px; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid #e0e7dd; border-radius: 11px; background: #fbfcf8; }
.selected-file-type { display: grid; place-items: center; min-height: 32px; border-radius: 8px; color: #315a46; background: #e6f0df; font-size: 8px; font-weight: 900; }
.selected-file-copy { min-width: 0; }
.selected-file-copy strong, .selected-file-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file-copy strong { color: #33463b; font-size: 10px; }
.selected-file-copy small { margin-top: 3px; color: #939f97; font-size: 8px; }
.selected-file-remove { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; color: #a34841; background: #fff0ee; font-size: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
.form-grid .full { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 6px; }
.agent-dialog-layer { display: grid; place-items: center; padding: 18px; }
.agent-dialog { width: min(680px, 100%); max-height: calc(100vh - 36px); padding: 28px; overflow-y: auto; border: 1px solid rgba(255,255,255,.55); border-radius: 24px; background: var(--paper); box-shadow: 0 30px 90px rgba(23,40,31,.26); transform: translateY(18px) scale(.975); transform-origin: center; transition: transform .34s var(--ease); }
.open .agent-dialog { transform: translateY(0) scale(1); }
.detail-list { display: grid; margin-top: 28px; }
.detail-row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid #e7ebe5; font-size: 10px; }
.detail-row span { color: #89948d; }
.detail-row strong { max-width: 240px; color: #405047; text-align: right; }
.printer-list { margin-top: 26px; }
.printer-list h3 { font-family: Georgia, "Songti SC", serif; font-size: 15px; font-weight: 500; }
.printer-item { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 10px; }
.printer-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #48a26d; }
.toast-region { position: fixed; z-index: 120; top: 18px; right: 18px; display: grid; gap: 9px; width: min(360px, calc(100vw - 30px)); }
.toast { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; color: #3e5147; background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(25,45,34,.18); font-size: 10px; animation: toast-in .28s var(--ease); }
.toast.leaving { pointer-events: none; animation: toast-out .48s cubic-bezier(.4, 0, .2, 1) forwards; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: #48a26d; box-shadow: 0 0 0 4px rgba(72,162,109,.12); }
.toast.error .toast-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(185,75,67,.12); }
.toast button { border: 0; color: #8b968f; background: none; font-size: 17px; }
.availability-notice { display: flex; align-items: center; gap: 13px; margin: 0 0 20px; padding: 15px 17px; border: 1px solid #ead9ae; border-radius: 17px; color: #665634; background: linear-gradient(135deg, #fffaf0, #f4f0df); box-shadow: 0 12px 30px rgba(67,79,55,.07); }
.availability-notice-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #7a5d20; background: #ebdb9b; font-family: Georgia, serif; font-size: 18px; font-weight: 700; }
.availability-notice > span:last-child { display: grid; gap: 3px; min-width: 0; }
.availability-notice strong { color: #493f29; font-size: 11px; }
.availability-notice small { color: #7b7058; font-size: 10px; line-height: 1.65; }
.availability-notice.printer-abnormal-notice { border-color: #efc4bf; color: #984039; background: linear-gradient(135deg, #fff4f2, #f9e5e1); }
.availability-notice.printer-abnormal-notice .availability-notice-icon { color: #983f38; background: #f4c6c0; }
.availability-notice.printer-abnormal-notice strong { color: #7f342f; }
.availability-notice.printer-abnormal-notice small { color: #98524c; }
.confirm-layer { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 18px; opacity: 0; background: rgba(21,39,30,.46); backdrop-filter: blur(8px); transition: opacity .24s ease; }
.confirm-layer.open { opacity: 1; }
.confirm-dialog { width: min(430px, 100%); padding: 28px; border: 1px solid rgba(255,255,255,.58); border-radius: 22px; text-align: center; background: var(--paper); box-shadow: 0 30px 90px rgba(23,40,31,.28); transform: translateY(14px) scale(.98); transition: transform .3s var(--ease); }
.confirm-layer.open .confirm-dialog { transform: none; }
.confirm-mark { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 17px; border-radius: 50%; color: #9f4039; background: #ffe7e3; font-family: Georgia, serif; font-size: 24px; font-weight: 700; }
.confirm-dialog h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 23px; font-weight: 500; }
.confirm-dialog p { margin: 12px 0 22px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.confirm-actions .button { justify-content: center; width: 100%; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-9px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px) scale(.975); box-shadow: 0 8px 24px rgba(25,45,34,.06); } }

@media (max-width: 900px) {
  .login-grid { grid-template-columns: 1fr; }
  .login-story { min-height: 460px; }
  .login-card { padding-top: 58px; padding-bottom: 58px; }
  .app-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-nav { grid-template-columns: repeat(4, 1fr); }
  .mobile-nav:not([hidden]) { display: grid; }
  .mobile-nav.visible { opacity: 1; visibility: visible; box-shadow: 0 24px 60px rgba(31,47,38,.2); pointer-events: auto; transform: translateY(0) scale(1); transition: opacity .34s ease, transform .42s var(--ease), box-shadow .42s var(--ease), visibility 0s; }
  .software-hero { grid-template-columns: minmax(0, 1.08fr) minmax(250px, .92fr); }
  .software-visual { min-height: 320px; padding: 28px 24px 24px 8px; }
}
@media (max-width: 650px) {
  .demo-ribbon { right: 9px; bottom: 9px; }
  .login-view, .app-view { width: calc(100% - 10px); min-height: calc(100vh - 10px); margin: 5px auto; border-radius: 18px; }
  .login-brand { padding: 20px; }
  .login-grid { display: block; min-height: 0; padding: 0 10px 10px; }
  .login-story { display: none; }
  .login-card { width: 100%; padding: 30px 20px 55px; }
  .app-header { min-height: 68px; padding: 0 15px; }
  .account-button > span:not(.avatar) { display: none; }
  .account-menu { top: 61px; right: 14px; width: 160px; padding: 7px; border-radius: 15px; }
  .mobile-nav { top: 86px; right: 20px; left: 20px; grid-template-columns: 1fr 1fr; padding: 10px; }
  .toast-region { top: 12px; right: 12px; left: auto; width: calc(100vw - 24px); transform: none; }
  .toast { width: max-content; max-width: 100%; justify-self: end; }
  .page { width: calc(100% - 28px); padding-top: 30px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .page-heading h1 { font-size: 38px; }
  .hero-action { justify-content: space-between; width: 100%; min-height: 58px; padding: 9px 10px 9px 19px; font-size: 14px; }
  .hero-action-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .summary-card { min-height: 172px; padding: 22px 12px; border-radius: 20px; }
  .summary-card::after { right: -170px; bottom: -205px; }
  .summary-metric { padding: 1px 12px; }
  .summary-value { height: 38px; margin: 21px 0 11px; font-size: 38px; line-height: 38px; }
  .summary-note { align-items: center; font-size: 9px; line-height: 1.45; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .task-hint { max-width: 100%; font-size: 10px; }
  .filter-tabs { max-width: 100%; overflow-x: auto; }
  .agent-grid, .settings-grid, .steps { grid-template-columns: 1fr; }
  .agent-meta { grid-template-columns: 1fr 1fr; }
  .software-hero { grid-template-columns: 1fr; min-height: 0; }
  .software-copy { padding: 34px 24px; }
  .software-visual { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .modal { padding: 20px; border-radius: 18px; }
  .agent-dialog-layer { padding: 10px; }
  .agent-dialog { width: 100%; max-height: calc(100vh - 20px); padding: 22px 18px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
