@tailwind base; @tailwind components; @tailwind utilities; * { box-sizing: border-box; margin: 0; padding: 0; } :root, :root[data-theme='light'] { color-scheme: light; /* 牛皮纸白:极低饱和的暖白,比纯白柔和但不发黄。 黄色只留给按钮、选中态、徽标这类强调元素 */ --app-bg: #f7f6f3; --surface: #ffffff; --surface-subtle: #faf9f7; /* 表头、分段底 */ --surface-strong: #f2f1ed; /* 禁用态、标签槽 */ --surface-hover: #faf9f6; /* 悬停 */ --border: #e9e7e2; --border-strong: #d6d3cc; --border-brand: #ffd400; --text: #23211e; --text-muted: #6b6862; --text-soft: #76716a; /* Tailwind 灰阶改由主题变量驱动:背景色从浅到深,文字色亦保留原有层级。 */ --gray-50: 250 250 248; --gray-100: 245 244 240; --gray-200: 235 233 227; --gray-300: 221 217 208; --gray-400: 118 113 106; --gray-500: 107 104 98; --gray-600: 102 98 92; --gray-700: 74 71 66; --gray-800: 51 48 44; --gray-900: 34 32 29; /* 品牌黄色阶:从浅到深,供背景、描边、悬停、按下各层使用 */ --brand-50: #fffdf0; --brand-100: #fff8d1; --brand-200: #ffefa3; --brand-300: #ffe566; --brand: #ffe100; --brand-hover: #ffd700; --brand-active: #f5c800; --brand-ink: #2a2416; /* 黄底之上的文字色 */ --brand-soft: #fff9c9; --brand-text: #806d00; /* 选中态配色。默认 ::selection 用品牌黄,但品牌黄同时也是「自己发出的聊天气泡」 底色,黄选黄会看不出选中范围——气泡内单独换成橙色(见文件末尾 .chat-self-bubble ::selection)。 */ --selection-bg: #fb923c; --selection-ink: var(--brand-ink); --focus-ring: #806d00; --unread-badge: #dc2626; --danger: #b42318; --danger-ink: #b42318; --danger-soft: #fff0f0; --success: #0f704b; --success-ink: #0f704b; --success-soft: #eefaf3; --warning: #945800; --warning-ink: #945800; --warning-soft: #fff7e6; --info: #2a5f92; --info-ink: #2a5f92; --info-soft: #f0f7ff; /* 圆角成体系:控件 10、卡片 16、面板 20、胶囊 999 */ --radius-xs: 8px; --radius: 10px; --radius-lg: 16px; --radius-xl: 20px; --radius-pill: 999px; /* 阴影带暖调,与黄色主题一致;不用纯黑投影 */ --shadow-sm: 0 1px 2px rgba(35, 33, 30, 0.05); --shadow-md: 0 6px 20px rgba(35, 33, 30, 0.08); --shadow-lg: 0 16px 40px rgba(35, 33, 30, 0.12); --shadow-brand: 0 6px 18px rgba(255, 214, 0, 0.35); --chart-grid: #ebe9e3; --chart-cursor: rgba(35, 33, 30, 0.06); --scrollbar-thumb: #d6d3cc; --scrollbar-thumb-hover: #b9b4aa; } :root[data-theme='dark'] { color-scheme: dark; /* 暖黑而非纯黑,延续闲鱼黄的品牌气质,同时拉开三个表面层级。 */ --app-bg: #11110f; --surface: #191916; --surface-subtle: #20201c; --surface-strong: #292820; --surface-hover: #302e27; --border: #37362f; --border-strong: #504c40; --border-brand: #d9bd19; --text: #f5f2e8; --text-muted: #c2bcae; --text-soft: #aaa59b; /* 反转灰阶的语义亮度:bg-gray-50 变暗,text-gray-900 自动变亮。 */ --gray-50: 32 32 28; --gray-100: 41 40 34; --gray-200: 56 53 45; --gray-300: 77 72 60; --gray-400: 170 165 155; --gray-500: 174 167 153; --gray-600: 194 188 174; --gray-700: 215 210 198; --gray-800: 234 230 220; --gray-900: 245 242 232; /* 黄色仍保持醒目;浅黄底在暗色中改为低亮度金棕底。 */ --brand-50: #292617; --brand-100: #373116; --brand-200: #4b4015; --brand-soft: #393216; --brand-text: #f2d85c; --focus-ring: #f2d85c; --danger: #ff8c8c; --danger-ink: #ffaaaa; --danger-soft: #3a1e1e; --success: #75d9a3; --success-ink: #8fe0b5; --success-soft: #173528; --warning: #ffd170; --warning-ink: #f3d77c; --warning-soft: #3a2d16; --info: #91c9ff; --info-ink: #9dccff; --info-soft: #182e45; --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28); --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.32); --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.42); --shadow-brand: 0 7px 22px rgba(221, 187, 0, 0.18); --chart-grid: #403d36; --chart-cursor: rgba(255, 255, 255, 0.06); --scrollbar-thumb: #5b574e; --scrollbar-thumb-hover: #d2bd38; } html, body, #root { height: 100%; width: 100%; } html { background: var(--app-bg); scrollbar-color: var(--scrollbar-thumb) transparent; } body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; background-color: var(--app-bg); color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } button, input, select, textarea { font: inherit; } button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; } input:disabled, select:disabled, textarea:disabled, input[readonly] { color: var(--text-muted); } input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill { -webkit-text-fill-color: var(--text); caret-color: var(--text); box-shadow: 0 0 0 1000px var(--surface) inset; transition: background-color 9999s ease-out 0s; } /* 三态主题选择器:选中态同时使用描边、底色和字重,不只依赖颜色。 */ .theme-picker { min-width: 0; color: var(--text-muted); } .theme-picker__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; padding: 0 2px; font-size: 11px; font-weight: 700; } .theme-picker__status { color: var(--text-soft); font-size: 10px; font-weight: 600; } .theme-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-strong); padding: 3px; } .theme-switcher__option { display: inline-flex; min-width: 0; min-height: 36px; align-items: center; justify-content: center; gap: 5px; border: 1px solid transparent; border-radius: 8px; color: var(--text-muted); font-size: 11px; font-weight: 650; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; } .theme-switcher__option:hover { background: var(--surface-hover); color: var(--text); } .theme-switcher__option--active, .theme-switcher__option--active:hover { border-color: var(--border-brand); background: var(--brand-soft); color: var(--brand-text); font-weight: 750; } .theme-picker--compact .theme-switcher { grid-template-columns: repeat(3, 36px); border-radius: 11px; } .theme-picker--compact .theme-switcher__option { width: 36px; min-height: 36px; } /* 二维码必须保留纯白扫描底,不参与深色反转。 */ .media-light-surface { color-scheme: light; background: #ffffff !important; color: #23211e !important; } :root[data-theme='dark'] .media-light-surface .bg-white, :root[data-theme='dark'] .media-light-surface [class~='bg-white/95'] { background-color: rgba(255, 255, 255, 0.96) !important; } :root[data-theme='dark'] .media-light-surface .bg-gray-50, :root[data-theme='dark'] .media-light-surface .bg-green-50 { background-color: #fafaf8 !important; } :root[data-theme='dark'] .media-light-surface .text-gray-500 { color: #6b6862 !important; } :root[data-theme='dark'] .media-light-surface .text-gray-800 { color: #33302c !important; } :root[data-theme='dark'] .media-light-surface .text-green-700 { color: #0f704b !important; } :root[data-theme='dark'] .media-light-surface .text-amber-800 { color: #7a5100 !important; } :root[data-theme='dark'] .media-light-surface .text-blue-600 { color: #245f9d !important; } :root[data-theme='dark'] .media-light-surface .text-red-600 { color: #c92a2a !important; } /* Tailwind 的纯白与少量历史硬编码暖白,统一落入暗色表面层。 */ :root[data-theme='dark'] .bg-white { background-color: var(--surface); } :root[data-theme='dark'] [class~='bg-white/95'] { background-color: rgba(25, 25, 22, 0.96); } :root[data-theme='dark'] [class~='bg-white/90'], :root[data-theme='dark'] [class~='bg-white/80'] { background-color: rgba(25, 25, 22, 0.9); } :root[data-theme='dark'] [class~='bg-[#fffdf5]'] { background-color: var(--app-bg); } :root[data-theme='dark'] [class~='bg-[#fff9e8]'], :root[data-theme='dark'] [class~='bg-[#fffdf0]'], :root[data-theme='dark'] [class~='bg-[#f5edd6]'] { background-color: var(--surface-strong); } :root[data-theme='dark'] [class~='hover:bg-[#fff9e8]']:hover, :root[data-theme='dark'] [class~='hover:bg-[#fffdf5]']:hover, :root[data-theme='dark'] [class~='hover:bg-[#fffdf0]']:hover { background-color: var(--surface-hover); } :root[data-theme='dark'] [class~='disabled:bg-white']:disabled { background-color: var(--surface); } :root[data-theme='dark'] [class~='border-[#f0e6c8]'], :root[data-theme='dark'] [class~='border-[#e6d69a]'] { border-color: var(--border); } :root[data-theme='dark'] [class~='text-[#111]'], :root[data-theme='dark'] [class~='text-[#333]'], :root[data-theme='dark'] [class~='text-[#555]'], :root[data-theme='dark'] [class~='text-[#666]'] { color: var(--text); } :root[data-theme='dark'] [class~='text-[#777]'], :root[data-theme='dark'] [class~='text-[#888]'] { color: var(--text-muted); } :root[data-theme='dark'] [class~='text-[#999]'], :root[data-theme='dark'] [class~='text-[#aaa]'], :root[data-theme='dark'] [class~='text-[#a89e83]'], :root[data-theme='dark'] [class~='text-[#b8ac8e]'], :root[data-theme='dark'] [class~='text-[#d0d0d0]'] { color: var(--text-soft); } :root[data-theme='dark'] [class~='text-[#8c7900]'], :root[data-theme='dark'] [class~='text-[#8a6300]'], :root[data-theme='dark'] [class~='text-[#6b5200]'], :root[data-theme='dark'] [class~='text-[#d6b600]'] { color: var(--brand-text); } :root[data-theme='dark'] [class~='hover:text-black']:hover, :root[data-theme='dark'] [class~='hover:text-[#111]']:hover { color: var(--text); } /* 开关圆点与二维码一样需要维持亮色,才能和关闭态轨道拉开边界。 */ :root[data-theme='dark'] button .rounded-full.bg-white { background-color: #f4f1e8; } /* 状态色成对调整,避免暗色页面上出现刺眼浅色块或暗字。 */ :root[data-theme='dark'] .bg-red-50, :root[data-theme='dark'] .bg-red-100 { background-color: var(--danger-soft); } :root[data-theme='dark'] .border-red-200 { border-color: #744040; } :root[data-theme='dark'] .text-red-500, :root[data-theme='dark'] .text-red-600, :root[data-theme='dark'] .text-red-700, :root[data-theme='dark'] .text-red-800, :root[data-theme='dark'] .text-red-900 { color: #ffaaaa; } :root[data-theme='dark'] .bg-green-50, :root[data-theme='dark'] .bg-green-100, :root[data-theme='dark'] .bg-emerald-50 { background-color: var(--success-soft); } :root[data-theme='dark'] .border-green-200, :root[data-theme='dark'] .border-emerald-200 { border-color: #356b50; } :root[data-theme='dark'] .text-green-600, :root[data-theme='dark'] .text-green-700, :root[data-theme='dark'] .text-green-800, :root[data-theme='dark'] .text-emerald-600, :root[data-theme='dark'] .text-emerald-700, :root[data-theme='dark'] .text-emerald-800 { color: #8fe0b5; } :root[data-theme='dark'] .bg-blue-50, :root[data-theme='dark'] .bg-blue-100 { background-color: var(--info-soft); } :root[data-theme='dark'] .border-blue-200 { border-color: #3c638c; } :root[data-theme='dark'] .text-blue-500, :root[data-theme='dark'] .text-blue-600, :root[data-theme='dark'] .text-blue-700, :root[data-theme='dark'] .text-blue-800, :root[data-theme='dark'] .text-blue-900 { color: #9dccff; } :root[data-theme='dark'] .bg-yellow-50, :root[data-theme='dark'] .bg-yellow-100, :root[data-theme='dark'] .bg-amber-50, :root[data-theme='dark'] .bg-amber-100, :root[data-theme='dark'] .bg-amber-200 { background-color: var(--warning-soft); } :root[data-theme='dark'] .border-amber-200 { border-color: #755f2d; } :root[data-theme='dark'] .text-yellow-600, :root[data-theme='dark'] .text-yellow-700, :root[data-theme='dark'] .text-yellow-800, :root[data-theme='dark'] .text-amber-500, :root[data-theme='dark'] .text-amber-600, :root[data-theme='dark'] .text-amber-700, :root[data-theme='dark'] .text-amber-800, :root[data-theme='dark'] .text-amber-900 { color: #f3d77c; } :root[data-theme='dark'] [class~='bg-[#fff8d1]'] { background-color: #393216; } :root[data-theme='dark'] [class~='bg-[#eef4ff]'] { background-color: #1c2d45; } :root[data-theme='dark'] [class~='bg-[#f0f7f3]'] { background-color: #193126; } :root[data-theme='dark'] [class~='bg-[#f7f2fb]'] { background-color: #2c2438; } :root[data-theme='dark'] [class~='text-[#3f5f8f]'] { color: #aacbff; } :root[data-theme='dark'] [class~='text-[#3f7a5c]'] { color: #9bd9b5; } :root[data-theme='dark'] [class~='text-[#6b5a8a]'] { color: #d1baf2; } :root[data-theme='dark'] [class~='hover:bg-red-50']:hover, :root[data-theme='dark'] [class~='hover:bg-red-100']:hover { background-color: var(--danger-soft); } :root[data-theme='dark'] [class~='hover:bg-green-50']:hover, :root[data-theme='dark'] [class~='hover:bg-green-100']:hover, :root[data-theme='dark'] [class~='hover:bg-emerald-50']:hover { background-color: var(--success-soft); } :root[data-theme='dark'] [class~='hover:bg-blue-50']:hover, :root[data-theme='dark'] [class~='hover:bg-blue-100']:hover { background-color: var(--info-soft); } :root[data-theme='dark'] [class~='hover:bg-yellow-50']:hover, :root[data-theme='dark'] [class~='hover:bg-yellow-100']:hover, :root[data-theme='dark'] [class~='hover:bg-amber-50']:hover, :root[data-theme='dark'] [class~='hover:bg-amber-100']:hover { background-color: var(--warning-soft); } :root[data-theme='dark'] [class~='hover:bg-black/5']:hover { background-color: rgba(255, 255, 255, 0.08); } :root[data-theme='dark'] [class~='hover:text-red-600']:hover, :root[data-theme='dark'] [class~='hover:text-red-700']:hover { color: #ffaaaa; } :root[data-theme='dark'] [class~='hover:text-green-600']:hover, :root[data-theme='dark'] [class~='hover:text-green-700']:hover, :root[data-theme='dark'] [class~='hover:text-emerald-600']:hover { color: #8fe0b5; } :root[data-theme='dark'] [class~='hover:text-blue-600']:hover, :root[data-theme='dark'] [class~='hover:text-blue-700']:hover { color: #9dccff; } :root[data-theme='dark'] [class~='hover:text-amber-600']:hover, :root[data-theme='dark'] [class~='hover:text-amber-700']:hover { color: #f3d77c; } :root[data-theme='dark'] [class~='hover:bg-pink-50']:hover, :root[data-theme='dark'] [class~='hover:bg-pink-100']:hover { background-color: var(--danger-soft); } :root[data-theme='dark'] [class~='hover:text-pink-600']:hover, :root[data-theme='dark'] [class~='hover:text-pink-700']:hover, :root[data-theme='dark'] [class~='hover:text-yellow-600']:hover { color: var(--warning-ink); } :root[data-theme='dark'] [class~='hover:bg-amber-200']:hover { background-color: var(--warning-soft); } /* 登录页品牌面板永远是亮黄底,不能继承暗色表面的亮文字映射。 */ :root[data-theme='dark'] .theme-brand-panel [class~='text-[#8a6300]'] { color: #8a6300; } :root[data-theme='dark'] .theme-brand-panel [class~='text-[#6b5200]'] { color: #6b5200; } :root[data-theme='dark'] .page-tab:not(.page-tab--active) .page-tab__count { background: rgba(255, 255, 255, 0.08); } .recharts-pie-label-text, .recharts-text { fill: var(--text-muted); } :root[data-theme='dark'] .modal-overlay, :root[data-theme='dark'] .modal-overlay-centered { background-color: rgba(0, 0, 0, 0.68); } .page-stack { display: flex; flex-direction: column; gap: 20px; } .page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 62px; padding-bottom: 16px; border-bottom: 1px solid var(--border); } .page-header__identity { display: flex; min-width: 0; align-items: flex-start; gap: 12px; } .page-header__icon { display: inline-flex; width: 42px; height: 42px; flex: 0 0 42px; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: linear-gradient(140deg, var(--brand-300), var(--brand)); color: var(--brand-ink); box-shadow: var(--shadow-brand); } .page-title { color: var(--text); font-size: 24px; font-weight: 750; line-height: 1.25; } .page-description { margin-top: 5px; max-width: 760px; color: var(--text-muted); font-size: 13px; line-height: 1.6; } .page-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; } .page-tabs { display: inline-flex; max-width: 100%; gap: 4px; overflow-x: auto; border-radius: var(--radius-pill); background: var(--surface-strong); padding: 4px; /* 溢出时仍可横向滚动,但不显示滚动条 —— 胶囊组是圆角浅黄底,底部露出一条滚动轨道很像渲染错位 */ scrollbar-width: none; -ms-overflow-style: none; } .page-tabs::-webkit-scrollbar { display: none; } .page-tab { display: inline-flex; min-height: 38px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; border-radius: var(--radius-pill); padding: 8px 16px; color: var(--text-muted); font-size: 13px; font-weight: 650; line-height: 1.2; transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease; } .page-tab:hover { background: var(--surface); color: var(--text); } .page-tab--active { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-brand); } .page-tab--active:hover { background: var(--brand); } .page-tab__count { min-width: 20px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.55); padding: 2px 7px; color: inherit; font-size: 11px; font-weight: 700; text-align: center; } .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 14px; box-shadow: var(--shadow-sm); } .toolbar__group { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px; } .section-panel { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm); } .section-panel__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; border-bottom: 1px solid var(--border); padding: 14px 18px; } .section-header__icon { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--surface-strong); color: var(--text-muted); } .section-header__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; } .section-title { color: var(--text); font-size: 15px; font-weight: 700; } .section-description { margin-top: 3px; color: var(--text-muted); font-size: 12px; line-height: 1.5; } .notice-banner { display: flex; min-height: 46px; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 11px 14px; font-size: 13px; font-weight: 600; line-height: 1.5; } .notice-banner button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: var(--radius-pill); padding: 5px; } .notice-banner--success { border-color: color-mix(in srgb, var(--success) 38%, var(--border)); background: var(--success-soft); color: var(--success-ink); } .notice-banner--error { border-color: color-mix(in srgb, var(--danger) 38%, var(--border)); background: var(--danger-soft); color: var(--danger-ink); } .notice-banner--warning { border-color: var(--border-strong); background: var(--warning-soft); color: var(--warning-ink); } .notice-banner--info { border-color: color-mix(in srgb, var(--info) 38%, var(--border)); background: var(--info-soft); color: var(--info-ink); } .metric-grid { display: grid; /* 固定 3 列:总览是 6 张卡,3×2 能排满两行整齐的矩形; 4 列会剩下 2 张孤零零地挂在第二行 */ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .metric-card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 18px; box-shadow: var(--shadow-sm); transition: box-shadow 160ms ease, transform 160ms ease; } .metric-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); } .metric-card__label { color: var(--text-muted); font-size: 12px; font-weight: 650; } .metric-card__value { margin-top: 7px; color: var(--text); font-size: 24px; font-weight: 750; line-height: 1.2; } .metric-card__meta { margin-top: 6px; color: var(--text-soft); font-size: 11px; line-height: 1.5; } /* 紧凑变体:订单页是 5 张纯计数卡,用默认尺寸时 3 列排成 3+2, 第二行空一格且整块占掉近半屏。这里改成一行 5 张并压扁高度。 概览页仍用默认的 3×2,两者互不影响。 */ .metric-grid--compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } .metric-grid--compact .metric-card { padding: 10px 12px; border-radius: var(--radius-md); } .metric-grid--compact .metric-card__label { font-size: 11px; } .metric-grid--compact .metric-card__value { margin-top: 2px; font-size: 20px; } .metric-grid--compact .metric-card__meta { margin-top: 1px; font-size: 10px; line-height: 1.4; /* 说明文字只占一行,超出省略 —— 换行会把卡片高度顶回去 */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .content-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; } .field-label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 12px; font-weight: 700; } .empty-state { display: flex; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-xl); background: var(--surface); padding: 32px; text-align: center; } .empty-state--compact { min-height: 160px; } .empty-state__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: var(--surface-strong); color: var(--text-soft); } .empty-state h3 { margin-top: 14px; color: var(--text); font-size: 15px; font-weight: 700; } .empty-state p { margin-top: 5px; max-width: 520px; color: var(--text-muted); font-size: 13px; line-height: 1.6; } .page-loading { display: flex; min-height: 260px; align-items: center; justify-content: center; gap: 9px; color: var(--text-muted); font-size: 13px; font-weight: 600; } .ios-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; } .ios-card:hover { border-color: var(--border-brand); box-shadow: var(--shadow-md); } .ios-input { min-height: 42px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--text); font-weight: 500; transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; } .ios-input:hover:not(:disabled):not(:focus) { border-color: var(--border-brand); } .ios-input:focus { background: var(--surface); border-color: var(--focus-ring); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus-ring) 28%, transparent); outline: none; } .ios-input::placeholder { color: var(--text-soft); font-weight: 400; } .ios-input:disabled, .ios-input[readonly] { border-color: var(--border); background: var(--surface-strong); color: var(--text-muted); cursor: not-allowed; } .ios-btn-primary { min-height: 42px; border-radius: var(--radius-pill); background: var(--brand); color: var(--brand-ink); font-weight: 700; border: none; box-shadow: var(--shadow-brand); transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease; cursor: pointer; } .ios-btn-primary:hover:not(:disabled) { background: var(--brand-hover); box-shadow: 0 8px 22px rgba(255, 214, 0, 0.45); } .ios-btn-primary:active:not(:disabled) { background: var(--brand-active); transform: translateY(1px); box-shadow: var(--shadow-sm); } .ios-btn-primary:disabled { background: var(--surface-strong); color: var(--text-soft); box-shadow: none; cursor: not-allowed; } .ios-btn-secondary { min-height: 42px; border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font-weight: 600; border: 1px solid var(--border-strong); transition: background-color 0.15s ease, border-color 0.15s ease; cursor: pointer; } .ios-btn-secondary:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--brand); } .ios-btn-secondary:disabled { color: var(--text-soft); cursor: not-allowed; } .ios-btn-danger { min-height: 42px; border-radius: var(--radius-pill); background: var(--danger-soft); color: var(--danger); font-weight: 600; border: 1px solid color-mix(in srgb, var(--danger) 38%, var(--border)); transition: background-color 0.15s ease, border-color 0.15s ease; cursor: pointer; } .ios-btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger-soft) 82%, var(--danger)); border-color: color-mix(in srgb, var(--danger) 62%, var(--border)); } .data-table { width: 100%; border-collapse: collapse; text-align: left; } .data-table thead { background: var(--surface-subtle); color: var(--text-muted); font-size: 11px; font-weight: 700; } .data-table th { height: 46px; padding: 0 16px; border-bottom: 1px solid var(--border); letter-spacing: 0; } .data-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; } .data-table tbody tr:last-child td { border-bottom: 0; } .data-table tbody tr:hover { background: var(--surface-hover); } ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: var(--radius-pill); } ::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); } /* 侧边栏导航:滚动条按需出现,常驻的黄色轨道会在品牌区旁边多出一条竖线 */ aside nav::-webkit-scrollbar { width: 4px; } aside nav::-webkit-scrollbar-thumb { background: transparent; } aside nav:hover::-webkit-scrollbar-thumb { background: var(--border-strong); } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .animate-fade-in { animation: fadeIn 0.18s ease-out forwards; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .animate-spin { animation: spin 1s linear infinite; } ::selection { background: var(--brand); color: #000; } /* 自己发出的聊天气泡底色就是品牌黄,全局 ::selection 再给黄色会黄黄一片、 看不出选中了哪些字。气泡内选中态改用橙色(--selection-bg)。 */ .chat-self-bubble ::selection { background: var(--selection-bg); color: var(--selection-ink); } .text-brand { color: #8c7900; } .bg-brand { background-color: var(--brand); } .border-brand { border-color: var(--brand); } .status-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 650; } .status-badge-success { background-color: var(--success-soft); color: var(--success-ink); } .status-badge-warning { background-color: var(--brand-100); color: var(--warning-ink); } .status-badge-error { background-color: var(--danger-soft); color: var(--danger-ink); } /* info 徽标多用于"N 件商品/N 个账号"这类计数,走品牌黄比蓝色更贴主题; 真正需要蓝色语义的说明块仍可直接用 blue-* 工具类 */ .status-badge-info { background-color: var(--surface-strong); color: var(--text-muted); } .modal-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background-color: rgba(0, 0, 0, 0.4); padding: 1rem; overflow-y: auto; } .modal-container { position: relative; width: 100%; max-width: 42rem; /* max-w-2xl */ max-height: 85vh; margin: auto; display: flex; flex-direction: column; background-color: var(--surface); color: var(--text); border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; } .modal-header { flex-shrink: 0; padding: 20px 22px; border-bottom: 1px solid var(--border); background: var(--surface-subtle); z-index: 10; } .modal-body { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 22px; color: var(--text); } .modal-footer { flex-shrink: 0; padding: 16px 22px; border-top: 1px solid var(--border); background: var(--surface-subtle); z-index: 10; } .modal-container-lg { max-width: 64rem; } .modal-overlay-centered { position: fixed; inset: 0; z-index: 9999; display: flex; justify-content: center; background-color: rgba(0, 0, 0, 0.4); padding: 1rem; overflow-y: auto; } @media (max-width: 1023px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 紧凑卡窄屏放不下 5 列,退到 3 列(5 张排成 3+2) */ .metric-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 639px) { .page-stack { gap: 16px; } .page-header { min-height: 0; align-items: flex-start; padding-bottom: 14px; } .page-header__icon { width: 34px; height: 34px; flex-basis: 34px; } .page-title { font-size: 20px; } .page-actions { width: 100%; justify-content: stretch; } .page-actions > * { flex: 1 1 auto; } .toolbar { align-items: stretch; } .toolbar, .toolbar__group { flex-direction: column; } .toolbar__group > input, .toolbar__group > select, .toolbar__group > button { width: 100%; } .section-panel__header { flex-direction: column; align-items: flex-start; } .section-header__actions { width: 100%; justify-content: stretch; } .section-header__actions > * { flex: 1 1 auto; justify-content: center; } /* 手机上统计卡压成小卡排 2 列 —— 单列会把总览的 6 张卡拉成一竖长条 */ .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .metric-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metric-card { padding: 12px 14px; } .metric-card__label { font-size: 11px; } .metric-card__value { font-size: 18px; } .metric-grid--compact .metric-card__value { font-size: 18px; } } .modal-overlay-centered .modal-container { position: relative; width: 100%; max-width: 42rem; max-height: 85vh; margin: auto 0; display: flex; flex-direction: column; background-color: var(--surface); color: var(--text); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-md); overflow: hidden; } @media (max-width: 768px) { .page-stack { gap: 16px; } .page-header { min-height: 0; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 14px; } .page-title { font-size: 21px; } .page-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); justify-content: stretch; } .page-actions > * { min-width: 0; } .toolbar { flex-direction: column; align-items: stretch; } .toolbar__group { display: grid; grid-template-columns: 1fr; } .page-tabs { display: grid; width: 100%; grid-auto-flow: column; grid-auto-columns: minmax(128px, 1fr); } .page-tab { min-width: 0; white-space: normal; } .responsive-data-table { min-width: 0 !important; } .responsive-data-table, .responsive-data-table tbody, .responsive-data-table tr, .responsive-data-table td { display: block; width: 100%; } .responsive-data-table thead { display: none; } .responsive-data-table tbody tr { border-bottom: 1px solid var(--border); padding: 12px 16px; } .responsive-data-table tbody tr:last-child { border-bottom: 0; } .responsive-data-table td { display: grid; grid-template-columns: minmax(82px, 30%) minmax(0, 1fr); align-items: center; gap: 12px; border: 0; padding: 7px 0; text-align: left; } .responsive-data-table td::before { content: attr(data-label); color: var(--text-muted); font-size: 11px; font-weight: 700; } .responsive-data-table td > * { min-width: 0; } .responsive-data-table td[data-label="订单信息"], .responsive-data-table td[data-label="卡密名称"] { align-items: start; } .responsive-data-table td[data-label="操作"] > div { flex-wrap: wrap; justify-content: flex-start; } .responsive-data-table td > .status-badge { justify-self: start; } .ios-card { border-radius: var(--radius); } .ios-input { font-size: 16px; } .modal-container { max-width: calc(100% - 2rem); max-height: 90vh; border-radius: var(--radius); } .modal-header, .modal-body, .modal-footer { padding-left: 1.5rem; padding-right: 1.5rem; } } /* 全局公告跑马灯:轨道内容重复一份,位移 -50% 时正好接回起点,实现无缝循环 */ .marquee { overflow: hidden; } .marquee__track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: marquee-scroll 40s linear infinite; } /* 悬停暂停,方便阅读长公告 */ .marquee:hover .marquee__track { animation-play-state: paused; } @keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } } /* 尊重系统的「减少动态效果」设置:关掉滚动,改为可横向拖看 */ @media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { overflow-x: auto; } }