/* 全局样式 */ html, body { margin: 0; padding: 0; height: 100%; font-family: 'Noto Sans JP', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif; background: #FAF3E3; color: #6B4F2B; font-size: 16px; } #app { height: 100%; } .layout-container { min-height: 100vh; display: flex; flex-direction: column; background: #FAF3E3; } .header-container { background: transparent !important; display: flex; align-items: center; height: 80px; padding: 0 32px; border-bottom: none !important; justify-content: center; position: relative; margin-top: 36px !important; z-index: 10; } .logo { display: flex; justify-content: center; align-items: center; width: 100%; margin-top: 24px; margin-bottom: 0; } .logo h1 { color: #6B4F2B; font-size: 32px; font-weight: bold; margin: 0; letter-spacing: 2px; line-height: 48px; } .nav-menu { flex: 1; border: none !important; background: #E9D8A6; font-weight: bold; } .el-menu--horizontal, .nav-menu { background: #fff !important; border-radius: 18px 18px 0 0 !important; box-shadow: 0 2px 12px 0 rgba(139, 110, 74, 0.06); width: 80%; min-width: 800px; border-bottom: none !important; margin: 32px auto 0 auto !important; overflow: hidden !important; display: flex; justify-content: center; } .el-menu--horizontal > .el-menu-item { border-radius: 16px 16px 0 0 !important; margin: 0 !important; padding: 0 32px !important; height: 56px !important; line-height: 56px !important; background: #f7f3ec !important; color: #6B4F2B !important; font-size: 18px; font-weight: 500; box-shadow: 0 2px 6px 0 rgba(139, 110, 74, 0.03); transition: background 0.2s, color 0.2s, font-weight 0.2s, box-shadow 0.2s; border: none !important; cursor: pointer; display: flex; align-items: center; justify-content: center; } .el-menu--horizontal > .el-menu-item.is-active, .el-menu--horizontal > .el-menu-item:hover { background: linear-gradient(180deg, #F9E3E3 80%, #fff 100%) !important; color: #4B2E13 !important; font-weight: bold !important; box-shadow: 0 4px 16px 0 rgba(249, 227, 227, 0.12); z-index: 2; } .el-main { padding: 24px; flex: 1; background-color: #FAF3E3; } .el-footer { padding: 20px; background-color: #F9F5EC; border-top: 1px solid #E9D8A6; } .footer-content { text-align: center; color: #bfa76a; } .el-card { border-radius: 24px; box-shadow: 0 4px 24px 0 rgba(233, 216, 166, 0.10); border: 1.5px solid #E9D8A6; margin-bottom: 24px; background: #fff; } .el-card__header { padding: 20px 28px; font-size: 19px; font-weight: 600; background: #FAF3E3; border-bottom: 1px solid #E9D8A6; } .el-button { border-radius: 24px; font-size: 17px; padding: 12px 36px; min-width: 120px; font-weight: 600; letter-spacing: 1px; transition: background 0.2s, color 0.2s; } .el-button--primary { background: linear-gradient(90deg, #A7C957 0%, #264653 100%); border: none; color: #fff; } .el-button--primary:hover { background: #A7C957; color: #fff; } .el-button--success { background: #A7C957; color: #fff; border: none; } .el-button--success:hover { background: #6B4F2B; color: #fff; } .el-button--warning { background: #F9C5D1; color: #6B4F2B; border: none; } .el-button--warning:hover { background: #E9D8A6; color: #6B4F2B; } .el-table { border-radius: 20px; overflow: hidden; font-size: 15px; background: #fff; border: 1px solid #E9D8A6; } .el-table th { background: #FAF3E3; font-weight: 600; color: #6B4F2B; } .el-pagination { margin-top: 24px; justify-content: center; } .el-tabs__item { font-size: 17px; font-weight: 500; } .el-input, .el-input-number { border-radius: 16px; font-size: 16px; border: 1.5px solid #E9D8A6; } .el-dialog { border-radius: 24px; } /* 动画效果 */ .fade-enter-active, .fade-leave-active { transition: opacity 0.3s ease; } .fade-enter-from, .fade-leave-to { opacity: 0; } /* 响应式布局 */ @media screen and (max-width: 900px) { .el-menu--horizontal > .el-menu-item { font-size: 15px; padding: 0 10px; } .header-container { padding: 0 6px; } } @media screen and (max-width: 600px) { .el-menu--horizontal > .el-menu-item { font-size: 13px; padding: 0 4px; } } @media screen and (max-width: 768px) { /* 红蓝球煎饼页面专项修正 */ .el-table, .el-table__body, .el-table__header { display: block !important; width: 100% !important; overflow-x: auto !important; box-sizing: border-box !important; } .el-table th, .el-table td { white-space: normal !important; word-break: break-all !important; padding: 8px 4px !important; font-size: 14px !important; } .el-table .el-button, .el-table .button-group { max-width: 100% !important; flex-wrap: wrap !important; white-space: normal !important; } .el-card, .el-table__wrapper { max-width: 100vw !important; overflow-x: auto !important; box-sizing: border-box !important; } .el-form, .el-form-item, .el-form-item__content { max-width: 100% !important; box-sizing: border-box !important; flex-wrap: wrap !important; } .el-input, .el-select, .el-date-editor, .el-button { max-width: 100% !important; box-sizing: border-box !important; } /* 新鲜出锅一行一栏,仅影响该区域 */ .single-col-row { display: flex !important; flex-direction: column !important; } .single-col-row > .el-col { width: 100% !important; max-width: 100% !important; display: block !important; float: none !important; box-sizing: border-box !important; } /* 出锅记录表格横向可滚动,内容完整显示 */ .el-table__wrapper, .el-card__body { overflow-x: auto !important; padding-bottom: 0 !important; } .el-table { min-width: 600px !important; width: max-content !important; } .el-table th, .el-table td { white-space: nowrap !important; padding: 8px 8px !important; font-size: 14px !important; } } /* 柔和木色+米色+淡粉+棕色主题,菜单栏更整洁 */ html, body, #app, .layout-container, .el-main, .el-footer { background: #FAF3E3 !important; color: #6B4F2B !important; } .header-container, .el-menu--horizontal, .nav-menu { background: linear-gradient(180deg, #E6D3B3 80%, #F5E9DA 100%) !important; box-shadow: 0 2px 8px 0 rgba(139, 110, 74, 0.04); border-bottom: 1.5px solid #D8C3A5; border-radius: 18px 18px 0 0 !important; overflow: hidden !important; padding: 0 !important; } .el-menu--horizontal > .el-menu-item { border-radius: 0 !important; margin: 0 !important; padding: 0 28px !important; height: 48px !important; line-height: 48px !important; background: transparent !important; color: #6B4F2B !important; position: relative; transition: background 0.2s, color 0.2s; } .el-menu--horizontal > .el-menu-item.is-active { background: #F9E3E3 !important; color: #6B4F2B !important; box-shadow: 0 2px 8px 0 rgba(249, 227, 227, 0.18); font-weight: bold !important; border-bottom: 2.5px solid #C1A177 !important; } .el-menu--horizontal > .el-menu-item:hover { background: #F5E9DA !important; color: #6B4F2B !important; } .el-menu--horizontal > .el-menu-item:not(:last-child)::after { content: ''; position: absolute; right: -3px; top: 12px; height: 24px; width: 1px; background: #E6D3B3; opacity: 0.5; } .el-card, .el-dialog, .el-table { border-radius: 20px !important; background: #FFFDF8 !important; border: 1.5px solid #E6D3B3 !important; box-shadow: 0 4px 24px 0 rgba(230, 211, 179, 0.08) !important; } .el-card__header, .el-table th { background: #FAF3E3 !important; color: #6B4F2B !important; border-bottom: 1px solid #E6D3B3 !important; } .el-button, .el-button--primary, .el-button--success, .el-button--warning { background: linear-gradient(90deg, #E6D3B3 0%, #F9E3E3 100%) !important; color: #6B4F2B !important; border: none !important; border-radius: 16px !important; font-weight: 600 !important; box-shadow: 0 2px 8px 0 rgba(230, 211, 179, 0.10) !important; } .el-button:hover, .el-button--primary:hover, .el-button--success:hover, .el-button--warning:hover { background: #D8C3A5 !important; color: #6B4F2B !important; } .el-input, .el-input-number, .el-select, .el-textarea { border-radius: 12px !important; font-size: 16px !important; border: 1.5px solid #E6D3B3 !important; background: #FFFDF8 !important; color: #6B4F2B !important; } .el-tabs__item { font-size: 17px !important; font-weight: 500 !important; color: #6B4F2B !important; border-radius: 0 !important; } .el-tabs__item.is-active { color: #6B4F2B !important; border-bottom: 2px solid #6B4F2B !important; } .el-table th, .el-table td { background: #FFFDF8 !important; color: #6B4F2B !important; } .el-pagination { background: transparent !important; color: #6B4F2B !important; } .el-dialog__header, .el-dialog__title { color: #6B4F2B !important; background: #FAF3E3 !important; } .el-card, .el-dialog, .el-table, .el-input, .el-select, .el-textarea { border-radius: 20px !important; box-shadow: 0 4px 24px 0 rgba(230, 211, 179, 0.08) !important; } /* 顶部菜单栏彻底无底色露出,按钮完整显示 */ body, #app, .header-container, .el-header, .el-menu--horizontal, .nav-menu { background: #E6D3B3 !important; border-radius: 0 !important; overflow: visible !important; min-width: 100vw !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; border: none !important; } .el-menu--horizontal { width: 100% !important; } /* 按钮组优化,按钮完整显示 */ .button-group, .el-table__row .cell { display: flex; justify-content: flex-start; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 120px; } .button-group .el-button, .el-table__row .el-button { min-width: 60px; border-radius: 16px !important; overflow: hidden; white-space: nowrap; flex: none; margin: 0 !important; } /* 响应式和风细节可继续补充 */ /* 操作按钮横向并排显示,绝不换行 */ .el-table__row .cell { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; min-width: 120px; max-width: 160px; gap: 8px; white-space: nowrap; overflow: visible; } .el-table__row .el-button { flex: none; min-width: 60px; max-width: 80px; margin: 0 !important; border-radius: 16px !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: inline-block; } .el-table__row .el-button:last-child { margin-right: 0 !important; } /* 去除横向滚动条 */ body, #app { background: #FAF3E3 !important; overflow-x: hidden !important; } /* 让"出锅号码"列自动换行,避免撑宽表格 */ .el-table .el-table__body td:nth-child(3) { white-space: normal !important; word-break: break-all; font-size: 15px; } /* 操作列按钮横向完整展示,靠左 */ .el-table__row td:last-child, .el-table__row .cell:last-child { min-width: 120px !important; max-width: 160px !important; display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 8px !important; white-space: nowrap !important; overflow: visible !important; justify-content: flex-start !important; text-align: left !important; } .el-table__row .el-button { flex: none !important; min-width: 48px !important; max-width: 70px !important; margin-right: 4px !important; border-radius: 16px !important; overflow: hidden !important; white-space: nowrap !important; text-overflow: ellipsis !important; display: inline-block !important; font-size: 14px !important; padding: 4px 8px !important; } .el-table__row .el-button:last-child { margin-right: 0 !important; } /* 表格内容自动换行,避免撑宽 */ .el-table .el-table__body td { white-space: normal !important; word-break: break-all; font-size: 15px; } /* 自定义和风导航栏样式 */ .nav-bar { display: flex; align-items: center; justify-content: flex-start; width: 100%; margin-top: 36px; margin-bottom: 32px; padding: 0 32px; box-sizing: border-box; } .nav-logo { font-family: 'Noto Serif JP', 'PingFang SC', 'Microsoft YaHei', serif; font-size: 32px; font-weight: bold; color: #6B4F2B; letter-spacing: 2px; white-space: nowrap; margin-right: 40px; flex-shrink: 0; } .nav-menu { display: flex; align-items: center; background: #fff; border-radius: 24px; box-shadow: 0 4px 24px 0 rgba(139, 110, 74, 0.10); padding: 0 24px; height: 64px; min-width: 700px; max-width: 1200px; flex: 1; } .nav-item { display: flex; align-items: center; justify-content: center; height: 40px; min-width: 80px; padding: 0 18px; margin: 0 8px; border-radius: 16px 16px 0 0; font-size: 18px; color: #6B4F2B; font-weight: 500; background: transparent; cursor: pointer; transition: background 0.18s, color 0.18s, font-weight 0.18s, box-shadow 0.18s; box-shadow: none; border: none; outline: none; } .nav-item:hover, .nav-item.active { background: rgba(249, 227, 227, 0.7); color: #4B2E13; font-weight: bold; box-shadow: 0 2px 8px 0 rgba(249,227,227,0.08); } /* ======= 移动端适配样式合并自mobile.css ======= */ @media screen and (max-width: 480px) { :root { --mobile-padding: 12px !important; --mobile-margin: 8px !important; } .nav-logo { font-size: 20px !important; } .nav-item { font-size: 12px !important; padding: 6px 8px !important; min-width: 50px !important; } .ball { width: 20px !important; height: 20px !important; font-size: 10px !important; } .chart { height: 200px !important; } .el-button { font-size: 12px !important; padding: 8px 16px !important; } .generate-btn, .copy-all-btn { font-size: 14px !important; padding: 12px !important; } .el-table { font-size: 10px !important; } .el-table th, .el-table td { padding: 6px 2px !important; } } @media screen and (max-width: 768px) and (orientation: landscape) { .nav-bar { flex-direction: row !important; height: 60px !important; } .nav-logo { margin-bottom: 0 !important; margin-right: 20px !important; } .nav-menu { height: 48px !important; } .chart { height: 200px !important; } } @media (hover: none) and (pointer: coarse) { .el-button, .nav-item, .tab-btn { min-height: 44px !important; min-width: 44px !important; } .el-button { padding: 12px 20px !important; } .nav-item { padding: 10px 16px !important; } .tab-btn { padding: 10px 16px !important; } .el-button:active, .nav-item:active, .tab-btn:active { transform: scale(0.95) !important; transition: transform 0.1s !important; } } @media screen and (-webkit-min-device-pixel-ratio: 2) { .ball { border: 1px solid rgba(0, 0, 0, 0.1) !important; } .el-card { border: 0.5px solid #E9D8A6 !important; } } @media (prefers-color-scheme: dark) { /* 如果系统支持深色模式,可以在这里添加深色主题样式 */ } @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } /* 早点补货区域整体布局优化 */ .update-card .card-header { display: flex; align-items: flex-start; justify-content: flex-start; gap: 24px; padding-bottom: 0; } .update-card .card-header > span { font-size: 20px; font-weight: bold; color: #6B4F2B; min-width: 100px; margin-top: 6px; } .update-buttons { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; width: 100%; margin-top: 0; } .update-buttons .el-button { width: 180px; font-size: 16px; font-weight: bold; border-radius: 24px; background: linear-gradient(90deg, #f7e7d5 0%, #f9e3e3 100%); color: #6B4F2B; box-shadow: 0 2px 8px 0 rgba(233, 216, 166, 0.10); margin: 0; transition: background 0.2s, color 0.2s; text-align: left; padding-left: 18px; } .update-buttons .el-button:active { background: #f9e3e3; color: #4B2E13; } @media screen and (max-width: 768px) { .update-card .card-header { flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 0; } .update-buttons { width: 100%; align-items: stretch; gap: 10px; } .update-buttons .el-button { width: 100%; font-size: 16px; padding-left: 12px; } } /* 彻底去除el-card底部空白和多余圆角 */ .update-card, .update-card .el-card, .update-card .el-card__body { margin-bottom: 0 !important; padding-bottom: 0 !important; border-radius: 24px !important; } .update-card .el-card__body { min-height: 0 !important; height: auto !important; display: flex !important; flex-direction: column !important; justify-content: flex-start !important; } .update-card .el-row, .update-card .el-col { margin-bottom: 0 !important; padding-bottom: 0 !important; } .update-card .el-card__body > :last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; } @media screen and (max-width: 768px) { .update-card, .update-card .el-card, .update-card .el-card__body { margin-bottom: 0 !important; padding-bottom: 0 !important; } } .update-message { min-height: 0 !important; margin: 0 !important; padding: 0 !important; } .update-card .el-card__body > :last-child { margin-bottom: 0 !important; } /* 如果el-alert未显示,彻底不占位 */ .update-message:empty { display: none !important; }