:root { font-family: 'PingFang SC', 'Microsoft YaHei', ui-rounded, system-ui, sans-serif; color: #725d42; background: #f8f8f0; --mint: #19c8b9; --mint-dark: #10a99d; --brown: #794f27; --text: #725d42; --muted: #9f927d; --canvas: #f8f8f0; --surface: rgb(247, 243, 223); --surface-raised: #fffdf5; --border: #ded3bd; --danger: #c95e55; --warning: #f5c31c; --radius: 16px; --space: clamp(0.75rem, 2vw, 1.5rem); font-synthesis: none; } * { box-sizing: border-box; } html { background: var(--canvas); } body { margin: 0; min-width: 20rem; background: var(--canvas); } body::before { content: ''; position: fixed; inset: 0; z-index: -1; opacity: 0.32; pointer-events: none; background-image: radial-gradient(circle, rgba(121, 79, 39, 0.12) 1px, transparent 1.5px); background-size: 24px 24px; } a { color: #187f77; text-underline-offset: 3px; } button, input, select { font: inherit; color: inherit; } button, input, select, a { outline-offset: 3px; } :focus-visible { outline: 3px solid var(--warning); outline-offset: 3px; } button, input, select { min-height: 2.75rem; padding: 0.5rem 0.75rem; border: 2px solid #c4b89e; border-radius: 999px; background: var(--surface-raised); } button { cursor: pointer; font-weight: 700; transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease; box-shadow: 0 2px 4px rgba(61, 52, 40, 0.06); } button:hover:not(:disabled) { background: #fff; transform: translateY(-1px); } button:active:not(:disabled) { transform: translateY(2px); } button:disabled { cursor: not-allowed; opacity: 0.48; } button[type='submit'], .fleet-actions button, .fleet-heading > button, .form-actions button:first-child { color: #fff; border-color: var(--mint-dark); background: var(--mint); box-shadow: 0 5px 0 var(--mint-dark); } input:focus, select:focus { border-color: var(--mint); } h1, h2, h3 { color: var(--brown); letter-spacing: -0.02em; } h1 { margin: 0 0 0.35rem; font-size: clamp(1.5rem, 3vw, 2.2rem); } h2 { font-size: 1.05rem; } p { line-height: 1.6; } .skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 100; color: #fff; background: var(--brown); padding: 0.75rem 1rem; border-radius: 12px; } .skip-link:focus { top: 1rem; } .app-topbar { min-height: 4.5rem; padding: 0.75rem var(--space); display: flex; align-items: center; gap: 0.8rem; color: var(--text); background: rgba(255, 253, 245, 0.92); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; } .product-name { margin-right: auto; color: var(--brown); text-decoration: none; font-size: 1.15rem; font-weight: 900; } .product-name::before { content: '◉'; display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: 0.55rem; color: #fff; background: var(--mint); border-radius: 45% 55% 50% 50%; box-shadow: 0 3px 0 var(--mint-dark); } .connection-status, .version-badge { padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 0.82rem; } .connection-status::before { content: ''; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.35rem; border-radius: 50%; background: var(--mint); } .app-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--space); min-height: calc(100vh - 4.5rem); padding: var(--space); } .global-navigation { align-self: start; position: sticky; top: 6rem; padding: 1rem; border: 1px solid #e9dfca; border-radius: 20px; background: var(--surface); box-shadow: 0 10px 28px rgba(121, 79, 39, 0.1); } .global-navigation::before { content: '工作区'; display: block; padding: 0.35rem 0.6rem 0.75rem; color: var(--muted); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; } .global-navigation ul, .instance-context ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; } .global-navigation a, .instance-context nav a { display: block; padding: 0.7rem 0.8rem; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 700; } a[aria-current='page'] { color: var(--brown); background: #fff; box-shadow: 0 3px 0 #d4c9b4; } main { min-width: 0; padding: clamp(0.5rem, 2vw, 1.25rem); border: 1px solid #ebe1ce; border-radius: 22px; background: rgba(255, 253, 245, 0.88); box-shadow: 0 16px 40px rgba(121, 79, 39, 0.09); } main > section > header, .fleet-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px dashed var(--border); } .fleet-heading p, main > section > header p { margin: 0.25rem 0 0; color: var(--muted); } .fleet-actions, .form-actions, .pagination { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; } .selection-summary, small { color: var(--muted); } .primary-action { min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0.5rem 1rem; border: 2px solid var(--mint-dark); border-radius: 999px; color: #fff; background: var(--mint); box-shadow: 0 5px 0 var(--mint-dark); font-weight: 800; text-decoration: none; } .fleet-card-section { margin: 1rem 0 1.5rem; } .fleet-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; } .fleet-card { position: relative; min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-raised); box-shadow: 0 7px 18px rgba(121, 79, 39, 0.09); } .fleet-card > header { display: flex; align-items: start; justify-content: space-between; gap: 0.75rem; } .fleet-card h2 { margin: 0 0 0.2rem; font-size: 1.15rem; } .fleet-card code { color: var(--muted); overflow-wrap: anywhere; } .fleet-card-metrics { margin: 1rem 0; } .fleet-card-metrics div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--border); } .fleet-card-sms { margin: 0.8rem 0; padding: 0.75rem; border: 1px solid #d8e8d4; border-radius: 14px; background: #f5faf1; } .fleet-card-sms h3 { margin: 0 0 0.55rem; color: var(--brown); font-size: 0.82rem; } .fleet-card-sms dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 0.75rem; margin: 0; } .fleet-card-sms dl div { min-width: 0; } .fleet-card-sms dt { color: var(--muted); font-size: 0.72rem; } .fleet-card-sms dd { margin: 0.1rem 0 0; text-align: left; } .fleet-card-sms dl div:nth-child(3) { grid-column: 1 / -1; } .fleet-card-sms-empty { margin: 0; color: var(--muted); } .capability-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; } .capability-tags span { padding: 0.2rem 0.55rem; border-radius: 999px; color: #187f77; background: #d8f5ec; font-size: 0.78rem; font-weight: 700; } .fleet-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; } .fleet-card-actions a { min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0.4rem 0.7rem; border-radius: 999px; font-weight: 700; } .danger-button { color: #a4423b; border-color: #db938d; } .card-delete-confirmation { display: grid; gap: 0.65rem; margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid #db938d; } .card-delete-confirmation p { margin: 0; } .card-delete-confirmation label { display: grid; gap: 0.35rem; } .card-operation-success { color: #087b70; } .card-operation-error { color: #a4423b; } .fleet-details > h2 { margin-top: 0; } .fleet-toolbar, .jobs-toolbar { display: flex; align-items: end; gap: 0.65rem; flex-wrap: wrap; padding: 1rem; margin: 1rem 0; border-radius: var(--radius); background: var(--surface); } .fleet-toolbar label, .jobs-toolbar label { display: grid; gap: 0.3rem; min-width: min(100%, 10rem); font-size: 0.82rem; font-weight: 700; } .fleet-toolbar label:first-child { flex: 1; min-width: min(100%, 15rem); } .fleet-toolbar { display: block; } .fleet-toolbar-primary { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(9rem, 12rem); align-items: end; gap: 0.65rem; } .fleet-toolbar-primary label:first-child { min-width: 0; } .fleet-advanced-filters { margin-top: 0.65rem; } .fleet-advanced-filters > summary { width: fit-content; min-height: 2.75rem; display: flex; align-items: center; color: var(--brown); font-weight: 800; cursor: pointer; } .fleet-advanced-filter-grid { display: flex; align-items: end; gap: 0.65rem; flex-wrap: wrap; padding-top: 0.65rem; } .column-picker { position: relative; } .column-picker fieldset { position: absolute; right: 0; z-index: 5; width: 14rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: 14px; background: #fffdf5; box-shadow: 0 12px 30px rgba(121, 79, 39, 0.16); } .column-picker fieldset label { display: flex; align-items: center; } .batch-entry, .state-panel { margin: 0.8rem 0; padding: 1rem; border: 1px dashed #cdbfa5; border-radius: var(--radius); background: var(--surface); } .state-panel { background-image: radial-gradient(circle, rgba(121, 79, 39, 0.1) 1px, transparent 1px); background-size: 18px 18px; } .state-error { color: #a4423b; border-color: #db938d; background-color: #fff0e8; } .table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fffdf5; box-shadow: 0 5px 16px rgba(121, 79, 39, 0.07); } table { width: 100%; border-collapse: collapse; white-space: nowrap; } caption { padding: 0.8rem; text-align: left; font-weight: 800; color: var(--brown); } th, td { padding: 0.65rem 0.75rem; border-top: 1px solid #e9dfca; text-align: left; } thead th { color: var(--brown); background: var(--surface); font-size: 0.8rem; } thead button { min-height: auto; padding: 0.25rem; border: 0; background: transparent; box-shadow: none; } input[type='checkbox'], input[type='radio'] { width: 1.25rem; height: 1.25rem; min-height: auto; padding: 0; border-radius: 0.25rem; } label:has(> input[type='checkbox']), label:has(> input[type='radio']), .touch-target { min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; } .touch-target { justify-content: center; } tbody tr { transition: background 120ms ease; } tbody tr:hover, tr[aria-selected='true'] { background: #f2f8e9; } tbody th small { display: block; font-weight: normal; } .select-column { width: 3rem; } .status { display: inline-block; padding: 0.25rem 0.55rem; border-radius: 999px; background: #eee5d2; font-size: 0.78rem; font-weight: 800; } .status-online { color: #087b70; background: #d8f5ec; } .status-offline, .status-auth { color: #9c6423; background: #fff0c9; } .pagination { justify-content: flex-end; padding-top: 1rem; } .fleet-card-entry { display: block; min-width: 0; color: inherit; text-decoration: none; } .fleet-card-entry::after { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: var(--radius); } .fleet-card-entry:focus-visible { outline: none; } .fleet-card-entry:focus-visible::after { outline: 3px solid var(--warning); outline-offset: 3px; } .fleet-card-entry:hover h2, .fleet-card-entry:focus-visible h2 { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 0.2em; } .fleet-card-entry code { display: block; overflow-wrap: anywhere; } .fleet-card-admin-actions { position: relative; z-index: 1; justify-content: flex-end; padding-top: 0.25rem; border-top: 1px solid #e9dfca; } .instance-detail { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1rem; } .instance-context { min-width: 0; padding: 1rem; border-radius: 18px; background: var(--surface); } .instance-context code { display: block; overflow-wrap: anywhere; color: var(--muted); } .instance-context dl div, .overview-card dl div, .cellular-card dl div, [class$='-card'] dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px dashed #ddd0b8; } dd { margin-inline-start: 1rem; text-align: right; overflow-wrap: anywhere; } .instance-module-detail { min-width: 0; } .messages-workbench { display: grid; grid-template-columns: minmax(16rem, 21rem) minmax(24rem, 1fr); min-height: 36rem; overflow: hidden; border: 1px solid #e2d6bf; border-radius: var(--radius); background: var(--surface-raised); } .conversation-panel { min-width: 0; border-right: 1px solid #e2d6bf; background: #fffdf5; } .conversation-panel-header, .conversation-detail-header, .conversation-entry-title, .composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; } .conversation-panel-header, .conversation-detail-header { min-height: 4.5rem; padding: 0.8rem 1rem; border-bottom: 1px solid #e2d6bf; } .conversation-panel-header h2, .conversation-detail-header h2, .conversation-panel-header span, .conversation-detail-header small { margin: 0; } .conversation-panel-header span, .conversation-detail-header span, .conversation-entry small, .conversation-entry time, .composer-footer small { color: var(--muted); font-size: 0.78rem; } .conversation-list, .message-thread { padding: 0; margin: 0; list-style: none; } .conversation-entry { width: 100%; display: grid; gap: 0.3rem; padding: 0.85rem 1rem; border: 0; border-bottom: 1px solid #eee4d2; border-radius: 0; color: inherit; background: transparent; box-shadow: none; text-align: left; } .conversation-entry > span:not(.conversation-entry-title) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .conversation-entry:hover, .conversation-entry[aria-pressed='true'] { background: #f2f8e9; } .conversation-state, .conversation-empty-state { padding: 1.2rem; } .conversation-detail { min-width: 0; display: flex; flex-direction: column; background: #fffaf0; } .conversation-empty-state { margin: auto; max-width: 24rem; text-align: center; color: var(--muted); } .message-thread { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.65rem; max-height: 32rem; padding: 1rem; overflow-y: auto; } .message-bubble { max-width: min(78%, 36rem); padding: 0.75rem 0.9rem; border: 1px solid #e2d6bf; border-radius: 14px; background: #fffdf5; } .message-bubble header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; } .message-bubble p { white-space: pre-wrap; } .message-发送 { align-self: flex-end; background: #eaf4dd; } .message-composer { display: grid; gap: 0.6rem; padding: 0.8rem 1rem; border-top: 1px solid #e2d6bf; background: #fffdf5; } .message-composer label { display: grid; gap: 0.35rem; } .message-composer textarea { box-sizing: border-box; width: 100%; min-height: 5rem; resize: vertical; } .send-confirmation { margin: 0 1rem 1rem; padding: 0.8rem; border: 1px solid #dca66d; border-radius: 14px; background: #fff5dc; } .dialog-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1rem; background: rgba(72, 52, 33, 0.36); } .new-conversation-dialog { width: min(100%, 26rem); padding: 1.2rem; border: 1px solid #e2d6bf; border-radius: var(--radius); background: #fffdf5; box-shadow: 0 20px 60px rgba(72, 52, 33, 0.24); } .new-conversation-dialog label { display: grid; gap: 0.4rem; } .new-conversation-dialog input { box-sizing: border-box; width: 100%; } .overview-grid, .cellular-grid, .device-network-grid, .messages-grid, .calls-grid, .notifications-grid, .automation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0.8rem; } .overview-card, .cellular-card, .device-network-card, .messages-card, .calls-card, .esim-card, .notifications-card, .automation-card, .ota-card, main li[aria-label] { padding: 1rem; border: 1px solid #e2d6bf; border-radius: var(--radius); background: var(--surface-raised); } .instance-editor { max-width: 48rem; } .instance-editor form, .instance-editor form label, .danger-zone label { display: grid; gap: 0.35rem; } .instance-editor form { gap: 1rem; padding: 1rem; border-radius: var(--radius); background: var(--surface); } .danger-zone { margin-top: 2rem; padding: 1rem; border: 1px solid #db938d; border-radius: var(--radius); background: #fff4ed; } .danger-zone div { display: grid; gap: 0.75rem; } main ul[aria-label='已配置实例'] { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 0.8rem; padding: 0; list-style: none; } @media (max-width: 48rem) { .app-topbar { position: static; flex-wrap: wrap; } .product-name { width: 100%; } .app-layout { display: block; padding: 0.65rem; } .global-navigation { position: static; padding: 0.55rem; margin-bottom: 0.65rem; overflow-x: auto; } .global-navigation::before { display: none; } .global-navigation ul { display: flex; min-width: max-content; } main { padding: 0.8rem; border-radius: 16px; } .instance-detail { display: block; } .instance-context { margin-bottom: 1rem; } .messages-workbench { grid-template-columns: minmax(0, 1fr); min-height: 0; } .conversation-panel { border-right: 0; border-bottom: 1px solid #e2d6bf; } .message-thread { max-height: none; } .instance-context ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; } .instance-context li { min-width: 0; } .instance-context nav a, .instance-context nav span { overflow-wrap: anywhere; } .fleet-toolbar label, .jobs-toolbar label { width: 100%; } .fleet-heading { align-items: flex-start; } .fleet-heading > div:first-child p, .selection-summary, .fleet-actions > button { display: none; } .fleet-toolbar { margin: 0.55rem 0; padding: 0.65rem; } .fleet-toolbar-primary { grid-template-columns: minmax(0, 1fr) 7.5rem; } .fleet-toolbar-primary label { min-width: 0; } .fleet-toolbar-primary span { font-size: 0.75rem; } .fleet-advanced-filters > summary { min-height: 2.25rem; font-size: 0.82rem; } .fleet-card-section { margin-top: 0.55rem; } .table-scroll { overflow-x: auto; border: 1px solid var(--border); box-shadow: none; background: var(--surface-raised); } .dense-table, .dense-table tbody { min-width: 48rem; } .dense-table th, .dense-table td { white-space: nowrap; } .dense-table button, .pagination button, .global-navigation a, .instance-context nav a, .fleet-actions a { min-height: 2.75rem; display: inline-flex; align-items: center; } } @media (max-width: 24.375rem) { body { min-width: 20rem; } .connection-status, .version-badge { font-size: 0.72rem; } .fleet-heading > *, .fleet-actions, .form-actions, .pagination { width: 100%; } button { max-width: 100%; white-space: normal; } .fleet-card-actions > * { flex: 1 1 auto; justify-content: center; } .fleet-card { padding: 0.8rem; } .fleet-card-sms dl { grid-template-columns: minmax(0, 1fr); } .fleet-card-sms dl div:nth-child(3) { grid-column: auto; } } .auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(circle at 15% 10%, rgba(242, 169, 59, 0.18), transparent 34%), var(--background); } .auth-card { width: min(100%, 27rem); padding: 2rem; border: 1px solid var(--border); border-radius: 1.5rem; background: var(--surface-raised); box-shadow: var(--shadow); } .auth-card form, .auth-password-fields { display: grid; gap: 0.75rem; margin-top: 1.25rem; } .auth-card input, .auth-settings input[type='password'] { width: 100%; } .auth-settings { max-width: 45rem; display: grid; gap: 1.25rem; } .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; } .toggle-row span { display: grid; gap: 0.375rem; } .toggle-row input[type='checkbox'] { width: 2.875rem; height: 1.5rem; flex: 0 0 auto; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; } }