@import 'tailwindcss'; /* 微信风格明暗主题:灰阶表面搭配绿色操作态,业务排版保持不变。 */ @theme { --color-ink: var(--app-ink); --color-muted: var(--app-muted); --color-faint: var(--app-muted); --color-line: var(--app-border); --color-accent: var(--app-accent-text); --color-danger: var(--app-danger); --color-success: var(--app-success); --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; } @layer base { * { box-sizing: border-box; } body { margin: 0; background: var(--app-body); color: var(--color-ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; } button, input, textarea, select { font: inherit; } button, a, summary { -webkit-tap-highlight-color: transparent; } button:not(:disabled), summary, select { cursor: pointer; } button:disabled { opacity: 0.45; cursor: not-allowed; } a { text-decoration: none; color: inherit; } :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; } input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 1px; } ::selection { background: var(--app-selected); color: var(--app-ink); } } @layer components { .eyebrow { font-size: 10px; letter-spacing: 0.11em; color: var(--color-muted); font-weight: 500; } .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; min-height: 36px; border: 1px solid transparent; border-radius: 0; font-size: 12px; font-weight: 500; white-space: nowrap; transition: background 0.15s, border-color 0.15s; } .button-primary { background: var(--app-button-primary); color: var(--app-on-accent); } .button-primary:hover:not(:disabled) { background: var(--app-button-hover); } .button-primary:active:not(:disabled) { background: var(--app-button-pressed); } .button:disabled { background: var(--app-disabled-bg); color: var(--app-disabled-text); opacity: 1; } .button-secondary { background: var(--app-control); color: var(--app-ink); } .button-secondary:hover:not(:disabled) { background: var(--app-control-hover); } .text-button { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--color-muted); padding: 6px 0; } .text-button:hover:not(:disabled) { color: var(--color-accent); } .panel { --app-field: var(--app-control); --app-field-hover: var(--app-control-hover); background: var(--app-surface); border-radius: 0; } /* 次级信息用低对比底色成组,避免用边框把工作台切成碎片。 */ .surface-inset { --app-field: var(--app-surface); --app-field-hover: var(--app-surface); background: var(--app-subtle); } /* 首项与其它条目统一内边距;背景过渡仅用于主题切换,不随鼠标或焦点变化。 */ .record-list > article { padding: 20px; transition: background-color 160ms ease; } .record-list > article:nth-child(even) { background: var(--app-subtle); } /* 主体奇数行常驻原悬停底色,与偶数行形成固定斑马纹;内部控件仍保留交互反馈。 */ /* 形态块与所在主体条纹使用相反灰阶,避免偶数行内外同色;不增加边框或悬停态。 */ .table-scroll { overflow: hidden; } .project-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; } .project-table th { padding: 13px 20px; background: var(--app-control); color: var(--color-muted); font-size: 10px; font-weight: 500; white-space: nowrap; } .project-table td { padding: 21px 20px; } .project-table tr:last-child td { border-bottom: none; } .project-table tbody tr:nth-child(even) td { background: var(--app-subtle); } .project-table tbody tr:hover td { background: var(--app-selected); } .production-step { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 0; background: var(--app-subtle); color: var(--app-ink); } .dialog-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 20px; } /* 页面级表单的保存/执行操作从左侧开始,说明文字紧随其后;弹窗底部仍保持右对齐。 */ .page-form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 16px; } .field-label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 500; color: var(--app-ink); } .input { width: 100%; background: var(--app-field); color: var(--color-ink); border-radius: 0; padding: 9px 11px; font-size: 12px; line-height: 1.7; } .input::placeholder { color: var(--app-muted); } .input:disabled { background: var(--app-subtle); opacity: 0.6; } .alert-error { background: var(--app-subtle); color: var(--app-danger); } .content-with-history { display: grid; grid-template-columns: minmax(0, 1fr) 207px; min-height: 480px; overflow: hidden; } .image-history { overflow: hidden; } .image-history-item .asset-image-empty { font-size: 9px; padding: 6px; gap: 4px; } .image-history-item .asset-image-empty svg { width: 14px; height: 14px; } .reference-placeholder { display: grid; place-items: center; aspect-ratio: 4 / 3; font-size: 11px; color: var(--color-muted); background: var(--app-subtle); } .detail-grid { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 15px; font-size: 12px; line-height: 1.9; } .detail-grid dt { color: var(--color-muted); } .detail-grid dd { white-space: pre-wrap; overflow-wrap: anywhere; } .subject-ref { display: inline-flex; background: var(--app-subtle); padding: 3px 6px; border-radius: 0; color: var(--app-ink); font-size: 10px; } } /* 中等宽度保留正文空间,执行记录下移,移动端导航收为图标。 */ @media (max-width: 1200px) { .content-with-history { grid-template-columns: minmax(0, 1fr); } } @media (max-width: 760px) { .project-table td, .project-table th { padding-inline: 14px; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }