
:root,body[data-theme="blue"]{--primary-color:#1890ff;--primary-hover:#40a9ff;--primary-light:#e6f7ff;--primary-bg:rgba(24,144,255,.08);--success-color:#52c41a;--warning-color:#faad14;--error-color:#f5222d;--info-color:#13c2c2;--text-color:#333;--text-secondary:#666;--text-light:#999;--border-color:#e8e8e8;--bg-color:#f0f2f5;--card-bg:#fff;--sidebar-bg:#001529;--sidebar-active:#1890ff;--sidebar-hover:rgba(24,144,255,.15);--sidebar-border:#1f2937;--topbar-bg:#fff;--table-header-bg:#fafafa;--table-hover-bg:#f5f5f5;--modal-overlay:rgba(0,0,0,.5);--shadow:0 2px 8px rgba(0,0,0,.08);--shadow-hover:0 4px 16px rgba(0,0,0,.12);--radius:6px;--radius-lg:10px;--font-size:14px;--font-size-large:16px}
body[data-theme="dark"]{--primary-color:#177ddc;--primary-hover:#3994dd;--primary-light:#112a45;--primary-bg:rgba(23,125,220,.12);--text-color:#e0e0e0;--text-secondary:#a0a0a0;--text-light:#707070;--border-color:#303030;--bg-color:#141414;--card-bg:#1f1f1f;--sidebar-bg:#000;--sidebar-active:#177ddc;--sidebar-hover:rgba(23,125,220,.15);--sidebar-border:#1a1a1a;--topbar-bg:#1f1f1f;--table-header-bg:#262626;--table-hover-bg:#2a2a2a;--modal-overlay:rgba(0,0,0,.7);--shadow:0 2px 8px rgba(0,0,0,.3);--shadow-hover:0 4px 16px rgba(0,0,0,.4)}
body[data-theme="green"]{--primary-color:#00b96b;--primary-hover:#36c47d;--primary-light:#e6fff4;--primary-bg:rgba(0,185,107,.08);--text-color:#2d3a2e;--text-secondary:#5a6b5c;--text-light:#8a9a8c;--border-color:#d9e8d9;--bg-color:#f0f5f4;--sidebar-bg:#002329;--sidebar-active:#00b96b;--sidebar-hover:rgba(0,185,107,.15);--sidebar-border:#00353f;--table-header-bg:#f5fbf7;--table-hover-bg:#ecf7ef;--shadow:0 2px 8px rgba(0,50,25,.06);--shadow-hover:0 4px 16px rgba(0,50,25,.1)}
body[data-theme="purple"]{--primary-color:#722ed1;--primary-hover:#9254de;--primary-light:#f9f0ff;--primary-bg:rgba(114,46,209,.08);--text-color:#2d1f3d;--text-secondary:#5a4b6b;--text-light:#8a7b9c;--border-color:#e0d4e8;--bg-color:#f5f0ff;--sidebar-bg:#130c24;--sidebar-active:#722ed1;--sidebar-hover:rgba(114,46,209,.15);--sidebar-border:#1f1535;--table-header-bg:#faf5ff;--table-hover-bg:#f3ecf9;--shadow:0 2px 8px rgba(50,0,100,.06);--shadow-hover:0 4px 16px rgba(50,0,100,.1)}
body[data-theme="orange"]{--primary-color:#fa8c16;--primary-hover:#ffa940;--primary-light:#fff7e6;--primary-bg:rgba(250,140,22,.08);--text-color:#3d2e1f;--text-secondary:#6b5840;--text-light:#9a8a70;--border-color:#e8d9c4;--bg-color:#fff8ec;--sidebar-bg:#2b1c0e;--sidebar-active:#fa8c16;--sidebar-hover:rgba(250,140,22,.15);--sidebar-border:#3a2815;--table-header-bg:#fffaf0;--table-hover-bg:#fff3e0;--shadow:0 2px 8px rgba(100,60,0,.06);--shadow-hover:0 4px 16px rgba(100,60,0,.1)}
.theme-switcher{display:inline-flex;align-items:center;gap:4px;background:var(--primary-bg);border-radius:20px;padding:3px}
.theme-dot{width:22px;height:22px;border-radius:50%;cursor:pointer;border:2px solid transparent;transition:all .25s ease;display:inline-block}
.theme-dot:hover{transform:scale(1.15)}
.theme-dot.active{border-color:var(--card-bg);transform:scale(1.1);box-shadow:0 0 0 1px var(--primary-color)}
.theme-dot[data-theme="blue"]{background:#1890ff}.theme-dot[data-theme="dark"]{background:#1f1f1f}
.theme-dot[data-theme="green"]{background:#00b96b}.theme-dot[data-theme="purple"]{background:#722ed1}
.theme-dot[data-theme="orange"]{background:#fa8c16}
.toast{animation:toastSlideIn .3s ease}@keyframes toastSlideIn{from{transform:translateX(120%);opacity:0}to{transform:translateX(0);opacity:1}}
::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--text-light);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-secondary)}
::selection{background:var(--primary-color);color:#fff}
body{transition:background-color .3s ease,color .3s ease}
.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(0)}
.card{transition:box-shadow .3s ease}.card:hover{box-shadow:var(--shadow-hover)}
.modal{backdrop-filter:blur(2px)}.modal-content{animation:modalSlideUp .25s ease;box-shadow:0 8px 32px rgba(0,0,0,.15)}@keyframes modalSlideUp{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}

/* 版房管理系统 v4.1.0 公共样式 */
:root {
  --primary-color: #1890ff;
  --primary-hover: #40a9ff;
  --success-color: #52c41a;
  --warning-color: #faad14;
  --error-color: #f5222d;
  --text-color: #333;
  --text-secondary: #666;
  --text-light: #999;
  --border-color: #d9d9d9;
  --bg-color: #f5f5f5;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 4px;
  --font-size: 14px;
  --font-size-large: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-size);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.5;
}

/* 大字版样式 */
body.large-font {
  --font-size: 18px;
  --font-size-large: 20px;
}

body.large-font .btn,
body.large-font input,
body.large-font select,
body.large-font textarea {
  font-size: 16px;
  padding: 10px 16px;
}

body.large-font .menu-item {
  padding: 14px 20px;
  font-size: 16px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: var(--font-size);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
  color: var(--white);
}

.btn-success:hover {
  background-color: #73d13d;
  border-color: #73d13d;
  color: var(--white);
}

.btn-warning {
  background-color: var(--warning-color);
  border-color: var(--warning-color);
  color: var(--white);
}

.btn-danger {
  background-color: var(--error-color);
  border-color: var(--error-color);
  color: var(--white);
}

.btn-danger:hover {
  background-color: #ff4d4f;
  border-color: #ff4d4f;
  color: var(--white);
}

.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: var(--font-size-large);
}

.btn-block {
  display: block;
  width: 100%;
}

/* 表单 */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  font-size: var(--font-size);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* 卡片 */
.card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

/* 表格 */
.table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background-color: #fafafa;
  font-weight: 600;
  color: var(--text-secondary);
}

.table tr:hover {
  background-color: #f5f5f5;
}

/* 提示消息 */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.alert-success {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  color: var(--success-color);
}

.alert-warning {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
  color: var(--warning-color);
}

.alert-error {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: var(--error-color);
}

.alert-info {
  background-color: #e6f7ff;
  border: 1px solid #91d5ff;
  color: var(--primary-color);
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  cursor: pointer;
  font-size: 24px;
  color: var(--text-light);
  background: none;
  border: none;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* 模态框 overlay 样式（生产订单等模块使用） */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: none !important;
}

.modal-overlay .modal {
  background-color: var(--white);
  border-radius: var(--radius);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.modal-overlay .modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-overlay .modal-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}

.modal-overlay .modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
}

.modal-overlay .form-group {
  margin-bottom: 16px;
}

.modal-overlay .form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-primary);
}

.modal-overlay .form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: var(--radius);
  font-size: 14px;
  box-sizing: border-box;
}

.modal-overlay .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: var(--radius);
  background-color: #f0f0f0;
  color: var(--text-secondary);
}

.tag-success {
  background-color: #f6ffed;
  color: var(--success-color);
}

.tag-warning {
  background-color: #fffbe6;
  color: var(--warning-color);
}

.tag-error {
  background-color: #fff2f0;
  color: var(--error-color);
}

/* 通知铃铛 */
.notification-bell {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.notification-bell:hover {
  background-color: #f0f0f0;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: #ff4d4f;
  color: white;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* 通知下拉面板 */
.notification-panel {
  position: fixed;
  top: 60px;
  right: 20px;
  width: 380px;
  max-height: 480px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notification-panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.notification-panel-actions {
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.notification-panel-actions a {
  color: #1890ff;
  text-decoration: none;
  cursor: pointer;
}

.notification-panel-actions a:hover {
  text-decoration: underline;
}

.notification-panel-body {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}

/* 通知列表项 */
.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notification-item:hover {
  background-color: #fafafa;
}

.notification-item.unread {
  background-color: #f0f7ff;
}

.notification-item.unread:hover {
  background-color: #e6f4ff;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 500;
  margin-bottom: 4px;
  color: #333;
}

.notification-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-time {
  font-size: 12px;
  color: #999;
}

.notification-status {
  flex-shrink: 0;
  align-self: flex-start;
}

.notification-unread-tag {
  background-color: #1890ff;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 通知中心页面 */
.notification-list-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notification-list-item:hover {
  background-color: #fafafa;
}

.notification-list-item.unread {
  background-color: #f0f7ff;
}

.notification-list-item.unread:hover {
  background-color: #e6f4ff;
}

.notification-list-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.notification-list-content {
  flex: 1;
  min-width: 0;
}

.notification-list-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: #333;
}

.notification-list-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.5;
}

.notification-list-time {
  font-size: 13px;
  color: #999;
}

.notification-list-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

/* 分页 */
.pagination {
  display: inline-flex;
  gap: 4px;
}

.pagination button {
  padding: 6px 12px;
  border: 1px solid #d9d9d9;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.pagination button:hover:not(:disabled) {
  border-color: #1890ff;
  color: #1890ff;
}

.pagination button.active {
  background: #1890ff;
  color: white;
  border-color: #1890ff;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* 文本输入框通用样式 */
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  resize: vertical;
  min-height: 60px;
  word-wrap: break-word;
  word-break: break-all;
  white-space: pre-wrap;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  width: 100%;
}

textarea:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

textarea::placeholder {
  color: #bfbfbf;
}

/* 输入框通用样式 */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
  font-family: inherit;
  font-size: inherit;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.tag-primary {
  background-color: #e6f7ff;
  color: var(--primary-color);
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-error { color: var(--error-color); }
.text-primary { color: var(--primary-color); }
.text-muted { color: var(--text-light); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

.w-100 { width: 100%; }

/* 响应式 */
@media (max-width: 768px) {
  .card {
    padding: 16px;
  }
  
  .table {
    font-size: 12px;
  }
  
  .table th,
  .table td {
    padding: 8px;
  }
  
  .btn {
    padding: 6px 12px;
  }
}

