/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary: #1a1a2e;
  --primary-foreground: #ffffff;
  --primary-light: #16213e;
  --primary-hover: #0f3460;
  --background: #ffffff;
  --foreground: #171717;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --red: #dc2626;
  --green: #22c55e;
  --amber: #f59e0b;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --font-sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: var(--background);
}
.btn-outline:hover {
  background: var(--muted);
}
.btn-ghost {
  color: var(--foreground);
}
.btn-ghost:hover {
  background: var(--muted);
}
.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}
.btn-white {
  background: var(--background);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--muted);
}
.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-secondary {
  background: var(--muted);
  color: var(--foreground);
}
.badge-product {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  font-size: 0.6875rem;
}
.jd-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.8);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  white-space: nowrap;
}
.jd-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pm-toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #333;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
}
.pm-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pm-toast.error {
  background: var(--primary, #e2383e);
}
.addr-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.addr-modal-overlay.show {
  display: flex;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.addr-modal {
  background: white;
  border-radius: 16px;
  width: 540px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.addr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100, #f0f0f0);
}
.addr-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800, #222);
}
.addr-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400, #999);
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.addr-modal-close:hover {
  background: var(--gray-100, #f5f5f5);
  color: var(--gray-700, #333);
}
.addr-modal-close svg {
  width: 20px;
  height: 20px;
}
.addr-modal-body {
  padding: 24px;
}
.addr-form-group {
  margin-bottom: 18px;
}
.addr-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700, #333);
  margin-bottom: 6px;
}
.addr-form-label .required {
  color: var(--primary, #e23a3a);
  margin-right: 2px;
}
.addr-form-input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--gray-800, #222);
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.addr-form-input:focus {
  border-color: var(--primary, #e23a3a);
  box-shadow: 0 0 0 3px rgba(226,58,58,0.1);
}
.addr-form-input.error {
  border-color: #f44336;
}
.addr-form-input::placeholder {
  color: var(--gray-300, #bbb);
}
.addr-form-textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--gray-800, #222);
  outline: none;
  transition: all 0.2s;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}
.addr-form-textarea:focus {
  border-color: var(--primary, #e23a3a);
  box-shadow: 0 0 0 3px rgba(226,58,58,0.1);
}
.addr-form-textarea.error {
  border-color: #f44336;
}
.addr-form-error {
  font-size: 12px;
  color: #f44336;
  margin-top: 4px;
  display: none;
}
.addr-form-error.show {
  display: block;
}
.addr-region-row {
  display: flex;
  gap: 10px;
}
.addr-region-row .addr-form-input {
  flex: 1;
}
.addr-default-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--gray-100, #f0f0f0);
  margin-top: 8px;
}
.addr-default-label {
  font-size: 14px;
  color: var(--gray-700, #333);
}
.addr-default-desc {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-top: 2px;
}
.addr-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.addr-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.addr-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gray-300, #ccc);
  border-radius: 12px;
  transition: all 0.3s;
}
.addr-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.addr-toggle input:checked + .addr-toggle-slider {
  background: var(--primary, #e23a3a);
}
.addr-toggle input:checked + .addr-toggle-slider::before {
  transform: translateX(20px);
}
.addr-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100, #f0f0f0);
}
.addr-modal-cancel {
  height: 40px;
  padding: 0 24px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  background: white;
  color: var(--gray-600, #555);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.addr-modal-cancel:hover {
  border-color: var(--gray-400, #999);
  color: var(--gray-800, #222);
}
.addr-modal-submit {
  height: 40px;
  padding: 0 32px;
  border: none;
  border-radius: 8px;
  background: var(--primary, #e23a3a);
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.addr-modal-submit:hover {
  background: var(--primary-dark, #c62828);
}
.addr-empty {
  text-align: center;
  padding: 60px 20px;
}
.addr-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: var(--gray-100, #f5f5f5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.addr-empty-icon svg {
  width: 40px;
  height: 40px;
  color: var(--gray-300, #ccc);
}
.addr-empty-text {
  font-size: 15px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.addr-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--gray-800, #222);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.addr-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.addr-confirm-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}
.addr-confirm-overlay.show {
  display: flex;
}
.addr-confirm-box {
  background: white;
  border-radius: 12px;
  padding: 28px;
  width: 380px;
  max-width: 90vw;
  text-align: center;
  animation: slideUp 0.2s ease;
}
.addr-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: #fff5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.addr-confirm-icon svg {
  width: 24px;
  height: 24px;
  color: #f44336;
}
.addr-confirm-text {
  font-size: 15px;
  color: var(--gray-700, #333);
  margin-bottom: 24px;
  line-height: 1.6;
}
.addr-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.addr-confirm-cancel {
  height: 38px;
  padding: 0 24px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  background: white;
  color: var(--gray-600, #555);
  font-size: 14px;
  cursor: pointer;
}
.addr-confirm-ok {
  height: 38px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  background: #f44336;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
@media (max-width: 768px) {
  .addr-content {
    padding: 16px;
  }
  .addr-card {
    flex-direction: column;
    padding: 16px;
  }
  .addr-card.is-default::after {
    right: 12px;
  }
  .addr-actions {
    align-self: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--gray-100, #f0f0f0);
    width: 100%;
    justify-content: flex-end;
  }
  .addr-region-row {
    flex-direction: column;
    gap: 8px;
  }
  .addr-modal {
    width: 95vw;
  }
  .addr-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
.pm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.pm-modal-overlay.show {
  display: flex;
}
.pm-modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  min-width: 400px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.pm-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.pm-modal-body {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}
.pm-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.pm-modal-btn {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.pm-modal-btn-cancel {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #666;
}
.pm-modal-btn-cancel:hover {
  border-color: var(--primary, #e2383e);
  color: var(--primary, #e2383e);
}
.pm-modal-btn-danger {
  border: none;
  background: var(--primary, #e2383e);
  color: #fff;
}
.pm-modal-btn-danger:hover {
  background: #c53030;
}
.ba-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: baFadeIn .2s;
}
.ba-modal-overlay.show {
  display: flex;
}
@keyframes baFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.ba-modal {
  background: #fff;
  border-radius: 12px;
  width: 560px;
  max-width: 95vw;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: baSlideUp .25s;
}
@keyframes baSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ba-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100, #f0f0f0);
}
.ba-modal-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-700, #333);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ba-modal-header h3 svg {
  width: 20px;
  height: 20px;
  color: var(--primary, #e2383e);
}
.ba-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400, #999);
  transition: all .2s;
}
.ba-modal-close:hover {
  background: #f5f5f5;
  color: var(--gray-600, #555);
}
.ba-modal-close svg {
  width: 18px;
  height: 18px;
}
.ba-modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}
.ba-form-group {
  margin-bottom: 20px;
}
.ba-form-group:last-child {
  margin-bottom: 0;
}
.ba-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600, #555);
  margin-bottom: 6px;
}
.ba-form-label .required {
  color: var(--primary, #e2383e);
  margin-left: 2px;
}
.ba-form-input, .ba-form-select {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--gray-200, #ddd);
  border-radius: 6px;
  font-size: 14px;
  color: var(--gray-700, #333);
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
  box-sizing: border-box;
}
.ba-form-input:focus, .ba-form-select:focus {
  outline: none;
  border-color: var(--primary, #e2383e);
  box-shadow: 0 0 0 3px rgba(226,56,62,.1);
}
.ba-form-input::placeholder {
  color: var(--gray-300, #bbb);
}
.ba-form-input.error, .ba-form-select.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.ba-form-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}
.ba-form-group.has-error .ba-form-error {
  display: block;
}
.ba-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.ba-form-select option {
  color: #333;
}
.ba-bank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.ba-bank-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid var(--gray-200, #ddd);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600, #555);
  transition: all .2s;
  background: #fff;
}
.ba-bank-option:hover {
  border-color: var(--primary, #e2383e);
  color: var(--primary, #e2383e);
}
.ba-bank-option.selected {
  border-color: var(--primary, #e2383e);
  background: #fef2f2;
  color: var(--primary, #e2383e);
}
.ba-bank-option .mini-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ba-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--gray-100, #f0f0f0);
  margin-top: 8px;
}
.ba-switch-row .ba-switch-label {
  font-size: 13px;
  color: var(--gray-600, #555);
}
.ba-switch-row .ba-switch-desc {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-top: 2px;
}
.ba-switch {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.ba-switch input {
  display: none;
}
.ba-switch-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-200, #ddd);
  border-radius: 12px;
  transition: background .2s;
}
.ba-switch-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ba-switch input:checked + .ba-switch-slider {
  background: var(--primary, #e2383e);
}
.ba-switch input:checked + .ba-switch-slider::before {
  transform: translateX(20px);
}
.ba-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100, #f0f0f0);
  background: #fafafa;
}
.ba-modal-footer .ba-btn {
  padding: 9px 24px;
}
.ba-confirm-content {
  text-align: center;
  padding: 20px 0;
}
.ba-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.ba-confirm-icon svg {
  width: 28px;
  height: 28px;
  color: #ef4444;
}
.ba-confirm-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700, #333);
  margin-bottom: 8px;
}
.ba-confirm-desc {
  font-size: 13px;
  color: var(--gray-400, #999);
  line-height: 1.6;
}
.ba-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100, #f0f0f0);
}
.ba-page-btn {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--gray-200, #ddd);
  border-radius: 6px;
  background: #fff;
  color: var(--gray-600, #555);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  padding: 0 8px;
}
.ba-page-btn:hover {
  border-color: var(--primary, #e2383e);
  color: var(--primary, #e2383e);
}
.ba-page-btn.active {
  background: var(--primary, #e2383e);
  color: #fff;
  border-color: var(--primary, #e2383e);
}
.ba-page-btn.disabled {
  opacity: .4;
  pointer-events: none;
}
.dm-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: dmFadeIn 0.2s;
}
.dm-modal-overlay.show {
  display: flex;
}
@keyframes dmFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.dm-modal {
  background: #fff;
  border-radius: 12px;
  width: 560px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: dmSlideUp 0.25s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
@keyframes dmSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.dm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.dm-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: #222;
}
.dm-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.dm-modal-close:hover {
  background: #fee2e2;
}
.dm-modal-close svg {
  width: 16px;
  height: 16px;
  fill: #999;
}
.dm-modal-body {
  padding: 20px 24px;
}
.dm-form-group {
  margin-bottom: 18px;
}
.dm-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}
.dm-form-label .required {
  color: #e2383e;
  margin-left: 2px;
}
.dm-form-input {
  width: 100%;
  height: 38px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  color: #333;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dm-form-input:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,0.1);
}
.dm-form-input.error {
  border-color: #e2383e;
}
.dm-form-textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: #333;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dm-form-textarea:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,0.1);
}
.dm-form-select {
  width: 100%;
  height: 38px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  color: #333;
  outline: none;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: auto;
}
.dm-form-select:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,0.1);
}
.dm-form-hint {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.dm-form-error {
  font-size: 12px;
  color: #e2383e;
  margin-top: 4px;
  display: none;
}
.dm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dm-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.dm-switch-track {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #ddd;
  position: relative;
  transition: background 0.2s;
}
.dm-switch-track.on {
  background: #e2383e;
}
.dm-switch-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.dm-switch-track.on .dm-switch-thumb {
  transform: translateX(18px);
}
.dm-switch-label {
  font-size: 13px;
  color: #666;
}
.dm-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
}
.dm-toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #222;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.dm-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.dm-toast.success {
  background: #38a169;
}
.dm-toast.error {
  background: #e53e3e;
}
.dm-confirm-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}
.dm-confirm-overlay.show {
  display: flex;
}
.dm-confirm {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  width: 400px;
  text-align: center;
  animation: dmSlideUp 0.25s;
}
.dm-confirm-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dm-confirm-icon svg {
  width: 26px;
  height: 26px;
  fill: #e2383e;
}
.dm-confirm-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}
.dm-confirm-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
  line-height: 1.6;
}
.dm-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
@media (max-width: 1200px) {
  .dm-body {
    flex-direction: column;
  }
  .dm-tree-panel {
    width: 100%;
  }
  .dm-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .dm-content {
    margin-left: 0;
  }
  .dm-main {
    padding: 16px;
  }
  .dm-stats {
    grid-template-columns: 1fr;
  }
  .dm-form-row {
    grid-template-columns: 1fr;
  }
  .dm-modal {
    width: 95vw;
  }
}
.emp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: empFadeIn .2s;
}
.emp-modal-overlay.show {
  display: flex;
}
@keyframes empFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.emp-modal {
  background: #fff;
  border-radius: 14px;
  width: 560px;
  max-width: 95vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  animation: empSlideIn .25s ease;
}
@keyframes empSlideIn {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.emp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f3f4f6;
}
.emp-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: #1f2937;
}
.emp-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all .15s;
}
.emp-modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}
.emp-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.emp-modal-foot {
  padding: 16px 24px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.emp-form-group {
  margin-bottom: 18px;
}
.emp-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}
.emp-form-label .required {
  color: #e2383e;
  margin-right: 2px;
}
.emp-form-input, .emp-form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #1f2937;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.emp-form-input:focus, .emp-form-select:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 3px rgba(226,56,62,.08);
}
.emp-form-input.error {
  border-color: #ef4444;
}
.emp-form-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}
.emp-form-error.show {
  display: block;
}
.emp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.emp-form-hint {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}
.emp-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.emp-role-chip {
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
  color: #6b7280;
  background: #fff;
}
.emp-role-chip:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.emp-role-chip.active {
  background: #fef2f2;
  border-color: #e2383e;
  color: #e2383e;
  font-weight: 500;
}
.emp-dept-dropdown {
  position: relative;
}
.emp-dept-trigger {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  transition: border-color .2s;
}
.emp-dept-trigger:hover {
  border-color: #e2383e;
}
.emp-dept-trigger svg {
  width: 16px;
  height: 16px;
  fill: #9ca3af;
  transition: transform .2s;
}
.emp-dept-trigger.open svg {
  transform: rotate(180deg);
}
.emp-dept-tree {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  margin-top: 4px;
}
.emp-dept-tree.show {
  display: block;
}
.emp-dept-node {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  color: #374151;
  transition: background .1s;
}
.emp-dept-node:hover {
  background: #fef2f2;
  color: #e2383e;
}
.emp-dept-node.selected {
  background: #fef2f2;
  color: #e2383e;
  font-weight: 500;
}
.emp-dept-node.level-2 {
  padding-left: 28px;
}
.emp-dept-node.level-3 {
  padding-left: 44px;
}
.emp-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
}
.emp-confirm-overlay.show {
  display: flex;
}
.emp-confirm {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  width: 400px;
  max-width: 90vw;
  text-align: center;
  animation: empSlideIn .25s ease;
}
.emp-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.emp-confirm-icon svg {
  width: 28px;
  height: 28px;
  fill: #e2383e;
}
.emp-confirm-title {
  font-size: 17px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}
.emp-confirm-msg {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
}
.emp-confirm-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.emp-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  z-index: 2000;
  transition: transform .3s ease;
  white-space: nowrap;
}
.emp-toast.show {
  transform: translateX(-50%) translateY(0);
}
.emp-toast-success {
  background: #16a34a;
}
.emp-toast-error {
  background: #dc2626;
}
.emp-toast-info {
  background: #e2383e;
}
@media (max-width: 1200px) {
  .emp-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .emp-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .emp-form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .emp-stats {
    grid-template-columns: 1fr;
  }
  .emp-toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }
  .emp-search input {
    width: 100%;
  }
}
.pm-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid #f5f5f5;
}
.pm-page-info {
  font-size: 13px;
  color: #999;
}
.pm-page-btns {
  display: flex;
  gap: 4px;
}
.pm-page-btn {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: all .2s;
}
.pm-page-btn:hover {
  border-color: var(--primary, #e2383e);
  color: var(--primary, #e2383e);
}
.pm-page-btn.active {
  background: var(--primary, #e2383e);
  color: #fff;
  border-color: var(--primary, #e2383e);
}
.pm-page-btn.disabled {
  color: #ccc;
  cursor: not-allowed;
}
.pm-float-btns {
  position: fixed;
  right: 24px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.pm-float-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.pm-float-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  color: var(--primary, #e2383e);
}
.pm-float-btn svg {
  width: 16px;
  height: 16px;
}
.pm-float-dot {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary, #e2383e);
  border-radius: 50%;
}
.pm-float-ai {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: #fff;
  border-radius: 22px;
  padding: 10px 16px;
}
.pm-float-ai:hover {
  background: linear-gradient(135deg, #8e44ad, #7d3c98);
  color: #fff;
}
.topbar {
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.topbar-links {
  display: none;
  align-items: center;
  gap: 1rem;
}
.topbar-links a:hover {
  text-decoration: underline;
}
.topbar-sep {
  width: 1px;
  height: 0.75rem;
  background: rgba(255, 255, 255, 0.3);
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary);
  border-radius: var(--radius);
  color: #fff;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.search-box {
  display: none;
  flex: 1;
  max-width: 36rem;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 0.625rem 5.5rem 0.625rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus {
  border-color: var(--primary);
}
.search-box .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
}
.search-box .search-btn {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
}
.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--foreground);
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  outline: none;
  margin-bottom: 0.75rem;
  position: relative;
}
.mobile-menu .mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.mobile-menu .mobile-links .btn {
  justify-content: flex-start;
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.04), rgba(26, 26, 46, 0.08), #fff);
  padding: 4rem 0;
}
.hero::before {
  content: '';
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.04);
  filter: blur(4rem);
}
.hero::after {
  content: '';
  position: absolute;
  left: -2rem;
  bottom: 0;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.06);
  filter: blur(4rem);
}
.hero .container {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-badge {
  width: fit-content;
}
.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-title .highlight {
  color: var(--primary);
}
.hero-desc {
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}
.hero-checks span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.hero-checks .check-icon {
  color: var(--green);
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.news-section {
  background: #f5f7fa;
  padding: 3.5rem 0;
}
.news-title-group {
  display: flex;
  align-items: baseline;
  gap: 0;
}
.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.news-main-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
  letter-spacing: -0.5px;
}
.news-sub-title {
  font-size: 14px;
  color: var(--gray-400);
  margin-left: 12px;
}
.news-view-all {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}
.news-view-all:hover {
  color: var(--primary);
}
.news-view-all svg {
  width: 16px;
  height: 16px;
}
.news-panel {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.04);
}
.news-tabs {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 8px;
}
.news-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  white-space: nowrap;
}
.news-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background 0.25s;
}
.news-tab:hover {
  color: var(--gray-700);
}
.news-tab.active {
  color: var(--gray-800);
  font-weight: 700;
}
.news-tab.active::after {
  background: var(--primary);
}
.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
}
.tab-icon svg {
  width: 14px;
  height: 14px;
}
.tab-icon-bidding {
  background: #fff1f0;
  color: #e53e3e;
}
.tab-icon-clarify {
  background: #fff7ed;
  color: #dd6b20;
}
.tab-icon-award {
  background: #f0fff4;
  color: #38a169;
}
.tab-icon-correction {
  background: #eff6ff;
  color: #3182ce;
}
.tab-count {
  font-size: 11px;
  font-weight: 600;
  background: #f5f5f5;
  color: var(--gray-400);
  padding: 1px 8px;
  border-radius: 10px;
  line-height: 1.6;
}
.news-tab.active .tab-count {
  background: #fff1f0;
  color: var(--primary);
}
.news-content {
  min-height: 340px;
}
.news-tab-pane {
  display: none;
  padding: 4px 0;
}
.news-tab-pane.active {
  display: block;
}
.news-row {
  display: flex;
  align-items: center;
  padding: 14px 28px;
  gap: 12px;
  text-decoration: none;
  transition: background 0.2s;
  border-left: 3px solid transparent;
}
.news-row:hover {
  background: #fafbfc;
  border-left-color: var(--primary);
}
.news-row-top {
  background: #fffbfb;
}
.news-row-top:hover {
  background: #fff5f5;
}
.news-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red {
  background: #e53e3e;
}
.dot-orange {
  background: #dd6b20;
}
.dot-green {
  background: #38a169;
}
.dot-blue {
  background: #3182ce;
}
.news-row-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  line-height: 1.5;
}
.tag-hot {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
}
.tag-new {
  background: linear-gradient(135deg, #38a169, #2f855a);
  color: white;
}
.news-row-title {
  flex: 1;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}
.news-row:hover .news-row-title {
  color: var(--primary);
}
.news-row-date {
  font-size: 13px;
  color: var(--gray-400);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  min-width: 90px;
  text-align: right;
}
.news-footer-ticker {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 28px;
  background: #fafbfc;
  border-top: 1px solid #f0f0f0;
}
.ticker-badge {
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary), #c53030);
  padding: 3px 12px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 1px;
}
.ticker-scroll {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  flex: 1;
}
.ticker-item {
  font-size: 13px;
  color: var(--gray-500);
  white-space: nowrap;
  position: relative;
  padding-left: 14px;
}
.ticker-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.ticker-sep {
  width: 1px;
  height: 12px;
  background: #e5e7eb;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .news-section {
    padding: 2.5rem 0;
  }
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .news-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 4px;
  }
  .news-tabs::-webkit-scrollbar {
    display: none;
  }
  .news-tab {
    padding: 14px 16px;
    font-size: 14px;
  }
  .news-row {
    padding: 12px 16px;
    gap: 8px;
  }
  .news-row-title {
    font-size: 13px;
  }
  .news-row-date {
    font-size: 12px;
    min-width: 70px;
  }
  .news-footer-ticker {
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .ticker-scroll {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .ticker-item {
    white-space: normal;
  }
  .ticker-sep {
    display: none;
  }
}
@media (max-width: 480px) {
  .news-tab {
    padding: 12px 12px;
    font-size: 13px;
    gap: 5px;
  }
  .tab-icon {
    width: 20px;
    height: 20px;
  }
  .tab-icon svg {
    width: 12px;
    height: 12px;
  }
  .tab-count {
    display: none;
  }
  .news-row-dot {
    width: 6px;
    height: 6px;
  }
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
}
.section-subtitle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.section-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.section-link:hover {
  color: var(--primary);
}
.section-link svg {
  width: 1rem;
  height: 1rem;
}
.categories {
  padding: 4rem 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  transition: background 0.2s;
  cursor: pointer;
}
.category-item:hover {
  background: var(--muted);
}
.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  transition: transform 0.2s;
}
.category-item:hover .category-icon {
  transform: scale(1.1);
}
.category-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.cat-blue {
  background: #eff6ff;
  color: #2563eb;
}
.cat-orange {
  background: #fff7ed;
  color: #ea580c;
}
.cat-purple {
  background: #faf5ff;
  color: #9333ea;
}
.cat-green {
  background: #f0fdf4;
  color: #16a34a;
}
.cat-red {
  background: #fef2f2;
  color: #dc2626;
}
.cat-cyan {
  background: #ecfeff;
  color: #0891b2;
}
.cat-amber {
  background: #fffbeb;
  color: #d97706;
}
.cat-indigo {
  background: #eef2ff;
  color: #4f46e5;
}
.category-name {
  font-size: 0.875rem;
  font-weight: 500;
}
.category-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.hot-products {
  padding: 4rem 0;
  background: rgba(244, 244, 245, 0.4);
}
.products-grid {
  display: grid;
  gap: 1.25rem;
}
.product-card {
  background: var(--background);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
}
.product-image {
  position: relative;
  height: 11rem;
  background: linear-gradient(135deg, var(--muted), rgba(244, 244, 245, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image .badge-product {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
}
.product-image .product-placeholder {
  color: var(--muted-foreground);
  opacity: 0.3;
}
.product-info {
  padding: 1rem;
}
.product-name {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-supplier {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.product-rating .star {
  color: var(--amber);
  fill: var(--amber);
}
.product-rating .rating-sep {
  margin-left: 0.25rem;
}
.product-price {
  margin-top: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.product-price .current {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--red);
}
.product-price .original {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}
.product-cart-btn {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  background: var(--background);
  transition: all 0.2s;
}
.product-cart-btn:hover {
  background: var(--muted);
  border-color: var(--primary);
  color: var(--primary);
}
.advantages {
  padding: 4rem 0;
}
.advantages-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.advantages-grid {
  display: grid;
  gap: 1.5rem;
}
.advantage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #fff, rgba(244, 244, 245, 0.3));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.advantage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(26, 26, 46, 0.08);
  border-radius: 1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.advantage-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}
.advantage-title {
  font-size: 1.125rem;
  font-weight: 600;
}
.advantage-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.process {
  padding: 4rem 0;
  background: var(--primary);
  color: var(--primary-foreground);
}
.process-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.process-header .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}
.process-grid {
  display: grid;
  gap: 1.5rem;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.process-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.process-step-title {
  font-size: 1.125rem;
  font-weight: 600;
}
.process-step-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}
.process-arrow {
  display: none;
  position: absolute;
  right: -0.75rem;
  top: 1.75rem;
  color: rgba(255, 255, 255, 0.3);
}
.testimonials {
  padding: 4rem 0;
}
.testimonials-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}
.testimonial-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
}
.testimonial-quote-icon {
  color: rgba(26, 26, 46, 0.12);
  margin-bottom: 0.75rem;
}
.testimonial-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}
.testimonial-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}
.testimonial-person {
  font-size: 0.875rem;
  font-weight: 600;
}
.testimonial-company {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.partners {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(244, 244, 245, 0.3);
  text-align: center;
}
.partners-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}
.partners-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.partner-tag {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: var(--background);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  cursor: pointer;
}
.partner-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.cta {
  padding: 4rem 0;
}
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--primary-foreground);
}
.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
}
.cta-desc {
  max-width: 28rem;
  margin: 0.75rem auto 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}
.cta-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.footer {
  border-top: 1px solid var(--border);
  background: rgba(244, 244, 245, 0.3);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
.footer-brand-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.footer-contact {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-contact svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}
.footer-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.footer-col-links a:hover {
  color: var(--foreground);
}
.footer-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 2rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.footer-bottom-links {
  display: flex;
  gap: 1rem;
}
.footer-bottom-links a:hover {
  color: var(--foreground);
}
@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .topbar-links {
    display: flex;
  }
  .search-box {
    display: block;
  }
  .nav-actions {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
  .hero .container {
    grid-template-columns: 1fr 1fr;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .hero-title {
    font-size: 3rem;
  }
  .stat-value {
    font-size: 2.25rem;
  }
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .advantages-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .process-arrow {
    display: block;
  }
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  .cta-box {
    padding: 4rem 3rem;
  }
  .cta-title {
    font-size: 2.25rem;
  }
}
.demo-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.04), rgba(26, 26, 46, 0.08), #fff);
  padding: 3rem 0;
}
.demo-hero::before {
  content: '';
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.04);
  filter: blur(4rem);
}
.demo-hero-content {
  text-align: center;
}
.demo-hero-title {
  margin-top: 0.75rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.demo-hero-desc {
  max-width: 32rem;
  margin: 0.75rem auto 0;
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}
.demo-form-section {
  padding: 3rem 0 4rem;
}
.demo-layout {
  display: grid;
  gap: 2rem;
}
.demo-form-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  order: 2;
}
.demo-form-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.demo-form-subheading {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}
.required-star {
  color: var(--red);
}
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-label {
  font-size: 0.875rem;
  font-weight: 500;
}
.form-input {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--foreground);
  background: var(--background);
}
.form-input::placeholder {
  color: var(--muted-foreground);
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}
.form-input--error {
  border-color: var(--red);
}
.form-input--error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.form-alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.form-alert--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.form-alert--success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.form-error {
  font-size: 0.75rem;
  color: var(--red);
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s, opacity 0.2s, margin 0.2s;
  opacity: 0;
}
.form-error--visible {
  max-height: 1.5rem;
  opacity: 1;
  margin-top: 0.25rem;
}
.demo-submit-btn {
  margin-top: 0.5rem;
  width: 100%;
}
.demo-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 1rem;
}
.demo-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}
.demo-success-title {
  font-size: 1.5rem;
  font-weight: 700;
}
.demo-success-desc {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  max-width: 24rem;
}
.demo-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  order: 1;
}
.demo-info-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.demo-info-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.demo-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.demo-info-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--foreground);
}
.demo-info-list li svg {
  color: var(--green);
  flex-shrink: 0;
}
.demo-info-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.demo-info-contact-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.demo-info-contact-item svg {
  color: var(--primary);
  flex-shrink: 0;
}
.demo-info-card--trust {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  color: var(--primary-foreground);
  text-align: center;
}
.demo-trust-avatars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.demo-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.demo-trust-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}
.demo-trust-text strong {
  color: #fff;
}
@media (min-width: 768px) {
  .demo-hero {
    padding: 4rem 0;
  }
  .demo-hero-title {
    font-size: 2.5rem;
  }
  .demo-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
  }
  .demo-form-card {
    order: 1;
  }
  .demo-info {
    order: 2;
  }
  .demo-form-card {
    padding: 2.5rem;
  }
}
.register-page {
  min-height: calc(100vh);
  display: flex;
}
.register-brand {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 0 0 42%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--primary-foreground);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.register-brand::before {
  content: '';
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.register-brand::after {
  content: '';
  position: absolute;
  left: -3rem;
  bottom: -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}
.register-brand-content {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}
.register-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
}
.register-brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
}
.register-brand-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.register-brand-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.register-brand-desc {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
}
.register-brand-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.register-brand-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.register-brand-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.register-brand-feature-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}
.register-brand-feature-text p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}
.register-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.register-form-wrapper {
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}
.register-mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.register-mobile-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary);
  border-radius: var(--radius);
  color: #fff;
}
.register-mobile-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.register-form-heading {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.375rem;
}
.register-form-subheading {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}
.register-form-subheading a {
  color: var(--primary);
  font-weight: 500;
}
.register-form-subheading a:hover {
  text-decoration: underline;
}
.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-label {
  font-size: 0.875rem;
  font-weight: 500;
}
.required-star {
  color: var(--red);
}
.form-input {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--foreground);
  background: var(--background);
}
.form-input::placeholder {
  color: var(--muted-foreground);
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}
.form-input--error {
  border-color: var(--red);
}
.form-input--error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.form-error {
  font-size: 0.75rem;
  color: var(--red);
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s, opacity 0.2s, margin 0.2s;
  opacity: 0;
}
.form-error--visible {
  max-height: 1.5rem;
  opacity: 1;
  margin-top: 0.25rem;
}
.form-input-wrapper {
  position: relative;
}
.form-input-wrapper .form-input {
  width: 100%;
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.password-toggle:hover {
  color: var(--foreground);
}
.password-strength {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.5rem;
}
.password-strength-bar {
  flex: 1;
  height: 0.25rem;
  border-radius: 9999px;
  background: var(--border);
  transition: background 0.3s;
}
.password-strength-bar.active-weak {
  background: var(--red);
}
.password-strength-bar.active-medium {
  background: var(--amber);
}
.password-strength-bar.active-strong {
  background: var(--green);
}
.password-strength-text {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.375rem;
}
.sms-row {
  display: flex;
  gap: 0.75rem;
}
.sms-row .form-input {
  flex: 1;
}
.sms-btn {
  white-space: nowrap;
  padding: 0.625rem 1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
  min-width: 7.5rem;
  text-align: center;
}
.sms-btn:hover:not(:disabled) {
  background: var(--primary);
  color: var(--primary-foreground);
}
.sms-btn:disabled {
  border-color: var(--border);
  color: var(--muted-foreground);
  cursor: not-allowed;
}
.form-agreement {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.form-agreement input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
  cursor: pointer;
}
.form-agreement a {
  color: var(--primary);
  font-weight: 500;
}
.form-agreement a:hover {
  text-decoration: underline;
}
.register-submit-btn {
  margin-top: 0.5rem;
  width: 100%;
}
.register-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}
.register-divider::before, .register-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.register-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.register-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--background);
}
.register-social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.register-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
  gap: 1rem;
}
.register-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}
.register-success-title {
  font-size: 1.5rem;
  font-weight: 700;
}
.register-success-desc {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  max-width: 24rem;
}
@media (min-width: 768px) {
  .register-form-panel {
    padding: 3rem 2.5rem;
  }
  .register-mobile-logo {
    display: none;
  }
  .register-brand {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .register-form-panel {
    padding: 3rem 4rem;
  }
}
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: -0.5rem;
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.login-remember input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  cursor: pointer;
}
.login-forget {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.login-forget:hover {
  color: var(--primary);
}
.captcha-canvas {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  height: 2.75rem;
  width: 120px;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.captcha-canvas:hover {
  border-color: var(--primary);
}
.toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--foreground);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.toast--show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast--success {
  background: #16a34a;
}
.toast--error {
  background: #dc2626;
}
.toast--info {
  background: var(--foreground);
}
.ws-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.ws-toast.show {
  opacity: 1;
}
@media (max-width: 640px) {
  .login-options {
    font-size: 0.8125rem;
  }
  .captcha-canvas {
    width: 100px;
    height: 2.5rem;
  }
}
.mall-breadcrumb {
  padding: 0.875rem 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.mall-breadcrumb a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.mall-breadcrumb a:hover {
  color: var(--primary);
}
.mall-breadcrumb .sep {
  margin: 0 0.375rem;
}
.mall-breadcrumb .current {
  color: var(--foreground);
  font-weight: 500;
}
.mall-layout {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 3rem;
}
.mall-sidebar {
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  width: 14rem;
  position: sticky;
  top: 5rem;
  overflow-y: auto;
}
.mall-sidebar-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.mall-sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--primary-foreground);
}
.mall-sidebar-title svg {
  width: 1.125rem;
  height: 1.125rem;
}
.cat-tree {
  padding: 0.5rem 0;
}
.cat-group {
  border-bottom: 1px solid var(--border);
}
.cat-group:last-child {
  border-bottom: none;
}
.cat-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.cat-parent:hover {
  background: var(--muted);
  color: var(--primary);
}
.cat-parent.active {
  color: var(--primary);
}
.cat-parent-arrow {
  transition: transform 0.25s;
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.cat-parent.active .cat-parent-arrow {
  transform: rotate(90deg);
  color: var(--primary);
}
.cat-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.cat-children.open {
  max-height: 500px;
}
.cat-child {
  display: block;
  padding: 0.375rem 1rem 0.375rem 1.75rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
}
.cat-child:hover, .cat-child.active {
  color: var(--primary);
  background: rgba(26, 26, 46, 0.03);
}
.mall-main {
  flex: 1;
  min-width: 0;
}
.mall-search {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.mall-search-input {
  flex: 1;
  padding: 0.625rem 0.875rem 0.625rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-sans);
  background: var(--background) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 0.75rem center;
}
.mall-search-input:focus {
  border-color: var(--primary);
}
.mall-search-btn {
  padding: 0.625rem 1.5rem;
}
.mall-cat-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--foreground);
  background: var(--background);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.mall-cat-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.mall-cat-toggle svg {
  width: 1rem;
  height: 1rem;
}
.mall-filters {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.mall-filter-tag {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 9999px;
  font-size: 0.75rem;
}
.mall-filter-remove {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.mall-filter-remove:hover {
  opacity: 1;
}
.mall-filter-clear {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s;
}
.mall-filter-clear:hover {
  color: var(--primary);
}
.mall-cat-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
}
.mall-cat-overlay.open {
  display: block;
}
.mall-cat-drawer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16rem;
  background: var(--background);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s;
}
.mall-cat-overlay.open .mall-cat-drawer {
  transform: translateX(0);
}
.mall-cat-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.mall-cat-drawer-close {
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0.25rem;
}
.mall-cat-drawer-close:hover {
  color: var(--foreground);
}
.mall-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mall-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.mall-result-count {
  font-weight: 600;
  color: var(--primary);
}
.mall-sort-btn {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
}
.mall-sort-btn:hover, .mall-sort-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26, 26, 46, 0.03);
}
.mall-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.product-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-placeholder-icon {
  color: var(--muted-foreground);
  opacity: 0.25;
}
.product-body {
  padding: 0.875rem;
}
.product-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.product-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 0.75rem;
  gap: 0.5rem;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}
.product-price .currency {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
}
.product-price .amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
}
.product-price .original {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}
.product-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font-sans);
}
.product-add-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}
.product-add-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}
.mall-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2rem;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--foreground);
  background: var(--background);
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}
.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-ellipsis {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  padding: 0 0.25rem;
}
.mall-toast {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-1rem);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 300;
  white-space: nowrap;
}
.mall-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 640px) {
  .mall-products {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 768px) {
  .mall-sidebar {
    display: flex;
  }
  .mall-cat-toggle {
    display: none;
  }
  .mall-products {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .mall-products {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 1280px) {
  .mall-products {
    grid-template-columns: repeat(4, 1fr);
  }
}
.product-breadcrumb {
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.product-breadcrumb a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.product-breadcrumb a:hover {
  color: var(--primary-hover);
}
.product-breadcrumb .sep {
  margin: 0 0.375rem;
}
.product-breadcrumb .current {
  color: var(--foreground);
  font-weight: 500;
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 1.5rem 0 3rem;
}
.gallery {
  position: sticky;
  top: 5.5rem;
}
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--muted);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-main .slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-main .slide.active {
  opacity: 1;
}
.gallery-main .slide svg {
  width: 45%;
  height: 45%;
  color: var(--muted-foreground);
}
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s;
  opacity: 0;
}
.gallery-main:hover .gallery-btn {
  opacity: 1;
}
.gallery-btn:hover {
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.gallery-btn.prev {
  left: 0.75rem;
}
.gallery-btn.next {
  right: 0.75rem;
}
.gallery-btn svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--foreground);
}
.gallery-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.375rem;
  z-index: 2;
}
.gallery-dots .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.gallery-dots .dot.active {
  background: #fff;
  width: 1.25rem;
  border-radius: 9999px;
}
.gallery-thumbs {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.75rem;
}
.gallery-thumbs .thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  background: var(--muted);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gallery-thumbs .thumb:hover {
  border-color: var(--border);
}
.gallery-thumbs .thumb.active {
  border-color: var(--primary-hover);
}
.gallery-thumbs .thumb svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--muted-foreground);
}
.product-info__detail__page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.product-title__detail__page {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--foreground);
}
.product-tags__detail__page {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.product-tag__detail__page {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.product-tag__detail__page.hot {
  background: #fef2f2;
  color: var(--red);
}
.product-tag__detail__page.auth {
  background: #f0fdf4;
  color: var(--green);
}
.product-tag__detail__page.fast {
  background: #fffbeb;
  color: var(--amber);
}
.product-rating-row__detail__page {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.product-rating-row__detail__page .stars {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.product-rating-row__detail__page .stars svg {
  width: 1rem;
  height: 1rem;
  color: var(--amber);
  fill: var(--amber);
}
.product-rating-row__detail__page .score {
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber);
}
.product-rating-row__detail__page .count {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.product-rating-row__detail__page .sales {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.price-block {
  background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid #fecaca;
}
.price-block .label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.375rem;
}
.price-block .price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.price-block .current-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.price-block .current-price .currency {
  font-size: 1rem;
  margin-right: 0.125rem;
}
.price-block .original-price {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}
.price-block .discount {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  background: var(--red);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
}
.price-block .bulk-hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #b91c1c;
}
.spec-group {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.spec-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.spec-row .spec-label {
  flex-shrink: 0;
  width: 5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  text-align: right;
}
.spec-row .spec-value {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
}
.spec-option {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.8125rem;
}
.spec-option:hover {
  border-color: var(--primary-hover);
}
.spec-option.selected {
  border-color: var(--primary-hover);
  background: #eef2ff;
  color: var(--primary-hover);
  font-weight: 500;
}
.spec-option.disabled {
  border-color: var(--border);
  background: var(--background);
  color: var(--muted-foreground);
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.detail-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.detail-image-item {
  border-radius: 8px;
  overflow: hidden;
  background: var(--muted);
}
.detail-image-item img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.quantity-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.quantity-control button {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.quantity-control button:hover {
  background: var(--border);
}
.quantity-control input {
  width: 3.5rem;
  height: 2.25rem;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  font-family: var(--font-sans);
}
.quantity-unit {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.action-row {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}
.btn-buy {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--red);
  color: #fff;
  font-family: var(--font-sans);
}
.btn-buy:hover {
  background: #b91c1c;
}
.btn-cart {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-sans);
}
.btn-cart:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}
.store-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 1.5rem;
}
.store-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.store-info {
  flex: 1;
  min-width: 0;
}
.store-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}
.store-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.store-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.store-enter {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  font-size: 0.8125rem;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
  font-weight: 500;
}
.store-enter:hover {
  border-color: var(--primary-hover);
  color: var(--primary-hover);
}
.detail-tabs {
  margin-top: 2rem;
  padding-bottom: 3rem;
}
.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.tab-btn {
  padding: 0.875rem 1.75rem;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.tab-btn:hover {
  color: var(--foreground);
}
.tab-btn.active {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}
.tab-content {
  padding-top: 1.5rem;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table tr:nth-child(even) {
  background: var(--muted);
}
.specs-table td {
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
}
.specs-table td:first-child {
  width: 10rem;
  color: var(--muted-foreground);
  font-weight: 500;
}
.review-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background: var(--muted);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.review-score {
  text-align: center;
}
.review-score .big {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}
.review-score .label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}
.review-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.review-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.review-bar-row .star-label {
  width: 3rem;
  color: var(--muted-foreground);
}
.review-bar-row .bar-bg {
  flex: 1;
  height: 0.5rem;
  background: var(--border);
  border-radius: 9999px;
  overflow: hidden;
}
.review-bar-row .bar-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 9999px;
  transition: width 0.6s ease;
}
.review-bar-row .pct {
  width: 2.5rem;
  text-align: right;
  color: var(--muted-foreground);
}
.review-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.review-item {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}
.review-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}
.review-user {
  flex: 1;
}
.review-user .name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
}
.review-user .date {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}
.review-stars {
  display: flex;
  gap: 0.125rem;
}
.review-stars svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--amber);
  fill: var(--amber);
}
.review-body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--foreground);
}
.review-specs {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (max-width: 1024px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery {
    position: static;
  }
}
@media (max-width: 640px) {
  .product-title {
    font-size: 1.25rem;
  }
  .price-block .current-price {
    font-size: 1.5rem;
  }
  .action-row {
    flex-direction: column;
  }
  .gallery-thumbs .thumb {
    width: 3.5rem;
    height: 3.5rem;
  }
  .review-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .store-card {
    flex-wrap: wrap;
  }
}
.settle-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.settle-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.settle-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}
.settle-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 0;
  position: relative;
}
.settle-hero .stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 36px;
  position: relative;
}
.settle-hero .stat-item {
  text-align: center;
}
.settle-hero .stat-num {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}
.settle-hero .stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}
.settle-steps {
  padding: 60px 0 40px;
  background: #f8fafc;
}
.settle-steps h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 40px;
}
.steps-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.step-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  width: 220px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  position: relative;
}
.step-card .step-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 14px;
}
.step-card .step-icon {
  margin-bottom: 12px;
}
.step-card .step-icon svg {
  width: 32px;
  height: 32px;
  color: #2563eb;
}
.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}
.step-arrow {
  display: flex;
  align-items: center;
  color: #cbd5e1;
  font-size: 1.5rem;
}
.settle-benefits {
  padding: 50px 0;
  background: #fff;
}
.settle-benefits h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 40px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.1);
  border-color: #bfdbfe;
}
.benefit-card .benefit-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.benefit-card .benefit-icon svg {
  width: 24px;
  height: 24px;
  color: #2563eb;
}
.benefit-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}
.settle-form-section {
  padding: 60px 0 80px;
  background: #f8fafc;
}
.settle-form-section h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.settle-form-section .form-subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 40px;
  font-size: 0.9375rem;
}
.settle-form-wrapper {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}
.settle-form-wrapper .form-group {
  margin-bottom: 24px;
}
.settle-form-wrapper .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.settle-form-wrapper .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}
.settle-form-wrapper .form-group label .required {
  color: #ef4444;
  margin-left: 2px;
}
.settle-form-wrapper .form-group input, .settle-form-wrapper .form-group textarea, .settle-form-wrapper .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9375rem;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}
.settle-form-wrapper .form-group input::placeholder, .settle-form-wrapper .form-group textarea::placeholder {
  color: #94a3b8;
}
.settle-form-wrapper .form-group input:focus, .settle-form-wrapper .form-group textarea:focus, .settle-form-wrapper .form-group select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.settle-form-wrapper .form-group input.error, .settle-form-wrapper .form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.settle-form-wrapper .form-group .field-hint {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 6px;
}
.settle-form-wrapper .form-group .field-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 6px;
  display: none;
}
.settle-form-wrapper .form-group .field-error.visible {
  display: block;
}
.settle-form-wrapper .form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.upload-area {
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-area:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}
.upload-area .upload-icon {
  margin-bottom: 12px;
}
.upload-area .upload-icon svg {
  width: 40px;
  height: 40px;
  color: #94a3b8;
}
.upload-area .upload-text {
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 4px;
}
.upload-area .upload-hint {
  font-size: 0.8125rem;
  color: #94a3b8;
}
.upload-area .upload-text span {
  color: #2563eb;
  font-weight: 600;
}
.upload-area input[type="file"] {
  display: none;
}
.upload-preview {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  margin-top: 12px;
}
.upload-preview.show {
  display: flex;
}
.upload-preview .file-name {
  font-size: 0.875rem;
  color: #166534;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-preview .file-remove {
  color: #ef4444;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 28px 0;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}
.form-checkbox label {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  cursor: pointer;
}
.form-checkbox label a {
  color: #2563eb;
  text-decoration: none;
}
.form-checkbox label a:hover {
  text-decoration: underline;
}
.form-submit-row {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.btn-submit {
  flex: 1;
  padding: 14px 32px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-submit:hover {
  opacity: 0.92;
}
.btn-submit:active {
  transform: scale(0.98);
}
.btn-reset {
  padding: 14px 28px;
  background: #fff;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-reset:hover {
  background: #f8fafc;
}
.form-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 32px 0;
}
.form-section-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-section-title svg {
  width: 20px;
  height: 20px;
  color: #2563eb;
}
.settle-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.settle-success.show {
  display: block;
}
.settle-success .success-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.settle-success .success-icon svg {
  width: 40px;
  height: 40px;
  color: #16a34a;
}
.settle-success h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}
.settle-success p {
  color: #64748b;
  font-size: 0.9375rem;
  margin-bottom: 32px;
  line-height: 1.7;
}
.settle-success .btn-back {
  display: inline-block;
  padding: 12px 32px;
  background: #2563eb;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: opacity 0.2s;
}
.settle-success .btn-back:hover {
  opacity: 0.92;
}
.form-section-title .optional-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 10px;
  border-radius: 100px;
}
.settle-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.settle-upload-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}
.upload-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.upload-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}
.upload-item-tag {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 500;
}
.tag-required {
  background: #fef2f2;
  color: #ef4444;
}
.tag-optional {
  background: #f1f5f9;
  color: #64748b;
}
.tag-uploaded {
  background: #f0fdf4;
  color: #16a34a;
}
.settle-upload-area {
  border: 2px dashed #e2e8f0;
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.settle-upload-area:hover {
  border-color: #93c5fd;
  background: #fff;
}
.settle-upload-area svg {
  width: 28px;
  height: 28px;
  color: #94a3b8;
  margin-bottom: 8px;
}
.settle-upload-area span {
  display: block;
  font-size: 0.875rem;
  color: #2563eb;
  font-weight: 600;
}
.settle-upload-area .upload-area-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 4px;
}
.settle-upload-area input[type="file"] {
  display: none;
}
.upload-preview-row {
  display: none;
  margin-top: 12px;
}
.upload-preview-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
}
.upload-preview-name {
  font-size: 0.8125rem;
  color: #166534;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-preview-size {
  font-size: 0.75rem;
  color: #64748b;
}
.upload-preview-remove {
  color: #ef4444;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  padding-left: 4px;
}
@media (max-width: 768px) {
  .settle-hero {
    padding: 60px 0 40px;
  }
  .settle-hero h1 {
    font-size: 1.625rem;
  }
  .settle-hero .stats-row {
    gap: 24px;
  }
  .settle-hero .stat-num {
    font-size: 1.5rem;
  }
  .steps-row {
    flex-direction: column;
    align-items: center;
  }
  .step-arrow {
    transform: rotate(90deg);
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .settle-form-wrapper {
    padding: 28px 20px;
  }
  .settle-upload-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-submit-row {
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .settle-hero .stats-row {
    flex-wrap: wrap;
    gap: 16px;
  }
  .settle-hero .stat-item {
    width: 40%;
  }
}
.ss-page {
  min-height: 100vh;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
}
.ss-topbar {
  background: #fff;
  border-bottom: 2px solid #e4393c;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
}
.ss-topbar-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ss-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.ss-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #e4393c, #ff6b6b);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ss-logo-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.ss-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}
.ss-page-title {
  font-size: 15px;
  color: #999;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid #e8e8e8;
}
.ss-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ss-topbar-right a {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
.ss-topbar-right a:hover {
  color: #e4393c;
}
.ss-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.ss-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 860px;
  overflow: hidden;
}
.ss-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
  padding: 52px 40px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ss-banner::before, .ss-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}
.ss-banner::before {
  width: 260px;
  height: 260px;
  top: -100px;
  right: -80px;
  background: #22c55e;
}
.ss-banner::after {
  width: 160px;
  height: 160px;
  bottom: -60px;
  left: -40px;
  background: #16a34a;
}
.ss-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ss-icon-circle {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: ss-pop 0.5s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
}
.ss-icon-circle svg {
  width: 44px;
  height: 44px;
  stroke: #fff;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ss-icon-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: ss-draw 0.6s 0.4s ease forwards;
}
.ss-icon-ring {
  position: absolute;
  width: 110px;
  height: 110px;
  border: 2px solid rgba(34,197,94,0.25);
  border-radius: 50%;
  animation: ss-pulse-ring 2s ease-in-out infinite;
}
.ss-icon-ring-2 {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 2px solid rgba(34,197,94,0.12);
  border-radius: 50%;
  animation: ss-pulse-ring 2s 0.5s ease-in-out infinite;
}
@keyframes ss-pop {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes ss-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ss-pulse-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}
.ss-title {
  font-size: 28px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.ss-subtitle {
  font-size: 15px;
  color: #4d7c5e;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
}
.ss-phone-reminder {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 24px auto 0;
  max-width: 520px;
  position: relative;
  z-index: 1;
  animation: ss-slide-up 0.6s 0.6s ease both;
}
.ss-phone-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: ss-phone-shake 2s 1.2s ease-in-out infinite;
}
.ss-phone-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.ss-phone-text {
  text-align: left;
}
.ss-phone-text strong {
  display: block;
  font-size: 15px;
  color: #9a3412;
  margin-bottom: 4px;
}
.ss-phone-text span {
  font-size: 13px;
  color: #c2410c;
  line-height: 1.6;
}
@keyframes ss-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ss-phone-shake {
  0%, 100% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(-12deg);
  }
  20% {
    transform: rotate(12deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  40% {
    transform: rotate(8deg);
  }
  50% {
    transform: rotate(0);
  }
}
.ss-body {
  padding: 32px 40px 28px;
}
.ss-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ss-section-title svg {
  width: 20px;
  height: 20px;
  fill: #e4393c;
}
.ss-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.ss-info-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ss-info-label {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  min-width: 80px;
}
.ss-info-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.ss-info-value.status {
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.ss-info-value.status-pending {
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.ss-info-value.status-approved {
  color: #16a34a;
  background: #f0fdf4;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.ss-info-value.status-rejected {
  color: #dc2626;
  background: #fef2f2;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.ss-timeline {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #f0f0f0;
}
.ss-timeline-list {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 0 10px;
}
.ss-timeline-list::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 60px;
  right: 60px;
  height: 3px;
  background: #e8e8e8;
  border-radius: 2px;
}
.ss-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.ss-step-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
}
.ss-step.done .ss-step-dot {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}
.ss-step.active .ss-step-dot {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(59,130,246,0.15);
  animation: ss-step-pulse 2s ease-in-out infinite;
}
.ss-step.pending .ss-step-dot {
  background: #f5f5f5;
  color: #ccc;
  border: 2px solid #e8e8e8;
}
.ss-step.rejected .ss-step-dot {
  background: #fef2f2;
  color: #dc2626;
  border: 2px solid #fecaca;
}
.ss-step.rejected .ss-step-text {
  color: #dc2626;
  font-weight: 600;
}
@keyframes ss-step-pulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(59,130,246,0.15);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(59,130,246,0.06);
  }
}
.ss-step-text {
  font-size: 13px;
  color: #999;
  line-height: 1.5;
}
.ss-step.done .ss-step-text {
  color: #16a34a;
  font-weight: 600;
}
.ss-step.active .ss-step-text {
  color: #2563eb;
  font-weight: 600;
}
.ss-step-time {
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
}
.ss-whats-next {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #f0f0f0;
}
.ss-next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ss-next-card {
  background: #fafafa;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.25s;
}
.ss-next-card:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.ss-next-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.ss-next-icon.blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.ss-next-icon.green {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}
.ss-next-icon.orange {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
}
.ss-next-icon svg {
  width: 24px;
  height: 24px;
}
.ss-next-icon.blue svg {
  fill: #3b82f6;
}
.ss-next-icon.green svg {
  fill: #22c55e;
}
.ss-next-icon.orange svg {
  fill: #f97316;
}
.ss-next-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.ss-next-desc {
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}
.ss-tips {
  margin-top: 28px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 10px;
  padding: 16px 20px;
}
.ss-tips-title {
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ss-tips-title svg {
  width: 16px;
  height: 16px;
  fill: #f59e0b;
}
.ss-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ss-tips-list li {
  font-size: 12px;
  color: #a16207;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}
.ss-tips-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: #f59e0b;
  border-radius: 50%;
}
.ss-actions {
  padding: 24px 40px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid #f5f5f5;
}
.ss-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.ss-btn svg {
  width: 16px;
  height: 16px;
}
.ss-btn-primary {
  background: linear-gradient(135deg, #e4393c, #c53030);
  color: #fff;
  box-shadow: 0 4px 12px rgba(228,57,60,0.3);
}
.ss-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(228,57,60,0.4);
}
.ss-btn-outline {
  background: #fff;
  color: #666;
  border: 1px solid #d9d9d9;
}
.ss-btn-outline:hover {
  border-color: #e4393c;
  color: #e4393c;
}
.ss-btn-link {
  background: none;
  color: #999;
  padding: 12px 16px;
}
.ss-btn-link:hover {
  color: #e4393c;
}
@media (max-width: 768px) {
  .ss-banner {
    padding: 36px 20px 28px;
  }
  .ss-body {
    padding: 24px 20px 20px;
  }
  .ss-actions {
    padding: 20px;
    flex-wrap: wrap;
  }
  .ss-info-grid {
    grid-template-columns: 1fr;
  }
  .ss-next-grid {
    grid-template-columns: 1fr;
  }
  .ss-title {
    font-size: 22px;
  }
  .ss-timeline-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .ss-timeline-list::before {
    display: none;
  }
  .ss-step {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 14px;
  }
  .ss-step-dot {
    margin: 0;
    flex-shrink: 0;
  }
  .ss-phone-reminder {
    margin-left: 0;
    margin-right: 0;
  }
}
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --jd-red: #E2231A;
  --jd-red-dark: #C8160F;
  --jd-green: #248C13;
  --jd-yellow: #FF8C00;
  --jd-pink: #E2231A;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  --border-color: #EEEEEE;
  --bg-light: #FAFAFA;
  --white: #FFFFFF;
}
.jd-navbar {
  width: 100%;
  background: var(--white);
  border-bottom: 3px solid var(--jd-red);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.jd-navbar-inner {
  max-width: 1190px;
  margin: 0 auto;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.jd-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.jd-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.jd-logo-icon {
  width: 36px;
  height: 36px;
}
.jd-logo-text {
  font-size: 20px;
  font-weight: bold;
  color: var(--jd-red);
  letter-spacing: 1px;
}
.jd-cart-title {
  font-size: 14px;
  color: var(--text-medium);
  border-left: 1px solid #ddd;
  padding-left: 12px;
}
.jd-cart-count {
  color: var(--jd-red);
  font-weight: bold;
}
.jd-address-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-medium);
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.jd-address-selector:hover {
  border-color: var(--jd-red);
}
.jd-address-selector .icon-location {
  width: 16px;
  height: 16px;
}
.jd-address-text {
  color: var(--text-dark);
  font-weight: 500;
}
.jd-address-selector .icon-arrow {
  width: 14px;
  height: 14px;
}
.jd-search-area {
  flex: 1;
  display: flex;
  max-width: 500px;
  margin-left: auto;
}
.jd-search-input {
  flex: 1;
  height: 36px;
  border: 2px solid var(--jd-red);
  border-right: none;
  border-radius: 2px 0 0 2px;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  color: var(--text-dark);
}
.jd-search-input::placeholder {
  color: var(--text-light);
}
.jd-search-btn {
  width: 60px;
  height: 36px;
  background: var(--jd-red);
  color: var(--white);
  border: none;
  border-radius: 0 2px 2px 0;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.jd-search-btn:hover {
  background: var(--jd-red-dark);
}
.jd-cart-body {
  max-width: 1190px;
  margin: 20px auto;
  padding: 0 10px;
  padding-bottom: 80px;
}
.jd-cart-header {
  display: grid;
  grid-template-columns: 60px 1fr 140px 130px 140px 100px;
  align-items: center;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 4px 4px 0 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-medium);
}
.jd-col-check {
  display: flex;
  align-items: center;
}
.jd-col-product {
  padding-left: 8px;
}
.jd-col-price, .jd-col-quantity, .jd-col-subtotal, .jd-col-ops {
  text-align: center;
  padding: 0 4px;
}
.jd-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-medium);
  user-select: none;
}
.jd-check {
  display: none;
}
.jd-check-box {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  position: relative;
}
.jd-check:checked + .jd-check-box {
  background: var(--jd-red);
  border-color: var(--jd-red);
}
.jd-check:checked + .jd-check-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}
.jd-shop-group {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0;
}
.jd-shop-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}
.jd-shop-tag {
  display: inline-block;
  padding: 1px 4px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 2px;
  background: var(--jd-red);
  color: var(--white);
}
.jd-shop-tag-red {
  background: var(--jd-red);
}
.jd-shop-name {
  font-weight: bold;
  color: var(--text-dark);
  font-size: 13px;
}
.jd-shop-notice {
  margin-left: auto;
  color: var(--text-light);
  font-size: 12px;
}
.jd-shop-notice a {
  color: var(--jd-red);
  text-decoration: none;
}
.jd-shop-notice a:hover {
  text-decoration: underline;
}
.jd-item {
  display: grid;
  grid-template-columns: 60px 1fr 140px 130px 140px 100px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
  min-height: 110px;
}
.jd-item:last-child {
  border-bottom: none;
}
.jd-item:hover {
  background: #FFF8F8;
}
.jd-item > .jd-col-check {
  justify-content: center;
}
.jd-col-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 8px;
}
.jd-item-img {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--white);
}
.jd-item-img svg {
  width: 100%;
  height: 100%;
}
.jd-item-info {
  flex: 1;
  min-width: 0;
}
.jd-item-name {
  font-size: 12px;
  color: var(--text-dark);
  line-height: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.jd-item-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.tag-priceprotect {
  font-size: 10px;
  color: #FF8C00;
  background: #FFF4E5;
  border: 1px solid #FFDDBC;
  padding: 0 4px;
  border-radius: 2px;
  white-space: nowrap;
}
.tag-aibtn {
  font-size: 10px;
  color: var(--jd-pink);
  background: #FFF0F0;
  border: 1px solid #FFCCCC;
  padding: 0 6px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.tag-aibtn span {
  font-size: 8px;
}
.jd-item-sku {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sku-item {
  font-size: 11px;
  color: var(--text-light);
}
.jd-col-price {
  text-align: center;
  padding: 0 4px;
}
.price-current {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.price-original {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-bottom: 2px;
}
.price-limit {
  display: inline-block;
  font-size: 10px;
  color: var(--jd-red);
  background: #FFF0F0;
  border: 1px solid #FFCCCC;
  padding: 0 4px;
  border-radius: 2px;
}
.price-gift {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: var(--jd-red);
  margin-bottom: 2px;
}
.jd-col-quantity {
  text-align: center;
  padding: 0 4px;
}
.jd-quantity-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #E0E0E0;
  border-radius: 2px;
  overflow: hidden;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #F7F7F7;
  color: var(--text-medium);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  user-select: none;
}
.qty-btn:hover {
  background: #EDEDED;
  color: var(--text-dark);
}
.qty-input {
  width: 42px;
  height: 28px;
  border: none;
  border-left: 1px solid #E0E0E0;
  border-right: 1px solid #E0E0E0;
  text-align: center;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
}
.qty-gift {
  font-size: 13px;
  color: var(--text-light);
}
.jd-col-subtotal {
  text-align: center;
  padding: 0 4px;
}
.subtotal-price {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: var(--jd-red);
  margin-bottom: 2px;
}
.subtotal-save {
  display: block;
  font-size: 11px;
  color: #FF8C00;
}
.jd-col-ops {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}
.op-link {
  font-size: 11px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.op-link:hover {
  color: var(--jd-red);
}
.gift-item {
  background: #FFFCF5;
}
.gift-label {
  font-size: 11px;
  color: #FF8C00;
}
.jd-checkout-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 3px solid var(--jd-red);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  z-index: 100;
}
.jd-checkout-inner {
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.jd-checkout-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-medium);
}
.checkout-sep {
  color: #ddd;
}
.checkout-op {
  color: var(--text-medium);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}
.checkout-op:hover {
  color: var(--jd-red);
}
.jd-checkout-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-count {
  font-size: 12px;
  color: var(--text-medium);
}
.checkout-num {
  color: var(--jd-red);
  font-weight: bold;
  font-style: normal;
}
.checkout-total {
  font-size: 20px;
  font-weight: bold;
  color: var(--jd-red);
}
.checkout-save {
  font-size: 12px;
  color: #FF8C00;
}
.checkout-save em {
  font-style: normal;
  font-weight: bold;
}
.jd-checkout-btn {
  padding: 0 40px;
  height: 60px;
  background: var(--jd-red);
  color: var(--white);
  border: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 2px;
  transition: background 0.2s;
  margin: 0;
}
.jd-checkout-btn:hover {
  background: var(--jd-red-dark);
}
@media (max-width: 900px) {
  .jd-cart-header {
    grid-template-columns: 50px 1fr 100px 100px;
  }
  .jd-col-price, .jd-col-ops {
    display: none;
  }
  .jd-item {
    grid-template-columns: 50px 1fr 100px 100px;
    padding: 12px;
  }
  .jd-col-price, .jd-col-ops {
    display: none;
  }
  .jd-col-product {
    flex-direction: column;
    align-items: flex-start;
  }
  .jd-item-img {
    width: 70px;
    height: 70px;
  }
  .jd-search-area {
    display: none;
  }
  .jd-navbar-inner {
    padding: 8px 10px;
  }
  .jd-shop-notice {
    display: none;
  }
}
@media (max-width: 640px) {
  .jd-cart-header {
    grid-template-columns: 44px 1fr 90px 90px;
    font-size: 11px;
    padding: 8px 10px;
  }
  .jd-item {
    grid-template-columns: 44px 1fr 90px 90px;
    padding: 10px;
    gap: 8px;
  }
  .jd-item-img {
    width: 60px;
    height: 60px;
  }
  .jd-item-name {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }
  .jd-shop-header {
    flex-wrap: wrap;
    gap: 6px;
  }
  .jd-shop-notice {
    display: none;
  }
  .checkout-save {
    display: none;
  }
  .jd-checkout-btn {
    padding: 0 24px;
    font-size: 16px;
    height: 60px;
  }
  .jd-logo-text {
    display: none;
  }
  .jd-checkout-left {
    gap: 4px;
  }
  .checkout-op {
    font-size: 11px;
  }
}
@import url('https://fonts.googleapis.cn/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --red: #e1251b;
  --red-light: #fdf2f2;
  --red-dark: #c11c14;
  --orange: #fff5eb;
  --orange-border: #fdba74;
  --green: #22c55e;
  --blue: #3b82f6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --radius: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
}
.order-topbar {
  background: white;
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.order-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.order-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.order-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-logo-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}
.order-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
}
.order-page-title {
  font-size: 18px;
  font-weight: 500;
  color: #666;
  margin-left: 12px;
}
.order-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.order-search-box {
  display: flex;
  align-items: center;
}
.order-search-input {
  width: 260px;
  padding: 8px 12px;
  border: 2px solid var(--red);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.order-search-input:focus {
  border-color: var(--red-dark);
}
.order-search-btn {
  padding: 8px 16px;
  background: var(--red);
  color: white;
  border: 2px solid var(--red);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.order-search-btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.order-notice {
  background: var(--orange);
  border-bottom: 1px solid var(--orange-border);
}
.order-notice-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.notice-icon {
  color: #d97706;
  flex-shrink: 0;
}
.notice-text {
  font-size: 13px;
  color: #333;
  flex: 1;
  line-height: 1.6;
}
.notice-text a {
  color: #0055d7;
}
.notice-close {
  color: #999;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.notice-close:hover {
  color: #666;
  background: rgba(0,0,0,0.06);
}
.order-main {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
  background-color: ;
}
.section-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.section-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}
.section-action {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-action a {
  color: #999;
  font-size: 13px;
  transition: color 0.2s;
}
.section-action a:hover {
  color: var(--red);
}
.section-action .info-icon {
  color: #bbb;
  font-style: normal;
  font-family: serif;
}
.address-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.address-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.address-card:hover {
  border-color: var(--gray-300);
}
.address-card.selected {
  border-color: var(--red);
  background: #fff;
}
.address-card.selected::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 20px;
  height: 20px;
  background: var(--red);
  border-radius: 0 0 20px 0;
}
.address-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.address-card.selected .address-check {
  background: var(--red);
  border-color: var(--red);
}
.address-check svg {
  width: 10px;
  height: 10px;
  fill: white;
  opacity: 0;
}
.address-card.selected .address-check svg {
  opacity: 1;
}
.address-content {
  flex: 1;
}
.address-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.address-tag {
  padding: 1px 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
}
.address-tag.default {
  background: #fce7f3;
  color: #be185d;
  border: 1px solid #fbcfe8;
}
.address-tag.company {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}
.address-detail {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 4px;
}
.address-contact {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}
.address-phone {
  color: #999;
  font-size: 12px;
}
.address-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 13px;
  margin-top: 4px;
}
.address-extra svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.address-expand {
  text-align: center;
  padding: 10px;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: color 0.2s;
}
.address-expand:hover {
  color: var(--red);
}
.address-expand svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.2s;
}
.address-expand.expanded svg {
  transform: rotate(180deg);
}
.shop-header {
  padding: 14px 20px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.shop-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  appearance: none;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  position: relative;
}
.shop-checkbox:checked {
  background: var(--red);
  border-color: var(--red);
}
.shop-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 7px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.shop-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.shop-icon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.delivery-bar {
  padding: 10px 20px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
}
.delivery-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.delivery-label {
  font-size: 13px;
  color: #999;
}
.delivery-value {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}
.delivery-date {
  color: var(--red);
  font-weight: 700;
}
.delivery-select {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--red);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.delivery-select:hover {
  background: var(--red-light);
}
.activity-bar {
  padding: 8px 20px;
  background: #fff9e6;
  font-size: 12px;
  color: #995600;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--gray-100);
}
.activity-bar svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.order-item {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
}
.order-item:last-child {
  border-bottom: none;
}
.item-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  appearance: none;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  position: relative;
}
.item-checkbox:checked {
  background: var(--red);
  border-color: var(--red);
}
.item-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 7px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.item-image {
  width: 80px;
  height: 80px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.item-image-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 0 0 4px 0;
}
.item-image svg {
  width: 40px;
  height: 40px;
  fill: var(--gray-300);
}
.item-info {
  flex: 1;
  min-width: 0;
}
.item-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.item-badge {
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid;
}
.item-badge.self {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.item-badge.jd-delivery {
  background: #fff0f0;
  color: var(--red);
  border-color: #ffe0e0;
}
.item-name {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.item-spec {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}
.item-note {
  font-size: 12px;
  color: #999;
}
.item-note a {
  font-size: 12px;
  color: #0055d7;
}
.item-right {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}
.item-price-col {
  text-align: right;
  min-width: 100px;
}
.item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}
.item-price-origin {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin-top: 2px;
}
.item-weight {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.invoice-bar {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-100);
}
.invoice-label {
  font-size: 14px;
  color: #333;
}
.invoice-value {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.invoice-value:hover {
  background: var(--gray-50);
  color: var(--red);
}
.invoice-value svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.order-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.security-banner {
  background: var(--orange);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #92400e;
}
.security-banner svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
.checkout-card {
  background: white;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.payment-section {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.payment-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}
.payment-option:hover {
  border-color: var(--gray-300);
}
.payment-option.selected {
  border-color: var(--red);
  background: #fff9f9;
}
.payment-option-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.payment-option-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-option-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--gray-500);
}
.payment-option.selected .payment-option-icon svg {
  fill: var(--red);
}
.payment-option-name {
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
}
.payment-option-name .info-icon {
  color: #bbb;
  font-size: 12px;
  font-style: normal;
}
.payment-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  appearance: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  flex-shrink: 0;
}
.payment-radio:checked {
  background: var(--red);
  border-color: var(--red);
}
.payment-radio:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  width: 4px;
  height: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.amount-section {
  padding: 16px;
}
.amount-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.amount-row-label {
  color: #666;
}
.amount-row-value {
  color: #333;
}
.amount-row.discount .amount-row-value {
  color: var(--red);
}
.amount-row.freight .amount-row-value {
  color: #22c55e;
}
.amount-row.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dotted var(--gray-200);
  font-size: 14px;
}
.amount-row.total .amount-row-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.amount-row.total .amount-row-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
}
.amount-row.saving {
  font-size: 12px;
  margin-top: -4px;
  margin-bottom: 4px;
}
.amount-row.saving .amount-row-value {
  color: #f97316;
}
.discount-detail {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--red);
  font-size: 12px;
  cursor: pointer;
}
.discount-detail svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}
.submit-section {
  padding: 16px;
  background: white;
  border-top: 3px solid var(--red);
}
.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background 0.2s;
  font-family: inherit;
}
.submit-btn:hover {
  background: var(--red-dark);
}
.submit-btn:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
}
.submit-agreement {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 8px;
}
.submit-agreement a {
  color: #0055d7;
}
.item-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--red);
  color: white;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
  margin-left: 4px;
}
.order-footer {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 12px;
  border-top: 1px solid var(--gray-200);
  margin-top: 20px;
}
@media (max-width: 900px) {
  .order-main {
    grid-template-columns: 1fr;
  }
  .order-sidebar {
    position: static;
    order: -1;
  }
  .order-topbar-right .order-search-box {
    display: none;
  }
  .item-right {
    gap: 20px;
  }
  .item-price-col {
    min-width: 80px;
  }
}
@media (max-width: 640px) {
  .order-topbar-inner {
    padding: 10px 12px;
  }
  .order-logo-text {
    font-size: 18px;
  }
  .order-page-title {
    display: none;
  }
  .order-main {
    padding: 0 10px;
    gap: 10px;
  }
  .section-header {
    padding: 12px;
  }
  .address-list, .shop-header, .order-item, .invoice-bar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .delivery-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 12px;
  }
  .item-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  .item-price-col {
    text-align: right;
    min-width: auto;
  }
  .submit-section {
    padding: 12px;
  }
  .submit-btn {
    padding: 12px;
    font-size: 15px;
  }
}
.help-page {
  min-height: 100vh;
  background: #f5f6f8;
}
.help-topbar {
  background: var(--primary);
  padding: 12px 0;
}
.help-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.help-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.help-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary-foreground);
}
.help-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.help-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-foreground);
}
.help-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.help-topbar-right a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.help-topbar-right a:hover {
  color: var(--primary-foreground);
}
.help-search-bar {
  background: white;
  border-bottom: 1px solid #e8e8e8;
  padding: 20px 0;
}
.help-search-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.help-search-form {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.help-search-input {
  width: 100%;
  padding: 12px 100px 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.help-search-input:focus {
  border-color: var(--primary);
}
.help-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.help-search-btn:hover {
  background: var(--primary-hover);
}
.help-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}
.help-sidebar {
  position: sticky;
  top: 32px;
  height: fit-content;
}
.help-sidebar-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.help-sidebar-title {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.help-nav-section {
  border-bottom: 1px solid #f0f0f0;
}
.help-nav-section:last-child {
  border-bottom: none;
}
.help-nav-section-title {
  padding: 12px 20px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.help-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.help-nav-item:hover {
  color: var(--primary);
  background: #f8f9fa;
}
.help-nav-item.active {
  color: var(--primary);
  background: #f0f4ff;
  font-weight: 500;
}
.help-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}
.help-nav-badge {
  background: #ff4d4f;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 500;
}
.help-nav-toggle {
  font-size: 12px;
  color: #999;
  transition: transform 0.2s;
}
.help-nav-toggle.collapsed {
  transform: rotate(-90deg);
}
.help-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.help-content-header {
  padding: 24px 32px;
  border-bottom: 1px solid #f0f0f0;
}
.help-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}
.help-breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
.help-breadcrumb a:hover {
  color: var(--primary);
}
.help-breadcrumb span {
  color: #ccc;
}
.help-content-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}
.help-content-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  font-size: 13px;
  color: #999;
}
.help-content-body {
  padding: 32px;
}
.help-article-section {
  margin-bottom: 32px;
}
.help-article-section:last-child {
  margin-bottom: 0;
}
.help-article-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.help-article-section p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 12px;
}
.help-article-section p:last-child {
  margin-bottom: 0;
}
.help-steps {
  counter-reset: step;
}
.help-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.help-step:last-child {
  margin-bottom: 0;
}
.help-step-number {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.help-step-content {
  flex: 1;
  padding-top: 4px;
}
.help-step-content strong {
  display: block;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.help-step-content p {
  font-size: 13px;
  color: #888;
  margin: 0;
  line-height: 1.6;
}
.help-tip {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.help-tip:last-child {
  margin-bottom: 0;
}
.help-tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #d48806;
  margin-bottom: 8px;
}
.help-tip-content {
  font-size: 13px;
  color: #8c6d1f;
  line-height: 1.7;
}
.help-tip-content p {
  margin-bottom: 4px;
  color: #8c6d1f;
}
.help-tip-content p:last-child {
  margin-bottom: 0;
}
.help-faq-item {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 0;
}
.help-faq-item:last-child {
  border-bottom: none;
}
.help-faq-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.help-faq-q-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.help-faq-answer {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  padding-left: 24px;
  display: none;
}
.help-faq-answer.show {
  display: block;
}
.help-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}
.help-table:last-child {
  margin-bottom: 0;
}
.help-table th, .help-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #e8e8e8;
}
.help-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #1a1a1a;
}
.help-table td {
  color: #666;
}
.help-table tr:hover td {
  background: #fafafa;
}
.help-related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}
.help-related-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}
.help-related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.help-related-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: all 0.2s;
}
.help-related-item:hover {
  background: #f0f4ff;
}
.help-related-item::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.help-feedback {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}
.help-feedback-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}
.help-feedback-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.help-feedback-btn {
  padding: 8px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: white;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.help-feedback-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.help-feedback-btn.active {
  background: #e6f7e6;
  border-color: #52c41a;
  color: #52c41a;
}
@media (max-width: 900px) {
  .help-main {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }
  .help-content-header {
    padding: 20px 24px;
  }
  .help-content-body {
    padding: 24px;
  }
  .help-content-title {
    font-size: 20px;
  }
  .help-related-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .help-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .help-sidebar {
    position: static;
  }
  .help-content-header {
    padding: 16px 20px;
  }
  .help-content-body {
    padding: 20px;
  }
  .help-content-title {
    font-size: 18px;
  }
  .help-topbar-right {
    display: none;
  }
  .help-feedback-buttons {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .help-search-inner {
    padding: 0 12px;
  }
  .help-search-input {
    padding: 10px 80px 10px 16px;
    font-size: 13px;
  }
  .help-main {
    padding: 20px 12px;
  }
  .help-breadcrumb {
    font-size: 12px;
  }
  .help-tip {
    padding: 12px;
  }
  .help-table th, .help-table td {
    padding: 10px 12px;
    font-size: 12px;
  }
}
.nl-page {
  background: #f5f5f7;
  min-height: 100vh;
}
.nl-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #1a1a2e 100%);
  padding: 48px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.nl-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
}
.nl-banner h1 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
}
.nl-banner p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  position: relative;
}
.nl-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 28px;
  position: relative;
}
.nl-stat-item {
  text-align: center;
}
.nl-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.nl-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.nl-toolbar {
  max-width: 1200px;
  margin: -20px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}
.nl-toolbar-inner {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.nl-search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.nl-search-input {
  flex: 1;
  height: 44px;
  border: 1.5px solid #e4e4e7;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.nl-search-input:focus {
  border-color: #dc2626;
}
.nl-search-input::placeholder {
  color: #a1a1aa;
}
.nl-search-btn {
  height: 44px;
  padding: 0 28px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.nl-search-btn:hover {
  background: #b91c1c;
}
.nl-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #f0f0f0;
}
.nl-tab {
  padding: 10px 24px;
  font-size: 15px;
  color: #71717a;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-weight: 500;
}
.nl-tab:hover {
  color: #171717;
}
.nl-tab.active {
  color: #dc2626;
  border-bottom-color: #dc2626;
  font-weight: 600;
}
.nl-tab .tab-count {
  display: inline-block;
  font-size: 11px;
  background: #f4f4f5;
  color: #71717a;
  border-radius: 10px;
  padding: 1px 7px;
  margin-left: 6px;
  font-weight: 400;
}
.nl-tab.active .tab-count {
  background: #fef2f2;
  color: #dc2626;
}
.nl-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
}
.nl-filter-label {
  font-size: 13px;
  color: #a1a1aa;
  white-space: nowrap;
}
.nl-filter-select {
  height: 34px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  padding: 0 28px 0 10px;
  font-size: 13px;
  color: #52525b;
  outline: none;
  cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  -webkit-appearance: none;
}
.nl-filter-select:focus {
  border-color: #dc2626;
}
.nl-content {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 24px 80px;
}
.nl-result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.nl-result-count {
  font-size: 14px;
  color: #71717a;
}
.nl-result-count strong {
  color: #dc2626;
  font-weight: 600;
}
.nl-view-toggle {
  display: flex;
  gap: 4px;
}
.nl-view-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  transition: all 0.2s;
}
.nl-view-btn.active, .nl-view-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.nl-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nl-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
}
.nl-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #dc2626;
  transform: translateY(-1px);
}
.nl-card-index {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #a1a1aa;
  background: #f4f4f5;
}
.nl-card:nth-child(1) .nl-card-index {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
}
.nl-card:nth-child(2) .nl-card-index {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
}
.nl-card:nth-child(3) .nl-card-index {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
}
.nl-card-body {
  flex: 1;
  min-width: 0;
}
.nl-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.nl-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.5;
}
.nl-card-tag.tag-bidding {
  background: #fef2f2;
  color: #dc2626;
}
.nl-card-tag.tag-clarify {
  background: #fff7ed;
  color: #ea580c;
}
.nl-card-tag.tag-award {
  background: #f0fdf4;
  color: #16a34a;
}
.nl-card-tag.tag-correction {
  background: #eff6ff;
  color: #2563eb;
}
.nl-card-tag.tag-policy {
  background: #faf5ff;
  color: #7c3aed;
}
.nl-card-tag.tag-urgent {
  background: #dc2626;
  color: #fff;
}
.nl-card-tag.tag-new {
  background: #16a34a;
  color: #fff;
}
.nl-card-tag.tag-hot {
  background: #ea580c;
  color: #fff;
}
.nl-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #171717;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.nl-card:hover .nl-card-title {
  color: #dc2626;
}
.nl-card-desc {
  font-size: 13px;
  color: #71717a;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.nl-card-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.nl-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #a1a1aa;
}
.nl-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.nl-meta-item .meta-company {
  color: #52525b;
  font-weight: 500;
}
.nl-card-right {
  flex-shrink: 0;
  text-align: right;
  min-width: 120px;
}
.nl-card-amount-label {
  font-size: 12px;
  color: #a1a1aa;
  margin-bottom: 2px;
}
.nl-card-amount {
  font-size: 18px;
  font-weight: 700;
  color: #dc2626;
}
.nl-card-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
}
.nl-card-status.status-active {
  background: #f0fdf4;
  color: #16a34a;
}
.nl-card-status.status-ended {
  background: #f4f4f5;
  color: #a1a1aa;
}
.nl-list.grid-view {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.grid-view .nl-card {
  flex-direction: column;
  gap: 0;
  padding: 20px;
}
.grid-view .nl-card-index {
  display: none;
}
.grid-view .nl-card-right {
  text-align: left;
  min-width: auto;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f4f4f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
}
.nl-page-btn {
  min-width: 38px;
  height: 38px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
  color: #52525b;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.nl-page-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
}
.nl-page-btn.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.nl-page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.nl-page-btn svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 900px) {
  .nl-stats {
    gap: 24px;
  }
  .nl-stat-num {
    font-size: 22px;
  }
  .nl-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nl-tab {
    padding: 10px 16px;
    font-size: 14px;
  }
  .nl-list.grid-view {
    grid-template-columns: 1fr;
  }
  .nl-card-right {
    min-width: 100px;
  }
  .nl-card-amount {
    font-size: 16px;
  }
}
@media (max-width: 640px) {
  .nl-banner {
    padding: 32px 0 28px;
  }
  .nl-banner h1 {
    font-size: 24px;
  }
  .nl-stats {
    gap: 16px;
  }
  .nl-stat-num {
    font-size: 20px;
  }
  .nl-toolbar-inner {
    padding: 16px;
  }
  .nl-search-row {
    flex-direction: column;
  }
  .nl-search-btn {
    width: 100%;
  }
  .nl-filters {
    flex-wrap: wrap;
    gap: 8px;
  }
  .nl-card {
    flex-direction: column;
    gap: 0;
    padding: 16px;
  }
  .nl-card-index {
    display: none;
  }
  .nl-card-right {
    text-align: left;
    min-width: auto;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f4f4f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .nl-card-meta {
    gap: 12px;
  }
  .nl-card-title {
    font-size: 15px;
  }
}
.news-detail-page {
  background: var(--muted);
  min-height: 100vh;
}
.news-breadcrumb {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.news-breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.news-breadcrumb a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.news-breadcrumb a:hover {
  color: var(--red);
}
.news-breadcrumb .sep {
  color: var(--border);
}
.news-breadcrumb .current {
  color: var(--foreground);
  font-weight: 500;
}
.news-detail-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.news-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}
.news-sidebar-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.news-sidebar-title {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-sidebar-title svg {
  width: 18px;
  height: 18px;
  color: var(--red);
}
.news-cat-list {
  padding: 8px 0;
}
.news-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border-left: 3px solid transparent;
}
.news-cat-item:hover {
  background: var(--muted);
  color: var(--foreground);
}
.news-cat-item.active {
  color: var(--red);
  font-weight: 600;
  background: #fef2f2;
  border-left-color: var(--red);
}
.news-cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.news-cat-icon.icon-bidding {
  background: #fef2f2;
  color: var(--red);
}
.news-cat-icon.icon-clarify {
  background: #fff7ed;
  color: #ea580c;
}
.news-cat-icon.icon-award {
  background: #f0fdf4;
  color: #16a34a;
}
.news-cat-icon.icon-correction {
  background: #eff6ff;
  color: #2563eb;
}
.news-cat-icon.icon-policy {
  background: #faf5ff;
  color: #9333ea;
}
.news-cat-count {
  margin-left: auto;
  font-size: 12px;
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 2px 8px;
  border-radius: 10px;
}
.news-cat-item.active .news-cat-count {
  background: #fecaca;
  color: var(--red);
}
.sidebar-hot {
  margin-top: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sidebar-hot-title {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-hot-title svg {
  width: 16px;
  height: 16px;
  color: var(--amber);
}
.hot-list {
  padding: 12px 0;
}
.hot-item {
  display: flex;
  gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.hot-item:hover {
  background: var(--muted);
}
.hot-rank {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--muted);
  color: var(--muted-foreground);
}
.hot-rank.top1 {
  background: var(--red);
  color: white;
}
.hot-rank.top2 {
  background: #ea580c;
  color: white;
}
.hot-rank.top3 {
  background: var(--amber);
  color: white;
}
.hot-text {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-item:hover .hot-text {
  color: var(--red);
}
.news-article-area {
  flex: 1;
  min-width: 0;
}
.news-article-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.article-header {
  padding: 32px 36px 0;
  border-bottom: 1px solid var(--border);
}
.article-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.article-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}
.article-type-tag.tag-bidding {
  background: var(--red);
}
.article-type-tag.tag-clarify {
  background: #ea580c;
}
.article-type-tag.tag-award {
  background: #16a34a;
}
.article-type-tag.tag-correction {
  background: #2563eb;
}
.article-type-tag.tag-policy {
  background: #9333ea;
}
.article-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
}
.article-status.status-ongoing {
  background: #fef2f2;
  color: var(--red);
}
.article-status.status-ended {
  background: var(--muted);
  color: var(--muted-foreground);
}
.article-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.4;
  margin-bottom: 16px;
}
.article-info-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.article-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.article-info-item svg {
  width: 14px;
  height: 14px;
}
.article-info-item strong {
  color: var(--foreground);
  font-weight: 500;
}
.article-body {
  padding: 32px 36px;
}
.article-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
  margin: 28px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
}
.article-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
  margin: 20px 0 12px;
}
.article-body p {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 16px;
}
.article-body ul, .article-body ol {
  margin: 12px 0 16px 20px;
}
.article-body li {
  font-size: 15px;
  line-height: 2;
  color: #374151;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.article-body table th {
  background: var(--muted);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.article-body table td {
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: #374151;
}
.article-body table tr:hover td {
  background: #fafafa;
}
.article-highlight {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 20px 0;
}
.article-highlight-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
}
.article-highlight-title svg {
  width: 16px;
  height: 16px;
}
.article-highlight p {
  font-size: 14px;
  color: #92400e;
  margin-bottom: 4px;
}
.article-download {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  margin: 12px 0;
  cursor: pointer;
  transition: background 0.2s;
}
.article-download:hover {
  background: #dbeafe;
}
.article-download-icon {
  width: 36px;
  height: 36px;
  background: #3b82f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.article-download-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}
.article-download-info {
  flex: 1;
}
.article-download-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e40af;
}
.article-download-size {
  font-size: 12px;
  color: #6b7280;
}
.article-download-action {
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
}
.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 36px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.article-tags-label {
  font-size: 13px;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-tags-label svg {
  width: 14px;
  height: 14px;
}
.article-tag {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--muted);
  color: var(--muted-foreground);
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
}
.article-tag:hover {
  background: #fef2f2;
  color: var(--red);
}
.article-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 36px;
  border-top: 1px solid var(--border);
}
.article-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted-foreground);
  cursor: pointer;
  background: white;
  transition: all 0.2s;
}
.article-action-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fef2f2;
}
.article-action-btn svg {
  width: 16px;
  height: 16px;
}
.article-action-btn.liked {
  border-color: var(--red);
  color: var(--red);
  background: #fef2f2;
}
.article-nav {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.article-nav-card {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.article-nav-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
}
.article-nav-label {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-nav-title {
  font-size: 14px;
  color: var(--foreground);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-nav-card:hover .article-nav-title {
  color: var(--red);
}
@media (max-width: 900px) {
  .news-detail-layout {
    flex-direction: column;
  }
  .news-sidebar {
    width: 100%;
    position: static;
  }
  .news-cat-list {
    display: flex;
    overflow-x: auto;
    padding: 8px 12px;
    gap: 0;
  }
  .news-cat-item {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
  }
  .news-cat-item.active {
    border-bottom-color: var(--red);
    border-left-color: transparent;
  }
  .sidebar-hot {
    display: none;
  }
  .article-header {
    padding: 24px 20px 0;
  }
  .article-body {
    padding: 24px 20px;
  }
  .article-tags, .article-actions {
    padding-left: 20px;
    padding-right: 20px;
  }
  .article-title {
    font-size: 20px;
  }
}
@media (max-width: 640px) {
  .news-detail-layout {
    padding: 12px 12px 40px;
  }
  .article-info-row {
    gap: 12px;
  }
  .article-nav {
    flex-direction: column;
  }
  .article-body table {
    font-size: 12px;
  }
  .article-body th, .article-body td {
    padding: 8px 10px;
  }
}
.ws-layout {
  display: flex;
  min-height: 100vh;
  background: #f5f5f5;
}
.ws-sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.ws-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.ws-sidebar-brand .brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #e4393c, #ff6b6b);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-sidebar-brand .brand-logo svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.ws-sidebar-brand .brand-text {
  font-size: 18px;
  font-weight: 700;
  color: #e4393c;
}
.ws-sidebar-brand .brand-sub {
  font-size: 12px;
  color: #999;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f5f5f5;
  user-select: none;
}
.ws-sidebar-brand .brand-sub:hover {
  background: #ebebeb;
}
.ws-sidebar-brand .brand-sub svg {
  fill: #999;
}
.ws-sidebar-brand .brand-side-wrapper {
  position: relative;
  margin-left: 4px;
}
.ws-sidebar-brand .brand-side-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 100px;
  z-index: 100;
}
.ws-sidebar-brand .brand-side-option {
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  color: #333;
  white-space: nowrap;
}
.ws-sidebar-brand .brand-side-option:first-child {
  border-radius: 8px 8px 0 0;
}
.ws-sidebar-brand .brand-side-option:last-child {
  border-radius: 0 0 8px 8px;
}
.ws-sidebar-brand .brand-side-option:hover {
  background: #f5f5f5;
}
.ws-sidebar-brand .brand-side-option.active {
  color: #e4393c;
  font-weight: 600;
  background: #fff5f5;
}
.ws-nav {
  flex: 1;
  padding: 8px 0;
}
.ws-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border-left: 3px solid transparent;
}
.ws-nav-item:hover {
  background: #fff5f5;
  color: #e4393c;
}
.ws-nav-item.active {
  background: #fff0f0;
  color: #e4393c;
  border-left-color: #e4393c;
  font-weight: 600;
}
.ws-nav-item .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ws-nav-item .nav-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.7;
}
.ws-nav-item.active .nav-icon svg {
  opacity: 1;
}
.ws-nav-item .nav-arrow {
  margin-left: auto;
  transition: transform 0.2s;
}
.ws-nav-item .nav-arrow svg {
  width: 14px;
  height: 14px;
  fill: #ccc;
  transition: fill 0.2s;
}
.ws-nav-item:hover .nav-arrow svg {
  fill: #e4393c;
}
.ws-nav-item.expanded .nav-arrow {
  transform: rotate(90deg);
}
.ws-nav-sub {
  display: none;
  background: #fafafa;
}
.ws-nav-sub.show {
  display: block;
}
.ws-nav-sub-item {
  display: flex;
  align-items: center;
  padding: 10px 20px 10px 52px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.ws-nav-sub-item:hover {
  color: #e4393c;
  background: #fff5f5;
}
.ws-nav-sub-item.active {
  color: #e4393c;
  font-weight: 500;
}
.ws-nav-sub-item .sub-badge {
  margin-left: auto;
  background: #e4393c;
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 500;
}
.ws-main {
  margin-left: 220px;
  flex: 1;
  min-width: 0;
}
.ws-header {
  background: #fff;
  padding: 10px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 50;
}
.ws-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ws-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ws-header-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.ws-company-switcher {
  position: relative;
}
.ws-company-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.ws-company-trigger:hover {
  background: #f5f5f5;
}
.ws-company-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e4393c, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ws-company-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.ws-company-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ws-company-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-company-tag {
  font-size: 11px;
  color: #52c41a;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  padding: 0 6px;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
  line-height: 18px;
}
.ws-company-tag.pending {
  color: #fa8c16;
  background: #fff7e6;
  border-color: #ffd591;
}
.ws-company-arrow {
  width: 20px;
  height: 20px;
  fill: #999;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.ws-company-arrow.open {
  transform: rotate(180deg);
}
.ws-company-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #f0f0f0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  overflow: hidden;
  padding-bottom: 4px;
}
.ws-company-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ws-dropdown-label {
  font-size: 12px;
  color: #999;
  padding: 12px 16px 8px;
  letter-spacing: 0.5px;
}
.ws-company-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.ws-company-option:hover {
  background: #f8f8f8;
}
.ws-company-option.active {
  background: #fff5f5;
}
.ws-company-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e4393c, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ws-company-option.active .ws-company-option-icon {
  box-shadow: 0 2px 8px rgba(228, 57, 60, 0.3);
}
.ws-company-option-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.ws-company-option-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ws-company-option-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-company-option.active .ws-company-option-name {
  color: #e4393c;
  font-weight: 600;
}
.ws-company-option-meta {
  font-size: 12px;
  color: #999;
}
.ws-company-option-check {
  width: 20px;
  height: 20px;
  fill: #e4393c;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.ws-company-option.active .ws-company-option-check {
  opacity: 1;
}
.ws-company-add {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #e4393c;
  text-decoration: none;
  transition: background 0.15s;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}
.ws-company-add:hover {
  background: #fff5f5;
}
.ws-company-add svg {
  width: 18px;
  height: 18px;
  fill: #e4393c;
  flex-shrink: 0;
}
.ws-header-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.ws-search {
  display: flex;
  align-items: center;
  border: 2px solid #e4393c;
  border-radius: 20px;
  overflow: hidden;
  height: 36px;
}
.ws-search input {
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 13px;
  width: 260px;
  height: 100%;
}
.ws-search input::placeholder {
  color: #ccc;
}
.ws-search button {
  background: #e4393c;
  color: #fff;
  border: none;
  padding: 0 20px;
  height: 100%;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.ws-search button:hover {
  background: #c1272d;
}
.ws-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ws-notification {
  position: relative;
}
.ws-notification-trigger {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-notification-trigger:hover {
  background: #f5f5f5;
}
.ws-notification-trigger svg {
  fill: #666;
  transition: fill 0.2s;
}
.ws-notification-trigger:hover svg {
  fill: #e2383e;
}
.ws-notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: #e2383e;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid #fff;
  animation: ws-badge-pulse 2s ease-in-out infinite;
}
@keyframes ws-badge-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.ws-notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 482px;
  max-width: 600px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.12);
  border: 1px solid #f0f0f0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  overflow: hidden;
}
.ws-notification-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ws-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.ws-notif-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}
.ws-notif-markall {
  background: none;
  border: none;
  color: #e2383e;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
.ws-notif-markall:hover {
  background: #fff1f0;
}
.ws-notif-tabs {
  display: flex;
  padding: 0 20px;
  gap: 4px;
  border-bottom: 1px solid #f0f0f0;
}
.ws-notif-tab {
  background: none;
  border: none;
  font-size: 13px;
  color: #999;
  cursor: pointer;
  padding: 10px 12px;
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.ws-notif-tab:hover {
  color: #333;
}
.ws-notif-tab.active {
  color: #e2383e;
  font-weight: 600;
}
.ws-notif-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #e2383e;
  border-radius: 1px;
}
.ws-notif-tab-count {
  font-size: 11px;
  background: #e2383e;
  color: #fff;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.ws-notif-list {
  max-height: 360px;
  overflow-y: auto;
}
.ws-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #fafafa;
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
}
.ws-notif-item:hover {
  background: #fafafa;
}
.ws-notif-item.unread {
  background: #fff8f8;
}
.ws-notif-item.unread:hover {
  background: #fff1f0;
}
.ws-notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ws-notif-item-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.ws-notif-item-icon.order-icon {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}
.ws-notif-item-icon.audit-icon {
  background: linear-gradient(135deg, #52c41a, #73d13d);
}
.ws-notif-item-icon.system-icon {
  background: linear-gradient(135deg, #1890ff, #40a9ff);
}
.ws-notif-item-icon.promo-icon {
  background: linear-gradient(135deg, #fa8c16, #ffa940);
}
.ws-notif-item-icon.payment-icon {
  background: linear-gradient(135deg, #722ed1, #9254de);
}
.ws-notif-item-icon.invitation-icon {
  background: linear-gradient(135deg, #13c2c2, #36cfc9);
}
.ws-notif-item-icon.sourcing-icon {
  background: linear-gradient(135deg, #389e0d, #52c41a);
}
.ws-notif-item-content {
  flex: 1;
  min-width: 0;
}
.ws-notif-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.ws-notif-item-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ws-notif-item-time {
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
}
.ws-notif-item-dot {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 8px;
  height: 8px;
  background: #e2383e;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.ws-notif-item-dot:hover {
  transform: scale(1.3);
}
.ws-notif-footer {
  padding: 12px 20px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}
.ws-notif-footer a {
  font-size: 13px;
  color: #e2383e;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.ws-notif-footer a:hover {
  opacity: 0.8;
}
.ws-user-menu {
  position: relative;
}
.ws-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 24px;
  transition: background 0.2s;
  user-select: none;
}
.ws-user-trigger:hover {
  background: #f5f5f5;
}
.ws-user-trigger-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4393c, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ws-user-trigger-avatar img {
  border-radius: 50%;
}
.ws-user-trigger-avatar svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.ws-user-trigger-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-user-trigger-arrow {
  width: 18px;
  height: 18px;
  fill: #999;
  transition: transform 0.2s;
}
.ws-user-menu .ws-user-dropdown.show + .ws-user-trigger .ws-user-trigger-arrow, .ws-user-trigger-arrow.open {
  transform: rotate(180deg);
}
.ws-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #f0f0f0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  overflow: hidden;
}
.ws-user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ws-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #fff5f5, #fff);
}
.ws-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4393c, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ws-dropdown-avatar svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.ws-dropdown-userinfo {
  flex: 1;
  min-width: 0;
}
.ws-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-dropdown-tag {
  font-size: 12px;
  color: #e4393c;
  margin-top: 2px;
}
.ws-dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0;
}
.ws-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.ws-dropdown-item:hover {
  background: #f8f8f8;
  color: #e4393c;
}
.ws-dropdown-item svg {
  width: 18px;
  height: 18px;
  fill: #999;
  flex-shrink: 0;
  transition: fill 0.15s;
}
.ws-dropdown-item:hover svg {
  fill: #e4393c;
}
.ws-dropdown-logout {
  color: #999;
}
.ws-dropdown-logout:hover {
  background: #fff5f5;
  color: #e4393c;
}
.ws-search button:hover {
  background: #c1272d;
}
.ws-user-card {
  background: #fff;
  margin: 20px 30px 0;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: stretch;
  gap: 30px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ws-user-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ws-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4393c, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ws-avatar svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.ws-user-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ws-user-name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.ws-user-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #666;
}
.ws-user-tags .tag-item {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.2s;
}
.ws-user-tags .tag-item:hover {
  color: #e4393c;
}
.ws-user-tags .tag-sep {
  color: #ddd;
}
.ws-user-members {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.ws-member-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.ws-member-btn.plus {
  background: linear-gradient(135deg, #2a2a2a, #444);
  color: #f5d380;
  font-weight: 600;
}
.ws-member-btn.plus:hover {
  background: linear-gradient(135deg, #1a1a1a, #333);
}
.ws-member-btn.enterprise {
  background: #f0f7ff;
  color: #1a73e8;
  border: 1px solid #d0e3f7;
}
.ws-member-btn.enterprise:hover {
  background: #e0efff;
}
.ws-member-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.ws-assets {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  padding-left: 30px;
  border-left: 1px solid #f0f0f0;
}
.ws-asset-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.ws-asset-item:hover {
  transform: translateY(-2px);
}
.ws-asset-value {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}
.ws-asset-value .asset-unit {
  font-size: 13px;
  font-weight: 400;
  color: #999;
  margin-left: 2px;
}
.ws-asset-label {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.ws-coupon-bar {
  background: #fff;
  margin: 16px 30px 0;
  border-radius: 10px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ws-coupon-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e4393c;
  font-weight: 500;
}
.ws-coupon-left svg {
  width: 18px;
  height: 18px;
  fill: #e4393c;
}
.ws-coupon-btn {
  background: #e4393c;
  color: #fff;
  border: none;
  padding: 6px 18px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.ws-coupon-btn:hover {
  background: #c1272d;
}
.ws-content {
  padding: 20px 30px 40px;
  display: flex;
  gap: 20px;
}
.ws-content-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ws-content-right {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ws-module {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}
.ws-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
}
.ws-module-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ws-module-title .title-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-module-title .title-icon svg {
  width: 20px;
  height: 20px;
  fill: #e4393c;
}
.ws-module-more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}
.ws-module-more:hover {
  color: #e4393c;
}
.ws-module-more svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.ws-order-shortcuts {
  display: flex;
  justify-content: space-around;
  padding: 20px 16px;
}
.ws-order-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}
.ws-order-shortcut:hover {
  transform: translateY(-2px);
}
.ws-order-shortcut .shortcut-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-order-shortcut .shortcut-icon svg {
  width: 22px;
  height: 22px;
  fill: #e4393c;
}
.ws-order-shortcut .shortcut-label {
  font-size: 13px;
  color: #333;
}
.ws-order-shortcut .shortcut-badge {
  position: absolute;
  top: -4px;
  right: 6px;
  background: #e4393c;
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0 5px;
}
.ws-order-notice {
  padding: 0 20px 16px;
}
.ws-order-notice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 8px;
  transition: background 0.2s;
}
.ws-order-notice-item:hover {
  background: #f5f5f5;
}
.ws-notice-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #e8e8e8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-notice-thumb svg {
  width: 28px;
  height: 28px;
  fill: #bbb;
}
.ws-notice-info {
  flex: 1;
  min-width: 0;
}
.ws-notice-text {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ws-notice-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}
.ws-notice-meta a {
  color: #1a73e8;
  text-decoration: none;
}
.ws-notice-meta a:hover {
  text-decoration: underline;
}
.ws-notice-action {
  flex-shrink: 0;
}
.ws-notice-action button {
  padding: 6px 16px;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: #fff;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.ws-notice-action button:hover {
  border-color: #e4393c;
  color: #e4393c;
}
.ws-fav-grid {
  display: flex;
  gap: 0;
}
.ws-fav-section {
  flex: 1;
  padding: 16px;
  border-right: 1px solid #f5f5f5;
}
.ws-fav-section:last-child {
  border-right: none;
}
.ws-fav-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ws-fav-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.ws-fav-section-more {
  font-size: 12px;
  color: #999;
  text-decoration: none;
  cursor: pointer;
}
.ws-fav-section-more:hover {
  color: #e4393c;
}
.ws-fav-section-count {
  font-size: 12px;
  color: #999;
}
.ws-fav-product {
  cursor: pointer;
  transition: transform 0.2s;
}
.ws-fav-product:hover {
  transform: translateY(-2px);
}
.ws-fav-product-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ws-fav-product-img svg {
  width: 40px;
  height: 40px;
  fill: #ddd;
}
.ws-fav-product-name {
  font-size: 12px;
  color: #333;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.ws-fav-product-price {
  font-size: 14px;
  font-weight: 700;
  color: #e4393c;
  margin-top: 4px;
}
.ws-fav-product-price .fav-original {
  font-size: 12px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
  margin-left: 4px;
}
.ws-fav-product-tag {
  display: inline-block;
  font-size: 11px;
  color: #e4393c;
  background: #fff5f5;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
}
.ws-fav-shop {
  cursor: pointer;
}
.ws-fav-shop-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-fav-shop-img svg {
  width: 36px;
  height: 36px;
  fill: #ddd;
}
.ws-fav-shop-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  margin-top: 8px;
}
.ws-fav-shop-rating {
  font-size: 12px;
  color: #ff9800;
  margin-top: 4px;
}
.ws-purchase-empty {
  padding: 40px 20px;
  text-align: center;
}
.ws-purchase-empty svg {
  width: 48px;
  height: 48px;
  fill: #ddd;
  margin-bottom: 12px;
}
.ws-purchase-empty p {
  font-size: 14px;
  color: #999;
  margin-bottom: 16px;
}
.ws-purchase-empty button {
  padding: 8px 24px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.ws-purchase-empty button:hover {
  border-color: #e4393c;
  color: #e4393c;
}
.ws-recharge-card {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ws-recharge-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ws-recharge-icon {
  width: 36px;
  height: 36px;
  background: #ff9800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-recharge-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.ws-recharge-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.ws-recharge-phone {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}
.ws-recharge-number {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  letter-spacing: 1px;
}
.ws-recharge-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.ws-recharge-amount {
  flex: 1;
  padding: 8px 0;
  border: 1px solid #ffe0b2;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-size: 13px;
  color: #ff9800;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ws-recharge-amount:hover, .ws-recharge-amount.active {
  background: #ff9800;
  color: #fff;
  border-color: #ff9800;
}
.ws-service-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ws-service-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}
.ws-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ws-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.ws-service-item:hover {
  background: #f5f5f5;
}
.ws-service-item .svc-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-service-item .svc-icon svg {
  width: 18px;
  height: 18px;
  fill: #e4393c;
}
.ws-service-item .svc-icon.blue {
  background: #f0f7ff;
}
.ws-service-item .svc-icon.blue svg {
  fill: #1a73e8;
}
.ws-service-item .svc-icon.green {
  background: #f0fff4;
}
.ws-service-item .svc-icon.green svg {
  fill: #52c41a;
}
.ws-service-item .svc-icon.orange {
  background: #fff8e1;
}
.ws-service-item .svc-icon.orange svg {
  fill: #ff9800;
}
.ws-service-item .svc-icon.purple {
  background: #f3e5f5;
}
.ws-service-item .svc-icon.purple svg {
  fill: #9c27b0;
}
.ws-service-item .svc-label {
  font-size: 12px;
  color: #666;
  text-align: center;
}
.ws-tips-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ws-tips-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}
.ws-tips-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: color 0.2s;
}
.ws-tips-item:last-child {
  border-bottom: none;
}
.ws-tips-item:hover {
  color: #e4393c;
}
.ws-tips-item .tips-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e4393c;
  flex-shrink: 0;
}
.ws-tips-item .tips-text {
  flex: 1;
  font-size: 13px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ws-tips-item:hover .tips-text {
  color: #e4393c;
}
.ws-tips-item .tips-date {
  font-size: 12px;
  color: #ccc;
  flex-shrink: 0;
}
@media (max-width: 1200px) {
  .ws-content-right {
    width: 240px;
  }
  .ws-assets {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .ws-sidebar {
    display: none;
  }
  .ws-main {
    margin-left: 0;
  }
  .ws-content {
    flex-direction: column;
    padding: 16px;
  }
  .ws-content-right {
    width: 100%;
  }
  .ws-fav-grid {
    flex-direction: column;
  }
  .ws-fav-section {
    border-right: none;
    border-bottom: 1px solid #f5f5f5;
  }
  .ws-fav-section:last-child {
    border-bottom: none;
  }
  .ws-user-card {
    margin: 16px;
    flex-direction: column;
  }
  .ws-assets {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .ws-coupon-bar {
    margin: 0 16px;
  }
  .ws-header {
    padding: 12px 16px;
  }
  .ws-search input {
    width: 160px;
  }
}
@media (max-width: 640px) {
  .ws-user-card {
    margin: 12px;
    padding: 16px;
  }
  .ws-content {
    padding: 12px;
  }
  .ws-order-shortcuts {
    flex-wrap: wrap;
    gap: 12px;
  }
  .ws-order-shortcut {
    flex: 0 0 calc(25% - 9px);
  }
  .ws-assets {
    justify-content: space-around;
  }
  .ws-search {
    display: none;
  }
  .ws-service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.fav-content {
  padding: 24px 28px;
}
.fav-breadcrumb {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.fav-breadcrumb a {
  color: var(--gray-500, #666);
  text-decoration: none;
  transition: color 0.2s;
}
.fav-breadcrumb a:hover {
  color: var(--primary, #e23a3a);
}
.fav-breadcrumb .sep {
  margin: 0 6px;
  color: var(--gray-300, #ccc);
}
.fav-breadcrumb .current {
  color: var(--gray-700, #333);
}
.fav-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.fav-page-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800, #222);
}
.fav-page-header .fav-count {
  font-size: 13px;
  color: var(--gray-400, #999);
  font-weight: 400;
  margin-left: 8px;
}
.fav-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.fav-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fav-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fav-search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: border-color 0.2s;
}
.fav-search-box:focus-within {
  border-color: var(--primary, #e23a3a);
}
.fav-search-box input {
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: 13px;
  width: 200px;
  color: var(--gray-800, #222);
}
.fav-search-box input::placeholder {
  color: var(--gray-300, #bbb);
}
.fav-search-box button {
  background: var(--primary, #e23a3a);
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.fav-filter-select {
  height: 36px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--gray-700, #333);
  outline: none;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 110px;
}
.fav-filter-select:focus {
  border-color: var(--primary, #e23a3a);
}
.fav-sort-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  background: white;
  color: var(--gray-600, #555);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.fav-sort-btn:hover, .fav-sort-btn.active {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.fav-sort-btn svg {
  width: 14px;
  height: 14px;
}
.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-weight: 500;
}
.fav-btn svg {
  width: 14px;
  height: 14px;
}
.fav-btn-outline {
  background: white;
  color: var(--gray-600, #555);
  border: 1px solid var(--gray-200, #e0e0e0);
}
.fav-btn-outline:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.fav-btn-danger {
  background: white;
  color: #f44336;
  border: 1px solid #ffcdd2;
}
.fav-btn-danger:hover {
  background: #fff5f5;
  border-color: #f44336;
}
.fav-btn-primary {
  background: var(--primary, #e23a3a);
  color: white;
}
.fav-btn-primary:hover {
  background: var(--primary-dark, #c62828);
}
.fav-batch-bar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gray-700, #333);
}
.fav-batch-bar.show {
  display: flex;
}
.fav-batch-bar .selected-count {
  color: var(--primary, #e23a3a);
  font-weight: 600;
}
.fav-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray-300, #ccc);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: white;
}
.fav-checkbox:hover {
  border-color: var(--primary, #e23a3a);
}
.fav-checkbox.checked {
  background: var(--primary, #e23a3a);
  border-color: var(--primary, #e23a3a);
}
.fav-checkbox.checked svg {
  display: block;
}
.fav-checkbox svg {
  width: 10px;
  height: 10px;
  fill: white;
  display: none;
}
.fav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fav-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200, #e8e8e8);
  overflow: hidden;
  transition: all 0.25s;
  position: relative;
}
.fav-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: transparent;
  transform: translateY(-2px);
}
.fav-card.selected {
  border-color: var(--primary, #e23a3a);
  box-shadow: 0 0 0 2px rgba(226,58,58,0.1);
}
.fav-card-check {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}
.fav-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gray-100, #f5f5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.fav-card-img svg {
  width: 48px;
  height: 48px;
  fill: var(--gray-300, #ccc);
}
.fav-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.fav-badge-sale {
  background: var(--primary, #e23a3a);
  color: white;
}
.fav-badge-new {
  background: #2196f3;
  color: white;
}
.fav-badge-hot {
  background: #ff9800;
  color: white;
}
.fav-card-drop {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  padding: 4px 10px;
  font-size: 11px;
  color: #e65100;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fav-card-drop svg {
  width: 12px;
  height: 12px;
  fill: #e65100;
}
.fav-card-body {
  padding: 14px 16px 16px;
}
.fav-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800, #222);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fav-card-name a {
  color: inherit;
  text-decoration: none;
}
.fav-card-name a:hover {
  color: var(--primary, #e23a3a);
}
.fav-card-spec {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-bottom: 10px;
}
.fav-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.fav-card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary, #e23a3a);
}
.fav-card-price .symbol {
  font-size: 13px;
}
.fav-card-original {
  font-size: 13px;
  color: var(--gray-400, #999);
  text-decoration: line-through;
}
.fav-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fav-card-store {
  font-size: 12px;
  color: var(--gray-400, #999);
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.fav-card-store svg {
  width: 12px;
  height: 12px;
  fill: var(--gray-400, #999);
  flex-shrink: 0;
}
.fav-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.fav-card-act {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--gray-200, #e8e8e8);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.fav-card-act svg {
  width: 14px;
  height: 14px;
}
.fav-card-act.act-cart {
  color: var(--primary, #e23a3a);
  border-color: #ffcdd2;
}
.fav-card-act.act-cart:hover {
  background: var(--primary, #e23a3a);
  border-color: var(--primary, #e23a3a);
  color: white;
}
.fav-card-act.act-cart:hover svg {
  fill: white;
}
.fav-card-act.act-del {
  color: var(--gray-400, #999);
}
.fav-card-act.act-del:hover {
  background: #fff5f5;
  border-color: #f44336;
  color: #f44336;
}
.fav-card-act.act-del:hover svg {
  fill: #f44336;
}
.fav-card-cart-btn {
  width: 100%;
  height: 34px;
  border: 1px solid var(--primary, #e23a3a);
  border-radius: 6px;
  background: white;
  color: var(--primary, #e23a3a);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.fav-card-cart-btn:hover {
  background: var(--primary, #e23a3a);
  color: white;
}
.fav-card-cart-btn svg {
  width: 14px;
  height: 14px;
}
.fav-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 28px;
  padding-bottom: 20px;
}
.fav-page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  background: white;
  color: var(--gray-600, #555);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.fav-page-btn:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.fav-page-btn.active {
  background: var(--primary, #e23a3a);
  color: white;
  border-color: var(--primary, #e23a3a);
}
.fav-page-btn.disabled {
  color: var(--gray-300, #ccc);
  cursor: not-allowed;
  border-color: var(--gray-100, #f0f0f0);
}
.fav-page-btn.disabled:hover {
  color: var(--gray-300, #ccc);
  border-color: var(--gray-100, #f0f0f0);
}
.fav-page-info {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin: 0 12px;
}
.fav-empty {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200, #e8e8e8);
  grid-column: 1 / -1;
}
.fav-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: var(--gray-100, #f5f5f5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-empty-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--gray-300, #ccc);
}
.fav-empty-text {
  font-size: 15px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.fav-empty-link {
  color: var(--primary, #e23a3a);
  text-decoration: none;
  font-size: 14px;
}
.fav-empty-link:hover {
  text-decoration: underline;
}
.fav-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--gray-800, #222);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.fav-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fav-confirm-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}
.fav-confirm-overlay.show {
  display: flex;
}
.fav-confirm-box {
  background: white;
  border-radius: 12px;
  padding: 28px;
  width: 380px;
  max-width: 90vw;
  text-align: center;
  animation: favSlideUp 0.2s ease;
}
@keyframes favSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.fav-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: #fff5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-confirm-icon svg {
  width: 24px;
  height: 24px;
  fill: #f44336;
}
.fav-confirm-text {
  font-size: 15px;
  color: var(--gray-700, #333);
  margin-bottom: 24px;
  line-height: 1.6;
}
.fav-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.fav-confirm-cancel {
  height: 38px;
  padding: 0 24px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  background: white;
  color: var(--gray-600, #555);
  font-size: 14px;
  cursor: pointer;
}
.fav-confirm-ok {
  height: 38px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  background: #f44336;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
@media (max-width: 1200px) {
  .fav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .fav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fav-content {
    padding: 16px;
  }
  .fav-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .fav-toolbar-left, .fav-toolbar-right {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .fav-grid {
    grid-template-columns: 1fr;
  }
  .fav-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
.followed-company-content {
  padding: 24px 28px;
}
.followed-company-breadcrumb {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.followed-company-breadcrumb a {
  color: var(--gray-500, #666);
  text-decoration: none;
  transition: color 0.2s;
}
.followed-company-breadcrumb a:hover {
  color: var(--primary, #e23a3a);
}
.followed-company-breadcrumb .sep {
  margin: 0 6px;
  color: var(--gray-300, #ccc);
}
.followed-company-breadcrumb .current {
  color: var(--gray-700, #333);
}
.followed-company-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.followed-company-page-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800, #222);
}
.followed-company-page-header .followed-company-count {
  font-size: 13px;
  color: var(--gray-400, #999);
  font-weight: 400;
  margin-left: 8px;
}
.followed-company-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.followed-company-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.followed-company-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.followed-company-search {
  position: relative;
  width: 220px;
}
.followed-company-search input {
  width: 100%;
  height: 34px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.followed-company-search input:focus {
  border-color: var(--primary, #e23a3a);
}
.followed-company-search-btn {
  position: absolute;
  right: 0;
  top: 0;
  width: 34px;
  height: 34px;
  background: var(--primary, #e23a3a);
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.followed-company-search-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}
.followed-company-filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-50, #f5f5f5);
  border-radius: 6px;
  padding: 3px;
}
.followed-company-filter-tab {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--gray-600, #555);
  cursor: pointer;
  border-radius: 4px;
  border: none;
  background: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.followed-company-filter-tab:hover {
  color: var(--primary, #e23a3a);
}
.followed-company-filter-tab.active {
  background: #fff;
  color: var(--primary, #e23a3a);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.followed-company-sort {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--gray-50, #f5f5f5);
  border-radius: 6px;
  padding: 3px;
}
.followed-company-sort-btn {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--gray-600, #555);
  cursor: pointer;
  border-radius: 4px;
  border: none;
  background: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.followed-company-sort-btn:hover {
  color: var(--primary, #e23a3a);
}
.followed-company-sort-btn.active {
  background: #fff;
  color: var(--primary, #e23a3a);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.followed-company-batch-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #fff8f0;
  border: 1px solid #ffe0b2;
  border-radius: 8px;
  margin-bottom: 16px;
}
.followed-company-batch-bar.show {
  display: flex;
}
.followed-company-batch-info {
  font-size: 13px;
  color: var(--gray-600, #555);
}
.followed-company-batch-info span {
  color: var(--primary, #e23a3a);
  font-weight: 600;
}
.followed-company-batch-actions {
  display: flex;
  gap: 8px;
}
.followed-company-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.followed-company-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
}
.followed-company-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.followed-company-card.selected {
  border: 2px solid var(--primary, #e23a3a);
}
.followed-company-card-checkbox {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
}
.followed-company-card-checkbox input[type="checkbox"] {
  display: none;
}
.followed-company-card-checkbox label {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300, #ccc);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
}
.followed-company-card-checkbox input:checked + label {
  background: var(--primary, #e23a3a);
  border-color: var(--primary, #e23a3a);
}
.followed-company-card-checkbox input:checked + label::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.followed-company-card-header {
  display: flex;
  align-items: center;
  padding: 18px 18px 14px;
  gap: 14px;
}
.followed-company-avatar {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--gray-100, #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.followed-company-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.followed-company-info {
  flex: 1;
  min-width: 0;
}
.followed-company-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800, #222);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.followed-company-name .followed-company-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
  line-height: 1.5;
}
.followed-company-badge.official {
  background: #e8f5e9;
  color: #2e7d32;
}
.followed-company-badge.vip {
  background: #fff3e0;
  color: #e65100;
}
.followed-company-badge.verified {
  background: #e3f2fd;
  color: #1565c0;
}
.followed-company-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-400, #999);
}
.followed-company-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.followed-company-meta svg {
  width: 13px;
  height: 13px;
  fill: var(--gray-300, #ccc);
}
.followed-company-header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.followed-company-products {
  padding: 0 18px 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.followed-company-product-thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--gray-50, #fafafa);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}
.followed-company-product-thumb:hover {
  transform: scale(1.04);
}
.followed-company-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.followed-company-product-thumb .thumb-price {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 6px 4px;
  text-align: center;
}
.followed-company-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--gray-100, #f0f0f0);
  background: var(--gray-50, #fafafa);
}
.followed-company-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-400, #999);
}
.followed-company-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.followed-company-stats strong {
  color: var(--gray-700, #333);
  font-weight: 600;
}
.followed-company-footer-actions {
  display: flex;
  gap: 8px;
}
.btn-unfollow {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid var(--gray-200, #e0e0e0);
  background: #fff;
  color: var(--gray-600, #555);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-unfollow:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.btn-enter-followed-company {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid var(--primary, #e23a3a);
  background: #fff;
  color: var(--primary, #e23a3a);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-enter-followed-company:hover {
  background: var(--primary, #e23a3a);
  color: #fff;
}
.btn-msg {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid var(--primary, #e23a3a);
  background: #fff;
  color: var(--primary, #e23a3a);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-msg:hover {
  background: var(--primary, #e23a3a);
  color: #fff;
}
.btn-msg:hover svg {
  fill: #fff;
}
.btn-msg svg {
  width: 13px;
  height: 13px;
  fill: var(--primary, #e23a3a);
  transition: fill 0.2s;
}
.btn-batch-unfollow {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 5px;
  border: 1px solid var(--primary, #e23a3a);
  background: #fff;
  color: var(--primary, #e23a3a);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-batch-unfollow:hover {
  background: var(--primary, #e23a3a);
  color: #fff;
}
.btn-select-all {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 5px;
  border: 1px solid var(--gray-200, #e0e0e0);
  background: #fff;
  color: var(--gray-600, #555);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-select-all:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.followed-company-new-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary, #e23a3a);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 0 0 6px 0;
  font-weight: 500;
}
.followed-company-promo {
  margin: 0 18px 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #fff5f5, #fff0e6);
  border-radius: 6px;
  font-size: 12px;
  color: var(--primary, #e23a3a);
  display: flex;
  align-items: center;
  gap: 6px;
}
.followed-company-promo svg {
  width: 14px;
  height: 14px;
  fill: var(--primary, #e23a3a);
  flex-shrink: 0;
}
.followed-company-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 8px;
}
.page-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--gray-200, #e0e0e0);
  background: #fff;
  font-size: 13px;
  color: var(--gray-600, #555);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0 6px;
}
.page-btn:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.page-btn.active {
  background: var(--primary, #e23a3a);
  color: #fff;
  border-color: var(--primary, #e23a3a);
}
.page-btn.disabled {
  color: var(--gray-300, #ccc);
  cursor: not-allowed;
  border-color: var(--gray-100, #f0f0f0);
}
.page-info {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin: 0 8px;
}
.followed-company-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.followed-company-modal-overlay.show {
  display: flex;
}
.followed-company-modal {
  background: #fff;
  border-radius: 12px;
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.followed-company-modal-header {
  padding: 20px 24px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800, #222);
}
.followed-company-modal-body {
  padding: 16px 24px 24px;
  font-size: 14px;
  color: var(--gray-600, #555);
  line-height: 1.6;
}
.followed-company-modal-body .followed-company-name-highlight {
  color: var(--primary, #e23a3a);
  font-weight: 500;
}
.followed-company-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 20px;
}
.followed-company-modal-footer .btn-cancel {
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid var(--gray-200, #e0e0e0);
  background: #fff;
  font-size: 13px;
  color: var(--gray-600, #555);
  cursor: pointer;
  transition: all 0.2s;
}
.followed-company-modal-footer .btn-cancel:hover {
  border-color: var(--gray-400, #999);
}
.followed-company-modal-footer .btn-confirm {
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  background: var(--primary, #e23a3a);
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.followed-company-modal-footer .btn-confirm:hover {
  background: #c62828;
}
.followed-company-empty {
  text-align: center;
  padding: 60px 20px;
}
.followed-company-empty svg {
  width: 80px;
  height: 80px;
  fill: var(--gray-200, #e0e0e0);
  margin-bottom: 16px;
}
.followed-company-empty p {
  font-size: 14px;
  color: var(--gray-400, #999);
  margin-bottom: 16px;
}
.followed-company-empty a {
  color: var(--primary, #e23a3a);
  text-decoration: none;
  font-size: 14px;
}
.followed-company-empty a:hover {
  text-decoration: underline;
}
@media (max-width: 1200px) {
  .followed-company-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .followed-company-products {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .followed-company-content {
    padding: 16px;
  }
  .followed-company-products {
    grid-template-columns: repeat(2, 1fr);
  }
  .followed-company-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .followed-company-toolbar-left, .followed-company-toolbar-right {
    flex-wrap: wrap;
  }
  .followed-company-search {
    width: 100%;
  }
  .followed-company-card-header {
    flex-wrap: wrap;
  }
  .followed-company-header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
.pf-breadcrumb {
  font-size: 13px;
  color: var(--gray-400, #9ca3af);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pf-breadcrumb a {
  color: var(--gray-500, #6b7280);
  text-decoration: none;
  transition: color 0.2s;
}
.pf-breadcrumb a:hover {
  color: var(--primary, #e53935);
}
.pf-bc-sep {
  color: var(--gray-300, #d1d5db);
}
.pf-bc-current {
  color: var(--gray-700, #374151);
  font-weight: 500;
}
.pf-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-100, #f3f4f6);
  margin-bottom: 24px;
  padding: 24px 28px;
  background-color: #FFFFFF;
}
.pf-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--gray-500, #6b7280);
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
  font-family: inherit;
}
.pf-tab svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.pf-tab:hover {
  color: var(--gray-700, #374151);
}
.pf-tab.active {
  color: var(--primary, #e53935);
}
.pf-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary, #e53935);
  border-radius: 1px;
}
.pf-tab-pane {
  display: none;
  padding: 24px 28px;
}
.pf-tab-pane.active {
  display: block;
  animation: pfFadeIn 0.3s ease;
}
@keyframes pfFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pf-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-100, #f3f4f6);
  overflow: hidden;
}
.pf-card-header {
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--gray-100, #f3f4f6);
}
.pf-card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800, #1f2937);
  margin: 0 0 4px;
}
.pf-card-header p {
  font-size: 13px;
  color: var(--gray-400, #9ca3af);
  margin: 0;
}
.pf-form {
  padding: 28px 32px 32px;
}
.pf-form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}
.pf-form-row-full {
  flex-direction: column;
}
.pf-form-group {
  flex: 1;
  position: relative;
}
.pf-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700, #374151);
  margin-bottom: 6px;
}
.pf-required {
  color: var(--primary, #e53935);
}
.pf-input, .pf-select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-700, #374151);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}
.pf-input:focus, .pf-select:focus {
  border-color: var(--primary, #e53935);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}
.pf-input::placeholder {
  color: var(--gray-300, #d1d5db);
}
.pf-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 36px;
}
.pf-input-action {
  position: absolute;
  right: 12px;
  top: 32px;
  font-size: 13px;
  color: var(--primary, #e53935);
  cursor: pointer;
  font-weight: 500;
}
.pf-input-action:hover {
  text-decoration: underline;
}
.pf-input:read-only {
  background: var(--gray-50, #f9fafb);
  color: var(--gray-400, #9ca3af);
}
.pf-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100, #f3f4f6);
}
.pf-btn {
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pf-btn-primary {
  background: var(--primary, #e53935);
  color: white;
}
.pf-btn-primary:hover {
  background: #c62828;
}
.pf-btn-ghost {
  background: white;
  color: var(--gray-500, #6b7280);
  border: 1px solid var(--gray-200, #e5e7eb);
}
.pf-btn-ghost:hover {
  background: var(--gray-50, #f9fafb);
  border-color: var(--gray-300, #d1d5db);
}
.pf-btn-outline {
  background: white;
  color: var(--gray-600, #4b5563);
  border: 1px solid var(--gray-200, #e5e7eb);
  padding: 8px 20px;
  font-size: 13px;
}
.pf-btn-outline:hover {
  color: var(--primary, #e53935);
  border-color: var(--primary, #e53935);
}
.pf-btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}
.pf-avatar-section {
  padding: 28px 32px 32px;
}
.pf-avatar-current {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.pf-avatar-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pf-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.pf-avatar-large svg {
  width: 56px;
  height: 56px;
  fill: var(--primary, #e53935);
}
.pf-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-avatar-label {
  font-size: 13px;
  color: var(--gray-400, #9ca3af);
}
.pf-avatar-upload-area {
  flex: 1;
  min-height: 180px;
  border: 2px dashed var(--gray-200, #e5e7eb);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--gray-50, #f9fafb);
}
.pf-avatar-upload-area:hover {
  border-color: var(--primary, #e53935);
  background: #fff5f5;
}
.pf-avatar-upload-area.pf-dragover {
  border-color: var(--primary, #e53935);
  background: #fff5f5;
  transform: scale(1.01);
}
.pf-upload-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--gray-300, #d1d5db);
  margin-bottom: 8px;
}
.pf-upload-text {
  font-size: 15px;
  color: var(--gray-500, #6b7280);
  margin: 0 0 4px;
  font-weight: 500;
}
.pf-upload-hint {
  font-size: 12px;
  color: var(--gray-400, #9ca3af);
  margin: 0;
}
.pf-avatar-sizes {
  padding-top: 24px;
  border-top: 1px solid var(--gray-100, #f3f4f6);
}
.pf-avatar-sizes h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600, #4b5563);
  margin: 0 0 16px;
}
.pf-avatar-size-list {
  display: flex;
  gap: 32px;
  align-items: flex-end;
}
.pf-avatar-size-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pf-avatar-size-item span {
  font-size: 12px;
  color: var(--gray-400, #9ca3af);
}
.pf-avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.pf-avatar svg {
  fill: var(--primary, #e53935);
}
.pf-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-avatar-80 {
  width: 80px;
  height: 80px;
}
.pf-avatar-80 svg {
  width: 36px;
  height: 36px;
}
.pf-avatar-48 {
  width: 48px;
  height: 48px;
}
.pf-avatar-48 svg {
  width: 22px;
  height: 22px;
}
.pf-avatar-32 {
  width: 32px;
  height: 32px;
}
.pf-avatar-32 svg {
  width: 16px;
  height: 16px;
}
.pf-security-list {
  padding: 8px 32px 32px;
}
.pf-security-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100, #f3f4f6);
}
.pf-security-item:last-child {
  border-bottom: none;
}
.pf-security-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pf-security-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pf-security-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}
.pf-security-icon-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.pf-security-icon-green {
  background: linear-gradient(135deg, #10b981, #059669);
}
.pf-security-icon-orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.pf-security-icon-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.pf-security-icon-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.pf-security-info h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-800, #1f2937);
  margin: 0 0 2px;
}
.pf-security-info p {
  font-size: 13px;
  color: var(--gray-400, #9ca3af);
  margin: 0;
}
.pf-security-warning {
  color: #f59e0b !important;
}
.pf-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--gray-800, #1f2937);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.pf-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 900px) {
  .pf-form-row {
    flex-direction: column;
    gap: 16px;
  }
  .pf-avatar-current {
    flex-direction: column;
    align-items: center;
  }
  .pf-avatar-upload-area {
    width: 100%;
  }
  .pf-card-header {
    padding: 20px 20px 16px;
  }
  .pf-form {
    padding: 20px;
  }
  .pf-avatar-section {
    padding: 20px;
  }
  .pf-security-list {
    padding: 8px 20px 20px;
  }
}
@media (max-width: 768px) {
  .pf-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pf-tab {
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
  }
  .pf-avatar-size-list {
    gap: 20px;
  }
  .pf-security-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
.addr-content {
  padding: 24px 28px;
}
.addr-breadcrumb {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.addr-breadcrumb a {
  color: var(--gray-500, #666);
  text-decoration: none;
  transition: color 0.2s;
}
.addr-breadcrumb a:hover {
  color: var(--primary, #e23a3a);
}
.addr-breadcrumb .sep {
  margin: 0 6px;
  color: var(--gray-300, #ccc);
}
.addr-breadcrumb .current {
  color: var(--gray-700, #333);
}
.addr-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100, #f0f0f0);
}
.addr-page-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800, #222);
}
.addr-page-header .addr-count {
  font-size: 13px;
  color: var(--gray-400, #999);
  font-weight: 400;
  margin-left: 8px;
}
.addr-add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary, #e23a3a);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.addr-add-btn:hover {
  background: var(--primary-dark, #c62828);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(226,58,58,0.3);
}
.addr-add-btn svg {
  width: 16px;
  height: 16px;
}
.addr-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.addr-card {
  background: white;
  border: 1px solid var(--gray-200, #e8e8e8);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.2s;
  position: relative;
}
.addr-card:hover {
  border-color: var(--primary, #e23a3a);
  box-shadow: 0 2px 12px rgba(226,58,58,0.08);
}
.addr-card.is-default {
  border-color: var(--primary, #e23a3a);
  background: linear-gradient(135deg, #fff5f5 0%, white 30%);
}
.addr-card.is-default::after {
  content: '默认';
  position: absolute;
  top: 0;
  right: 20px;
  background: var(--primary, #e23a3a);
  color: white;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 0 0 6px 6px;
  font-weight: 500;
}
.addr-info {
  flex: 1;
  min-width: 0;
}
.addr-info-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.addr-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800, #222);
}
.addr-phone {
  font-size: 14px;
  color: var(--gray-600, #555);
}
.addr-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.addr-tag-home {
  background: #e8f5e9;
  color: #2e7d32;
}
.addr-tag-company {
  background: #e3f2fd;
  color: #1565c0;
}
.addr-tag-warehouse {
  background: #fff3e0;
  color: #e65100;
}
.addr-detail {
  font-size: 14px;
  color: var(--gray-600, #555);
  line-height: 1.6;
  word-break: break-all;
}
.addr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 4px;
}
.addr-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--gray-200, #e8e8e8);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--gray-500, #666);
  cursor: pointer;
  transition: all 0.2s;
}
.addr-action-btn:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
  background: #fff5f5;
}
.addr-action-btn.addr-delete-btn:hover {
  border-color: #f44336;
  color: #f44336;
  background: #fff5f5;
}
.addr-action-btn svg {
  width: 14px;
  height: 14px;
}
.addr-set-default {
  color: var(--primary, #e23a3a);
  border-color: var(--primary, #e23a3a);
}
.addr-set-default:hover {
  background: var(--primary, #e23a3a);
  color: white;
}
.om-content {
  padding: 24px 28px;
}
.om-breadcrumb {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.om-breadcrumb a {
  color: var(--gray-500, #666);
  text-decoration: none;
  transition: color 0.2s;
}
.om-breadcrumb a:hover {
  color: var(--primary, #e23a3a);
}
.om-breadcrumb .sep {
  margin: 0 6px;
  color: var(--gray-300, #ccc);
}
.om-breadcrumb .current {
  color: var(--gray-700, #333);
}
.om-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.om-page-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800, #222);
}
.om-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.om-search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: border-color 0.2s;
}
.om-search-box:focus-within {
  border-color: var(--primary, #e23a3a);
  box-shadow: 0 0 0 3px rgba(226,58,58,0.08);
}
.om-search-box input {
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: 13px;
  width: 220px;
  color: var(--gray-800, #222);
}
.om-search-box input::placeholder {
  color: var(--gray-300, #bbb);
}
.om-search-box button {
  background: var(--primary, #e23a3a);
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.om-search-box button:hover {
  background: var(--primary-dark, #c62828);
}
.om-tabs {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-200, #e8e8e8);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.om-tab {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--gray-500, #666);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.25s;
  position: relative;
  font-weight: 500;
  user-select: none;
}
.om-tab:hover {
  color: var(--gray-700, #333);
  background: var(--gray-100, #f8f8f8);
}
.om-tab.active {
  background: var(--primary, #e23a3a);
  color: white;
  box-shadow: 0 2px 8px rgba(226,58,58,0.25);
}
.om-tab .tab-badge {
  display: inline-block;
  background: #ff4d4f;
  color: white;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  margin-left: 4px;
  font-weight: 500;
  vertical-align: middle;
}
.om-tab.active .tab-badge {
  background: white;
  color: var(--primary, #e23a3a);
}
.om-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.om-filter-select {
  height: 36px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--gray-700, #333);
  outline: none;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 120px;
}
.om-filter-select:focus {
  border-color: var(--primary, #e23a3a);
}
.om-filter-date {
  height: 36px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--gray-700, #333);
  outline: none;
  background: white;
  transition: border-color 0.2s;
}
.om-filter-date:focus {
  border-color: var(--primary, #e23a3a);
}
.om-filter-label {
  font-size: 13px;
  color: var(--gray-500, #666);
}
.om-order-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.om-order-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200, #e8e8e8);
  overflow: hidden;
  transition: all 0.2s;
}
.om-order-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--gray-300, #ddd);
}
.om-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fafafa;
  border-bottom: 1px solid var(--gray-100, #f0f0f0);
}
.om-order-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.om-order-time {
  font-size: 13px;
  color: var(--gray-500, #666);
}
.om-order-id {
  font-size: 13px;
  color: var(--gray-500, #666);
}
.om-order-id span {
  color: var(--gray-700, #333);
  font-weight: 500;
}
.om-order-store {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-800, #222);
  font-weight: 500;
}
.om-order-store svg {
  width: 16px;
  height: 16px;
  fill: var(--gray-500, #666);
}
.om-order-header-right {
  display: flex;
  align-items: center;
}
.om-order-status {
  font-size: 14px;
  font-weight: 600;
}
.om-order-status.status-pending {
  color: #ff9800;
}
.om-order-status.status-paid {
  color: #2196f3;
}
.om-order-status.status-shipped {
  color: var(--primary, #e23a3a);
}
.om-order-status.status-completed {
  color: #4caf50;
}
.om-order-status.status-cancelled {
  color: var(--gray-400, #999);
}
.om-order-status.status-refund {
  color: #9c27b0;
}
.om-order-items {
  padding: 16px 20px;
}
.om-order-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100, #f5f5f5);
}
.om-order-product:last-child {
  border-bottom: none;
}
.om-order-product-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--gray-100, #f5f5f5);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.om-order-product-img svg {
  width: 32px;
  height: 32px;
  fill: var(--gray-300, #ccc);
}
.om-order-product-info {
  flex: 1;
  min-width: 0;
}
.om-order-product-name {
  font-size: 14px;
  color: var(--gray-800, #222);
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.om-order-product-spec {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-bottom: 4px;
}
.om-order-product-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}
.om-order-product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary, #e23a3a);
}
.om-order-product-price .symbol {
  font-size: 12px;
}
.om-order-product-qty {
  font-size: 13px;
  color: var(--gray-400, #999);
}
.om-order-product-right {
  text-align: right;
  flex-shrink: 0;
  min-width: 100px;
}
.om-order-total-label {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-bottom: 2px;
}
.om-order-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary, #e23a3a);
}
.om-order-total .symbol {
  font-size: 13px;
}
.om-order-product-count {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-top: 2px;
}
.om-order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--gray-100, #f0f0f0);
  background: #fafafa;
}
.om-order-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.om-order-remark {
  font-size: 12px;
  color: var(--gray-400, #999);
}
.om-order-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.om-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-weight: 500;
}
.om-btn-primary {
  background: var(--primary, #e23a3a);
  color: white;
}
.om-btn-primary:hover {
  background: var(--primary-dark, #c62828);
}
.om-btn-outline {
  background: white;
  color: var(--gray-600, #555);
  border: 1px solid var(--gray-200, #e0e0e0);
}
.om-btn-outline:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.om-btn-danger {
  background: white;
  color: #f44336;
  border: 1px solid #ffcdd2;
}
.om-btn-danger:hover {
  background: #fff5f5;
  border-color: #f44336;
}
.om-btn-text {
  background: none;
  color: var(--gray-500, #666);
  border: none;
  padding: 0 8px;
}
.om-btn-text:hover {
  color: var(--primary, #e23a3a);
}
.om-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 28px;
  padding-bottom: 20px;
}
.om-page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  background: white;
  color: var(--gray-600, #555);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.om-page-btn:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.om-page-btn.active {
  background: var(--primary, #e23a3a);
  color: white;
  border-color: var(--primary, #e23a3a);
}
.om-page-btn.disabled {
  color: var(--gray-300, #ccc);
  cursor: not-allowed;
  border-color: var(--gray-100, #f0f0f0);
}
.om-page-btn.disabled:hover {
  color: var(--gray-300, #ccc);
  border-color: var(--gray-100, #f0f0f0);
}
.om-page-info {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin: 0 12px;
}
.om-empty {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200, #e8e8e8);
}
.om-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: var(--gray-100, #f5f5f5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.om-empty-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--gray-300, #ccc);
}
.om-empty-text {
  font-size: 15px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.om-empty-link {
  color: var(--primary, #e23a3a);
  text-decoration: none;
  font-size: 14px;
}
.om-empty-link:hover {
  text-decoration: underline;
}
.om-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: omFadeIn 0.2s ease;
}
.om-modal-overlay.show {
  display: flex;
}
@keyframes omFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes omSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.om-modal {
  background: white;
  border-radius: 16px;
  width: 640px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  animation: omSlideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.om-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100, #f0f0f0);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  border-radius: 16px 16px 0 0;
}
.om-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800, #222);
}
.om-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400, #999);
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.om-modal-close:hover {
  background: var(--gray-100, #f5f5f5);
  color: var(--gray-700, #333);
}
.om-modal-close svg {
  width: 20px;
  height: 20px;
}
.om-modal-body {
  padding: 24px;
}
.om-detail-section {
  margin-bottom: 20px;
}
.om-detail-section:last-child {
  margin-bottom: 0;
}
.om-detail-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800, #222);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.om-detail-section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--primary, #e23a3a);
  border-radius: 2px;
}
.om-detail-row {
  display: flex;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
}
.om-detail-label {
  width: 90px;
  flex-shrink: 0;
  color: var(--gray-400, #999);
}
.om-detail-value {
  flex: 1;
  color: var(--gray-700, #333);
}
.om-detail-value.highlight {
  color: var(--primary, #e23a3a);
  font-weight: 600;
}
.om-timeline {
  padding-left: 4px;
}
.om-timeline-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  position: relative;
}
.om-timeline-item:last-child {
  padding-bottom: 0;
}
.om-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300, #ddd);
  flex-shrink: 0;
  margin-top: 5px;
  position: relative;
  z-index: 1;
}
.om-timeline-item:first-child .om-timeline-dot {
  background: var(--primary, #e23a3a);
  box-shadow: 0 0 0 4px rgba(226,58,58,0.15);
}
.om-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200, #e8e8e8);
}
.om-timeline-content {
  flex: 1;
}
.om-timeline-text {
  font-size: 14px;
  color: var(--gray-700, #333);
}
.om-timeline-item:first-child .om-timeline-text {
  font-weight: 500;
}
.om-timeline-time {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-top: 2px;
}
.om-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--gray-800, #222);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.om-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 900px) {
  .om-content {
    padding: 16px;
  }
  .om-order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .om-order-product {
    flex-wrap: wrap;
  }
  .om-order-product-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed var(--gray-200, #e8e8e8);
  }
  .om-order-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .om-order-footer-actions {
    flex-wrap: wrap;
  }
  .om-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .om-search-box input {
    width: 160px;
  }
}
@media (max-width: 640px) {
  .om-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .om-tabs {
    overflow-x: auto;
  }
  .om-tab {
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 13px;
  }
  .om-order-product-img {
    width: 56px;
    height: 56px;
  }
}
.od-content {
  padding: 24px 28px;
}
.od-breadcrumb {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.od-breadcrumb a {
  color: var(--gray-500, #666);
  text-decoration: none;
  transition: color 0.2s;
}
.od-breadcrumb a:hover {
  color: var(--primary, #e23a3a);
}
.od-breadcrumb .sep {
  margin: 0 6px;
  color: var(--gray-300, #ccc);
}
.od-breadcrumb .current {
  color: var(--gray-700, #333);
}
.od-status-banner {
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}
.od-status-banner.status-pending {
  background: linear-gradient(135deg, #ff9800, #ff6d00);
}
.od-status-banner.status-paid {
  background: linear-gradient(135deg, #2196f3, #1565c0);
}
.od-status-banner.status-shipped {
  background: linear-gradient(135deg, #e23a3a, #c62828);
}
.od-status-banner.status-completed {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
}
.od-status-banner.status-cancelled {
  background: linear-gradient(135deg, #9e9e9e, #616161);
}
.od-status-banner.status-refund {
  background: linear-gradient(135deg, #9c27b0, #6a1b9a);
}
.od-status-banner::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.od-status-banner::before {
  content: '';
  position: absolute;
  bottom: -40%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.od-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.od-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.od-status-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.od-status-icon svg {
  width: 26px;
  height: 26px;
  fill: white;
}
.od-status-info h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.od-status-info p {
  font-size: 14px;
  opacity: 0.9;
}
.od-status-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.od-banner-btn {
  height: 38px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.od-banner-btn-primary {
  background: white;
  color: var(--primary, #e23a3a);
}
.od-banner-btn-primary:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.od-banner-btn-ghost {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}
.od-banner-btn-ghost:hover {
  background: rgba(255,255,255,0.3);
}
.od-banner-btn-danger {
  background: rgba(244,67,54,0.15);
  color: #ffcdd2;
  border: 1px solid rgba(244,67,54,0.3);
}
.od-banner-btn-danger:hover {
  background: rgba(244,67,54,0.3);
  border-color: #f44336;
}
.od-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.od-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.od-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s;
}
.od-step.done .od-step-dot {
  background: white;
  color: var(--primary, #e23a3a);
}
.od-step.current .od-step-dot {
  background: white;
  color: var(--primary, #e23a3a);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
}
.od-step-text {
  font-size: 12px;
  opacity: 0.8;
}
.od-step.done .od-step-text, .od-step.current .od-step-text {
  opacity: 1;
  font-weight: 500;
}
.od-steps::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: rgba(255,255,255,0.2);
  z-index: 0;
}
.od-steps-progress {
  position: absolute;
  top: 14px;
  left: 14%;
  height: 2px;
  background: white;
  z-index: 0;
  transition: width 0.5s;
}
.od-section {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200, #e8e8e8);
  margin-bottom: 16px;
  overflow: hidden;
}
.od-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100, #f0f0f0);
  background: #fafafa;
}
.od-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800, #222);
  display: flex;
  align-items: center;
  gap: 8px;
}
.od-section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--primary, #e23a3a);
  border-radius: 2px;
}
.od-section-action {
  font-size: 13px;
  color: var(--primary, #e23a3a);
  cursor: pointer;
  text-decoration: none;
}
.od-section-action:hover {
  text-decoration: underline;
}
.od-section-body {
  padding: 20px 24px;
}
.od-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
.od-info-item {
  display: flex;
  align-items: baseline;
  font-size: 14px;
}
.od-info-label {
  width: 80px;
  flex-shrink: 0;
  color: var(--gray-400, #999);
}
.od-info-value {
  color: var(--gray-700, #333);
  word-break: break-all;
}
.od-info-value.highlight {
  color: var(--primary, #e23a3a);
  font-weight: 600;
}
.od-product-table {
  width: 100%;
  border-collapse: collapse;
}
.od-product-table thead {
  background: #fafafa;
}
.od-product-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gray-500, #666);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100, #f0f0f0);
}
.od-product-table th:last-child, .od-product-table td:last-child {
  text-align: right;
}
.od-product-table td {
  padding: 16px;
  font-size: 14px;
  color: var(--gray-700, #333);
  border-bottom: 1px solid var(--gray-100, #f5f5f5);
  vertical-align: middle;
}
.od-product-table tr:last-child td {
  border-bottom: none;
}
.od-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.od-product-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--gray-100, #f5f5f5);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.od-product-thumb svg {
  width: 28px;
  height: 28px;
  fill: var(--gray-300, #ccc);
}
.od-product-name {
  font-weight: 500;
  color: var(--gray-800, #222);
  margin-bottom: 2px;
}
.od-product-spec {
  font-size: 12px;
  color: var(--gray-400, #999);
}
.od-product-price {
  color: var(--primary, #e23a3a);
  font-weight: 600;
}
.od-product-qty {
  color: var(--gray-500, #666);
}
.od-product-subtotal {
  color: var(--gray-800, #222);
  font-weight: 600;
}
.od-price-summary {
  padding: 16px 24px;
}
.od-price-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 6px 0;
  font-size: 14px;
}
.od-price-row .label {
  color: var(--gray-500, #666);
}
.od-price-row .value {
  min-width: 100px;
  text-align: right;
}
.od-price-row.total {
  border-top: 1px solid var(--gray-200, #e8e8e8);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 16px;
}
.od-price-row.total .value {
  color: var(--primary, #e23a3a);
  font-size: 22px;
  font-weight: 700;
}
.od-price-row.total .value .symbol {
  font-size: 14px;
}
.od-timeline {
  padding: 4px 0;
}
.od-timeline-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  position: relative;
}
.od-timeline-item:last-child {
  padding-bottom: 0;
}
.od-timeline-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}
.od-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300, #ddd);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.od-timeline-item:first-child .od-timeline-dot {
  background: var(--primary, #e23a3a);
  box-shadow: 0 0 0 4px rgba(226,58,58,0.12);
}
.od-timeline-line {
  width: 2px;
  flex: 1;
  background: var(--gray-200, #e8e8e8);
  margin-top: 4px;
}
.od-timeline-item:last-child .od-timeline-line {
  display: none;
}
.od-timeline-content {
  flex: 1;
  padding-bottom: 2px;
}
.od-timeline-text {
  font-size: 14px;
  color: var(--gray-700, #333);
  line-height: 1.5;
}
.od-timeline-item:first-child .od-timeline-text {
  font-weight: 500;
  color: var(--gray-800, #222);
}
.od-timeline-time {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-top: 4px;
}
.od-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.od-layout-left {
  flex: 1;
  min-width: 0;
}
.od-layout-right {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.od-invoice-row {
  display: flex;
  align-items: baseline;
  font-size: 14px;
  padding: 4px 0;
}
.od-invoice-label {
  width: 80px;
  color: var(--gray-400, #999);
  flex-shrink: 0;
}
.od-invoice-value {
  color: var(--gray-700, #333);
}
.od-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200, #e8e8e8);
  padding: 16px 24px;
  margin-bottom: 16px;
}
.od-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.od-bottom-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.od-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-weight: 500;
}
.od-btn-primary {
  background: var(--primary, #e23a3a);
  color: white;
}
.od-btn-primary:hover {
  background: var(--primary-dark, #c62828);
}
.od-btn-outline {
  background: white;
  color: var(--gray-600, #555);
  border: 1px solid var(--gray-200, #e0e0e0);
}
.od-btn-outline:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.od-btn-danger {
  background: white;
  color: #f44336;
  border: 1px solid #ffcdd2;
}
.od-btn-danger:hover {
  background: #fff5f5;
  border-color: #f44336;
}
.od-btn-text {
  background: none;
  color: var(--gray-500, #666);
  border: none;
  padding: 0 10px;
}
.od-btn-text:hover {
  color: var(--primary, #e23a3a);
}
.od-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--gray-800, #222);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.od-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 1000px) {
  .od-layout {
    flex-direction: column;
  }
  .od-layout-right {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .od-content {
    padding: 16px;
  }
  .od-status-banner {
    padding: 20px;
  }
  .od-status-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .od-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .od-product-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .od-product-thumb {
    width: 50px;
    height: 50px;
  }
  .od-bottom-actions {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .od-bottom-right {
    flex-wrap: wrap;
  }
  .od-steps::before {
    left: 8%;
    right: 8%;
  }
}
@media (max-width: 640px) {
  .od-product-table thead {
    display: none;
  }
  .od-product-table, .od-product-table tbody, .od-product-table tr, .od-product-table td {
    display: block;
  }
  .od-product-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100, #f0f0f0);
  }
  .od-product-table td {
    padding: 4px 0;
    border: none;
    text-align: left !important;
  }
}
.pm-page {
  min-height: 100vh;
  background: #f5f5f5;
}
.pm-main {
  padding: 20px 24px;
}
.pm-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0 24px;
  border-radius: 8px 8px 0 0;
}
.pm-tabs-left {
  display: flex;
  gap: 0;
}
.pm-tab {
  padding: 14px 20px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  position: relative;
}
.pm-tab:hover {
  color: var(--primary, #e2383e);
}
.pm-tab.active {
  color: var(--primary, #e2383e);
  border-bottom-color: var(--primary, #e2383e);
  font-weight: 600;
}
.pm-tab strong {
  margin-left: 2px;
  font-weight: 600;
}
.pm-tab .pm-tab-count {
  font-size: 12px;
  color: #999;
  margin-left: 2px;
}
.pm-tabs-right {
  display: flex;
  gap: 16px;
}
.pm-tab-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: color .2s;
}
.pm-tab-link:hover {
  color: var(--primary, #e2383e);
}
.pm-tab-link svg {
  width: 15px;
  height: 15px;
}
.pm-promo-banner {
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #fecaca;
}
.pm-promo-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-promo-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--primary, #e2383e);
  background: #fff;
  border-radius: 10px;
  padding: 2px 8px;
  border: 1px solid #fecaca;
}
.pm-promo-badge svg {
  width: 12px;
  height: 12px;
  color: var(--primary, #e2383e);
}
.pm-promo-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}
.pm-promo-sub {
  font-size: 13px;
  color: #666;
}
.pm-promo-sub .pm-highlight {
  color: var(--primary, #e2383e);
  font-weight: 600;
}
.pm-promo-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pm-promo-thumbs {
  display: flex;
  gap: 6px;
}
.pm-promo-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #e2e8f0;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.pm-promo-btn {
  padding: 6px 16px;
  border: 1px solid var(--primary, #e2383e);
  border-radius: 4px;
  background: #fff;
  color: var(--primary, #e2383e);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.pm-promo-btn:hover {
  background: var(--primary, #e2383e);
  color: #fff;
}
.pm-filter-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}
.pm-search-box {
  position: relative;
  margin-bottom: 14px;
}
.pm-search-box input {
  width: 100%;
  height: 38px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 0 16px 0 38px;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.pm-search-box input:focus {
  border-color: var(--primary, #e2383e);
  box-shadow: 0 0 0 2px rgba(226,56,62,.1);
}
.pm-search-box input::placeholder {
  color: #bfbfbf;
}
.pm-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #bfbfbf;
}
.pm-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pm-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
}
.pm-filter-group label {
  white-space: nowrap;
  color: #666;
  font-size: 13px;
}
.pm-range-input {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pm-range-input input {
  width: 90px;
  height: 30px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 12px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.pm-range-input input:focus {
  border-color: var(--primary, #e2383e);
}
.pm-range-input .pm-range-sep {
  color: #999;
  font-size: 12px;
}
.pm-filter-select {
  height: 30px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 0 28px 0 8px;
  font-size: 12px;
  color: #333;
  outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s;
  box-sizing: border-box;
  min-width: 90px;
}
.pm-filter-select:focus {
  border-color: var(--primary, #e2383e);
}
.pm-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.pm-btn-query {
  height: 30px;
  padding: 0 16px;
  border: none;
  border-radius: 4px;
  background: var(--primary, #e2383e);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
}
.pm-btn-query:hover {
  background: #c53030;
}
.pm-btn-reset {
  height: 30px;
  padding: 3px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.pm-btn-reset:hover {
  border-color: var(--primary, #e2383e);
  color: var(--primary, #e2383e);
}
.pm-filter-expand {
  font-size: 13px;
  color: var(--primary, #e2383e);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
}
.pm-filter-expand:hover {
  text-decoration: underline;
}
.pm-filter-links {
  display: flex;
  gap: 12px;
  margin-left: 8px;
}
.pm-filter-link {
  font-size: 12px;
  color: var(--primary, #e2383e);
  cursor: pointer;
}
.pm-filter-link:hover {
  text-decoration: underline;
}
.pm-filter-expand-area {
  display: none;
  padding-top: 12px;
  border-top: 1px dashed #e8e8e8;
  margin-top: 12px;
}
.pm-filter-expand-area.show {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.pm-batch-bar {
  background: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pm-batch-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pm-batch-count {
  font-size: 13px;
  color: #999;
}
.pm-batch-count strong {
  color: #333;
  font-weight: 600;
}
.pm-btn-outline {
  height: 30px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.pm-btn-outline:hover {
  border-color: var(--primary, #e2383e);
  color: var(--primary, #e2383e);
}
.pm-btn-outline .pm-new-tag {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary, #e2383e);
  color: #fff;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 6px;
  line-height: 1;
}
.pm-batch-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pm-btn-primary {
  height: 30px;
  padding: 5px 16px;
  border: none;
  border-radius: 4px;
  background: var(--primary, #e2383e);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
}
.pm-btn-primary:hover {
  background: #c53030;
}
.pm-table-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.pm-table {
  width: 100%;
  border-collapse: collapse;
}
.pm-table thead {
  background: #fafafa;
}
.pm-table th {
  padding: 12px 14px;
  font-size: 12px;
  color: #999;
  font-weight: 500;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}
.pm-table th.sortable {
  cursor: pointer;
  user-select: none;
}
.pm-table th.sortable:hover {
  color: var(--primary, #e2383e);
}
.pm-table th .pm-sort-icon {
  display: inline-flex;
  flex-direction: column;
  margin-left: 2px;
  vertical-align: middle;
  line-height: 1;
}
.pm-table th .pm-sort-icon svg {
  width: 10px;
  height: 10px;
  color: #ccc;
}
.pm-table th .pm-sort-icon svg.active {
  color: var(--primary, #e2383e);
}
.pm-table td {
  padding: 16px 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: top;
}
.pm-select-all-bar {
  background: linear-gradient(90deg, #fff5f5, #fef2f2);
  border-bottom: 1px solid #fecaca;
  padding: 10px 20px;
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #333;
}
.pm-select-all-bar.show {
  display: flex;
}
.pm-product-cell {
  display: flex;
  gap: 12px;
  min-width: 300px;
}
.pm-product-checkbox {
  margin-top: 20px;
  flex-shrink: 0;
}
.pm-product-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary, #e2383e);
  cursor: pointer;
}
.pm-product-img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  background: #f5f5f5;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid #f0f0f0;
}
.pm-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-product-img-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(226,56,62,.9);
  color: #fff;
  font-size: 10px;
  text-align: center;
  padding: 1px 0;
}
.pm-product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.pm-product-name {
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.pm-product-name:hover {
  color: var(--primary, #e2383e);
}
.pm-product-id {
  font-size: 11px;
  color: #999;
}
.pm-product-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.pm-tag-red {
  font-size: 10px;
  color: var(--primary, #e2383e);
  background: #fff5f5;
  border: 1px solid #fecaca;
  padding: 1px 6px;
  border-radius: 2px;
  white-space: nowrap;
}
.pm-tag-orange {
  font-size: 10px;
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 2px;
  white-space: nowrap;
}
.pm-tag-green {
  font-size: 10px;
  color: #38a169;
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  padding: 1px 6px;
  border-radius: 2px;
  white-space: nowrap;
}
.pm-product-links {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.pm-product-link {
  font-size: 12px;
  color: var(--primary, #e2383e);
  cursor: pointer;
}
.pm-product-link:hover {
  text-decoration: underline;
}
.pm-product-link-sep {
  color: #e8e8e8;
  font-size: 12px;
}
.pm-price {
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
}
.pm-num {
  font-weight: 500;
}
.pm-stock-warn {
  color: var(--primary, #e2383e);
  font-weight: 600;
}
.pm-sales-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pm-sales-tip {
  background: #fff7e6;
  border: 1px solid #ffe7ba;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  color: #d97706;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}
.pm-sales-tip.tip-red {
  background: #fff5f5;
  border-color: #fecaca;
  color: var(--primary, #e2383e);
}
.pm-sales-action {
  font-size: 11px;
  color: var(--primary, #e2383e);
  cursor: pointer;
}
.pm-sales-action:hover {
  text-decoration: underline;
}
.pm-no-eval {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.pm-quality {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pm-quality-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 500;
}
.pm-quality-excellent {
  background: var(--primary, #e2383e);
  color: #fff;
}
.pm-quality-good {
  background: #38a169;
  color: #fff;
}
.pm-quality-medium {
  background: #d97706;
  color: #fff;
}
.pm-quality-poor {
  background: #999;
  color: #fff;
}
.pm-time {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}
.pm-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-top: 4px;
}
.pm-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pm-status-dot.green {
  background: #38a169;
}
.pm-status-dot.gray {
  background: #999;
}
.pm-status-dot.orange {
  background: #d97706;
}
.pm-status-dot.red {
  background: var(--primary, #e2383e);
}
.pm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.pm-action-link {
  font-size: 12px;
  color: var(--primary, #e2383e);
  cursor: pointer;
  white-space: nowrap;
}
.pm-action-link:hover {
  text-decoration: underline;
}
.pm-action-link.danger {
  color: var(--primary, #e2383e);
}
.pm-action-link.danger:hover {
  color: #c53030;
}
@media (max-width: 1200px) {
  .pm-batch-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .pm-batch-right {
    width: 100%;
    justify-content: flex-end;
  }
}
@media (max-width: 900px) {
  .pm-tabs-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
  }
  .pm-tabs-right {
    width: 100%;
    justify-content: flex-end;
  }
  .pm-filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .pm-filter-actions {
    margin-left: 0;
    width: 100%;
  }
  .pm-product-cell {
    min-width: auto;
  }
}
.pa-breadcrumb {
  padding: 12px 24px;
  font-size: 13px;
  color: #999;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0;
}
.pa-breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
.pa-breadcrumb a:hover {
  color: #e4393c;
}
.pa-breadcrumb span {
  margin: 0 6px;
  color: #ccc;
}
.pa-breadcrumb .current {
  color: #333;
  font-weight: 500;
}
.pa-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.pa-page-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pa-page-title svg {
  width: 22px;
  height: 22px;
  fill: #e4393c;
}
.pa-header-actions {
  display: flex;
  gap: 10px;
}
.pa-form-wrap {
  width: 100%;
}
.pa-form-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 20px;
  overflow: hidden;
}
.pa-form-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  gap: 8px;
}
.pa-form-card-header svg {
  width: 18px;
  height: 18px;
  fill: #e4393c;
}
.pa-form-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pa-form-card-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pa-form-card-body {
  padding: 24px;
}
.pa-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.pa-form-row:last-child {
  margin-bottom: 0;
}
.pa-form-group {
  display: flex;
  flex-direction: column;
}
.pa-form-group.full {
  grid-column: 1 / -1;
}
.pa-form-label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pa-form-label .required {
  color: #e4393c;
  font-size: 14px;
}
.pa-form-label .optional {
  color: #999;
  font-weight: 400;
  font-size: 12px;
}
.pa-form-input {
  padding: 10px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: all 0.2s;
  background: #fff;
}
.pa-form-input:focus {
  border-color: #e4393c;
  box-shadow: 0 0 0 2px rgba(228,57,60,0.1);
}
.pa-form-input.error {
  border-color: #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255,77,79,0.1);
}
.pa-form-input::placeholder {
  color: #bbb;
}
.pa-form-error {
  font-size: 12px;
  color: #ff4d4f;
  margin-top: 4px;
  display: none;
}
.pa-form-error.show {
  display: block;
}
textarea.pa-form-input {
  min-height: 100px;
  resize: vertical;
}
.pa-form-select {
  padding: 10px 32px 10px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 18px;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}
.pa-form-select:focus {
  border-color: #e4393c;
  box-shadow: 0 0 0 2px rgba(228,57,60,0.1);
}
.pa-region-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.pa-price-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pa-price-unit {
  font-size: 14px;
  color: #999;
  white-space: nowrap;
}
.pa-price-input {
  flex: 1;
}
.pa-upload-area {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.pa-upload-item {
  width: 120px;
  height: 120px;
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: #fafafa;
}
.pa-upload-item:hover {
  border-color: #e4393c;
  background: #fff8f8;
}
.pa-upload-item svg {
  width: 28px;
  height: 28px;
  fill: #d9d9d9;
  margin-bottom: 6px;
}
.pa-upload-item:hover svg {
  fill: #e4393c;
}
.pa-upload-item span {
  font-size: 12px;
  color: #999;
}
.pa-upload-item:hover span {
  color: #e4393c;
}
.pa-upload-item.has-image {
  border: 1px solid #e8e8e8;
  background: #fff;
  overflow: hidden;
}
.pa-upload-item.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pa-upload-item .pa-upload-delete {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pa-upload-item.has-image:hover .pa-upload-delete {
  display: flex;
}
.pa-upload-item .pa-upload-delete svg {
  width: 14px;
  height: 14px;
  fill: #fff;
  margin-bottom: 0;
}
.pa-upload-tip {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
  grid-column: 1 / -1;
}
.pa-upload-main {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pa-upload-main svg {
  width: 32px;
  height: 32px;
  fill: #d9d9d9;
  margin-bottom: 6px;
}
.pa-upload-main:hover svg {
  fill: #e4393c;
}
.pa-upload-main span {
  font-size: 13px;
  color: #999;
}
.pa-upload-main:hover span {
  color: #e4393c;
}
.pa-upload-main-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 11px;
  text-align: center;
  padding: 16px 0 4px;
  pointer-events: none;
}
.pa-upload-item.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}
.pa-upload-item.drag-over {
  border-color: #e4393c;
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(228, 57, 60, 0.15);
}
.pa-upload-item.uploading .pa-upload-spinner {
  display: block;
}
.pa-upload-spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid #f0f0f0;
  border-top-color: #e4393c;
  border-radius: 50%;
  animation: pa-spin 0.6s linear infinite;
}
@keyframes pa-spin {
  to {
    transform: rotate(360deg);
  }
}
.pa-upload-trigger {
  cursor: pointer;
}
.pa-upload-trigger .pa-upload-main {
  cursor: pointer;
}
.pa-spec-table-wrap {
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
}
.pa-spec-table {
  width: 100%;
  border-collapse: collapse;
}
.pa-spec-table thead th {
  background: #fafafa;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.pa-spec-table tbody td {
  padding: 8px 14px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}
.pa-spec-table tbody tr:last-child td {
  border-bottom: none;
}
.pa-spec-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.pa-spec-input:focus {
  border-color: #e4393c;
}
.pa-spec-del {
  padding: 4px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.pa-spec-del:hover {
  border-color: #ff4d4f;
  color: #ff4d4f;
}
.pa-add-spec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 12px;
}
.pa-add-spec:hover {
  border-color: #e4393c;
  color: #e4393c;
}
.pa-add-spec svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.sku-specs-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sku-spec-item {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 14px;
}
.sku-spec-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.sku-spec-name-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}
.sku-spec-name-input:focus {
  border-color: #e4393c;
}
.sku-spec-remove {
  padding: 4px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.sku-spec-remove:hover {
  border-color: #ff4d4f;
  color: #ff4d4f;
}
.sku-spec-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-left: 4px;
}
.sku-val-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
}
.sku-val-remove {
  border: none;
  background: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.sku-val-remove:hover {
  color: #ff4d4f;
}
.sku-new-val-input {
  width: 120px;
  padding: 6px 10px;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}
.sku-new-val-input:focus {
  border-color: #e4393c;
}
.sku-add-val-btn {
  padding: 4px 12px;
  border: 1px solid #e4393c;
  border-radius: 4px;
  background: #fff;
  color: #e4393c;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.sku-add-val-btn:hover {
  background: #e4393c;
  color: #fff;
}
.sku-add-spec-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  align-self: flex-start;
}
.sku-add-spec-btn:hover {
  border-color: #e4393c;
  color: #e4393c;
}
.sku-add-spec-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.sku-matrix-wrap {
  margin-top: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}
.sku-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sku-matrix-table thead th {
  background: #fafafa;
  padding: 10px 12px;
  font-weight: 600;
  color: #666;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.sku-matrix-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}
.sku-matrix-table tbody tr:last-child td {
  border-bottom: none;
}
.sku-cell-spec {
  color: #333;
  font-weight: 500;
}
.sku-cell-price input, .sku-cell-stock input, .sku-cell-code input {
  width: 90px;
  padding: 6px 8px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  text-align: center;
}
.sku-cell-code input {
  width: 140px;
}
.sku-cell-price input:focus, .sku-cell-stock input:focus, .sku-cell-code input:focus {
  border-color: #e4393c;
}
.sku-bulk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}
.sku-bulk-btn {
  padding: 4px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.sku-bulk-btn:hover {
  border-color: #e4393c;
  color: #e4393c;
}
.sku-bulk-input {
  width: 100px;
  padding: 6px 8px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  text-align: center;
}
.sku-bulk-input:focus {
  border-color: #e4393c;
}
.sku-tip {
  margin-top: 10px;
  padding: 8px 12px;
  background: #fdf6ec;
  border-radius: 6px;
  font-size: 12px;
  color: #b88230;
  line-height: 1.6;
}
.pm-multi-spec-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  border-radius: 3px;
  font-size: 11px;
  color: #1890ff;
  vertical-align: middle;
}
.pa-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pa-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #d9d9d9;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.pa-toggle.on {
  background: #e4393c;
}
.pa-toggle::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.pa-toggle.on::after {
  left: 22px;
}
.pa-toggle-label {
  font-size: 13px;
  color: #666;
}
.pa-bottom-actions {
  background: #fff;
  padding: 20px 24px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.pa-bottom-left {
  font-size: 13px;
  color: #999;
}
.pa-bottom-right {
  display: flex;
  gap: 10px;
}
.pa-editor {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.pa-editor:focus-within {
  border-color: #e4393c;
}
.pa-editor-toolbar {
  background: #fafafa;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.pa-editor-btn {
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}
.pa-editor-btn:hover {
  background: #e8e8e8;
  color: #333;
}
.pa-editor-body {
  min-height: 200px;
  padding: 14px;
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  outline: none;
}
.pa-editor-body:empty::before {
  content: '请输入商品详情描述...';
  color: #bbb;
}
.pa-form-group.has-error .pa-form-input, .pa-form-group.has-error .pa-form-select {
  border-color: #ef4444;
}
.pa-form-group.has-error .pa-form-input:focus, .pa-form-group.has-error .pa-form-select:focus {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}
.pa-field-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .pa-form-row {
    grid-template-columns: 1fr;
  }
  .pa-region-row {
    grid-template-columns: 1fr;
  }
  .pa-upload-area {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  .pa-upload-item {
    width: 100px;
    height: 100px;
  }
}
@media (max-width: 640px) {
  .pa-form-wrap {
    padding: 16px;
  }
  .pa-form-card-body {
    padding: 16px;
  }
  .pa-bottom-actions {
    flex-direction: column;
    gap: 12px;
  }
}
.ba-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.ba-breadcrumb a {
  color: var(--gray-400, #999);
  text-decoration: none;
  transition: color .2s;
}
.ba-breadcrumb a:hover {
  color: var(--primary, #e2383e);
}
.ba-breadcrumb .sep {
  color: var(--gray-300, #ccc);
}
.ba-breadcrumb .current {
  color: var(--gray-600, #555);
  font-weight: 500;
}
.ba-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.ba-page-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-700, #333);
  margin: 0;
}
.ba-page-header .ba-desc {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-top: 4px;
}
.ba-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.ba-stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.ba-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.ba-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ba-stat-icon svg {
  width: 24px;
  height: 24px;
}
.ba-stat-icon.blue {
  background: #eff6ff;
  color: #3b82f6;
}
.ba-stat-icon.green {
  background: #ecfdf5;
  color: #10b981;
}
.ba-stat-icon.orange {
  background: #fff7ed;
  color: #f59e0b;
}
.ba-stat-icon.red {
  background: #fef2f2;
  color: #ef4444;
}
.ba-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-700, #333);
  line-height: 1.2;
}
.ba-stat-label {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-top: 2px;
}
.ba-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.ba-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ba-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ba-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.ba-btn svg {
  width: 16px;
  height: 16px;
}
.ba-btn-primary {
  background: var(--primary, #e2383e);
  color: #fff;
  border-color: var(--primary, #e2383e);
}
.ba-btn-primary:hover {
  background: #c62d32;
  border-color: #c62d32;
}
.ba-btn-outline {
  background: #fff;
  color: var(--gray-600, #555);
  border-color: var(--gray-200, #ddd);
}
.ba-btn-outline:hover {
  border-color: var(--primary, #e2383e);
  color: var(--primary, #e2383e);
}
.ba-btn-danger {
  background: #fff;
  color: #ef4444;
  border-color: #fecaca;
}
.ba-btn-danger:hover {
  background: #fef2f2;
  border-color: #ef4444;
}
.ba-search {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--gray-200, #ddd);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.ba-search:focus-within {
  border-color: var(--primary, #e2383e);
  box-shadow: 0 0 0 3px rgba(226,56,62,.1);
}
.ba-search input {
  border: none;
  outline: none;
  padding: 7px 12px;
  font-size: 13px;
  width: 220px;
  color: var(--gray-700, #333);
}
.ba-search input::placeholder {
  color: var(--gray-300, #bbb);
}
.ba-search-btn {
  padding: 7px 14px;
  background: var(--primary, #e2383e);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .2s;
}
.ba-search-btn:hover {
  background: #c62d32;
}
.ba-search-btn svg {
  width: 16px;
  height: 16px;
}
.ba-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
}
.ba-tip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #f59e0b;
}
.ba-tip strong {
  color: #78350f;
}
.ba-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ba-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid transparent;
}
.ba-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.ba-card.default {
  border-color: var(--primary, #e2383e);
}
.ba-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  position: relative;
}
.ba-card.default .ba-card-top {
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
}
.ba-default-tag {
  position: absolute;
  top: 0;
  right: 24px;
  background: var(--primary, #e2383e);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 12px 4px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 1px;
}
.ba-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ba-bank-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.ba-bank-logo.icbc {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}
.ba-bank-logo.ccb {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.ba-bank-logo.abc {
  background: linear-gradient(135deg, #059669, #047857);
}
.ba-bank-logo.boc {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}
.ba-bank-logo.comm {
  background: linear-gradient(135deg, #0891b2, #0e7490);
}
.ba-bank-logo.cmb {
  background: linear-gradient(135deg, #dc2626, #9333ea);
}
.ba-bank-logo.spdb {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}
.ba-bank-logo.ceb {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.ba-bank-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700, #333);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ba-bank-name .ba-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 3px;
  letter-spacing: .5px;
}
.ba-tag-corp {
  background: #eff6ff;
  color: #3b82f6;
}
.ba-tag-private {
  background: #ecfdf5;
  color: #10b981;
}
.ba-branch {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-top: 3px;
}
.ba-account-number {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-600, #555);
  margin-top: 4px;
  letter-spacing: 1.5px;
  font-family: 'Courier New', monospace;
}
.ba-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ba-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #fafafa;
  border-top: 1px solid var(--gray-100, #f0f0f0);
  font-size: 12px;
  color: var(--gray-400, #999);
}
.ba-card-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ba-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ba-card-meta svg {
  width: 14px;
  height: 14px;
}
.ba-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.ba-card-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.ba-card-status .dot.green {
  background: #10b981;
}
.ba-card-status .dot.orange {
  background: #f59e0b;
}
.ba-card-status .dot.gray {
  background: #9ca3af;
}
.ba-card-status.verified {
  color: #10b981;
}
.ba-card-status.pending {
  color: #f59e0b;
}
.ba-card-status.disabled {
  color: #9ca3af;
}
.ba-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-400, #999);
}
.ba-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: var(--gray-300, #ccc);
}
.ba-empty p {
  font-size: 14px;
  margin-bottom: 16px;
}
@media (max-width: 1200px) {
  .ba-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .ba-bank-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .ba-stats {
    grid-template-columns: 1fr;
  }
  .ba-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ba-card-right {
    width: 100%;
    justify-content: flex-end;
  }
  .ba-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .ba-toolbar-left, .ba-toolbar-right {
    flex-wrap: wrap;
  }
  .ba-bank-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ba-modal {
    width: 95vw;
  }
  .ba-card-meta {
    flex-wrap: wrap;
    gap: 10px;
  }
}
.ba-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}
.ba-breadcrumb a {
  color: #4b5563;
  text-decoration: none;
}
.ba-breadcrumb a:hover {
  color: #1a73e8;
}
.ba-breadcrumb .sep {
  color: #d1d5db;
}
.ba-breadcrumb .current {
  color: #1f2937;
  font-weight: 500;
}
.ba-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ba-page-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}
.ba-desc {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 4px;
}
.ba-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.ba-stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}
.ba-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ba-stat-icon svg {
  width: 20px;
  height: 20px;
}
.ba-stat-icon.blue {
  background: #eff6ff;
  color: #3b82f6;
}
.ba-stat-icon.green {
  background: #ecfdf5;
  color: #10b981;
}
.ba-stat-icon.orange {
  background: #fffbeb;
  color: #f59e0b;
}
.ba-stat-icon.red {
  background: #fef2f2;
  color: #ef4444;
}
.ba-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}
.ba-stat-label {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}
.ba-tip {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #374151;
  margin-bottom: 16px;
}
.ba-tip svg {
  width: 18px;
  height: 18px;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 1px;
}
.ba-tip strong {
  color: #1e40af;
}
.ba-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.ba-toolbar-left {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ba-toolbar-right {
  display: flex;
  gap: 10px;
}
.ba-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: inherit;
}
.ba-btn svg {
  width: 15px;
  height: 15px;
}
.ba-btn-primary {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}
.ba-btn-primary:hover {
  background: #1557b0;
  border-color: #1557b0;
}
.ba-btn-outline {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}
.ba-btn-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.ba-btn-danger {
  background: #fff;
  color: #ef4444;
  border-color: #fecaca;
}
.ba-btn-danger:hover {
  background: #fef2f2;
  border-color: #ef4444;
}
.ba-search {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ba-search:focus-within {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}
.ba-search input {
  border: none;
  outline: none;
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
  width: 240px;
  color: #374151;
}
.ba-search input::placeholder {
  color: #9ca3af;
}
.ba-search-btn {
  border: none;
  background: transparent;
  padding: 7px 10px;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
}
.ba-search-btn:hover {
  color: #1a73e8;
}
.ba-search-btn svg {
  width: 16px;
  height: 16px;
}
.ba-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ba-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ba-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: #d1d5db;
}
.ba-card.default {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}
.ba-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: relative;
}
.ba-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.ba-card-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.ba-default-tag {
  position: absolute;
  top: -1px;
  left: -1px;
  background: linear-gradient(135deg, #1a73e8, #2563eb);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px 4px 20px;
  border-radius: 0 0 10px 0;
  letter-spacing: 0.5px;
}
.ba-bank-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 1px;
}
.ba-bank-logo.icbc {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}
.ba-bank-logo.ccb {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.ba-bank-logo.abc {
  background: linear-gradient(135deg, #16a34a, #047857);
}
.ba-bank-logo.boc {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}
.ba-bank-logo.comm {
  background: linear-gradient(135deg, #0891b2, #0e7490);
}
.ba-bank-logo.cmb {
  background: linear-gradient(135deg, #dc2626, #9333ea);
}
.ba-bank-logo.spdb {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}
.ba-bank-logo.ceb {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.ba-bank-info {
  min-width: 0;
}
.ba-bank-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ba-branch {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.ba-account-number {
  font-size: 13px;
  color: #374151;
  font-family: "SF Mono", "Menlo", monospace;
  margin-top: 3px;
  letter-spacing: 0.5px;
}
.ba-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}
.ba-tag-corp {
  background: #ecfdf5;
  color: #059669;
}
.ba-tag-private {
  background: #fef3c7;
  color: #b45309;
}
.ba-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f3f4f6;
  padding: 10px 20px;
  background: #fafbfc;
}
.ba-card-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #6b7280;
}
.ba-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ba-card-meta svg {
  width: 14px;
  height: 14px;
  color: #9ca3af;
}
.ba-card-status {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ba-card-status.verified {
  color: #059669;
}
.ba-card-status.pending {
  color: #d97706;
}
.ba-card-status.disabled {
  color: #9ca3af;
}
.ba-card-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.dot.green {
  background: #10b981;
}
.dot.orange {
  background: #f59e0b;
}
.dot.gray {
  background: #9ca3af;
}
.ba-form-container {
  margin-top: 8px;
}
.ba-form-group {
  margin-bottom: 20px;
}
.ba-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.ba-form-label .required {
  color: #ef4444;
  margin-left: 2px;
}
.ba-form-input {
  width: 100%;
  padding: 9px 13px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #1f2937;
  background: #fff;
  box-sizing: border-box;
}
.ba-form-input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}
.ba-form-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
  display: none;
}
.ba-form-group.has-error .ba-form-input {
  border-color: #ef4444;
}
.ba-form-group.has-error .ba-form-error {
  display: block;
}
.ba-bank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ba-bank-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  transition: all 0.2s;
  user-select: none;
}
.ba-bank-option:hover {
  border-color: #93c5fd;
  background: #f8faff;
}
.ba-bank-option.selected, .ba-bank-option:has(input:checked) {
  border-color: #1a73e8;
  background: #eff6ff;
}
.ba-bank-option .mini-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.ba-radio-group {
  display: flex;
  gap: 16px;
}
.ba-radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  padding: 8px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}
.ba-radio-item:has(input:checked) {
  border-color: #1a73e8;
  background: #eff6ff;
}
.ba-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 4px;
}
.ba-switch-label {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}
.ba-switch-desc {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.ba-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
}
.ba-switch input {
  display: none;
}
.ba-switch-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.ba-switch-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.ba-switch input:checked + .ba-switch-slider {
  background: #1a73e8;
}
.ba-switch input:checked + .ba-switch-slider::before {
  transform: translateX(20px);
}
@media (max-width: 1024px) {
  .ba-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .ba-bank-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .ba-stats {
    grid-template-columns: 1fr;
  }
  .ba-bank-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ba-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .ba-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .ba-card-right {
    align-self: flex-end;
  }
  .ba-card-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .ba-card-meta {
    flex-direction: column;
    gap: 4px;
  }
  .ba-search input {
    width: 100%;
  }
}
.sec-breadcrumb {
  font-size: 13px;
  color: var(--gray-400, #9ca3af);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-breadcrumb a {
  color: var(--gray-500, #6b7280);
  text-decoration: none;
  transition: color 0.2s;
}
.sec-breadcrumb a:hover {
  color: var(--primary, #e2383e);
}
.sec-bc-sep {
  color: var(--gray-300, #d1d5db);
}
.sec-bc-current {
  color: var(--gray-700, #374151);
  font-weight: 500;
}
.sec-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 32px 40px;
  margin-bottom: 24px;
}
.sec-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800, #1f2937);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-card-title svg {
  width: 22px;
  height: 22px;
}
.sec-card-desc {
  font-size: 14px;
  color: var(--gray-400, #9ca3af);
  margin-bottom: 32px;
}
.sec-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-100, #f3f4f6);
}
.sec-step {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--gray-100, #f3f4f6);
  color: var(--gray-400, #9ca3af);
  transition: all .3s;
}
.sec-step.active .sec-step-num {
  background: var(--primary, #e2383e);
  color: #fff;
}
.sec-step.done .sec-step-num {
  background: #10b981;
  color: #fff;
}
.sec-step-label {
  font-size: 14px;
  color: var(--gray-400, #9ca3af);
  font-weight: 500;
  transition: color .3s;
}
.sec-step.active .sec-step-label {
  color: var(--primary, #e2383e);
  font-weight: 600;
}
.sec-step.done .sec-step-label {
  color: #10b981;
}
.sec-step-line {
  width: 60px;
  height: 2px;
  background: var(--gray-100, #f3f4f6);
  margin: 0 12px;
  transition: background .3s;
}
.sec-step-line.done {
  background: #10b981;
}
.sec-form {
  max-width: 480px;
  margin: 0 auto;
}
.sec-form-group {
  margin-bottom: 24px;
}
.sec-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700, #374151);
  margin-bottom: 8px;
}
.sec-form-label .sec-required {
  color: var(--primary, #e2383e);
  margin-left: 2px;
}
.sec-form-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--gray-800, #1f2937);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  box-sizing: border-box;
}
.sec-form-input:focus {
  border-color: var(--primary, #e2383e);
  box-shadow: 0 0 0 3px rgba(226,56,62,.1);
}
.sec-form-input.error {
  border-color: var(--primary, #e2383e);
}
.sec-form-input:disabled {
  background: var(--gray-50, #f9fafb);
  color: var(--gray-400, #9ca3af);
  cursor: not-allowed;
}
.sec-form-input::placeholder {
  color: var(--gray-300, #d1d5db);
}
.sec-form-error {
  font-size: 12px;
  color: var(--primary, #e2383e);
  margin-top: 6px;
  display: none;
}
.sec-form-error.show {
  display: block;
}
.sec-form-hint {
  font-size: 12px;
  color: var(--gray-400, #9ca3af);
  margin-top: 6px;
}
.sec-pwd-strength {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}
.sec-pwd-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-100, #f3f4f6);
  transition: background .3s;
}
.sec-pwd-bar.weak {
  background: #ef4444;
}
.sec-pwd-bar.medium {
  background: #f59e0b;
}
.sec-pwd-bar.strong {
  background: #10b981;
}
.sec-pwd-text {
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
  white-space: nowrap;
}
.sec-pwd-text.weak {
  color: #ef4444;
}
.sec-pwd-text.medium {
  color: #f59e0b;
}
.sec-pwd-text.strong {
  color: #10b981;
}
.sec-input-row {
  display: flex;
  gap: 12px;
}
.sec-input-row .sec-form-input {
  flex: 1;
}
.sec-sms-btn {
  white-space: nowrap;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--primary, #e2383e);
  border-radius: 8px;
  background: #fff;
  color: var(--primary, #e2383e);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.sec-sms-btn:hover {
  background: #fef2f2;
}
.sec-sms-btn:disabled {
  border-color: var(--gray-200, #e5e7eb);
  color: var(--gray-400, #9ca3af);
  cursor: not-allowed;
  background: var(--gray-50, #f9fafb);
}
.sec-input-wrap {
  position: relative;
}
.sec-input-wrap .sec-form-input {
  padding-right: 44px;
}
.sec-pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400, #9ca3af);
  padding: 4px;
  transition: color .2s;
}
.sec-pwd-toggle:hover {
  color: var(--gray-600, #4b5563);
}
.sec-pwd-toggle svg {
  width: 20px;
  height: 20px;
}
.sec-btn {
  height: 44px;
  padding: 0 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sec-btn-primary {
  background: var(--primary, #e2383e);
  color: #fff;
}
.sec-btn-primary:hover {
  background: #c62f34;
}
.sec-btn-primary:disabled {
  background: var(--gray-200, #e5e7eb);
  color: var(--gray-400, #9ca3af);
  cursor: not-allowed;
}
.sec-btn-outline {
  background: #fff;
  color: var(--gray-600, #4b5563);
  border: 1px solid var(--gray-200, #e5e7eb);
}
.sec-btn-outline:hover {
  border-color: var(--gray-300, #d1d5db);
  background: var(--gray-50, #f9fafb);
}
.sec-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
.sec-success {
  text-align: center;
  padding: 40px 0;
}
.sec-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: sec-pop .4s ease;
}
.sec-success-icon svg {
  width: 36px;
  height: 36px;
  color: #fff;
}
@keyframes sec-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.sec-success-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800, #1f2937);
  margin-bottom: 8px;
}
.sec-success-desc {
  font-size: 14px;
  color: var(--gray-400, #9ca3af);
  margin-bottom: 24px;
}
.sec-phone-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gray-50, #f9fafb);
  border-radius: 10px;
  margin-bottom: 24px;
}
.sec-phone-preview-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sec-phone-preview-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}
.sec-phone-preview-info {
  flex: 1;
}
.sec-phone-preview-label {
  font-size: 12px;
  color: var(--gray-400, #9ca3af);
}
.sec-phone-preview-num {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800, #1f2937);
  letter-spacing: 1px;
}
.sec-email-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gray-50, #f9fafb);
  border-radius: 10px;
  margin-bottom: 24px;
}
.sec-email-preview-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sec-email-preview-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}
.sec-email-preview-info {
  flex: 1;
}
.sec-email-preview-label {
  font-size: 12px;
  color: var(--gray-400, #9ca3af);
}
.sec-email-preview-addr {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800, #1f2937);
}
.sec-tip {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
}
.sec-tip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #f59e0b;
}
.sec-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--gray-800, #1f2937);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  transition: transform .3s ease;
  pointer-events: none;
}
.sec-toast.show {
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 768px) {
  .sec-card {
    padding: 20px;
  }
  .sec-steps {
    flex-wrap: wrap;
    gap: 8px;
  }
  .sec-step-line {
    width: 30px;
  }
  .sec-form {
    max-width: 100%;
  }
}
.cp-picker-card {
  margin-bottom: 20px;
}
.cp-picker-body {
  padding: 0;
  overflow: hidden;
}
.cp-selected-path {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  color: #bbb;
}
.cp-selected-path.selected {
  color: #e4393c;
  font-weight: 500;
}
.cp-required-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: #e4393c;
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: 4px;
}
.cp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 12px 20px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}
.cp-crumb-item {
  color: #666;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.cp-crumb-item:hover {
  background: #f5f5f5;
  color: #e4393c;
}
.cp-crumb-current {
  color: #1a1a1a;
  font-weight: 600;
  cursor: default;
}
.cp-crumb-current:hover {
  background: transparent;
  color: #1a1a1a;
}
.cp-crumb-sep {
  color: #d9d9d9;
  margin: 0 2px;
  user-select: none;
}
.cp-list {
  overflow-y: auto;
  padding: 8px 12px;
  max-height: 320px;
}
.cp-list-item {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  gap: 8px;
  margin-bottom: 2px;
}
.cp-list-item:hover {
  background: #f8f8f8;
}
.cp-list-item.cp-back {
  color: #e4393c;
  font-weight: 500;
}
.cp-list-item.cp-back svg {
  width: 18px;
  height: 18px;
  fill: #e4393c;
}
.cp-list-item.cp-selected {
  background: #fff5f5;
  color: #e4393c;
  font-weight: 600;
}
.cp-item-name {
  flex: 1;
  font-size: 14px;
}
.cp-item-arrow {
  width: 18px;
  height: 18px;
  fill: #ccc;
  flex-shrink: 0;
}
.cp-list-item:hover .cp-item-arrow {
  fill: #999;
}
.cp-item-check {
  width: 18px;
  height: 18px;
  fill: #e4393c;
  flex-shrink: 0;
}
.cp-empty {
  justify-content: center;
  color: #bbb;
  cursor: default;
}
.cp-empty:hover {
  background: transparent;
}
.am-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
  gap: 12px;
}
.am-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.am-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.am-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
  transition: all 0.2s;
  white-space: nowrap;
}
.am-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.am-btn-primary {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.am-btn-primary:hover {
  background: #c62a2f;
  border-color: #c62a2f;
  color: #fff;
}
.am-btn svg {
  width: 15px;
  height: 15px;
}
.am-search {
  display: flex;
  align-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.am-search:focus-within {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,0.12);
}
.am-search input {
  border: none;
  outline: none;
  padding: 7px 12px;
  font-size: 13px;
  width: 220px;
  color: #333;
}
.am-search input::placeholder {
  color: #bbb;
}
.am-search-btn {
  padding: 7px 14px;
  background: #f5f5f5;
  border: none;
  border-left: 1px solid #d9d9d9;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #666;
  transition: all 0.2s;
}
.am-search-btn:hover {
  background: #e2383e;
  color: #fff;
}
.am-search-btn svg {
  width: 15px;
  height: 15px;
}
.am-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.am-filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
}
.am-filter-item label {
  white-space: nowrap;
}
.am-filter-item select, .am-filter-item input {
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}
.am-filter-item select:focus, .am-filter-item input:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,0.08);
}
.am-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 20px 0px;
}
.am-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.am-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.am-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.am-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.am-stat-icon.all {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}
.am-stat-icon.published {
  background: linear-gradient(135deg, #10b981, #34d399);
}
.am-stat-icon.draft {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.am-stat-icon.review {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}
.am-stat-icon.rejected {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
}
.am-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}
.am-stat-label {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.am-table-wrap {
  padding-bottom: 24px;
}
.am-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.am-table thead th {
  background: #fafafa;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}
.am-table tbody td {
  padding: 14px 16px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}
.am-table tbody tr:hover {
  background: #fffbfb;
}
.am-table tbody tr:last-child td {
  border-bottom: none;
}
.am-article-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.am-article-thumb {
  width: 60px;
  height: 42px;
  border-radius: 4px;
  background: #f5f5f5;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.am-article-thumb svg {
  width: 24px;
  height: 24px;
  fill: #ccc;
}
.am-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.am-article-title {
  font-weight: 500;
  color: #333;
  margin-bottom: 3px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.am-article-id {
  font-size: 12px;
  color: #bbb;
}
.am-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.am-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.am-status.published {
  background: #f0fdf4;
  color: #16a34a;
}
.am-status.published .am-status-dot {
  background: #16a34a;
}
.am-status.draft {
  background: #fffbeb;
  color: #d97706;
}
.am-status.draft .am-status-dot {
  background: #d97706;
}
.am-status.review {
  background: #eff6ff;
  color: #2563eb;
}
.am-status.review .am-status-dot {
  background: #2563eb;
}
.am-status.rejected {
  background: #fef2f2;
  color: #dc2626;
}
.am-status.rejected .am-status-dot {
  background: #dc2626;
}
.am-category-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: #f5f5f5;
  color: #666;
}
.am-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.am-action-link {
  color: #e2383e;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.am-action-link:hover {
  background: #fff1f1;
}
.am-action-link.disabled {
  color: #ccc;
  cursor: default;
}
.am-action-link.disabled:hover {
  background: transparent;
}
.am-action-sep {
  color: #e8e8e8;
  font-size: 12px;
}
.am-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #e2383e;
  cursor: pointer;
}
.am-batch {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #fff5f5, #fee2e2);
  border-bottom: 1px solid #fecaca;
  font-size: 13px;
  color: #333;
}
.am-batch.show {
  display: flex;
}
.am-batch-count {
  color: #e2383e;
  font-weight: 600;
}
.am-batch-btn {
  padding: 5px 14px;
  border-radius: 4px;
  border: 1px solid #e2383e;
  background: #fff;
  color: #e2383e;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.am-batch-btn:hover {
  background: #e2383e;
  color: #fff;
}
.am-batch-btn.danger {
  border-color: #dc2626;
  color: #dc2626;
}
.am-batch-btn.danger:hover {
  background: #dc2626;
  color: #fff;
}
.am-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 13px;
  color: #999;
}
.am-pagination-info span {
  color: #e2383e;
  font-weight: 600;
}
.am-pagination-btns {
  display: flex;
  gap: 4px;
}
.am-page-btn {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 8px;
}
.am-page-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.am-page-btn.active {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.am-page-btn.disabled {
  color: #ccc;
  cursor: default;
}
.am-page-btn.disabled:hover {
  border-color: #d9d9d9;
  color: #ccc;
}
.am-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.am-modal-overlay.show {
  display: flex;
}
.am-modal {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.am-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.am-modal-icon svg {
  width: 24px;
  height: 24px;
  fill: #e2383e;
}
.am-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 8px;
}
.am-modal-desc {
  font-size: 13px;
  color: #999;
  text-align: center;
  margin-bottom: 24px;
}
.am-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.am-modal-btn {
  padding: 8px 28px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
}
.am-modal-btn:hover {
  border-color: #999;
}
.am-modal-btn.danger {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.am-modal-btn.danger:hover {
  background: #c62a2f;
}
.aa-breadcrumb {
  padding: 12px 24px;
  font-size: 13px;
  color: #999;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.aa-breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
.aa-breadcrumb a:hover {
  color: #e2383e;
}
.aa-breadcrumb span {
  margin: 0 6px;
  color: #ccc;
}
.aa-breadcrumb .current {
  color: #333;
  font-weight: 500;
}
.aa-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.aa-page-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}
.aa-page-title svg {
  width: 22px;
  height: 22px;
  fill: #e2383e;
}
.aa-header-actions {
  display: flex;
  gap: 10px;
}
.aa-form-wrap {
  padding: 24px 0;
}
.aa-form-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 20px;
  overflow: hidden;
}
.aa-form-card-header {
  padding: 16px 24px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aa-form-card-header svg {
  width: 18px;
  height: 18px;
  fill: #e2383e;
}
.aa-form-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.aa-form-card-body {
  padding: 24px;
}
.aa-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.aa-form-row:last-child {
  margin-bottom: 0;
}
.aa-form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.aa-form-group.half {
  flex: 0 0 calc(50% - 10px);
}
.aa-form-group.full {
  flex: 0 0 100%;
}
.aa-form-label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.aa-form-label .required {
  color: #e2383e;
}
.aa-form-input, .aa-form-select, .aa-form-textarea {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  color: #333;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.aa-form-input:focus, .aa-form-select:focus, .aa-form-textarea:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,0.1);
}
.aa-form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.aa-form-input.error, .aa-form-select.error, .aa-form-textarea.error {
  border-color: #e2383e;
  background: #fff5f5;
}
.aa-form-error {
  font-size: 12px;
  color: #e2383e;
  margin-top: 4px;
  display: none;
}
.aa-form-error.show {
  display: block;
}
.aa-form-hint {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.aa-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  min-height: 40px;
  align-items: center;
  transition: border-color 0.2s;
  cursor: text;
}
.aa-tags-wrap:focus-within {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,0.1);
}
.aa-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #fff1f1;
  color: #e2383e;
  border-radius: 4px;
  font-size: 12px;
}
.aa-tag-item .aa-tag-remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.aa-tag-item .aa-tag-remove:hover {
  opacity: 1;
}
.aa-tags-input {
  border: none;
  outline: none;
  font-size: 13px;
  flex: 1;
  min-width: 80px;
  color: #333;
}
.aa-tags-input::placeholder {
  color: #bbb;
}
.aa-cover-upload {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.aa-cover-area {
  width: 200px;
  height: 130px;
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
  position: relative;
  overflow: hidden;
}
.aa-cover-area:hover {
  border-color: #e2383e;
  background: #fff5f5;
}
.aa-cover-area svg {
  width: 32px;
  height: 32px;
  fill: #ccc;
  transition: fill 0.2s;
}
.aa-cover-area:hover svg {
  fill: #e2383e;
}
.aa-cover-area span {
  font-size: 12px;
  color: #999;
}
.aa-cover-preview {
  width: 200px;
  height: 130px;
  border-radius: 8px;
  object-fit: cover;
  display: none;
  border: 2px solid #f0f0f0;
}
.aa-cover-tip {
  font-size: 12px;
  color: #999;
  line-height: 1.8;
  padding-top: 4px;
}
.aa-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  background: #fafafa;
  border: 1px solid #d9d9d9;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  flex-wrap: wrap;
}
.aa-editor-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
}
.aa-editor-btn:hover {
  background: #fff1f1;
  color: #e2383e;
}
.aa-editor-btn.active {
  background: #fff1f1;
  color: #e2383e;
}
.aa-editor-sep {
  width: 1px;
  height: 20px;
  background: #e8e8e8;
  margin: 0 4px;
}
.aa-editor-body {
  border: 1px solid #d9d9d9;
  border-radius: 0 0 6px 6px;
  min-height: 360px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}
.aa-editor-body:focus {
  border-color: #e2383e;
}
.aa-editor-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 16px 0 8px;
}
.aa-editor-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.aa-editor-body p {
  margin: 8px 0;
}
.aa-editor-body ul, .aa-editor-body ol {
  padding-left: 24px;
  margin: 8px 0;
}
.aa-editor-body blockquote {
  border-left: 4px solid #e2383e;
  padding: 8px 16px;
  margin: 12px 0;
  background: #fafafa;
  color: #666;
}
.aa-footer-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  z-index: 10;
}
.aa-switch-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.aa-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #d9d9d9;
  cursor: pointer;
  transition: background 0.3s;
}
.aa-switch.active {
  background: #e2383e;
}
.aa-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}
.aa-switch.active::after {
  transform: translateX(20px);
}
.aa-switch-label {
  font-size: 13px;
  color: #666;
}
@media (max-width: 1200px) {
  .am-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .am-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .aa-form-row {
    flex-direction: column;
  }
  .aa-form-group.half {
    flex: 0 0 100%;
  }
}
@media (max-width: 640px) {
  .am-stats {
    grid-template-columns: 1fr;
  }
  .am-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .am-toolbar-right {
    justify-content: flex-end;
  }
}
.ci-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #999;
  padding: 16px 24px 0;
}
.ci-breadcrumb a {
  color: #999;
  text-decoration: none;
  transition: color .2s;
}
.ci-breadcrumb a:hover {
  color: #e2383e;
}
.ci-breadcrumb .sep {
  margin: 0 2px;
}
.ci-breadcrumb .current {
  color: #333;
  font-weight: 500;
}
.ci-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
}
.ci-page-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}
.ci-header-actions {
  display: flex;
  gap: 10px;
}
.ci-content {
  padding: 20px 24px;
}
.ci-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  margin-bottom: 20px;
  overflow: hidden;
}
.ci-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.ci-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ci-card-title .ci-card-icon {
  width: 20px;
  height: 20px;
  color: #e2383e;
}
.ci-card-body {
  padding: 20px;
}
.ci-auth-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.ci-auth-banner.verified {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
}
.ci-auth-banner.pending {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
}
.ci-auth-banner.unverified {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
}
.ci-auth-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-auth-banner.verified .ci-auth-icon {
  background: #22c55e;
}
.ci-auth-banner.pending .ci-auth-icon {
  background: #f59e0b;
}
.ci-auth-banner.unverified .ci-auth-icon {
  background: #ef4444;
}
.ci-auth-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}
.ci-auth-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.ci-auth-banner.verified .ci-auth-info h3 {
  color: #15803d;
}
.ci-auth-banner.pending .ci-auth-info h3 {
  color: #92400e;
}
.ci-auth-banner.unverified .ci-auth-info h3 {
  color: #991b1b;
}
.ci-auth-info p {
  font-size: 13px;
  color: #666;
  margin: 0;
}
.ci-auth-action {
  margin-left: auto;
}
.ci-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.ci-info-item {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
  align-items: flex-start;
}
.ci-info-item:nth-child(odd) {
  padding-right: 30px;
}
.ci-info-item:nth-child(even) {
  padding-left: 30px;
  border-left: 1px solid #f5f5f5;
}
.ci-info-item:last-child, .ci-info-item:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}
.ci-info-label {
  width: 110px;
  flex-shrink: 0;
  font-size: 13px;
  color: #999;
  line-height: 1.6;
}
.ci-info-value {
  flex: 1;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
  word-break: break-all;
}
.ci-info-value .tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 12px;
  margin-left: 6px;
}
.ci-info-value .tag-green {
  background: #dcfce7;
  color: #15803d;
}
.ci-info-value .tag-orange {
  background: #fef3c7;
  color: #92400e;
}
.ci-info-value .tag-red {
  background: #fee2e2;
  color: #991b1b;
}
.ci-info-value .tag-blue {
  background: #dbeafe;
  color: #1e40af;
}
.ci-licence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ci-licence-card {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.ci-licence-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.ci-licence-img {
  height: 160px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ci-licence-img svg {
  width: 48px;
  height: 48px;
  color: #d1d5db;
}
.ci-licence-img .licence-status {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}
.ci-licence-img .licence-status.valid {
  background: #dcfce7;
  color: #15803d;
}
.ci-licence-img .licence-status.expiring {
  background: #fef3c7;
  color: #92400e;
}
.ci-licence-img .licence-status.expired {
  background: #fee2e2;
  color: #991b1b;
}
.ci-licence-footer {
  padding: 10px 14px;
}
.ci-licence-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}
.ci-licence-date {
  font-size: 12px;
  color: #999;
}
.ci-contact-table {
  width: 100%;
  border-collapse: collapse;
}
.ci-contact-table th {
  background: #fafafa;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.ci-contact-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
}
.ci-contact-table tr:hover td {
  background: #fafafa;
}
.ci-contact-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2383e, #f87171);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  margin-right: 8px;
  vertical-align: middle;
}
.ci-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.ci-modal-overlay.active {
  display: flex;
}
.ci-modal {
  background: #fff;
  border-radius: 12px;
  width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  animation: ciModalIn .25s ease;
}
@keyframes ciModalIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.ci-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f0;
}
.ci-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}
.ci-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all .2s;
}
.ci-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}
.ci-modal-body {
  padding: 20px 24px;
}
.ci-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid #f0f0f0;
}
.ci-form-group {
  margin-bottom: 18px;
}
.ci-form-group:last-child {
  margin-bottom: 0;
}
.ci-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}
.ci-form-label .required {
  color: #e2383e;
  margin-left: 2px;
}
.ci-form-input, .ci-form-select, .ci-form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  box-sizing: border-box;
}
.ci-form-input:focus, .ci-form-select:focus, .ci-form-textarea:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 3px rgba(226,56,62,.1);
}
.ci-form-input.error, .ci-form-select.error, .ci-form-textarea.error {
  border-color: #ef4444;
}
.ci-form-textarea {
  min-height: 80px;
  resize: vertical;
}
.ci-form-select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding-right: 32px;
}
.ci-form-hint {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.ci-form-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}
.ci-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ci-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.ci-btn svg {
  width: 16px;
  height: 16px;
}
.ci-btn-primary {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.ci-btn-primary:hover {
  background: #c52e34;
  border-color: #c52e34;
}
.ci-btn-outline {
  background: #fff;
  color: #666;
  border-color: #e0e0e0;
}
.ci-btn-outline:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.ci-btn-text {
  background: none;
  border: none;
  color: #e2383e;
  padding: 4px 8px;
}
.ci-btn-text:hover {
  color: #c52e34;
}
.ci-btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}
.ci-btn-success {
  background: #52c41a;
  color: #fff;
  border-color: #52c41a;
}
.ci-btn-success:hover {
  background: #49b016;
  border-color: #49b016;
}
.ci-btn-danger {
  background: #ff4d4f;
  color: #fff;
  border-color: #ff4d4f;
}
.ci-btn-danger:hover {
  background: #e63c3e;
  border-color: #e63c3e;
}
.ci-timeline {
  position: relative;
  padding-left: 24px;
}
.ci-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #f0f0f0;
}
.ci-timeline-item {
  position: relative;
  padding-bottom: 18px;
}
.ci-timeline-item:last-child {
  padding-bottom: 0;
}
.ci-timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  background: #fff;
}
.ci-timeline-item.done .ci-timeline-dot {
  background: #22c55e;
  border-color: #22c55e;
}
.ci-timeline-item.done .ci-timeline-dot::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ci-timeline-item.active .ci-timeline-dot {
  background: #e2383e;
  border-color: #e2383e;
  box-shadow: 0 0 0 3px rgba(226,56,62,.2);
}
.ci-timeline-content h4 {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}
.ci-timeline-content p {
  font-size: 12px;
  color: #999;
  margin: 0;
}
.ci-record-table {
  width: 100%;
  border-collapse: collapse;
}
.ci-record-table th {
  background: #fafafa;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.ci-record-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
}
@media (max-width: 900px) {
  .ci-info-grid {
    grid-template-columns: 1fr;
  }
  .ci-info-item:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
  .ci-info-item:nth-child(odd) {
    padding-right: 0;
  }
  .ci-licence-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ci-form-row {
    grid-template-columns: 1fr;
  }
  .ci-modal {
    width: 95%;
    margin: 10px;
  }
}
@media (max-width: 640px) {
  .ci-licence-grid {
    grid-template-columns: 1fr;
  }
  .ci-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .ci-content {
    padding: 16px;
  }
}
.cert-page {
  display: flex;
  min-height: 100vh;
  background: #f5f5f5;
}
.cert-content {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
}
.cert-breadcrumb {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cert-breadcrumb a {
  color: #666;
  text-decoration: none;
}
.cert-breadcrumb a:hover {
  color: var(--primary);
}
.cert-breadcrumb .sep {
  color: #ccc;
}
.cert-breadcrumb .current {
  color: #333;
  font-weight: 500;
}
.cert-banner {
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.cert-banner.pending {
  background: linear-gradient(135deg,#fff7ed,#ffedd5);
  border: 1px solid #fed7aa;
}
.cert-banner.certified {
  background: linear-gradient(135deg,#f0fdf4,#dcfce7);
  border: 1px solid #bbf7d0;
}
.cert-banner.rejected {
  background: linear-gradient(135deg,#fef2f2,#fecaca);
  border: 1px solid #fca5a5;
}
.cert-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.cert-banner.pending .cert-banner-icon {
  background: linear-gradient(135deg,#f97316,#ea580c);
}
.cert-banner.certified .cert-banner-icon {
  background: linear-gradient(135deg,#22c55e,#16a34a);
}
.cert-banner.rejected .cert-banner-icon {
  background: linear-gradient(135deg,#ef4444,#dc2626);
}
.cert-banner-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.cert-banner h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}
.cert-banner.pending h2 {
  color: #9a3412;
}
.cert-banner.certified h2 {
  color: #166534;
}
.cert-banner.rejected h2 {
  color: #991b1b;
}
.cert-banner p {
  font-size: 14px;
}
.cert-banner.pending p {
  color: #c2410c;
}
.cert-banner.certified p {
  color: #15803d;
}
.cert-banner.rejected p {
  color: #b91c1c;
}
.cert-banner-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}
.cert-banner-decor {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: .08;
}
.cert-banner.pending .cert-banner-decor {
  background: #f97316;
}
.cert-banner.certified .cert-banner-decor {
  background: #22c55e;
}
.cert-banner.rejected .cert-banner-decor {
  background: #ef4444;
}
.cert-progress {
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.cert-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #999;
}
.cert-progress-step.done {
  color: #16a34a;
}
.cert-progress-step.active {
  color: var(--primary);
  font-weight: 600;
}
.cert-progress-step .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: #e5e7eb;
  color: #999;
}
.cert-progress-step.done .dot {
  background: #22c55e;
  color: #fff;
}
.cert-progress-step.active .dot {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(226,56,62,.2);
}
.cert-progress-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin: 0 12px;
}
.cert-progress-line.done {
  background: #22c55e;
}
.cert-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  margin-bottom: 20px;
  overflow: hidden;
}
.cert-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cert-card-header .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-card-header .icon svg {
  width: 18px;
  height: 18px;
}
.cert-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  flex: 1;
}
.cert-card-header .badge {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
}
.cert-card-body {
  padding: 24px;
}
.cert-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cert-form-grid .full {
  grid-column: 1/-1;
}
.cert-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cert-form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cert-form-group label .req {
  color: var(--primary);
}
.cert-form-group input, .cert-form-group select, .cert-form-group textarea {
  padding: 10px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  transition: border-color .2s,box-shadow .2s;
  background: #fff;
  outline: none;
}
.cert-form-group input:focus, .cert-form-group select:focus, .cert-form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(226,56,62,.1);
}
.cert-form-group input.error, .cert-form-group select.error, .cert-form-group textarea.error {
  border-color: #ef4444;
}
.cert-form-group input:read-only {
  background: #f9fafb;
  color: #888;
  cursor: not-allowed;
}
.cert-form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.cert-form-group .hint {
  font-size: 12px;
  color: #999;
}
.cert-form-group .error-msg {
  font-size: 12px;
  color: #ef4444;
  display: none;
}
.cert-form-group .error-msg.show {
  display: block;
}
.cert-upload-area {
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.cert-upload-area:hover {
  border-color: var(--primary);
  background: rgba(226,56,62,.02);
}
.cert-upload-area input[type="file"] {
  display: none;
}
.cert-upload-icon {
  margin-bottom: 8px;
}
.cert-upload-icon svg {
  width: 40px;
  height: 40px;
  color: #bbb;
}
.cert-upload-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}
.cert-upload-hint {
  font-size: 12px;
  color: #999;
}
.cert-upload-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  margin-top: 12px;
}
.cert-upload-preview .file-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg,#3b82f6,#2563eb);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-upload-preview .file-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.cert-upload-preview .file-info {
  flex: 1;
}
.cert-upload-preview .file-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}
.cert-upload-preview .file-size {
  font-size: 12px;
  color: #999;
}
.cert-upload-preview .remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #fee2e2;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.cert-upload-preview .remove-btn:hover {
  background: #fecaca;
}
.cert-license-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cert-license-item {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
}
.cert-license-item .license-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cert-license-item .license-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.cert-license-item .license-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}
.cert-license-item .license-status.required {
  background: #fef2f2;
  color: #ef4444;
}
.cert-license-item .license-status.uploaded {
  background: #f0fdf4;
  color: #16a34a;
}
.cert-license-item .license-status.optional {
  background: #f0f9ff;
  color: #2563eb;
}
.cert-agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 24px;
  background: #fafafa;
  border-radius: 8px;
  margin-top: 20px;
}
.cert-agreement input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}
.cert-agreement label {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
.cert-agreement label a {
  color: var(--primary);
  text-decoration: none;
}
.cert-agreement label a:hover {
  text-decoration: underline;
}
.cert-submit-bar {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.cert-submit-bar .tips {
  font-size: 13px;
  color: #999;
}
.cert-submit-bar .tips span {
  color: var(--primary);
  font-weight: 500;
}
.cert-submit-btns {
  display: flex;
  gap: 12px;
}
.cert-btn {
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #666;
  transition: all .2s;
}
.cert-btn:hover {
  border-color: #999;
}
.cert-btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cert-btn-primary:hover {
  background: #c62828;
  border-color: #c62828;
}
.cert-btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.cert-btn-outline:hover {
  background: rgba(226,56,62,.06);
}
.cert-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
}
.cert-tip.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.cert-tip.warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.cert-tip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
@media (max-width:900px) {
  .cert-content {
    padding: 16px;
  }
  .cert-form-grid {
    grid-template-columns: 1fr;
  }
  .cert-license-list {
    grid-template-columns: 1fr;
  }
  .cert-submit-bar {
    flex-direction: column;
    gap: 12px;
  }
  .cert-submit-btns {
    width: 100%;
  }
  .cert-submit-btns .cert-btn {
    flex: 1;
    text-align: center;
  }
}
.cl-page {
  display: flex;
  min-height: 100vh;
  background: #f5f5f5;
}
.cl-main {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
}
.cl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}
.cl-breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color .2s;
}
.cl-breadcrumb a:hover {
  color: var(--primary, #e2383e);
}
.cl-breadcrumb span {
  color: #333;
}
.cl-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.cl-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
  cursor: default;
}
.cl-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.cl-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cl-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.cl-stat-icon.cl-si-all {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}
.cl-stat-icon.cl-si-pass {
  background: linear-gradient(135deg, #52c41a, #95de64);
}
.cl-stat-icon.cl-si-review {
  background: linear-gradient(135deg, #fa8c16, #ffd666);
}
.cl-stat-icon.cl-si-reject {
  background: linear-gradient(135deg, #ff4d4f, #ff9c9c);
}
.cl-stat-icon.cl-si-pending {
  background: linear-gradient(135deg, #1890ff, #69c0ff);
}
.cl-stat-info h4 {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.2;
}
.cl-stat-info p {
  font-size: 12px;
  color: #999;
  margin: 2px 0 0;
}
.cl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.cl-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cl-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
  transition: all .2s;
  white-space: nowrap;
}
.cl-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.cl-btn-primary {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.cl-btn-primary:hover {
  background: #c62a2f;
  border-color: #c62a2f;
  color: #fff;
}
.cl-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.cl-search {
  display: flex;
  align-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s;
}
.cl-search:focus-within {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,.1);
}
.cl-search input {
  border: none;
  outline: none;
  padding: 7px 12px;
  font-size: 13px;
  width: 220px;
}
.cl-search-btn {
  padding: 7px 14px;
  background: #e2383e;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.cl-search-btn:hover {
  background: #c62a2f;
}
.cl-search-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.cl-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cl-filter-select {
  padding: 7px 28px 7px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") right 10px center no-repeat;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.cl-filter-select:focus {
  border-color: #e2383e;
}
.cl-filter-date {
  padding: 7px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  outline: none;
  transition: border-color .2s;
}
.cl-filter-date:focus {
  border-color: #e2383e;
}
.cl-filter-sep {
  color: #ccc;
  font-size: 13px;
}
.cl-table-wrap {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  overflow: hidden;
}
.cl-table {
  width: 100%;
  border-collapse: collapse;
}
.cl-table thead {
  background: #fafafa;
}
.cl-table th {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}
.cl-table td {
  padding: 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}
.cl-table tbody tr:hover {
  background: #fff8f8;
}
.cl-table tbody tr:last-child td {
  border-bottom: none;
}
.cl-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #e2383e;
  cursor: pointer;
}
.cl-company-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cl-company-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.cl-company-avatar.ca-1 {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}
.cl-company-avatar.ca-2 {
  background: linear-gradient(135deg, #1890ff, #69c0ff);
}
.cl-company-avatar.ca-3 {
  background: linear-gradient(135deg, #52c41a, #95de64);
}
.cl-company-avatar.ca-4 {
  background: linear-gradient(135deg, #722ed1, #b37feb);
}
.cl-company-avatar.ca-5 {
  background: linear-gradient(135deg, #fa8c16, #ffd666);
}
.cl-company-avatar.ca-6 {
  background: linear-gradient(135deg, #13c2c2, #5cdbd3);
}
.cl-company-avatar.ca-7 {
  background: linear-gradient(135deg, #eb2f96, #ff85c0);
}
.cl-company-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
}
.cl-company-info p {
  font-size: 12px;
  color: #999;
  margin: 2px 0 0;
}
.cl-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.cl-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.cl-status-pass {
  background: #f6ffed;
  color: #52c41a;
}
.cl-status-pass .cl-status-dot {
  background: #52c41a;
}
.cl-status-review {
  background: #fff7e6;
  color: #fa8c16;
}
.cl-status-review .cl-status-dot {
  background: #fa8c16;
}
.cl-status-reject {
  background: #fff2f0;
  color: #ff4d4f;
}
.cl-status-reject .cl-status-dot {
  background: #ff4d4f;
}
.cl-status-pending {
  background: #e6f7ff;
  color: #1890ff;
}
.cl-status-pending .cl-status-dot {
  background: #1890ff;
}
.cl-status-expired {
  background: #f5f5f5;
  color: #999;
}
.cl-status-expired .cl-status-dot {
  background: #999;
}
.cl-cert-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}
.cl-cert-type.ct-primary {
  background: #fff1f0;
  color: #e2383e;
}
.cl-cert-type.ct-supplier {
  background: #e6f7ff;
  color: #1890ff;
}
.cl-cert-type.ct-agent {
  background: #f9f0ff;
  color: #722ed1;
}
.cl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cl-action-link {
  color: #e2383e;
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s;
  white-space: nowrap;
}
.cl-action-link:hover {
  color: #c62a2f;
  text-decoration: underline;
}
.cl-action-link.disabled {
  color: #ccc;
  cursor: not-allowed;
}
.cl-action-link.disabled:hover {
  text-decoration: none;
}
.cl-action-sep {
  color: #e8e8e8;
}
.cl-batch-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #fff5f5, #fee2e2);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #666;
}
.cl-batch-bar.show {
  display: flex;
}
.cl-batch-bar span {
  color: #e2383e;
  font-weight: 600;
}
.cl-batch-btn {
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
  transition: all .2s;
}
.cl-batch-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.cl-batch-btn.danger {
  color: #ff4d4f;
  border-color: #ffccc7;
}
.cl-batch-btn.danger:hover {
  background: #ff4d4f;
  color: #fff;
  border-color: #ff4d4f;
}
.cl-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.cl-progress-bar {
  width: 60px;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}
.cl-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s;
}
.cl-progress-fill.pf-green {
  background: #52c41a;
}
.cl-progress-fill.pf-orange {
  background: #fa8c16;
}
.cl-progress-fill.pf-red {
  background: #ff4d4f;
}
.cl-progress-fill.pf-blue {
  background: #1890ff;
}
.cl-expire {
  font-size: 13px;
}
.cl-expire.expiring {
  color: #fa8c16;
  font-weight: 500;
}
.cl-expire.expired {
  color: #ff4d4f;
}
.cl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.cl-pagination-info {
  font-size: 13px;
  color: #999;
}
.cl-pagination-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cl-page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  background: #fff;
  transition: all .2s;
}
.cl-page-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.cl-page-btn.active {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.cl-page-btn.disabled {
  color: #ccc;
  cursor: not-allowed;
  border-color: #f0f0f0;
}
.cl-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.cl-modal-overlay.show {
  display: flex;
}
.cl-modal {
  background: #fff;
  border-radius: 10px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  animation: cl-modal-in .25s;
}
@keyframes cl-modal-in {
  from {
    opacity: 0;
    transform: scale(.9) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.cl-modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cl-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}
.cl-modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  color: #999;
  transition: all .2s;
}
.cl-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}
.cl-modal-body {
  padding: 20px;
}
.cl-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cl-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 13px;
  color: #fff;
  transform: translateX(120%);
  transition: transform .3s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.cl-toast.show {
  transform: translateX(0);
}
.cl-toast.success {
  background: #52c41a;
}
.cl-toast.error {
  background: #ff4d4f;
}
.cl-toast.warning {
  background: #fa8c16;
}
.cl-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cl-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cl-detail-item label {
  font-size: 12px;
  color: #999;
}
.cl-detail-item span {
  font-size: 13px;
  color: #333;
}
.cl-detail-item.full {
  grid-column: 1 / -1;
}
.cl-detail-timeline {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.cl-detail-timeline h4 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px;
}
.cl-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cl-timeline-item {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 16px;
}
.cl-timeline-item:last-child {
  padding-bottom: 0;
}
.cl-timeline-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: #f0f0f0;
}
.cl-timeline-item:last-child::before {
  display: none;
}
.cl-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e2383e;
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}
.cl-timeline-dot.done {
  background: #52c41a;
}
.cl-timeline-dot.current {
  background: #fa8c16;
  box-shadow: 0 0 0 3px rgba(250,140,22,.2);
}
.cl-timeline-content h5 {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin: 0;
}
.cl-timeline-content p {
  font-size: 12px;
  color: #999;
  margin: 2px 0 0;
}
.cl-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}
@media (max-width: 1200px) {
  .cl-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .cl-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .cl-table {
    font-size: 12px;
  }
  .cl-table th, .cl-table td {
    padding: 10px 8px;
  }
  .cl-search input {
    width: 160px;
  }
}
@media (max-width: 640px) {
  .cl-stats {
    grid-template-columns: 1fr;
  }
  .cl-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .cl-toolbar-left, .cl-toolbar-right {
    flex-wrap: wrap;
  }
  .cl-filter {
    flex-direction: column;
    align-items: stretch;
  }
  .cl-table-wrap {
    overflow-x: auto;
  }
}
.dm-layout {
  display: flex;
  min-height: 100vh;
  background: #f5f5f5;
}
.dm-content {
  flex: 1;
  padding: 0;
  min-height: 100vh;
}
.dm-main {
  padding: 24px;
  max-width: 1400px;
}
.dm-breadcrumb {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}
.dm-breadcrumb a {
  color: #e2383e;
  text-decoration: none;
}
.dm-breadcrumb a:hover {
  text-decoration: underline;
}
.dm-breadcrumb span {
  margin: 0 6px;
  color: #ccc;
}
.dm-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dm-page-title {
  font-size: 22px;
  font-weight: 600;
  color: #222;
}
.dm-page-desc {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}
.dm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.dm-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dm-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.dm-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dm-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.dm-stat-icon.blue {
  background: linear-gradient(135deg, #4f8ef7, #2b6cb0);
}
.dm-stat-icon.green {
  background: linear-gradient(135deg, #48bb78, #38a169);
}
.dm-stat-icon.orange {
  background: linear-gradient(135deg, #f6ad55, #ed8936);
}
.dm-stat-icon.red {
  background: linear-gradient(135deg, #fc8181, #e53e3e);
}
.dm-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}
.dm-stat-label {
  font-size: 13px;
  color: #999;
  margin-top: 2px;
}
.dm-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.dm-tree-panel {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}
.dm-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.dm-tree-header-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
.dm-tree-header-actions {
  display: flex;
  gap: 6px;
}
.dm-tree-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.dm-tree-btn:hover {
  background: #fee2e2;
}
.dm-tree-btn svg {
  width: 16px;
  height: 16px;
  fill: #666;
}
.dm-tree-btn:hover svg {
  fill: #e2383e;
}
.dm-tree-search {
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.dm-tree-search input {
  width: 100%;
  height: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0 10px 0 30px;
  font-size: 13px;
  outline: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bbb'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 8px center / 16px no-repeat;
  transition: border-color 0.2s;
}
.dm-tree-search input:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,0.1);
}
.dm-tree {
  padding: 8px 0;
  max-height: 600px;
  overflow-y: auto;
}
.dm-tree::-webkit-scrollbar {
  width: 4px;
}
.dm-tree::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}
.dm-tree-node {
  user-select: none;
}
.dm-tree-row {
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 0;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 0;
  position: relative;
}
.dm-tree-row:hover {
  background: #fef2f2;
}
.dm-tree-row.active {
  background: #fee2e2;
  color: #e2383e;
}
.dm-tree-row.active .dm-tree-label {
  color: #e2383e;
  font-weight: 600;
}
.dm-tree-toggle {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s;
}
.dm-tree-toggle svg {
  width: 14px;
  height: 14px;
  fill: #999;
  transition: transform 0.2s;
}
.dm-tree-toggle.expanded svg {
  transform: rotate(90deg);
}
.dm-tree-toggle.empty {
  visibility: hidden;
}
.dm-tree-folder {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  flex-shrink: 0;
}
.dm-tree-folder svg {
  width: 100%;
  height: 100%;
}
.dm-tree-folder.folder svg {
  fill: #f6ad55;
}
.dm-tree-folder.folder-open svg {
  fill: #ed8936;
}
.dm-tree-label {
  flex: 1;
  font-size: 13px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-tree-count {
  font-size: 11px;
  color: #bbb;
  background: #f5f5f5;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  flex-shrink: 0;
}
.dm-tree-row.active .dm-tree-count {
  background: #fecaca;
  color: #e2383e;
}
.dm-tree-children {
  display: none;
}
.dm-tree-children.show {
  display: block;
}
.dm-tree-children .dm-tree-row {
  padding-left: 0;
}
.dm-table-panel {
  flex: 1;
  min-width: 0;
  margin-left: 20px;
}
.dm-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}
.dm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.dm-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dm-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dm-current-dept {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}
.dm-current-dept span {
  color: #e2383e;
}
.dm-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  background: #fff;
  color: #555;
  white-space: nowrap;
}
.dm-btn:hover {
  border-color: #ccc;
  background: #fafafa;
}
.dm-btn svg {
  width: 14px;
  height: 14px;
}
.dm-btn-primary {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.dm-btn-primary:hover {
  background: #c53030;
  border-color: #c53030;
}
.dm-btn-danger {
  color: #e2383e;
  border-color: #fecaca;
}
.dm-btn-danger:hover {
  background: #fff5f5;
  border-color: #e2383e;
}
.dm-btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.dm-table {
  width: 100%;
  border-collapse: collapse;
}
.dm-table th {
  background: #fafafa;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}
.dm-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}
.dm-table tr:hover td {
  background: #fef9f9;
}
.dm-dept-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dm-dept-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dm-dept-dot.level-0 {
  background: #e2383e;
}
.dm-dept-dot.level-1 {
  background: #f6ad55;
}
.dm-dept-dot.level-2 {
  background: #4f8ef7;
}
.dm-dept-dot.level-3 {
  background: #48bb78;
}
.dm-dept-name {
  font-weight: 500;
  color: #222;
}
.dm-dept-path {
  font-size: 11px;
  color: #bbb;
  margin-top: 2px;
}
.dm-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.dm-tag-blue {
  background: #ebf5ff;
  color: #2b6cb0;
}
.dm-tag-green {
  background: #f0fff4;
  color: #38a169;
}
.dm-tag-orange {
  background: #fffaf0;
  color: #c05621;
}
.dm-tag-red {
  background: #fff5f5;
  color: #e2383e;
}
.dm-tag-gray {
  background: #f7f7f7;
  color: #999;
}
.dm-leader {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dm-leader-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.dm-leader-avatar.c1 {
  background: linear-gradient(135deg, #f6ad55, #ed8936);
}
.dm-leader-avatar.c2 {
  background: linear-gradient(135deg, #4f8ef7, #2b6cb0);
}
.dm-leader-avatar.c3 {
  background: linear-gradient(135deg, #48bb78, #38a169);
}
.dm-leader-avatar.c4 {
  background: linear-gradient(135deg, #fc8181, #e53e3e);
}
.dm-leader-avatar.c5 {
  background: linear-gradient(135deg, #9f7aea, #805ad5);
}
.dm-leader-name {
  font-size: 13px;
  color: #333;
}
.dm-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.dm-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dm-status-dot.green {
  background: #48bb78;
}
.dm-status-dot.red {
  background: #e53e3e;
}
.dm-status-dot.orange {
  background: #ed8936;
}
.dm-action-link {
  color: #e2383e;
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
}
.dm-action-link:hover {
  text-decoration: underline;
}
.dm-action-sep {
  color: #e0e0e0;
  margin: 0 6px;
  font-size: 12px;
}
.dm-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
}
.dm-pagination-info {
  font-size: 13px;
  color: #999;
}
.dm-pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dm-page-btn {
  min-width: 32px;
  height: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.dm-page-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.dm-page-btn.active {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.dm-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.rm-layout {
  display: flex;
  min-height: 100vh;
  background: #f5f5f5;
}
.rm-content {
  flex: 1;
  padding: 0;
  min-height: 100vh;
}
.rm-main {
  padding: 24px;
  max-width: 1400px;
}
.rm-breadcrumb {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}
.rm-breadcrumb a {
  color: #e2383e;
  text-decoration: none;
}
.rm-breadcrumb a:hover {
  text-decoration: underline;
}
.rm-breadcrumb span {
  margin: 0 6px;
  color: #ccc;
}
.rm-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.rm-page-title {
  font-size: 22px;
  font-weight: 600;
  color: #222;
}
.rm-page-desc {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}
.rm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.rm-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.rm-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.rm-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rm-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.rm-stat-icon.blue {
  background: linear-gradient(135deg, #4f8ef7, #2b6cb0);
}
.rm-stat-icon.green {
  background: linear-gradient(135deg, #48bb78, #38a169);
}
.rm-stat-icon.orange {
  background: linear-gradient(135deg, #f6ad55, #ed8936);
}
.rm-stat-icon.red {
  background: linear-gradient(135deg, #fc8181, #e53e3e);
}
.rm-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}
.rm-stat-label {
  font-size: 13px;
  color: #999;
  margin-top: 2px;
}
.rm-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.rm-role-panel {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}
.rm-role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.rm-role-header-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
.rm-role-header-actions {
  display: flex;
  gap: 6px;
}
.rm-role-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.rm-role-btn:hover {
  background: #fee2e2;
}
.rm-role-btn svg {
  width: 16px;
  height: 16px;
  fill: #666;
}
.rm-role-btn:hover svg {
  fill: #e2383e;
}
.rm-role-search {
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.rm-role-search input {
  width: 100%;
  height: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0 10px 0 30px;
  font-size: 13px;
  outline: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bbb'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 8px center / 16px no-repeat;
  transition: border-color 0.2s;
}
.rm-role-search input:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,0.1);
}
.rm-role-list {
  padding: 8px 0;
  max-height: 650px;
  overflow-y: auto;
}
.rm-role-list::-webkit-scrollbar {
  width: 4px;
}
.rm-role-list::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}
.rm-role-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}
.rm-role-item:hover {
  background: #fef2f2;
}
.rm-role-item.active {
  background: #fee2e2;
  border-left-color: #e2383e;
}
.rm-role-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
}
.rm-role-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.rm-role-icon.admin {
  background: linear-gradient(135deg, #e53e3e, #c53030);
}
.rm-role-icon.purchase {
  background: linear-gradient(135deg, #4f8ef7, #2b6cb0);
}
.rm-role-icon.finance {
  background: linear-gradient(135deg, #48bb78, #38a169);
}
.rm-role-icon.viewer {
  background: linear-gradient(135deg, #a0aec0, #718096);
}
.rm-role-icon.supplier {
  background: linear-gradient(135deg, #f6ad55, #ed8936);
}
.rm-role-icon.custom {
  background: linear-gradient(135deg, #9f7aea, #805ad5);
}
.rm-role-info {
  flex: 1;
  min-width: 0;
}
.rm-role-name {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rm-role-item.active .rm-role-name {
  color: #e2383e;
  font-weight: 600;
}
.rm-role-meta {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rm-role-badge {
  display: inline-block;
  padding: 0 6px;
  border-radius: 3px;
  font-size: 11px;
  line-height: 18px;
}
.rm-role-badge.system {
  background: #fee2e2;
  color: #e53e3e;
}
.rm-role-badge.custom {
  background: #ebf4ff;
  color: #4f8ef7;
}
.rm-role-actions {
  display: none;
  gap: 4px;
}
.rm-role-item:hover .rm-role-actions {
  display: flex;
}
.rm-role-action-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.rm-role-action-btn svg {
  width: 14px;
  height: 14px;
  fill: #999;
}
.rm-role-action-btn:hover {
  background: #fff;
}
.rm-role-action-btn:hover svg {
  fill: #e2383e;
}
.rm-perm-panel {
  flex: 1;
  min-width: 0;
}
.rm-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 20px;
}
.rm-role-info-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rm-role-info-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rm-role-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rm-role-info-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.rm-role-info-name {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}
.rm-role-info-desc {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}
.rm-role-info-meta {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  font-size: 12px;
  color: #aaa;
}
.rm-role-info-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.rm-role-info-meta svg {
  width: 12px;
  height: 12px;
  fill: #bbb;
}
.rm-role-info-actions {
  display: flex;
  gap: 8px;
}
.rm-perm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.rm-perm-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rm-perm-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rm-perm-matrix {
  padding: 0;
}
.rm-perm-module {
  border-bottom: 1px solid #f0f0f0;
}
.rm-perm-module:last-child {
  border-bottom: none;
}
.rm-perm-module-header {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  background: #fafafa;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.rm-perm-module-header:hover {
  background: #f5f5f5;
}
.rm-perm-module-toggle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.rm-perm-module-toggle svg {
  width: 12px;
  height: 12px;
  fill: #999;
}
.rm-perm-module-toggle.expanded svg {
  transform: rotate(90deg);
}
.rm-perm-module-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}
.rm-perm-module-icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}
.rm-perm-module-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  flex: 1;
}
.rm-perm-module-checkall {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #999;
  cursor: pointer;
  margin-right: 8px;
}
.rm-perm-module-checkall:hover {
  color: #e2383e;
}
.rm-perm-module-count {
  font-size: 12px;
  color: #aaa;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
}
.rm-perm-module-count .checked {
  color: #e2383e;
  font-weight: 600;
}
.rm-perm-rows {
  display: none;
}
.rm-perm-rows.show {
  display: block;
}
.rm-perm-row {
  display: flex;
  align-items: center;
  padding: 12px 24px 12px 62px;
  border-top: 1px solid #f7f7f7;
  transition: background 0.1s;
}
.rm-perm-row:hover {
  background: #fefcff;
}
.rm-perm-name {
  width: 160px;
  font-size: 13px;
  color: #444;
  flex-shrink: 0;
}
.rm-perm-desc {
  width: 180px;
  font-size: 12px;
  color: #aaa;
  flex-shrink: 0;
}
.rm-perm-actions {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.rm-perm-check {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.rm-perm-check:hover {
  color: #e2383e;
}
.rm-perm-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #e2383e;
  cursor: pointer;
}
.rm-perm-check.checked {
  color: #e2383e;
  font-weight: 500;
}
.rm-members {
  padding: 20px 24px;
}
.rm-members-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.rm-members-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
.rm-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rm-member-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f9f9f9;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  font-size: 13px;
  color: #444;
  transition: all 0.15s;
}
.rm-member-chip:hover {
  border-color: #e2383e;
  background: #fef2f2;
}
.rm-member-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.rm-member-avatar.c1 {
  background: linear-gradient(135deg, #fc8181, #e53e3e);
}
.rm-member-avatar.c2 {
  background: linear-gradient(135deg, #63b3ed, #3182ce);
}
.rm-member-avatar.c3 {
  background: linear-gradient(135deg, #68d391, #38a169);
}
.rm-member-avatar.c4 {
  background: linear-gradient(135deg, #f6ad55, #ed8936);
}
.rm-member-avatar.c5 {
  background: linear-gradient(135deg, #b794f4, #805ad5);
}
.rm-member-avatar.c6 {
  background: linear-gradient(135deg, #f687b3, #d53f8c);
}
.rm-member-remove {
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.rm-member-chip:hover .rm-member-remove {
  opacity: 1;
}
.rm-member-remove svg {
  width: 12px;
  height: 12px;
  fill: #999;
}
.rm-member-remove:hover svg {
  fill: #e2383e;
}
.rm-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.rm-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.rm-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.rm-btn-primary {
  background: #e2383e;
  border-color: #e2383e;
  color: #fff;
}
.rm-btn-primary:hover {
  background: #c53030;
  border-color: #c53030;
  color: #fff;
}
.rm-btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.rm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
.rm-modal-overlay.show {
  display: flex;
}
.rm-modal {
  background: #fff;
  border-radius: 12px;
  width: 520px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: slideUp 0.25s;
}
.rm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}
.rm-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: #222;
}
.rm-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.rm-modal-close:hover {
  background: #fee2e2;
}
.rm-modal-close svg {
  width: 18px;
  height: 18px;
  fill: #666;
}
.rm-modal-body {
  padding: 24px;
}
.rm-form-group {
  margin-bottom: 18px;
}
.rm-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  margin-bottom: 6px;
}
.rm-form-label .required {
  color: #e2383e;
  margin-left: 2px;
}
.rm-form-input, .rm-form-select, .rm-form-textarea {
  width: 100%;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.rm-form-input:focus, .rm-form-select:focus, .rm-form-textarea:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,0.1);
}
.rm-form-input.error, .rm-form-select.error {
  border-color: #e53e3e;
}
.rm-form-error {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 4px;
  display: none;
}
.rm-form-hint {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}
.rm-form-textarea {
  height: 80px;
  padding: 10px 12px;
  resize: vertical;
}
.rm-form-select {
  appearance: auto;
}
.rm-form-row {
  display: flex;
  gap: 16px;
}
.rm-form-row .rm-form-group {
  flex: 1;
}
.rm-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
}
.rm-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
}
.rm-confirm-overlay.show {
  display: flex;
}
.rm-confirm {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  width: 400px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.rm-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.rm-confirm-icon svg {
  width: 28px;
  height: 28px;
  fill: #e53e3e;
}
.rm-confirm-title {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}
.rm-confirm-desc {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
  margin-bottom: 24px;
}
.rm-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.rm-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  color: #fff;
  z-index: 2000;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.rm-toast.success {
  background: linear-gradient(135deg, #48bb78, #38a169);
}
.rm-toast.error {
  background: linear-gradient(135deg, #fc8181, #e53e3e);
}
.rm-toast.show {
  transform: translateX(0);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1200px) {
  .rm-body {
    flex-direction: column;
  }
  .rm-role-panel {
    width: 100%;
  }
  .rm-role-list {
    max-height: 200px;
  }
  .rm-perm-desc {
    display: none;
  }
}
@media (max-width: 768px) {
  .rm-content {
    margin-left: 0;
  }
  .rm-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .rm-perm-row {
    padding-left: 24px;
    flex-wrap: wrap;
  }
  .rm-perm-name {
    width: 100%;
    margin-bottom: 8px;
  }
  .rm-perm-desc {
    display: none;
  }
  .rm-perm-actions {
    gap: 16px;
  }
  .rm-form-row {
    flex-direction: column;
    gap: 0;
  }
}
.je-layout {
  display: flex;
  min-height: 100vh;
  background: #f5f5f5;
}
.je-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.je-main {
  flex: 1;
  padding: 20px 24px;
  margin: 0 auto;
  width: 100%;
}
.je-breadcrumb {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.je-breadcrumb a {
  color: #888;
  text-decoration: none;
}
.je-breadcrumb a:hover {
  color: #e2383e;
}
.je-page-header {
  margin-bottom: 20px;
}
.je-page-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}
.je-page-desc {
  font-size: 13px;
  color: #999;
}
.je-steps {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 20px 32px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.je-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
}
.je-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  width: 20px;
  height: 2px;
  background: #e0e0e0;
  transform: translateY(-50%);
}
.je-step.active:not(:last-child)::after, .je-step.done:not(:last-child)::after {
  background: #e2383e;
}
.je-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: #f0f0f0;
  color: #aaa;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.je-step.active .je-step-num {
  background: linear-gradient(135deg, #e2383e, #c53030);
  color: #fff;
  box-shadow: 0 2px 8px rgba(226,56,62,0.3);
}
.je-step.done .je-step-num {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: #fff;
}
.je-step-text {
  font-size: 13px;
  color: #999;
  font-weight: 500;
}
.je-step.active .je-step-text {
  color: #e2383e;
  font-weight: 600;
}
.je-step.done .je-step-text {
  color: #48bb78;
}
.je-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 16px;
  overflow: hidden;
}
.je-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.je-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
}
.je-card-title .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}
.je-card-title .icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}
.je-card-body {
  padding: 20px;
}
.je-search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.je-search-input {
  flex: 1;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 14px 0 38px;
  font-size: 14px;
  outline: none;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23aaa'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 12px center/16px no-repeat;
  transition: all 0.2s;
}
.je-search-input:focus {
  border-color: #e2383e;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(226,56,62,0.08);
}
.je-search-btn {
  height: 40px;
  padding: 0 20px;
  background: linear-gradient(135deg, #e2383e, #c53030);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.je-search-btn:hover {
  opacity: 0.9;
}
.je-hot-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.je-hot-label {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
}
.je-hot-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #666;
  background: #f5f5f5;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.je-hot-tag:hover {
  background: #fff5f5;
  color: #e2383e;
  border-color: #fecaca;
}
.je-company-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.je-company-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.je-company-card:hover {
  border-color: #e2383e;
  box-shadow: 0 2px 12px rgba(226,56,62,0.1);
  transform: translateY(-1px);
}
.je-company-card.selected {
  border-color: #e2383e;
  background: #fff5f5;
}
.je-company-card.selected::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 32px 32px 0;
  border-color: transparent #e2383e transparent transparent;
}
.je-company-card.selected::after {
  content: '✓';
  position: absolute;
  top: 2px;
  right: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.je-company-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.je-company-info {
  flex: 1;
  min-width: 0;
}
.je-company-name {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.je-company-name .verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  color: #fff;
}
.je-company-name .verified.green {
  background: linear-gradient(135deg, #48bb78, #38a169);
}
.je-company-name .verified.orange {
  background: linear-gradient(135deg, #f6ad55, #ed8936);
}
.je-company-detail {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.je-company-detail span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.je-company-detail svg {
  width: 12px;
  height: 12px;
  fill: #bbb;
}
.je-company-tags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.je-company-tag {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
}
.je-company-tag.blue {
  background: #ebf4ff;
  color: #2b6cb0;
}
.je-company-tag.red {
  background: #fff5f5;
  color: #e2383e;
}
.je-company-tag.green {
  background: #f0fff4;
  color: #38a169;
}
.je-company-tag.purple {
  background: #faf5ff;
  color: #805ad5;
}
.je-company-tag.orange {
  background: #fffaf0;
  color: #dd6b20;
}
.je-company-action {
  flex-shrink: 0;
}
.je-join-btn {
  padding: 6px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e2383e;
  color: #e2383e;
  background: #fff;
  transition: all 0.2s;
}
.je-join-btn:hover {
  background: #e2383e;
  color: #fff;
}
.je-join-btn.joined {
  border-color: #48bb78;
  color: #48bb78;
  cursor: default;
  background: #f0fff4;
}
.je-join-btn.pending {
  border-color: #f6ad55;
  color: #dd6b20;
  cursor: default;
  background: #fffaf0;
}
.je-form-section {
  display: none;
}
.je-form-section.show {
  display: block;
}
.je-form-group {
  margin-bottom: 16px;
}
.je-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.je-form-label .required {
  color: #e2383e;
  margin-left: 2px;
}
.je-form-input {
  width: 100%;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.je-form-input:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 3px rgba(226,56,62,0.08);
}
.je-form-input.error {
  border-color: #e53e3e;
}
.je-form-select {
  width: 100%;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}
.je-form-select:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 3px rgba(226,56,62,0.08);
}
.je-form-textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  resize: vertical;
  transition: all 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}
.je-form-textarea:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 3px rgba(226,56,62,0.08);
}
.je-form-error {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 4px;
  display: none;
}
.je-form-hint {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}
.je-form-row {
  display: flex;
  gap: 12px;
}
.je-form-row .je-form-group {
  flex: 1;
}
.je-dept-select {
  position: relative;
}
.je-dept-trigger {
  width: 100%;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  transition: all 0.2s;
  box-sizing: border-box;
  color: #333;
}
.je-dept-trigger:focus, .je-dept-trigger.open {
  border-color: #e2383e;
  box-shadow: 0 0 0 3px rgba(226,56,62,0.08);
}
.je-dept-trigger svg {
  width: 14px;
  height: 14px;
  fill: #999;
  transition: transform 0.2s;
}
.je-dept-trigger.open svg {
  transform: rotate(180deg);
}
.je-dept-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  margin-top: 4px;
}
.je-dept-dropdown.show {
  display: block;
}
.je-dept-option {
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.je-dept-option:hover {
  background: #fff5f5;
  color: #e2383e;
}
.je-dept-option.selected {
  background: #fff5f5;
  color: #e2383e;
  font-weight: 600;
}
.je-dept-option.indent {
  padding-left: 28px;
}
.je-dept-option.indent2 {
  padding-left: 42px;
}
.je-invite-box {
  display: flex;
  gap: 10px;
  align-items: center;
}
.je-invite-input {
  flex: 1;
}
.je-selected-banner {
  display: none;
  background: linear-gradient(135deg, #fff5f5, #fee2e2);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.je-selected-banner.show {
  display: flex;
  align-items: center;
  gap: 16px;
}
.je-selected-banner .je-company-logo {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.je-selected-info {
  flex: 1;
}
.je-selected-name {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
.je-selected-detail {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
.je-selected-change {
  font-size: 13px;
  color: #e2383e;
  cursor: pointer;
  font-weight: 500;
}
.je-selected-change:hover {
  text-decoration: underline;
}
.je-app-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.je-app-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  transition: all 0.2s;
}
.je-app-item:hover {
  border-color: #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.je-app-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.je-app-info {
  flex: 1;
}
.je-app-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}
.je-app-meta {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.je-app-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}
.je-app-status.pending {
  background: #fffaf0;
  color: #dd6b20;
}
.je-app-status.approved {
  background: #f0fff4;
  color: #38a169;
}
.je-app-status.rejected {
  background: #fff5f5;
  color: #e53e3e;
}
.je-app-action {
  font-size: 12px;
  color: #e2383e;
  cursor: pointer;
  font-weight: 500;
}
.je-app-action:hover {
  text-decoration: underline;
}
.je-empty {
  text-align: center;
  padding: 40px 20px;
}
.je-empty svg {
  width: 64px;
  height: 64px;
  fill: #ddd;
  margin-bottom: 12px;
}
.je-empty-text {
  font-size: 14px;
  color: #aaa;
}
.je-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}
.je-btn {
  height: 38px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.je-btn:hover {
  border-color: #ccc;
  background: #fafafa;
}
.je-btn-primary {
  background: linear-gradient(135deg, #e2383e, #c53030);
  color: #fff;
  border: none;
}
.je-btn-primary:hover {
  opacity: 0.9;
  background: linear-gradient(135deg, #e2383e, #c53030);
}
.je-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.je-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}
.je-success.show {
  display: block;
}
.je-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #48bb78, #38a169);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: jePopIn 0.4s ease;
}
.je-success-icon svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}
.je-success-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}
.je-success-desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}
.je-success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
@keyframes jePopIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.je-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: #222;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.je-toast.show {
  transform: translateX(-50%) translateY(0);
}
.je-toast.success {
  background: linear-gradient(135deg, #48bb78, #38a169);
}
.je-toast.error {
  background: linear-gradient(135deg, #e53e3e, #c53030);
}
@media (max-width: 768px) {
  .je-main {
    padding: 16px;
  }
  .je-steps {
    padding: 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .je-step:not(:last-child)::after {
    display: none;
  }
  .je-company-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .je-form-row {
    flex-direction: column;
    gap: 0;
  }
  .je-search-box {
    flex-direction: column;
  }
}
.emp-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.emp-stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.emp-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.emp-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.emp-stat-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.emp-stat-icon.total {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}
.emp-stat-icon.active {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}
.emp-stat-icon.inactive {
  background: linear-gradient(135deg, #94a3b8, #cbd5e1);
}
.emp-stat-icon.trial {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.emp-stat-icon.pending {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}
.emp-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}
.emp-stat-label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}
.emp-toolbar {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.emp-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.emp-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.emp-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.emp-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
  white-space: nowrap;
}
.emp-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.emp-btn svg {
  width: 16px;
  height: 16px;
}
.emp-btn-primary {
  background: #e2383e;
  border-color: #e2383e;
  color: #fff;
}
.emp-btn-primary:hover {
  background: #c62d32;
  border-color: #c62d32;
  color: #fff;
}
.emp-btn-outline {
  background: #fff;
}
.emp-search {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0 12px;
  transition: border-color .2s, box-shadow .2s;
}
.emp-search:focus-within {
  border-color: #e2383e;
  box-shadow: 0 0 0 3px rgba(226,56,62,.1);
}
.emp-search svg {
  width: 16px;
  height: 16px;
  fill: #9ca3af;
  flex-shrink: 0;
}
.emp-search input {
  border: none;
  background: none;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  width: 200px;
  color: #1f2937;
}
.emp-search input::placeholder {
  color: #9ca3af;
}
.emp-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  flex-wrap: wrap;
}
.emp-filter label {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}
.emp-filter select, .emp-filter input[type="date"] {
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.emp-filter select:focus, .emp-filter input[type="date"]:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,.08);
}
.emp-filter-sep {
  color: #d1d5db;
}
.emp-batch {
  background: linear-gradient(135deg, #fff5f5, #fee2e2);
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
}
.emp-batch.show {
  display: flex;
}
.emp-batch-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #374151;
}
.emp-batch-left strong {
  color: #e2383e;
}
.emp-batch-btns {
  display: flex;
  gap: 8px;
}
.emp-table-wrap {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}
.emp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.emp-table thead {
  background: #f9fafb;
}
.emp-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.emp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: middle;
}
.emp-table tbody tr:hover {
  background: #fef2f2;
}
.emp-table tbody tr:last-child td {
  border-bottom: none;
}
.emp-ck {
  width: 16px;
  height: 16px;
  accent-color: #e2383e;
  cursor: pointer;
  vertical-align: middle;
}
.emp-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.emp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.emp-avatar.offline::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #9ca3af;
  border: 2px solid #fff;
  border-radius: 50%;
}
.emp-avatar.online::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
}
.emp-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
}
.emp-id {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}
.emp-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.emp-tag-admin {
  background: #fef2f2;
  color: #e2383e;
}
.emp-tag-manager {
  background: #eff6ff;
  color: #3b82f6;
}
.emp-tag-buyer {
  background: #f0fdf4;
  color: #16a34a;
}
.emp-tag-finance {
  background: #fefce8;
  color: #ca8a04;
}
.emp-tag-staff {
  background: #f3f4f6;
  color: #6b7280;
}
.emp-tag-supplier {
  background: #fff7ed;
  color: #ea580c;
}
.emp-tag-auditor {
  background: #faf5ff;
  color: #9333ea;
}
.emp-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.emp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.emp-dot-active {
  background: #22c55e;
}
.emp-dot-inactive {
  background: #9ca3af;
}
.emp-dot-trial {
  background: #f59e0b;
  animation: empPulse 2s infinite;
}
.emp-dot-pending {
  background: #3b82f6;
  animation: empPulse 2s infinite;
}
@keyframes empPulse {
  0%,100% {
    opacity: 1;
  }
  50% {
    opacity: .4;
  }
}
.emp-status-active {
  color: #16a34a;
}
.emp-status-inactive {
  color: #9ca3af;
}
.emp-status-trial {
  color: #d97706;
}
.emp-status-pending {
  color: #3b82f6;
}
.emp-dept {
  color: #374151;
}
.emp-dept-sub {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.emp-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.emp-act {
  padding: 4px 8px;
  font-size: 12px;
  color: #e2383e;
  cursor: pointer;
  border-radius: 4px;
  transition: background .15s;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  background: none;
}
.emp-act:hover {
  background: #fef2f2;
}
.emp-act.danger {
  color: #dc2626;
}
.emp-act.danger:hover {
  background: #fef2f2;
}
.emp-act-sep {
  color: #e5e7eb;
  font-size: 12px;
}
.emp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid #f3f4f6;
  font-size: 13px;
  color: #6b7280;
}
.emp-page-btns {
  display: flex;
  gap: 4px;
}
.emp-page-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  color: #374151;
  font-size: 13px;
  transition: all .15s;
}
.emp-page-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.emp-page-btn.active {
  background: #e2383e;
  border-color: #e2383e;
  color: #fff;
}
.emp-page-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
}
.msg-layout {
  display: flex;
  min-height: 100vh;
  background: #f5f5f5;
}
.msg-content {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
}
.msg-breadcrumb {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}
.msg-breadcrumb a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}
.msg-breadcrumb a:hover {
  color: #e2383e;
}
.msg-breadcrumb span {
  margin: 0 6px;
  color: #ccc;
}
.msg-breadcrumb .current {
  color: #1a1a1a;
}
.msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.msg-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}
.msg-header-actions {
  display: flex;
  gap: 8px;
}
.msg-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #666;
}
.msg-header-btn:hover {
  color: #e2383e;
  border-color: #e2383e;
}
.msg-header-btn.primary {
  background: #e2383e;
  border-color: #e2383e;
  color: #fff;
}
.msg-header-btn.primary:hover {
  background: #c62d32;
}
.msg-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.msg-stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.msg-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.msg-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.msg-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.msg-stat-icon.all {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}
.msg-stat-icon.order {
  background: linear-gradient(135deg, #1890ff, #40a9ff);
}
.msg-stat-icon.system {
  background: linear-gradient(135deg, #722ed1, #9254de);
}
.msg-stat-icon.audit {
  background: linear-gradient(135deg, #52c41a, #73d13d);
}
.msg-stat-icon.promo {
  background: linear-gradient(135deg, #fa8c16, #ffa940);
}
.msg-stat-icon.invitation {
  background: linear-gradient(135deg, #13c2c2, #36cfc9);
}
.msg-stat-icon.sourcing {
  background: linear-gradient(135deg, #389e0d, #52c41a);
}
.msg-stat-icon.payment {
  background: linear-gradient(135deg, #eb2f96, #f759ab);
}
.msg-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}
.msg-stat-label {
  font-size: 13px;
  color: #999;
  margin-top: 2px;
}
.msg-tabs {
  display: flex;
  background: #fff;
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 8px;
}
.msg-tab {
  background: none;
  border: none;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  padding: 14px 18px;
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.msg-tab:hover {
  color: #333;
}
.msg-tab.active {
  color: #e2383e;
  font-weight: 600;
}
.msg-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: #e2383e;
  border-radius: 1px;
}
.msg-tab-count {
  font-size: 11px;
  background: #e2383e;
  color: #fff;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}
.msg-tab-count.zero {
  background: #d9d9d9;
}
.msg-filter {
  background: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.msg-filter-label {
  font-size: 13px;
  color: #999;
  flex-shrink: 0;
}
.msg-filter-select, .msg-filter-input {
  padding: 7px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.msg-filter-select:focus, .msg-filter-input:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,0.1);
}
.msg-filter-select {
  min-width: 120px;
}
.msg-filter-input {
  width: 240px;
}
.msg-filter-btn {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #666;
}
.msg-filter-btn:hover {
  color: #e2383e;
  border-color: #e2383e;
}
.msg-filter-btn.primary {
  background: #e2383e;
  border-color: #e2383e;
  color: #fff;
}
.msg-filter-btn.primary:hover {
  background: #c62d32;
}
.msg-batch {
  background: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}
.msg-batch-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #666;
}
.msg-batch-left label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.msg-batch-left input[type="checkbox"] {
  accent-color: #e2383e;
  width: 15px;
  height: 15px;
}
.msg-batch-actions {
  display: flex;
  gap: 8px;
}
.msg-batch-btn {
  background: none;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}
.msg-batch-btn:hover {
  color: #e2383e;
  border-color: #e2383e;
}
.msg-batch-count {
  font-size: 13px;
  color: #999;
}
.msg-batch-count b {
  color: #e2383e;
}
.msg-list {
  background: #fff;
}
.msg-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid #fafafa;
  background-color: #ffffff;
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
}
.msg-item:hover {
  background: #fafafa;
}
.msg-item.unread {
  background: #fff8f8;
}
.msg-item.unread:hover {
  background: #fff1f0;
}
.msg-item-check {
  padding-top: 8px;
  flex-shrink: 0;
}
.msg-item-check input {
  accent-color: #e2383e;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.msg-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.msg-item-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.msg-item-icon.order-icon {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}
.msg-item-icon.audit-icon {
  background: linear-gradient(135deg, #52c41a, #73d13d);
}
.msg-item-icon.system-icon {
  background: linear-gradient(135deg, #1890ff, #40a9ff);
}
.msg-item-icon.promo-icon {
  background: linear-gradient(135deg, #fa8c16, #ffa940);
}
.msg-item-icon.payment-icon {
  background: linear-gradient(135deg, #722ed1, #9254de);
}
.msg-item-icon.invitation-icon {
  background: linear-gradient(135deg, #13c2c2, #36cfc9);
}
.msg-item-icon.sourcing-icon {
  background: linear-gradient(135deg, #389e0d, #52c41a);
}
.msg-item-body {
  flex: 1;
  min-width: 0;
}
.msg-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.msg-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-item-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 500;
  flex-shrink: 0;
}
.msg-item-tag.order {
  background: #fff1f0;
  color: #e2383e;
}
.msg-item-tag.audit {
  background: #f6ffed;
  color: #52c41a;
}
.msg-item-tag.system {
  background: #e6f7ff;
  color: #1890ff;
}
.msg-item-tag.promo {
  background: #fff7e6;
  color: #fa8c16;
}
.msg-item-tag.payment {
  background: #f9f0ff;
  color: #722ed1;
}
.msg-item-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.msg-item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #bbb;
}
.msg-item-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.msg-item-meta-item svg {
  width: 13px;
  height: 13px;
  fill: #ccc;
}
.msg-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 2px;
}
.msg-item-time {
  font-size: 12px;
  color: #bbb;
  white-space: nowrap;
}
.msg-item-dot {
  width: 8px;
  height: 8px;
  background: #e2383e;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
}
.msg-item-dot:hover {
  transform: scale(1.3);
}
.msg-item-actions {
  display: flex;
  gap: 8px;
}
.msg-item-action {
  background: none;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}
.msg-item-action:hover {
  color: #e2383e;
  border-color: #e2383e;
}
.msg-item-action.danger:hover {
  color: #ff4d4f;
  border-color: #ff4d4f;
}
.msg-empty {
  text-align: center;
  padding: 80px 20px;
}
.msg-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msg-empty-icon svg {
  width: 40px;
  height: 40px;
  fill: #d9d9d9;
}
.msg-empty-title {
  font-size: 16px;
  color: #999;
  margin-bottom: 8px;
}
.msg-empty-desc {
  font-size: 13px;
  color: #ccc;
}
.msg-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 20px;
  background: #fff;
}
.msg-page-btn {
  min-width: 32px;
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  transition: all 0.2s;
}
.msg-page-btn:hover {
  color: #e2383e;
  border-color: #e2383e;
}
.msg-page-btn.active {
  background: #e2383e;
  border-color: #e2383e;
  color: #fff;
}
.msg-page-btn.disabled {
  color: #d9d9d9;
  cursor: not-allowed;
}
.msg-page-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.msg-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: msg-fadein 0.2s;
}
.msg-modal-overlay.show {
  display: flex;
}
@keyframes msg-fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.msg-modal {
  background: #fff;
  border-radius: 12px;
  width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: msg-slideup 0.3s ease;
  overflow: hidden;
}
@keyframes msg-slideup {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.msg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}
.msg-modal-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
}
.msg-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}
.msg-modal-close:hover {
  background: #f5f5f5;
}
.msg-modal-close svg {
  width: 20px;
  height: 20px;
  fill: #999;
}
.msg-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.msg-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.msg-modal-meta-item {
  font-size: 13px;
  color: #999;
}
.msg-modal-meta-item b {
  color: #666;
  font-weight: 500;
}
.msg-modal-content {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
}
.msg-modal-content p {
  margin-bottom: 12px;
}
.msg-modal-content .highlight {
  background: #fff7e6;
  border-left: 3px solid #fa8c16;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin: 12px 0;
  font-size: 13px;
  color: #d48806;
}
.msg-modal-content .info-box {
  background: #e6f7ff;
  border-left: 3px solid #1890ff;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin: 12px 0;
  font-size: 13px;
  color: #0958d9;
}
.msg-modal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.msg-modal-content table th, .msg-modal-content table td {
  padding: 8px 12px;
  border: 1px solid #f0f0f0;
  font-size: 13px;
  text-align: left;
}
.msg-modal-content table th {
  background: #fafafa;
  color: #666;
  font-weight: 500;
}
.msg-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.msg-modal-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #666;
}
.msg-modal-btn:hover {
  color: #e2383e;
  border-color: #e2383e;
}
.msg-modal-btn.primary {
  background: #e2383e;
  border-color: #e2383e;
  color: #fff;
}
.msg-modal-btn.primary:hover {
  background: #c62d32;
}
.msg-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}
.msg-confirm-overlay.show {
  display: flex;
}
.msg-confirm-box {
  background: #fff;
  border-radius: 10px;
  padding: 28px 32px;
  width: 380px;
  text-align: center;
  animation: msg-slideup 0.25s ease;
}
.msg-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: #fff1f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msg-confirm-icon svg {
  width: 24px;
  height: 24px;
  fill: #e2383e;
}
.msg-confirm-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.msg-confirm-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
}
.msg-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.msg-confirm-btn {
  padding: 8px 24px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #666;
}
.msg-confirm-btn:hover {
  color: #e2383e;
  border-color: #e2383e;
}
.msg-confirm-btn.danger {
  background: #e2383e;
  border-color: #e2383e;
  color: #fff;
}
.msg-confirm-btn.danger:hover {
  background: #c62d32;
}
@media (max-width: 1200px) {
  .msg-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .msg-content {
    padding: 16px;
  }
  .msg-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .msg-filter {
    flex-direction: column;
    align-items: flex-start;
  }
  .msg-filter-input {
    width: 100%;
  }
  .msg-modal {
    width: 95%;
  }
}
.bid-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 32px 20px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.bid-step {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all .2s;
  white-space: nowrap;
}
.bid-step:hover {
  background: #fef2f2;
}
.bid-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  background: #f0f0f0;
  color: #999;
  transition: all .3s;
}
.bid-step.active .bid-step-num {
  background: var(--primary, #e2383e);
  color: #fff;
  box-shadow: 0 2px 8px rgba(226,56,62,.35);
}
.bid-step.done .bid-step-num {
  background: #52c41a;
  color: #fff;
}
.bid-step-label {
  font-size: 14px;
  color: #666;
  transition: color .2s;
}
.bid-step.active .bid-step-label {
  color: var(--primary, #e2383e);
  font-weight: 600;
}
.bid-step.done .bid-step-label {
  color: #52c41a;
}
.bid-step-line {
  width: 40px;
  height: 2px;
  background: #e8e8e8;
  margin: 0 4px;
  transition: background .3s;
}
.bid-step-line.done {
  background: #52c41a;
}
.bid-step-line.active {
  background: linear-gradient(90deg, #52c41a 50%, var(--primary, #e2383e) 50%);
}
.bid-form-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  margin-bottom: 20px;
  overflow: hidden;
}
.bid-form-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.bid-form-card-header svg {
  color: var(--primary, #e2383e);
}
.bid-form-card-body {
  padding: 24px;
}
.bid-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}
.bid-form-grid .full {
  grid-column: 1 / -1;
}
.bid-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bid-form-label {
  font-size: 13px;
  color: #555;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bid-form-label .required {
  color: var(--primary, #e2383e);
  font-size: 14px;
}
.bid-form-label .tip {
  color: #999;
  font-size: 12px;
  font-weight: 400;
}
.bid-form-input, .bid-form-select, .bid-form-textarea {
  padding: 9px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.bid-form-input:focus, .bid-form-select:focus, .bid-form-textarea:focus {
  border-color: var(--primary, #e2383e);
  box-shadow: 0 0 0 3px rgba(226,56,62,.08);
}
.bid-form-input.readonly {
  background: #f5f5f5;
  color: #888;
  cursor: not-allowed;
}
.bid-form-input.error, .bid-form-select.error, .bid-form-textarea.error {
  border-color: var(--primary, #e2383e);
  box-shadow: 0 0 0 3px rgba(226,56,62,.1);
}
.bid-form-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.6;
}
.bid-form-select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.bid-form-hint {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.bid-form-hint.warn {
  color: var(--primary, #e2383e);
}
.bid-form-hint.info {
  color: #1890ff;
}
.bid-form-error {
  font-size: 12px;
  color: var(--primary, #e2383e);
  margin-top: 2px;
  display: none;
}
.bid-form-group.has-error .bid-form-error {
  display: block;
}
.bid-input-suffix {
  display: flex;
  align-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.bid-input-suffix:focus-within {
  border-color: var(--primary, #e2383e);
  box-shadow: 0 0 0 3px rgba(226,56,62,.08);
}
.bid-input-suffix input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 12px;
  font-size: 14px;
  color: #333;
  background: transparent;
}
.bid-input-suffix .suffix {
  padding: 9px 12px;
  background: #fafafa;
  color: #999;
  font-size: 13px;
  border-left: 1px solid #d9d9d9;
}
.bid-section-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all .2s;
  background: #fff;
}
.bid-section-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.bid-section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fafafa;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background .2s;
  gap: 12px;
  flex-wrap: wrap;
}
.bid-section-card-header:hover {
  background: #f5f5f5;
}
.bid-section-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bid-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary, #e2383e);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.bid-section-id {
  font-size: 12px;
  color: #888;
  font-family: 'Courier New', monospace;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
}
.bid-section-name-input {
  padding: 5px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  width: 180px;
  transition: border-color .2s;
}
.bid-section-name-input:focus {
  border-color: var(--primary, #e2383e);
}
.bid-section-type-select {
  padding: 5px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 12px;
  outline: none;
  background: #fff;
}
.bid-section-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bid-section-budget {
  font-size: 13px;
  color: var(--primary, #e2383e);
  font-weight: 600;
}
.bid-section-detail-count {
  font-size: 12px;
  color: #888;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
}
.bid-section-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  transition: all .25s;
}
.bid-section-toggle-icon.rotated {
  transform: rotate(180deg);
}
.bid-section-card-base {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fcfcfc;
}
.bid-section-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bid-section-field label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}
.bid-section-field input {
  padding: 6px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.bid-section-field input:focus {
  border-color: var(--primary, #e2383e);
}
.bid-section-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.bid-section-detail.open {
  max-height: 2000px;
}
.bid-section-detail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff8f8;
  border-bottom: 1px solid #fde2e2;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}
.bid-detail-count-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--primary, #e2383e);
  color: #fff;
  font-size: 11px;
  padding: 0 5px;
  font-weight: 600;
}
.bid-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.bid-detail-table th {
  background: #fafafa;
  color: #666;
  font-weight: 500;
  padding: 8px 8px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  font-size: 12px;
}
.bid-detail-table td {
  padding: 6px 6px;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
  vertical-align: middle;
}
.bid-detail-table tr:hover td {
  background: #fffbfb;
}
.bid-detail-table input {
  padding: 4px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  font-size: 12px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s;
}
.bid-detail-table input:focus {
  border-color: var(--primary, #e2383e);
}
.bid-detail-summary td {
  padding: 10px 8px;
  background: #fafafa;
  border-top: 2px solid #e8e8e8;
  font-size: 13px;
}
.bid-btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}
.bid-btn-outline {
  background: #fff;
  color: var(--primary, #e2383e);
  border: 1px solid var(--primary, #e2383e);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
}
.bid-btn-outline:hover {
  background: var(--primary, #e2383e);
  color: #fff;
}
.bid-add-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  cursor: pointer;
  color: var(--primary, #e2383e);
  font-size: 13px;
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  margin-top: 12px;
  transition: all .2s;
}
.bid-add-row:hover {
  border-color: var(--primary, #e2383e);
  background: #fff8f8;
}
.bid-del-row {
  color: #999;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
  transition: all .2s;
  background: #fff;
}
.bid-del-row:hover {
  color: var(--primary, #e2383e);
  border-color: var(--primary, #e2383e);
}
.bid-supplier-search {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.bid-supplier-search input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}
.bid-supplier-search input:focus {
  border-color: var(--primary, #e2383e);
  box-shadow: 0 0 0 3px rgba(226,56,62,.08);
}
.bid-supplier-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}
.bid-supplier-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
}
.bid-supplier-item:hover {
  border-color: #e8a8ab;
  background: #fff8f8;
}
.bid-supplier-item.selected {
  border-color: var(--primary, #e2383e);
  background: #fff5f5;
  box-shadow: 0 0 0 1px var(--primary, #e2383e);
}
.bid-supplier-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.bid-supplier-item.selected .bid-supplier-check {
  background: var(--primary, #e2383e);
  border-color: var(--primary, #e2383e);
}
.bid-supplier-info {
  flex: 1;
  min-width: 0;
}
.bid-supplier-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}
.bid-supplier-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.bid-supplier-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  margin-left: 4px;
}
.bid-supplier-tag.cert {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}
.bid-supplier-tag.gold {
  background: #fff7e6;
  color: #fa8c16;
  border: 1px solid #ffd591;
}
.bid-invited-list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.bid-invited-title {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bid-invited-title span {
  color: var(--primary, #e2383e);
  font-weight: 600;
}
.bid-invited-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bid-invited-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 20px;
  font-size: 13px;
  color: #333;
}
.bid-invited-chip .remove {
  cursor: pointer;
  color: #999;
  font-size: 16px;
  line-height: 1;
  transition: color .2s;
}
.bid-invited-chip .remove:hover {
  color: var(--primary, #e2383e);
}
.bid-stage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}
.bid-stage-grid .full {
  grid-column: 1 / -1;
}
.bid-rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}
.bid-radio-group {
  display: flex;
  gap: 24px;
  align-items: center;
  height: 40px;
}
.bid-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  user-select: none;
}
.bid-radio input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all .2s;
  flex-shrink: 0;
}
.bid-radio input[type="radio"]:checked {
  border-color: var(--primary, #e2383e);
}
.bid-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary, #e2383e);
}
.bid-radio input[type="radio"]:hover {
  border-color: var(--primary, #e2383e);
}
.bid-form-select {
  width: 100%;
  height: 40px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  color: #333;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.bid-form-select:focus {
  border-color: var(--primary, #e2383e);
  box-shadow: 0 0 0 3px rgba(226,56,62,.1);
  outline: none;
}
.bid-time-tip {
  padding: 10px 16px;
  background: #fff7e6;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  font-size: 13px;
  color: #d48806;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bid-attachment-area {
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.bid-attachment-area:hover {
  border-color: var(--primary, #e2383e);
  background: #fff8f8;
}
.bid-attachment-area.dragover {
  border-color: var(--primary, #e2383e);
  background: #fff5f5;
}
.bid-attachment-icon {
  color: #bbb;
  margin-bottom: 12px;
}
.bid-attachment-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}
.bid-attachment-hint {
  font-size: 12px;
  color: #999;
}
.bid-attachment-list {
  margin-top: 16px;
}
.bid-attachment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  margin-bottom: 8px;
  transition: background .2s;
}
.bid-attachment-item:hover {
  background: #fafafa;
}
.bid-attachment-file-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.bid-attachment-file-icon.pdf {
  background: #e2383e;
}
.bid-attachment-file-icon.doc {
  background: #1890ff;
}
.bid-attachment-file-icon.xls {
  background: #52c41a;
}
.bid-attachment-file-icon.img {
  background: #722ed1;
}
.bid-attachment-file-icon.zip {
  background: #fa8c16;
}
.bid-attachment-file-info {
  flex: 1;
  min-width: 0;
}
.bid-attachment-file-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}
.bid-attachment-file-meta {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.bid-attachment-file-del {
  cursor: pointer;
  color: #999;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all .2s;
  font-size: 12px;
}
.bid-attachment-file-del:hover {
  color: var(--primary, #e2383e);
  background: #fff5f5;
}
.bid-bottom-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
  border-radius: 8px;
  margin-top: 8px;
}
.bid-bottom-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bid-bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bid-btn {
  padding: 9px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bid-btn-primary {
  background: var(--primary, #e2383e);
  color: #fff;
  box-shadow: 0 2px 4px rgba(226,56,62,.25);
}
.bid-btn-primary:hover {
  background: #c62d32;
  box-shadow: 0 4px 8px rgba(226,56,62,.35);
}
.bid-btn-primary:disabled {
  background: #ccc;
  box-shadow: none;
  cursor: not-allowed;
}
.bid-btn-default {
  background: #fff;
  color: #666;
  border: 1px solid #d9d9d9;
}
.bid-btn-default:hover {
  border-color: var(--primary, #e2383e);
  color: var(--primary, #e2383e);
}
.bid-btn-text {
  background: transparent;
  color: var(--primary, #e2383e);
  padding: 9px 12px;
}
.bid-btn-text:hover {
  background: #fff5f5;
}
.bid-breadcrumb {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bid-breadcrumb a {
  color: var(--primary, #e2383e);
  text-decoration: none;
}
.bid-breadcrumb a:hover {
  text-decoration: underline;
}
.bid-breadcrumb .sep {
  color: #ccc;
}
.bid-step-content {
  display: none;
  animation: bidFadeIn .3s;
}
.bid-step-content.active {
  display: block;
}
@keyframes bidFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.bid-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transform: translateX(120%);
  transition: transform .3s;
}
.bid-toast.show {
  transform: translateX(0);
}
.bid-toast.success {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}
.bid-toast.error {
  background: #fff2f0;
  color: #e2383e;
  border: 1px solid #ffccc7;
}
.bid-toast.info {
  background: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}
.bid-product-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.bid-product-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 8px;
}
.bid-product-dropdown-item:hover {
  background: #f5f5f5;
}
.bid-product-name {
  color: #333;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bid-product-sku {
  color: #999;
  font-size: 12px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .bid-form-grid {
    grid-template-columns: 1fr;
  }
  .bid-stage-grid {
    grid-template-columns: 1fr;
  }
  .bid-rule-grid {
    grid-template-columns: 1fr;
  }
  .bid-supplier-list {
    grid-template-columns: 1fr;
  }
  .bid-steps {
    padding: 16px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .bid-step-line {
    width: 20px;
  }
  .bid-section-card-base {
    grid-template-columns: 1fr;
  }
  .bid-section-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .bid-section-card-right {
    width: 100%;
    justify-content: flex-end;
  }
  .bid-detail-table {
    font-size: 11px;
  }
  .bid-detail-table th, .bid-detail-table td {
    padding: 5px 4px;
  }
}
@media (max-width: 640px) {
  .bid-form-card-body {
    padding: 16px;
  }
  .bid-bottom-bar {
    flex-direction: column;
    gap: 12px;
  }
  .bid-bottom-left, .bid-bottom-right {
    width: 100%;
    justify-content: center;
  }
  .bid-step-label {
    font-size: 12px;
  }
  .bid-section-name-input {
    width: 140px;
  }
}
.bl-page {
  min-height: 100vh;
}
.bl-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.bl-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #f0f0f0;
  transition: box-shadow .2s, transform .2s;
}
.bl-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.bl-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bl-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.bl-stat-icon.all {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}
.bl-stat-icon.publish {
  background: linear-gradient(135deg, #1890ff, #69c0ff);
}
.bl-stat-icon.review {
  background: linear-gradient(135deg, #fa8c16, #ffc53d);
}
.bl-stat-icon.done {
  background: linear-gradient(135deg, #52c41a, #95de64);
}
.bl-stat-icon.end {
  background: linear-gradient(135deg, #8c8c8c, #bfbfbf);
}
.bl-stat-info {
  flex: 1;
}
.bl-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.bl-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.bl-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 8px;
  padding: 0 4px;
  margin-bottom: 16px;
  border: 1px solid #f0f0f0;
  overflow-x: auto;
}
.bl-tab {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  position: relative;
}
.bl-tab:hover {
  color: var(--primary);
}
.bl-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.bl-tab-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.bl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.bl-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bl-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: var(--text-primary);
  transition: all .2s;
  white-space: nowrap;
}
.bl-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.bl-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.bl-btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.bl-btn-primary:hover {
  background: #c62a2f;
  border-color: #c62a2f;
  color: #fff;
}
.bl-btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.bl-btn-outline-primary:hover {
  background: #fff1f0;
}
.bl-filter {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1px solid #f0f0f0;
}
.bl-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.bl-filter-row:last-child {
  margin-bottom: 0;
}
.bl-filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.bl-filter-label {
  color: var(--text-secondary);
  white-space: nowrap;
}
.bl-filter-input, .bl-filter-select {
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}
.bl-filter-input:focus, .bl-filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(226,56,62,.1);
}
.bl-filter-input {
  width: 200px;
}
.bl-filter-select {
  width: 140px;
}
.bl-filter-date {
  width: 150px;
}
.bl-search-input {
  width: 260px;
  padding: 7px 12px 7px 34px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 10px center no-repeat;
}
.bl-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(226,56,62,.1);
}
.bl-table-wrap {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
}
.bl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.bl-table th {
  background: #fafafa;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}
.bl-table td {
  padding: 14px 14px;
  border-bottom: 1px solid #f5f5f5;
  color: var(--text-primary);
  vertical-align: top;
}
.bl-table tbody tr:hover {
  background: #fafafa;
}
.bl-table tbody tr:last-child td {
  border-bottom: none;
}
.bl-project-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bl-project-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.bl-project-icon.goods {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}
.bl-project-icon.service {
  background: linear-gradient(135deg, #1890ff, #69c0ff);
}
.bl-project-icon.engineering {
  background: linear-gradient(135deg, #fa8c16, #ffc53d);
}
.bl-project-icon.mixed {
  background: linear-gradient(135deg, #722ed1, #b37feb);
}
.bl-project-detail {
  flex: 1;
  min-width: 0;
}
.bl-project-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  cursor: pointer;
  transition: color .2s;
}
.bl-project-name:hover {
  color: var(--primary);
}
.bl-project-id {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}
.bl-project-tags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.bl-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.bl-tag-red {
  background: #fff1f0;
  color: #cf1322;
  border: 1px solid #ffa39e;
}
.bl-tag-blue {
  background: #e6f7ff;
  color: #096dd9;
  border: 1px solid #91d5ff;
}
.bl-tag-orange {
  background: #fff7e6;
  color: #d46b08;
  border: 1px solid #ffd591;
}
.bl-tag-green {
  background: #f6ffed;
  color: #389e0d;
  border: 1px solid #b7eb8f;
}
.bl-tag-purple {
  background: #f9f0ff;
  color: #531dab;
  border: 1px solid #d3adf7;
}
.bl-tag-gray {
  background: #fafafa;
  color: #8c8c8c;
  border: 1px solid #d9d9d9;
}
.bl-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
}
.bl-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bl-status-dot.publish {
  background: #1890ff;
}
.bl-status-dot.review {
  background: #fa8c16;
  animation: pulse 1.5s infinite;
}
.bl-status-dot.bidding {
  background: #e2383e;
  animation: pulse 1.5s infinite;
}
.bl-status-dot.evaluating {
  background: #722ed1;
  animation: pulse 1.5s infinite;
}
.bl-status-dot.done {
  background: #52c41a;
}
.bl-status-dot.cancelled {
  background: #8c8c8c;
}
.bl-status-dot.draft {
  background: #bfbfbf;
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .4;
  }
}
.bl-sections {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.bl-section-dot {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: #d9d9d9;
}
.bl-section-dot.active {
  background: var(--primary);
}
.bl-section-dot.done {
  background: #52c41a;
}
.bl-section-dot.pending {
  background: #fa8c16;
}
.bl-section-count {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 4px;
}
.bl-amount {
  font-weight: 600;
  color: var(--primary);
}
.bl-amount-small {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}
.bl-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bl-action-link {
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
}
.bl-action-link:hover {
  color: #c62a2f;
  text-decoration: underline;
}
.bl-action-link.disabled {
  color: #bfbfbf;
  cursor: not-allowed;
}
.bl-action-link.disabled:hover {
  text-decoration: none;
}
.bl-time {
  font-size: 13px;
  color: var(--text-primary);
}
.bl-time-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.bl-time-urgent {
  color: var(--primary);
  font-weight: 500;
}
.bl-batch-bar {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #fff1f0, #fff5f5);
  border: 1px solid #ffa39e;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}
.bl-batch-bar.show {
  display: flex;
}
.bl-batch-count {
  color: var(--primary);
  font-weight: 600;
}
.bl-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 16px 0;
}
.bl-page-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  color: var(--text-primary);
}
.bl-page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.bl-page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.bl-page-btn.disabled {
  color: #bfbfbf;
  cursor: not-allowed;
  border-color: #f0f0f0;
}
.bl-page-info {
  font-size: 13px;
  color: var(--text-secondary);
  margin-right: 12px;
}
.bl-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
  overflow-y: auto;
}
.bl-modal-overlay.show {
  display: flex;
}
.bl-modal {
  background: #fff;
  border-radius: 12px;
  width: 720px;
  max-width: 95vw;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  animation: slideDown .25s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.bl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}
.bl-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.bl-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all .2s;
}
.bl-modal-close:hover {
  background: #f5f5f5;
  color: var(--text-primary);
}
.bl-modal-body {
  padding: 24px;
}
.bl-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
}
.bl-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.bl-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bl-detail-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.bl-detail-value {
  font-size: 14px;
  color: var(--text-primary);
}
.bl-detail-section {
  margin-top: 20px;
}
.bl-detail-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 12px;
}
.bl-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.bl-detail-table th {
  background: #fafafa;
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid #f0f0f0;
}
.bl-detail-table td {
  padding: 8px 10px;
  border: 1px solid #f0f0f0;
  color: var(--text-primary);
}
.bl-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.bl-empty svg {
  width: 64px;
  height: 64px;
  fill: #d9d9d9;
  margin-bottom: 12px;
}
.bl-empty p {
  font-size: 14px;
  margin-bottom: 16px;
}
@media (max-width: 1200px) {
  .bl-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .bl-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .bl-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .bl-toolbar-left, .bl-toolbar-right {
    flex-wrap: wrap;
  }
  .bl-search-input {
    width: 100%;
  }
  .bl-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .bl-stats {
    grid-template-columns: 1fr;
  }
  .bl-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .bl-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .bl-filter-input, .bl-filter-select, .bl-filter-date {
    width: 100%;
  }
}
.bd-page {
  background: #f5f5f5;
  min-height: 100vh;
}
.bd-header {
  background: linear-gradient(135deg, #e2383e 0%, #c62828 100%);
  color: #fff;
  padding: 24px 32px;
  position: relative;
  overflow: hidden;
}
.bd-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.bd-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: 80px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.bd-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.bd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .2s;
}
.bd-back-btn:hover {
  background: rgba(255,255,255,0.15);
}
.bd-header-title {
  font-size: 22px;
  font-weight: 700;
  flex: 1;
}
.bd-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}
.bd-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  animation: bdPulse 2s infinite;
}
@keyframes bdPulse {
  0%,100% {
    opacity: 1;
  }
  50% {
    opacity: .4;
  }
}
.bd-header-meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
  opacity: .9;
  flex-wrap: wrap;
}
.bd-header-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bd-progress {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 20px 32px;
}
.bd-progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}
.bd-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #999;
  white-space: nowrap;
}
.bd-step.done {
  color: #e2383e;
}
.bd-step.active {
  color: #e2383e;
  font-weight: 600;
}
.bd-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ddd;
  font-size: 12px;
  font-weight: 700;
  color: #999;
  flex-shrink: 0;
}
.bd-step.done .bd-step-icon {
  background: #e2383e;
  border-color: #e2383e;
  color: #fff;
}
.bd-step.active .bd-step-icon {
  background: #fff;
  border-color: #e2383e;
  color: #e2383e;
  box-shadow: 0 0 0 3px rgba(226,56,62,.15);
}
.bd-step-line {
  width: 40px;
  height: 2px;
  background: #eee;
  flex-shrink: 0;
}
.bd-step.done + .bd-step-line {
  background: #e2383e;
}
.bd-step-cancel-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #999;
  border: 2px solid #999;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.bd-content {
  display: flex;
  gap: 20px;
  padding: 20px 0px;
  max-width: 1400px;
  margin: 0 auto;
}
.bd-main {
  flex: 1;
  min-width: 0;
}
.bd-side {
  width: 320px;
  flex-shrink: 0;
}
.bd-card {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
}
.bd-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.bd-card-header svg {
  color: #e2383e;
  flex-shrink: 0;
}
.bd-card-body {
  padding: 20px;
}
.bd-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}
.bd-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bd-info-item.full {
  grid-column: 1 / -1;
}
.bd-info-label {
  font-size: 12px;
  color: #999;
}
.bd-info-value {
  font-size: 14px;
  color: #333;
  word-break: break-all;
}
.bd-info-value.highlight {
  color: #e2383e;
  font-weight: 600;
}
.bd-info-value .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.bd-info-value .tag-red {
  background: #fff5f5;
  color: #e2383e;
}
.bd-info-value .tag-blue {
  background: #f0f5ff;
  color: #2b6cb0;
}
.bd-info-value .tag-green {
  background: #f0fff4;
  color: #38a169;
}
.bd-info-value .tag-orange {
  background: #fffaf0;
  color: #dd6b20;
}
.bd-info-value .tag-gray {
  background: #f7f7f7;
  color: #999;
}
.bd-info-value .warn-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff5f5;
  color: #e2383e;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.bd-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
.bd-rule-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.bd-rule-label {
  color: #666;
  min-width: 0;
}
.bd-rule-value {
  font-weight: 600;
  color: #333;
}
.bd-rule-value.yes {
  color: #e2383e;
}
.bd-rule-value.no {
  color: #999;
}
.bd-section-card {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.bd-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fafafa;
  cursor: pointer;
  transition: background .2s;
}
.bd-section-head:hover {
  background: #f5f5f5;
}
.bd-section-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2383e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.bd-section-name {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}
.bd-section-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 12px;
}
.bd-section-arrow {
  transition: transform .3s;
  color: #999;
}
.bd-section-card.open .bd-section-arrow {
  transform: rotate(180deg);
}
.bd-section-body {
  padding: 16px;
  display: none;
  border-top: 1px solid #f0f0f0;
}
.bd-section-card.open .bd-section-body {
  display: block;
}
.bd-section-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
  margin-bottom: 16px;
}
.bd-section-info-item {
  font-size: 13px;
}
.bd-section-info-item span {
  color: #999;
  margin-right: 4px;
}
.bd-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.bd-detail-table th {
  background: #fafafa;
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid #f0f0f0;
  white-space: nowrap;
}
.bd-detail-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
}
.bd-detail-table tr:last-child td {
  border-bottom: none;
}
.bd-detail-table .amount {
  color: #e2383e;
  font-weight: 600;
}
.bd-detail-table .total-row td {
  background: #fafafa;
  font-weight: 700;
  border-top: 2px solid #f0f0f0;
}
.bd-supplier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bd-supplier-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fafafa;
  min-width: 200px;
}
.bd-supplier-chip:hover {
  border-color: #e2383e;
  background: #fff5f5;
}
.bd-supplier-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.bd-supplier-info {
  flex: 1;
  min-width: 0;
}
.bd-supplier-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd-supplier-tag {
  font-size: 11px;
  color: #999;
}
.bd-req-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bd-req-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}
.bd-req-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.bd-req-icon.doc {
  background: #fff5f5;
  color: #e2383e;
}
.bd-req-icon.shield {
  background: #f0f5ff;
  color: #2b6cb0;
}
.bd-req-icon.money {
  background: #fffaf0;
  color: #dd6b20;
}
.bd-req-content {
  flex: 1;
}
.bd-req-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.bd-req-desc {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.bd-attach-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bd-attach-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  transition: background .2s;
  cursor: pointer;
}
.bd-attach-item:hover {
  background: #fafafa;
}
.bd-attach-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.bd-attach-icon.pdf {
  background: #e2383e;
}
.bd-attach-icon.xls {
  background: #38a169;
}
.bd-attach-icon.doc {
  background: #2b6cb0;
}
.bd-attach-icon.ppt {
  background: #dd6b20;
}
.bd-attach-icon.zip {
  background: #718096;
}
.bd-attach-info {
  flex: 1;
  min-width: 0;
}
.bd-attach-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd-attach-meta {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.bd-attach-dl {
  color: #e2383e;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}
.bd-attach-dl:hover {
  text-decoration: underline;
}
.bd-side-card {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
}
.bd-side-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  font-weight: 600;
}
.bd-side-card-header svg {
  color: #e2383e;
  flex-shrink: 0;
}
.bd-side-card-body {
  padding: 16px;
}
.bd-timeline {
  position: relative;
  padding-left: 24px;
}
.bd-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #f0f0f0;
}
.bd-tl-item {
  position: relative;
  padding-bottom: 16px;
}
.bd-tl-item:last-child {
  padding-bottom: 0;
}
.bd-tl-dot {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #ddd;
}
.bd-tl-item.done .bd-tl-dot {
  background: #e2383e;
  box-shadow: 0 0 0 2px #e2383e;
}
.bd-tl-item.current .bd-tl-dot {
  background: #fff;
  border: 3px solid #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,.2);
  animation: bdPulse 2s infinite;
}
.bd-tl-time {
  font-size: 11px;
  color: #999;
}
.bd-tl-text {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  margin-top: 2px;
}
.bd-tl-desc {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.bd-side-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bd-side-info-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.bd-side-info-label {
  color: #999;
}
.bd-side-info-value {
  color: #333;
  font-weight: 500;
}
.bd-side-info-value.red {
  color: #e2383e;
  font-weight: 700;
}
.bd-side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bd-side-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.bd-side-btn.primary {
  background: #e2383e;
  color: #fff;
}
.bd-side-btn.primary:hover {
  background: #c62828;
}
.bd-side-btn.outline {
  background: #fff;
  color: #e2383e;
  border: 1px solid #e2383e;
}
.bd-side-btn.outline:hover {
  background: #fff5f5;
}
.bd-side-btn.ghost {
  background: #f5f5f5;
  color: #666;
}
.bd-side-btn.ghost:hover {
  background: #eee;
}
.bd-phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bd-phase-item {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
  text-align: center;
}
.bd-phase-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}
.bd-phase-value {
  font-size: 13px;
  color: #333;
  font-weight: 600;
}
.bd-phase-item.active {
  border-color: #e2383e;
  background: #fff5f5;
}
.bd-phase-item.active .bd-phase-value {
  color: #e2383e;
}
.bd-phase-item.done {
  border-color: #38a169;
  background: #f0fff4;
}
.bd-phase-item.done .bd-phase-value {
  color: #38a169;
}
.bd-bottom-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.bd-bottom-bar .bd-back-btn {
  color: #666;
}
.bd-bottom-bar .bd-back-btn:hover {
  background: #f5f5f5;
}
.bd-bottom-actions {
  display: flex;
  gap: 10px;
}
@media (max-width: 900px) {
  .bd-header {
    padding: 16px;
  }
  .bd-header-title {
    font-size: 18px;
  }
  .bd-content {
    flex-direction: column;
    padding: 16px;
  }
  .bd-side {
    width: 100%;
  }
  .bd-info-grid {
    grid-template-columns: 1fr;
  }
  .bd-rule-grid {
    grid-template-columns: 1fr;
  }
  .bd-section-info {
    grid-template-columns: 1fr;
  }
  .bd-phase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bd-progress {
    padding: 16px;
  }
  .bd-step {
    font-size: 11px;
  }
  .bd-step-line {
    width: 20px;
  }
  .bd-bottom-bar {
    padding: 10px 16px;
  }
}
.hidden {
  display: none !important;
}
.cert-category-node-header:hover {
  background: #f0f0f0;
}
.cert-category-arrow.open {
  transform: rotate(90deg);
}
.cert-category-node-header label {
  width: 100%;
}
.settle-form-wrapper .field-error {
  display: none;
}
.settle-form-wrapper .field-error.visible {
  display: block;
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 6px;
}
.inv-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.inv-stat {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .2s,box-shadow .2s;
}
.inv-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.inv-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.inv-stat-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.inv-stat-icon.all {
  background: linear-gradient(135deg,#e2383e,#ff6b6b);
}
.inv-stat-icon.pending {
  background: linear-gradient(135deg,#f59e0b,#fbbf24);
}
.inv-stat-icon.joined {
  background: linear-gradient(135deg,#10b981,#34d399);
}
.inv-stat-icon.rejected {
  background: linear-gradient(135deg,#6b7280,#9ca3af);
}
.inv-stat-info {
  flex: 1;
}
.inv-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}
.inv-stat-label {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 2px;
}
.inv-toolbar {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.inv-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inv-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inv-filter {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.inv-filter label {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}
.inv-filter select,.inv-filter input[type="date"] {
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  outline: none;
  transition: border .2s;
}
.inv-filter select:focus,.inv-filter input[type="date"]:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,.15);
}
.inv-search {
  position: relative;
}
.inv-search input {
  height: 34px;
  width: 260px;
  border: 1px solid #e5e7eb;
  border-radius: 6px 0 0 6px;
  padding: 0 10px 0 32px;
  font-size: 13px;
  outline: none;
  transition: border .2s;
}
.inv-search input:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,.15);
}
.inv-search svg {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: #9ca3af;
}
.inv-search-btn {
  height: 34px;
  padding: 0 16px;
  background: #e2383e;
  color: #fff;
  border: 1px solid #e2383e;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
}
.inv-search-btn:hover {
  background: #c72e34;
}
.inv-btn-reset {
  height: 34px;
  padding: 0 16px;
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.inv-btn-reset:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.inv-tabs {
  background: #fff;
  border-radius: 8px;
  padding: 0 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}
.inv-tab {
  padding: 14px 20px;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  position: relative;
  transition: color .2s;
  white-space: nowrap;
}
.inv-tab:hover {
  color: #e2383e;
}
.inv-tab.active {
  color: #e2383e;
  font-weight: 600;
}
.inv-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #e2383e;
  border-radius: 1px;
}
.inv-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #fee2e2;
  color: #e2383e;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
  margin-left: 4px;
}
.inv-table-wrap {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
}
.inv-table {
  width: 100%;
  border-collapse: collapse;
}
.inv-table thead {
  background: #fafafa;
}
.inv-table th {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0;
}
.inv-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}
.inv-table tbody tr {
  transition: background .15s;
}
.inv-table tbody tr:hover {
  background: #fafafa;
}
.inv-table tbody tr:last-child td {
  border-bottom: none;
}
.inv-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #e2383e;
  cursor: pointer;
}
.inv-title-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.inv-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inv-title:hover {
  color: #e2383e;
  cursor: pointer;
}
.inv-sub {
  font-size: 12px;
  color: #9ca3af;
}
.inv-project-id {
  font-family: 'Courier New',monospace;
  font-size: 12px;
  color: #6b7280;
  background: #f9fafb;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
.inv-unit {
  font-size: 13px;
  color: #374151;
}
.inv-time {
  font-size: 13px;
  color: #6b7280;
}
.inv-time-warn {
  color: #e2383e;
  font-weight: 600;
}
.inv-time-warn svg {
  width: 14px;
  height: 14px;
  fill: #e2383e;
  vertical-align: middle;
  margin-right: 2px;
}
.inv-time-tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
}
.inv-time-tag.urgent {
  background: #fee2e2;
  color: #e2383e;
}
.inv-time-tag.normal {
  background: #f0fdf4;
  color: #16a34a;
}
.inv-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.inv-status.pending {
  background: #fff7ed;
  color: #ea580c;
}
.inv-status.joined {
  background: #f0fdf4;
  color: #16a34a;
}
.inv-status.rejected {
  background: #f3f4f6;
  color: #6b7280;
}
.inv-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.inv-status.pending .inv-status-dot {
  background: #ea580c;
}
.inv-status.joined .inv-status-dot {
  background: #16a34a;
}
.inv-status.rejected .inv-status-dot {
  background: #9ca3af;
}
.inv-status.pending .inv-status-dot {
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%,100% {
    opacity: 1;
  }
  50% {
    opacity: .4;
  }
}
.inv-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid;
  transition: all .2s;
  white-space: nowrap;
}
.inv-action-btn.view {
  color: #e2383e;
  border-color: #fecaca;
  background: #fff;
}
.inv-action-btn.view:hover {
  background: #fef2f2;
}
.inv-action-btn.join {
  color: #fff;
  border-color: #e2383e;
  background: #e2383e;
}
.inv-action-btn.join:hover {
  background: #c72e34;
}
.inv-action-btn.reject {
  color: #6b7280;
  border-color: #e5e7eb;
  background: #fff;
}
.inv-action-btn.reject:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.inv-action-btn.detail {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #fff;
}
.inv-action-btn.detail:hover {
  background: #eff6ff;
}
.inv-batch {
  background: linear-gradient(135deg,#fef2f2,#fff5f5);
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 16px;
}
.inv-batch.show {
  display: flex;
}
.inv-batch-info {
  font-size: 13px;
  color: #e2383e;
  font-weight: 600;
}
.inv-batch-btn {
  height: 30px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid;
  transition: all .2s;
}
.inv-batch-btn.join {
  color: #fff;
  background: #e2383e;
  border-color: #e2383e;
}
.inv-batch-btn.join:hover {
  background: #c72e34;
}
.inv-batch-btn.reject {
  color: #6b7280;
  background: #fff;
  border-color: #e5e7eb;
}
.inv-batch-btn.reject:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.inv-batch-cancel {
  font-size: 12px;
  color: #9ca3af;
  cursor: pointer;
  margin-left: auto;
}
.inv-batch-cancel:hover {
  color: #e2383e;
}
.inv-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #f5f5f5;
}
.inv-pagination-info {
  font-size: 13px;
  color: #9ca3af;
}
.inv-pagination-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}
.inv-page-btn {
  min-width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.inv-page-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.inv-page-btn.active {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.inv-page-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
}
.inv-empty {
  text-align: center;
  padding: 60px 20px;
}
.inv-empty svg {
  width: 64px;
  height: 64px;
  fill: #d1d5db;
  margin-bottom: 12px;
}
.inv-empty p {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 16px;
}
.inv-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.inv-modal-overlay.show {
  display: flex;
}
.inv-modal {
  background: #fff;
  border-radius: 12px;
  width: 600px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.inv-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.inv-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}
.inv-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.inv-modal-close:hover {
  background: #f3f4f6;
}
.inv-modal-close svg {
  width: 18px;
  height: 18px;
  fill: #9ca3af;
}
.inv-modal-body {
  padding: 24px;
}
.inv-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.inv-detail-section {
  margin-bottom: 24px;
}
.inv-detail-section:last-child {
  margin-bottom: 0;
}
.inv-detail-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.inv-detail-section-title svg {
  width: 16px;
  height: 16px;
  fill: #e2383e;
}
.inv-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.inv-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.inv-detail-label {
  font-size: 12px;
  color: #9ca3af;
}
.inv-detail-value {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}
.inv-detail-value.id {
  font-family: 'Courier New',monospace;
  font-size: 12px;
  background: #f9fafb;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
.inv-detail-value.status-pending {
  color: #ea580c;
  font-weight: 600;
}
.inv-detail-value.status-joined {
  color: #16a34a;
  font-weight: 600;
}
.inv-detail-value.status-rejected {
  color: #6b7280;
}
.inv-detail-timeline {
  position: relative;
  padding-left: 24px;
}
.inv-detail-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #f0f0f0;
}
.inv-detail-tl-item {
  position: relative;
  padding-bottom: 16px;
}
.inv-detail-tl-item:last-child {
  padding-bottom: 0;
}
.inv-detail-tl-dot {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #fff;
}
.inv-detail-tl-dot.done {
  background: #e2383e;
  border-color: #e2383e;
}
.inv-detail-tl-dot.current {
  background: #fff;
  border-color: #e2383e;
  box-shadow: 0 0 0 3px rgba(226,56,62,.2);
}
.inv-detail-tl-text {
  font-size: 13px;
  color: #374151;
}
.inv-detail-tl-time {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.inv-confirm-body {
  text-align: center;
  padding: 20px 0;
}
.inv-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inv-confirm-icon.reject {
  background: #fef2f2;
}
.inv-confirm-icon.reject svg {
  width: 28px;
  height: 28px;
  fill: #e2383e;
}
.inv-confirm-icon.join {
  background: #f0fdf4;
}
.inv-confirm-icon.join svg {
  width: 28px;
  height: 28px;
  fill: #16a34a;
}
.inv-confirm-text {
  font-size: 15px;
  color: #1f2937;
  font-weight: 500;
  margin-bottom: 6px;
}
.inv-confirm-sub {
  font-size: 13px;
  color: #9ca3af;
}
.inv-btn {
  height: 34px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.inv-btn-primary {
  background: #e2383e;
  color: #fff;
  border: 1px solid #e2383e;
}
.inv-btn-primary:hover {
  background: #c72e34;
}
.inv-btn-outline {
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.inv-btn-outline:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.inv-btn-text {
  background: none;
  border: none;
  color: #e2383e;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.inv-btn-text:hover {
  text-decoration: underline;
}
@media (max-width:1200px) {
  .inv-stats {
    grid-template-columns: repeat(2,1fr);
  }
  .inv-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width:900px) {
  .inv-stats {
    grid-template-columns: 1fr;
  }
  .inv-toolbar,.inv-filter {
    flex-direction: column;
    align-items: stretch;
  }
  .inv-search input {
    width: 100%;
  }
  .inv-table-wrap {
    overflow-x: auto;
  }
  .inv-table {
    min-width: 900px;
  }
}
.bp-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.bp-stat {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: .2s;
}
.bp-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.bp-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bp-stat-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.bp-stat-icon.all {
  background: linear-gradient(135deg,#e2383e,#ff6b6b);
}
.bp-stat-icon.bidding {
  background: linear-gradient(135deg,#3b82f6,#60a5fa);
}
.bp-stat-icon.ended {
  background: linear-gradient(135deg,#6b7280,#9ca3af);
}
.bp-stat-icon.contract {
  background: linear-gradient(135deg,#10b981,#34d399);
}
.bp-stat-info {
  flex: 1;
}
.bp-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}
.bp-stat-label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}
.bp-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 10px 10px 0 0;
  padding: 0 20px;
  border-bottom: 2px solid #f3f4f6;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.bp-tab {
  padding: 14px 24px;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: .2s;
  position: relative;
  white-space: nowrap;
}
.bp-tab:hover {
  color: #e2383e;
}
.bp-tab.active {
  color: #e2383e;
  font-weight: 600;
  border-bottom-color: #e2383e;
}
.bp-tab-badge {
  background: #e2383e;
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 500;
}
.bp-tab.active .bp-tab-badge {
  background: #e2383e;
}
.bp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}
.bp-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bp-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bp-search {
  position: relative;
}
.bp-search input {
  padding: 8px 12px 8px 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  width: 280px;
  outline: none;
  transition: .2s;
}
.bp-search input:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 3px rgba(226,56,62,.1);
}
.bp-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: #9ca3af;
}
.bp-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #fafafa;
  border-bottom: 1px solid #f3f4f6;
  flex-wrap: wrap;
}
.bp-filter select {
  padding: 7px 28px 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none;
  outline: none;
  cursor: pointer;
}
.bp-filter select:focus {
  border-color: #e2383e;
}
.bp-filter-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}
.bp-filter-date input[type="date"] {
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}
.bp-filter-date input[type="date"]:focus {
  border-color: #e2383e;
}
.bp-table-wrap {
  background: #fff;
  overflow-x: auto;
}
.bp-table {
  width: 100%;
  border-collapse: collapse;
}
.bp-table th {
  background: #f9fafb;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.bp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  color: #374151;
  vertical-align: middle;
}
.bp-table tbody tr {
  transition: .15s;
}
.bp-table tbody tr:hover {
  background: #fef2f2;
}
.bp-id {
  font-family: 'Courier New',monospace;
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
.bp-name {
  font-weight: 500;
  color: #1f2937;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.bp-name-sub {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}
.bp-company {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bp-company-av {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.bp-company-name {
  font-size: 13px;
  color: #374151;
}
.bp-date {
  font-size: 13px;
  color: #374151;
}
.bp-date-warn {
  color: #ea580c;
  font-weight: 500;
}
.bp-date-expired {
  color: #dc2626;
  font-weight: 500;
}
.bp-date-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 2px;
}
.bp-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.bp-status.bidding {
  background: #fef2f2;
  color: #e2383e;
}
.bp-status.ended {
  background: #f3f4f6;
  color: #6b7280;
}
.bp-status.contract {
  background: #ecfdf5;
  color: #059669;
}
.bp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.bp-status.bidding .bp-status-dot {
  background: #e2383e;
}
.bp-status.ended .bp-status-dot {
  background: #9ca3af;
}
.bp-status.contract .bp-status-dot {
  background: #059669;
}
.bp-action {
  color: #3b82f6;
  cursor: pointer;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: .15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bp-action:hover {
  background: #eff6ff;
  color: #2563eb;
}
.bp-action svg {
  width: 14px;
  height: 14px;
}
.bp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid #f3f4f6;
}
.bp-pagination-info {
  font-size: 13px;
  color: #6b7280;
}
.bp-pagination-btns {
  display: flex;
  gap: 4px;
}
.bp-pagination-btn {
  min-width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  transition: .15s;
}
.bp-pagination-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.bp-pagination-btn.active {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.bp-pagination-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
}
.bp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.bp-modal-overlay.show {
  display: flex;
}
.bp-modal {
  background: #fff;
  border-radius: 14px;
  width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.bp-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: 14px 14px 0 0;
}
.bp-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: #1f2937;
}
.bp-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
}
.bp-modal-close:hover {
  background: #f3f4f6;
}
.bp-modal-body {
  padding: 24px;
}
.bp-modal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bp-modal-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bp-modal-label {
  font-size: 12px;
  color: #9ca3af;
}
.bp-modal-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
}
.bp-modal-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}
.bp-modal-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bp-modal-section-title svg {
  width: 18px;
  height: 18px;
  fill: #e2383e;
}
.bp-modal-table {
  width: 100%;
  border-collapse: collapse;
}
.bp-modal-table th {
  background: #f9fafb;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}
.bp-modal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  color: #374151;
}
@media (max-width:900px) {
  .bp-stats {
    grid-template-columns: repeat(2,1fr);
  }
  .bp-tabs {
    overflow-x: auto;
  }
  .bp-toolbar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .bp-search input {
    width: 100%;
  }
  .bp-filter {
    flex-direction: column;
    align-items: flex-start;
  }
  .bp-modal {
    width: 95%;
    margin: 10px;
  }
  .bp-modal-info {
    grid-template-columns: 1fr;
  }
}
@media (max-width:640px) {
  .bp-stats {
    grid-template-columns: 1fr;
  }
  .bp-stat {
    padding: 14px;
  }
  .bp-stat-num {
    font-size: 22px;
  }
}
.nr-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.nr-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .2s;
}
.nr-stat-card:hover {
  transform: translateY(-2px);
}
.nr-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nr-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.nr-stat-icon.c1 {
  background: linear-gradient(135deg,#e2383e,#ff6b6b);
}
.nr-stat-icon.c2 {
  background: linear-gradient(135deg,#3b82f6,#60a5fa);
}
.nr-stat-icon.c3 {
  background: linear-gradient(135deg,#f59e0b,#fbbf24);
}
.nr-stat-icon.c4 {
  background: linear-gradient(135deg,#10b981,#34d399);
}
.nr-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
}
.nr-stat-label {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}
.nr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.nr-toolbar-left {
  display: flex;
  gap: 8px;
}
.nr-toolbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nr-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nr-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.nr-btn svg {
  width: 14px;
  height: 14px;
}
.nr-btn-primary {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.nr-btn-primary:hover {
  background: #c62a30;
  color: #fff;
  border-color: #c62a30;
}
.nr-btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
}
.nr-search {
  padding: 8px 12px 8px 34px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  width: 240px;
  transition: border-color .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 10px center/16px;
}
.nr-search:focus {
  border-color: #e2383e;
  outline: none;
  box-shadow: 0 0 0 2px rgba(226,56,62,.1);
}
.nr-layout {
  display: flex;
  gap: 16px;
  min-height: 600px;
}
.nr-tree-panel {
  width: 320px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}
.nr-tree-head {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nr-tree-head h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.nr-tree-actions {
  display: flex;
  gap: 6px;
}
.nr-tree-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.nr-tree-search {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.nr-tree-search input {
  width: 100%;
  padding: 7px 10px 7px 30px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 8px center/14px;
  box-sizing: border-box;
}
.nr-tree-search input:focus {
  border-color: #e2383e;
  outline: none;
}
.nr-node {
  user-select: none;
}
.nr-node-row {
  display: flex;
  align-items: center;
  padding: 7px 12px 7px 0;
  cursor: pointer;
  transition: background .15s;
  border-radius: 4px;
  margin: 1px 6px;
}
.nr-node-row:hover {
  background: #fef2f2;
}
.nr-node-row.active {
  background: #fef2f2;
  color: #e2383e;
  font-weight: 600;
}
.nr-node-toggle {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .2s;
}
.nr-node-toggle.expanded {
  transform: rotate(90deg);
}
.nr-node-toggle.empty {
  visibility: hidden;
}
.nr-node-toggle svg {
  width: 14px;
  height: 14px;
  fill: #999;
}
.nr-node-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nr-node-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.nr-node-icon.folder svg {
  fill: #f59e0b;
}
.nr-node-icon.file svg {
  fill: #888;
}
.nr-node-name {
  flex: 1;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nr-node-badge {
  background: #e2383e;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 4px;
  flex-shrink: 0;
}
.nr-node-actions {
  display: none;
  gap: 2px;
  margin-left: 4px;
}
.nr-node-row:hover .nr-node-actions {
  display: flex;
}
.nr-node-act {
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all .15s;
}
.nr-node-act:hover {
  background: #e2383e;
  color: #fff;
}
.nr-node-act svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.nr-children {
  padding-left: 18px;
}
.nr-detail-panel {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}
.nr-detail-head {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nr-detail-head h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nr-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.nr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nr-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nr-form-group.full {
  grid-column: 1/-1;
}
.nr-form-label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}
.nr-form-label .required {
  color: #e2383e;
  margin-left: 2px;
}
.nr-form-value {
  font-size: 13px;
  color: #333;
  padding: 8px 12px;
  background: #f9f9f9;
  border-radius: 6px;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.nr-form-value.highlight {
  background: #fff5f5;
  color: #e2383e;
  font-weight: 600;
}
.nr-form-input {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  transition: border-color .2s;
}
.nr-form-input:focus {
  border-color: #e2383e;
  outline: none;
  box-shadow: 0 0 0 2px rgba(226,56,62,.1);
}
.nr-form-input:read-only {
  background: #f9f9f9;
  color: #888;
  cursor: default;
}
.nr-form-select {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}
.nr-form-select:focus {
  border-color: #e2383e;
  outline: none;
}
.nr-form-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nr-switch {
  position: relative;
  width: 40px;
  height: 22px;
  background: #ddd;
  border-radius: 11px;
  cursor: pointer;
  transition: background .2s;
}
.nr-switch.on {
  background: #e2383e;
}
.nr-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.nr-switch.on::after {
  transform: translateX(18px);
}
.nr-switch-text {
  font-size: 12px;
  color: #888;
}
.nr-child-section {
  margin-top: 24px;
}
.nr-child-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.nr-child-head h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nr-child-count {
  background: #e2383e;
  color: #fff;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 8px;
}
.nr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.nr-table thead {
  background: #fafafa;
}
.nr-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
}
.nr-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
}
.nr-table tbody tr:hover {
  background: #fef2f2;
}
.nr-table .nr-id {
  font-family: monospace;
  color: #888;
  font-size: 12px;
}
.nr-table .nr-path {
  font-family: monospace;
  color: #3b82f6;
  font-size: 12px;
}
.nr-table .nr-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.nr-table .nr-tag.menu {
  background: #fff5f5;
  color: #e2383e;
}
.nr-table .nr-tag.page {
  background: #eff6ff;
  color: #3b82f6;
}
.nr-table .nr-tag.link {
  background: #f0fdf4;
  color: #16a34a;
}
.nr-table .nr-tag-show {
  background: #f0fdf4;
  color: #16a34a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.nr-table .nr-tag-hide {
  background: #fef2f2;
  color: #e2383e;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.nr-table .sort-handle {
  cursor: grab;
  color: #ccc;
  user-select: none;
}
.nr-table .sort-handle:hover {
  color: #e2383e;
}
.nr-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.nr-modal-overlay.show {
  display: flex;
}
.nr-modal {
  background: #fff;
  border-radius: 12px;
  width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: nrSlideIn .25s ease;
}
@keyframes nrSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nr-modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nr-modal-head h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.nr-modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all .15s;
}
.nr-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}
.nr-modal-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.nr-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.nr-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.nr-form-row {
  margin-bottom: 16px;
}
.nr-form-row label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 5px;
  font-weight: 500;
}
.nr-form-row label .req {
  color: #e2383e;
  margin-left: 2px;
}
.nr-form-row input,.nr-form-row select,.nr-form-row textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color .2s;
}
.nr-form-row input:focus,.nr-form-row select:focus,.nr-form-row textarea:focus {
  border-color: #e2383e;
  outline: none;
  box-shadow: 0 0 0 2px rgba(226,56,62,.1);
}
.nr-form-row textarea {
  min-height: 60px;
  resize: vertical;
}
.nr-form-row .nr-error {
  border-color: #e2383e !important;
}
.nr-form-row .nr-error-msg {
  color: #e2383e;
  font-size: 11px;
  margin-top: 3px;
}
.nr-form-row-inline {
  display: flex;
  gap: 12px;
}
.nr-form-row-inline>div {
  flex: 1;
}
.nr-icon-picker {
  display: grid;
  grid-template-columns: repeat(8,1fr);
  gap: 6px;
  margin-top: 4px;
}
.nr-icon-opt {
  width: 36px;
  height: 36px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.nr-icon-opt:hover {
  border-color: #e2383e;
}
.nr-icon-opt.selected {
  border-color: #e2383e;
  background: #fef2f2;
}
.nr-icon-opt svg {
  width: 18px;
  height: 18px;
  fill: #666;
}
.nr-icon-opt.selected svg {
  fill: #e2383e;
}
.nr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #ccc;
}
.nr-empty svg {
  width: 64px;
  height: 64px;
  fill: #e0e0e0;
  margin-bottom: 12px;
}
.nr-empty p {
  font-size: 13px;
  color: #bbb;
  margin: 0;
}
@media (max-width:900px) {
  .nr-stats {
    grid-template-columns: repeat(2,1fr);
  }
  .nr-layout {
    flex-direction: column;
  }
  .nr-tree-panel {
    width: 100%;
    max-height: 300px;
  }
  .nr-form-grid {
    grid-template-columns: 1fr;
  }
  .nr-form-row-inline {
    flex-direction: column;
    gap: 0;
  }
}
@media (max-width:640px) {
  .nr-stats {
    grid-template-columns: 1fr;
  }
  .nr-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .nr-toolbar-right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
.al-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.al-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .2s;
}
.al-stat-card:hover {
  transform: translateY(-2px);
}
.al-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.al-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.al-stat-icon.si-total {
  background: linear-gradient(135deg,#e2383e,#ff6b6b);
}
.al-stat-icon.si-pending {
  background: linear-gradient(135deg,#fa8c16,#ffd666);
}
.al-stat-icon.si-pass {
  background: linear-gradient(135deg,#52c41a,#95de64);
}
.al-stat-icon.si-reject {
  background: linear-gradient(135deg,#ff4d4f,#ff9c9c);
}
.al-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
}
.al-stat-label {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}
.al-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border-bottom: 2px solid #f0f0f0;
  padding: 0 16px;
}
.al-tab {
  padding: 14px 20px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
  white-space: nowrap;
}
.al-tab:hover {
  color: #e2383e;
}
.al-tab.active {
  color: #e2383e;
  font-weight: 600;
  border-bottom-color: #e2383e;
}
.al-tab .al-tab-count {
  display: inline-block;
  background: #f5f5f5;
  color: #999;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 4px;
  font-weight: 400;
}
.al-tab.active .al-tab-count {
  background: #fef2f2;
  color: #e2383e;
}
.al-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #f5f5f5;
  flex-wrap: wrap;
  gap: 10px;
}
.al-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.al-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.al-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  color: #333;
}
.al-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.al-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.al-btn-primary {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.al-btn-primary:hover {
  background: #c62a30;
  color: #fff;
  border-color: #c62a30;
}
.al-search {
  padding: 8px 12px 8px 34px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  width: 240px;
  transition: border-color .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 10px center/16px;
}
.al-search:focus {
  border-color: #e2383e;
  outline: none;
  box-shadow: 0 0 0 2px rgba(226,56,62,.1);
}
.al-table-wrap {
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
}
.al-table {
  width: 100%;
  border-collapse: collapse;
}
.al-table thead {
  background: #fafafa;
}
.al-table th {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}
.al-table td {
  padding: 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}
.al-table tbody tr:hover {
  background: #fef2f2;
}
.al-table tbody tr:last-child td {
  border-bottom: none;
}
.al-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #e2383e;
  cursor: pointer;
}
.al-company {
  display: flex;
  align-items: center;
  gap: 10px;
}
.al-company-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.al-company-avatar.ca-1 {
  background: linear-gradient(135deg,#e2383e,#ff6b6b);
}
.al-company-avatar.ca-2 {
  background: linear-gradient(135deg,#1890ff,#69c0ff);
}
.al-company-avatar.ca-3 {
  background: linear-gradient(135deg,#52c41a,#95de64);
}
.al-company-avatar.ca-4 {
  background: linear-gradient(135deg,#722ed1,#b37feb);
}
.al-company-avatar.ca-5 {
  background: linear-gradient(135deg,#fa8c16,#ffd666);
}
.al-company-avatar.ca-6 {
  background: linear-gradient(135deg,#13c2c2,#5cdbd3);
}
.al-company-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.al-company-code {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
  font-family: monospace;
}
.al-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.al-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.al-status-pending {
  background: #fff7e6;
  color: #fa8c16;
}
.al-status-pending .al-status-dot {
  background: #fa8c16;
}
.al-status-review {
  background: #e6f7ff;
  color: #1890ff;
}
.al-status-review .al-status-dot {
  background: #1890ff;
}
.al-status-pass {
  background: #f6ffed;
  color: #52c41a;
}
.al-status-pass .al-status-dot {
  background: #52c41a;
}
.al-status-reject {
  background: #fff2f0;
  color: #ff4d4f;
}
.al-status-reject .al-status-dot {
  background: #ff4d4f;
}
.al-status-supplement {
  background: #f9f0ff;
  color: #722ed1;
}
.al-status-supplement .al-status-dot {
  background: #722ed1;
}
.al-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}
.al-type-supplier {
  background: #e6f7ff;
  color: #1890ff;
}
.al-type-material {
  background: #f6ffed;
  color: #52c41a;
}
.al-type-service {
  background: #f9f0ff;
  color: #722ed1;
}
.al-type-logistics {
  background: #fff7e6;
  color: #fa8c16;
}
.al-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.al-btn-inline {
  display: inline;
  margin: 0;
  padding: 0;
}
.al-link {
  color: #e2383e;
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  line-height: inherit;
}
.al-link:hover {
  color: #c62a30;
  text-decoration: underline;
}
.al-link.secondary {
  color: #1890ff;
}
.al-link.secondary:hover {
  color: #096dd9;
}
.al-link.disabled {
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}
.al-sep {
  color: #e8e8e8;
}
.al-batch {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg,#fff5f5,#fee2e2);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #666;
}
.al-batch.show {
  display: flex;
}
.al-batch span {
  color: #e2383e;
  font-weight: 600;
}
.al-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.al-page-info {
  font-size: 13px;
  color: #999;
}
.al-page-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}
.al-page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  background: #fff;
  transition: all .2s;
}
.al-page-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.al-page-btn.active {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.al-page-btn.disabled {
  color: #ccc;
  cursor: not-allowed;
  border-color: #f0f0f0;
}
.al-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.al-modal-overlay.show {
  display: flex;
}
.al-modal {
  background: #fff;
  border-radius: 12px;
  width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: alSlideIn .25s ease;
}
@keyframes alSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.al-modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.al-modal-head h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.al-modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all .15s;
}
.al-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}
.al-modal-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.al-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.al-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.al-form-row {
  margin-bottom: 16px;
}
.al-form-row label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 5px;
  font-weight: 500;
}
.al-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
  min-height: 100px;
  resize: vertical;
  transition: border-color .2s;
}
.al-form-row textarea:focus {
  border-color: #e2383e;
  outline: none;
  box-shadow: 0 0 0 2px rgba(226,56,62,.1);
}
.al-radio-group {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}
.al-radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  font-weight: 400;
}
.al-radio-group input {
  accent-color: #e2383e;
}
@media (max-width:1200px) {
  .al-stats {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width:900px) {
  .al-stats {
    grid-template-columns: 1fr;
  }
  .al-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .al-toolbar-right {
    flex-wrap: wrap;
  }
}
@media (max-width:640px) {
  .al-table {
    font-size: 12px;
  }
  .al-table th,.al-table td {
    padding: 10px 8px;
  }
}
.ad-status-bar {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.ad-status-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ad-status-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ad-status-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
.ad-status-icon.si-pending {
  background: linear-gradient(135deg,#fa8c16,#ffd666);
}
.ad-status-icon.si-pass {
  background: linear-gradient(135deg,#52c41a,#95de64);
}
.ad-status-icon.si-reject {
  background: linear-gradient(135deg,#ff4d4f,#ff9c9c);
}
.ad-status-icon.si-review {
  background: linear-gradient(135deg,#1890ff,#69c0ff);
}
.ad-status-icon.si-supplement {
  background: linear-gradient(135deg,#722ed1,#b37feb);
}
.ad-status-text h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a1a2e;
}
.ad-status-text p {
  font-size: 13px;
  color: #888;
  margin: 0;
}
.ad-status-actions {
  display: flex;
  gap: 10px;
}
.ad-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 20px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  color: #333;
}
.ad-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.ad-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.ad-btn-primary {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.ad-btn-primary:hover {
  background: #c62a30;
  color: #fff;
  border-color: #c62a30;
}
.ad-btn-success {
  background: #52c41a;
  color: #fff;
  border-color: #52c41a;
}
.ad-btn-success:hover {
  background: #3f9914;
  color: #fff;
  border-color: #3f9914;
}
.ad-btn-warning {
  background: #fa8c16;
  color: #fff;
  border-color: #fa8c16;
}
.ad-btn-warning:hover {
  background: #d87a06;
  color: #fff;
  border-color: #d87a06;
}
.ad-btn-danger {
  background: #ff4d4f;
  color: #fff;
  border-color: #ff4d4f;
}
.ad-btn-danger:hover {
  background: #d9363e;
  color: #fff;
  border-color: #d9363e;
}
.ad-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}
.ad-breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color .2s;
}
.ad-breadcrumb a:hover {
  color: #e2383e;
}
.ad-breadcrumb span {
  color: #333;
  font-weight: 500;
}
.ad-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ad-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ad-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.ad-card-head {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ad-card-head h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1a2e;
}
.ad-card-head h3 svg {
  width: 16px;
  height: 16px;
  fill: #e2383e;
}
.ad-card-body {
  padding: 20px;
}
.ad-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ad-info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ad-info-item label {
  font-size: 12px;
  color: #999;
}
.ad-info-item span {
  font-size: 13px;
  color: #333;
}
.ad-info-item.full {
  grid-column: 1/-1;
}
.ad-att-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ad-att-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
  transition: all .2s;
}
.ad-att-item:hover {
  border-color: #e2383e;
  background: #fef2f2;
}
.ad-att-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ad-att-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ad-att-icon.pdf {
  background: #ff4d4f;
}
.ad-att-icon.img {
  background: #1890ff;
}
.ad-att-icon.doc {
  background: #3b82f6;
}
.ad-att-icon.xls {
  background: #52c41a;
}
.ad-att-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}
.ad-att-size {
  font-size: 11px;
  color: #999;
  margin-top: 1px;
}
.ad-att-action {
  color: #e2383e;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.ad-att-action:hover {
  text-decoration: underline;
}
.ad-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ad-tl-item {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}
.ad-tl-item:last-child {
  padding-bottom: 0;
}
.ad-tl-item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: #f0f0f0;
}
.ad-tl-item:last-child::before {
  display: none;
}
.ad-tl-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.ad-tl-dot svg {
  width: 12px;
  height: 12px;
  fill: #fff;
}
.ad-tl-dot.dot-success {
  background: #52c41a;
}
.ad-tl-dot.dot-warning {
  background: #fa8c16;
  box-shadow: 0 0 0 3px rgba(250,140,22,.2);
}
.ad-tl-dot.dot-error {
  background: #ff4d4f;
}
.ad-tl-dot.dot-info {
  background: #1890ff;
}
.ad-tl-dot.dot-gray {
  background: #d9d9d9;
}
.ad-tl-content {
  flex: 1;
}
.ad-tl-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}
.ad-tl-desc {
  font-size: 12px;
  color: #888;
  margin-bottom: 2px;
}
.ad-tl-time {
  font-size: 11px;
  color: #bbb;
}
.ad-right {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ad-summary {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
}
.ad-summary-head {
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg,#e2383e,#ff6b6b);
  color: #fff;
}
.ad-summary-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 10px;
}
.ad-summary-name {
  font-size: 16px;
  font-weight: 700;
}
.ad-summary-code {
  font-size: 11px;
  opacity: .8;
  margin-top: 4px;
  font-family: monospace;
}
.ad-summary-body {
  padding: 16px 20px;
}
.ad-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f8f8f8;
  font-size: 13px;
}
.ad-summary-row:last-child {
  border-bottom: none;
}
.ad-summary-row label {
  color: #999;
}
.ad-summary-row span {
  color: #333;
  font-weight: 500;
  text-align: right;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-progress {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.ad-progress-head {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.ad-progress-head h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.ad-progress-body {
  padding: 16px 20px;
}
.ad-progress-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ad-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}
.ad-step:last-child {
  padding-bottom: 0;
}
.ad-step::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: #f0f0f0;
}
.ad-step:last-child::before {
  display: none;
}
.ad-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.ad-step-dot.done {
  background: #52c41a;
  color: #fff;
}
.ad-step-dot.current {
  background: #e2383e;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(226,56,62,.2);
}
.ad-step-dot.wait {
  background: #f0f0f0;
  color: #bbb;
}
.ad-step-info {
  flex: 1;
  padding-top: 2px;
}
.ad-step-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.ad-step-desc {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.ad-step-time {
  font-size: 11px;
  color: #bbb;
  margin-top: 2px;
}
.ad-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.ad-modal-overlay.show {
  display: flex;
}
.ad-modal {
  background: #fff;
  border-radius: 12px;
  width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: adSlideIn .25s ease;
}
@keyframes adSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ad-modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ad-modal-head h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.ad-modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all .15s;
}
.ad-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}
.ad-modal-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.ad-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.ad-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.ad-form-row {
  margin-bottom: 16px;
}
.ad-form-row label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 5px;
  font-weight: 500;
}
.ad-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
  min-height: 100px;
  resize: vertical;
  transition: border-color .2s;
}
.ad-form-row textarea:focus {
  border-color: #e2383e;
  outline: none;
  box-shadow: 0 0 0 2px rgba(226,56,62,.1);
}
.ad-radio-group {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}
.ad-radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  font-weight: 400;
}
.ad-radio-group input {
  accent-color: #e2383e;
}
@media (max-width:1100px) {
  .ad-body {
    flex-direction: column;
  }
  .ad-right {
    width: 100%;
  }
}
@media (max-width:640px) {
  .ad-info-grid {
    grid-template-columns: 1fr;
  }
  .ad-status-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .ad-status-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
.cl-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.cl-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .2s;
}
.cl-stat-card:hover {
  transform: translateY(-2px);
}
.cl-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cl-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.cl-stat-icon.si-total {
  background: linear-gradient(135deg,#e2383e,#ff6b6b);
}
.cl-stat-icon.si-sign {
  background: linear-gradient(135deg,#fa8c16,#ffd666);
}
.cl-stat-icon.si-active {
  background: linear-gradient(135deg,#1890ff,#69c0ff);
}
.cl-stat-icon.si-done {
  background: linear-gradient(135deg,#52c41a,#95de64);
}
.cl-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
}
.cl-stat-label {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}
.cl-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border-bottom: 2px solid #f0f0f0;
  padding: 0 16px;
}
.cl-tab {
  padding: 14px 20px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
  white-space: nowrap;
}
.cl-tab:hover {
  color: #e2383e;
}
.cl-tab.active {
  color: #e2383e;
  font-weight: 600;
  border-bottom-color: #e2383e;
}
.cl-tab .cl-tab-count {
  display: inline-block;
  background: #f5f5f5;
  color: #999;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 4px;
  font-weight: 400;
}
.cl-tab.active .cl-tab-count {
  background: #fef2f2;
  color: #e2383e;
}
.cl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #f5f5f5;
  flex-wrap: wrap;
  gap: 10px;
}
.cl-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cl-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  color: #333;
}
.cl-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.cl-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.cl-btn-primary {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.cl-btn-primary:hover {
  background: #c62a30;
  color: #fff;
  border-color: #c62a30;
}
.cl-search {
  padding: 8px 12px 8px 34px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  width: 240px;
  transition: border-color .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 10px center/16px;
}
.cl-search:focus {
  border-color: #e2383e;
  outline: none;
  box-shadow: 0 0 0 2px rgba(226,56,62,.1);
}
.cl-filter-select {
  padding: 8px 28px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") right 10px center no-repeat;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.cl-filter-select:focus {
  border-color: #e2383e;
}
.cl-table-wrap {
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
}
.cl-table {
  width: 100%;
  border-collapse: collapse;
}
.cl-table thead {
  background: #fafafa;
}
.cl-table th {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}
.cl-table td {
  padding: 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}
.cl-table tbody tr:hover {
  background: #fef2f2;
}
.cl-table tbody tr:last-child td {
  border-bottom: none;
}
.cl-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #e2383e;
  cursor: pointer;
}
.cl-code {
  font-family: monospace;
  font-size: 12px;
  color: #1890ff;
  cursor: pointer;
}
.cl-code:hover {
  text-decoration: underline;
  color: #096dd9;
}
.cl-amount {
  font-weight: 600;
  color: #e2383e;
  font-size: 14px;
}
.cl-amount .unit {
  font-size: 11px;
  font-weight: 400;
  color: #999;
  margin-left: 2px;
}
.cl-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.cl-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.cl-status-draft {
  background: #f5f5f5;
  color: #999;
}
.cl-status-draft .cl-status-dot {
  background: #999;
}
.cl-status-sign {
  background: #fff7e6;
  color: #fa8c16;
}
.cl-status-sign .cl-status-dot {
  background: #fa8c16;
}
.cl-status-active {
  background: #e6f7ff;
  color: #1890ff;
}
.cl-status-active .cl-status-dot {
  background: #1890ff;
}
.cl-status-done {
  background: #f6ffed;
  color: #52c41a;
}
.cl-status-done .cl-status-dot {
  background: #52c41a;
}
.cl-status-terminate {
  background: #fff2f0;
  color: #ff4d4f;
}
.cl-status-terminate .cl-status-dot {
  background: #ff4d4f;
}
.cl-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}
.cl-type-purchase {
  background: #e6f7ff;
  color: #1890ff;
}
.cl-type-sale {
  background: #f6ffed;
  color: #52c41a;
}
.cl-type-service {
  background: #f9f0ff;
  color: #722ed1;
}
.cl-type-frame {
  background: #fff7e6;
  color: #fa8c16;
}
.cl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cl-link {
  color: #e2383e;
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s;
  white-space: nowrap;
}
.cl-link:hover {
  color: #c62a30;
  text-decoration: underline;
}
.cl-link.secondary {
  color: #1890ff;
}
.cl-link.secondary:hover {
  color: #096dd9;
}
.cl-sep {
  color: #e8e8e8;
}
.cl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.cl-page-info {
  font-size: 13px;
  color: #999;
}
.cl-page-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cl-page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  background: #fff;
  transition: all .2s;
}
.cl-page-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.cl-page-btn.active {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.cl-page-btn.disabled {
  color: #ccc;
  cursor: not-allowed;
  border-color: #f0f0f0;
}
.cl-batch {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg,#fff5f5,#fee2e2);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #666;
}
.cl-batch.show {
  display: flex;
}
.cl-batch span {
  color: #e2383e;
  font-weight: 600;
}
@media (max-width:1200px) {
  .cl-stats {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width:900px) {
  .cl-stats {
    grid-template-columns: 1fr;
  }
  .cl-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .cl-toolbar-right {
    flex-wrap: wrap;
  }
}
@media (max-width:640px) {
  .cl-table {
    font-size: 12px;
  }
  .cl-table th,.cl-table td {
    padding: 10px 8px;
  }
}
.cd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #999;
}
.cd-breadcrumb a {
  color: #999;
  text-decoration: none;
  transition: color .2s;
}
.cd-breadcrumb a:hover {
  color: #e2383e;
}
.cd-breadcrumb .sep {
  color: #ccc;
}
.cd-breadcrumb .current {
  color: #333;
  font-weight: 500;
}
.cd-status-bar {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  flex-wrap: wrap;
  gap: 14px;
}
.cd-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cd-status-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd-status-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.cd-status-icon.si-active {
  background: linear-gradient(135deg,#1890ff,#69c0ff);
}
.cd-status-icon.si-sign {
  background: linear-gradient(135deg,#fa8c16,#ffd666);
}
.cd-status-icon.si-done {
  background: linear-gradient(135deg,#52c41a,#95de64);
}
.cd-status-icon.si-draft {
  background: linear-gradient(135deg,#bbb,#ddd);
}
.cd-status-icon.si-terminate {
  background: linear-gradient(135deg,#ff4d4f,#ff7875);
}
.cd-status-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
}
.cd-status-meta {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
  display: flex;
  gap: 16px;
}
.cd-status-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cd-status-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cd-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  color: #333;
}
.cd-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.cd-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.cd-btn-primary {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.cd-btn-primary:hover {
  background: #c62a30;
  color: #fff;
  border-color: #c62a30;
}
.cd-btn-success {
  background: #52c41a;
  color: #fff;
  border-color: #52c41a;
}
.cd-btn-success:hover {
  background: #3fad0e;
  color: #fff;
  border-color: #3fad0e;
}
.cd-btn-danger {
  background: #fff;
  color: #ff4d4f;
  border-color: #ff4d4f;
}
.cd-btn-danger:hover {
  background: #fff2f0;
  color: #ff4d4f;
}
.cd-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}
.cd-main-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cd-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cd-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
}
.cd-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cd-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cd-card-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: #e2383e;
  border-radius: 2px;
}
.cd-card-body {
  padding: 20px;
}
.cd-info-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.cd-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cd-info-label {
  font-size: 12px;
  color: #999;
}
.cd-info-value {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}
.cd-info-value.code {
  font-family: monospace;
  color: #1890ff;
}
.cd-info-value.amount {
  color: #e2383e;
  font-size: 16px;
  font-weight: 700;
}
.cd-info-value.amount .unit {
  font-size: 12px;
  font-weight: 400;
  color: #999;
}
.cd-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.cd-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.cd-tag-purchase {
  background: #e6f7ff;
  color: #1890ff;
}
.cd-tag-sale {
  background: #f6ffed;
  color: #52c41a;
}
.cd-tag-service {
  background: #f9f0ff;
  color: #722ed1;
}
.cd-tag-frame {
  background: #fff7e6;
  color: #fa8c16;
}
.cd-pay-table {
  width: 100%;
  border-collapse: collapse;
}
.cd-pay-table th {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-align: left;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.cd-pay-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
}
.cd-pay-table tbody tr:hover {
  background: #fef2f2;
}
.cd-pay-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
}
.cd-pay-paid {
  background: #f6ffed;
  color: #52c41a;
}
.cd-pay-unpaid {
  background: #fff7e6;
  color: #fa8c16;
}
.cd-pay-overdue {
  background: #fff2f0;
  color: #ff4d4f;
}
.cd-attach-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cd-attach-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  transition: all .2s;
}
.cd-attach-item:hover {
  border-color: #e2383e;
  background: #fef2f2;
}
.cd-attach-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.cd-attach-icon.ai-pdf {
  background: #ff4d4f;
}
.cd-attach-icon.ai-doc {
  background: #1890ff;
}
.cd-attach-icon.ai-xls {
  background: #52c41a;
}
.cd-attach-icon.ai-img {
  background: #722ed1;
}
.cd-attach-info {
  flex: 1;
  min-width: 0;
}
.cd-attach-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cd-attach-size {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.cd-attach-dl {
  color: #1890ff;
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.cd-attach-dl:hover {
  text-decoration: underline;
}
.cd-summary-header {
  background: linear-gradient(135deg,#e2383e,#ff6b6b);
  padding: 20px;
  text-align: center;
  color: #fff;
}
.cd-summary-amount {
  font-size: 28px;
  font-weight: 700;
  margin-top: 6px;
}
.cd-summary-amount .unit {
  font-size: 14px;
  font-weight: 400;
  opacity: .8;
}
.cd-summary-label {
  font-size: 13px;
  opacity: .8;
}
.cd-summary-rows {
  padding: 16px 20px;
}
.cd-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}
.cd-summary-row:last-child {
  border-bottom: none;
}
.cd-summary-row .label {
  color: #999;
}
.cd-summary-row .value {
  color: #333;
  font-weight: 500;
}
.cd-progress {
  padding: 20px;
}
.cd-step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cd-step-item {
  display: flex;
  gap: 12px;
  position: relative;
}
.cd-step-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
}
.cd-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}
.cd-step-dot.done {
  background: #52c41a;
  color: #fff;
}
.cd-step-dot.current {
  background: #e2383e;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(226,56,62,.15);
}
.cd-step-dot.pending {
  background: #f0f0f0;
  color: #bbb;
}
.cd-step-line {
  flex: 1;
  width: 2px;
  min-height: 24px;
  background: #e8e8e8;
}
.cd-step-line.done {
  background: #52c41a;
}
.cd-step-content {
  padding-bottom: 16px;
  flex: 1;
}
.cd-step-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.cd-step-name.done {
  color: #52c41a;
}
.cd-step-name.pending {
  color: #bbb;
}
.cd-step-time {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.cd-timeline {
  padding: 20px;
}
.cd-tl-item {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 16px;
}
.cd-tl-item:last-child {
  padding-bottom: 0;
}
.cd-tl-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 18px;
  flex-shrink: 0;
}
.cd-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2383e;
  border: 2px solid #fef2f2;
  flex-shrink: 0;
  z-index: 1;
}
.cd-tl-dot.green {
  background: #52c41a;
  border-color: #f6ffed;
}
.cd-tl-dot.gray {
  background: #ddd;
  border-color: #fafafa;
}
.cd-tl-line {
  flex: 1;
  width: 1px;
  background: #e8e8e8;
  min-height: 20px;
}
.cd-tl-info {
  flex: 1;
}
.cd-tl-title {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}
.cd-tl-meta {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.cd-tl-desc {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  padding: 6px 10px;
  background: #fafafa;
  border-radius: 4px;
}
@media (max-width:1200px) {
  .cd-layout {
    grid-template-columns: 1fr;
  }
  .cd-side-col {
    order: -1;
  }
  .cd-info-grid {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width:640px) {
  .cd-info-grid {
    grid-template-columns: 1fr;
  }
  .cd-status-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
.ca-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 20px 0;
}
.ca-step {
  display: flex;
  align-items: center;
  gap: 0;
}
.ca-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid #ddd;
  color: #bbb;
  background: #fff;
  transition: all .3s;
  flex-shrink: 0;
}
.ca-step-circle.active {
  border-color: #e2383e;
  background: #e2383e;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(226,56,62,.12);
}
.ca-step-circle.done {
  border-color: #52c41a;
  background: #52c41a;
  color: #fff;
}
.ca-step-label {
  font-size: 13px;
  color: #999;
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  transition: color .3s;
}
.ca-step-label.active {
  color: #e2383e;
  font-weight: 600;
}
.ca-step-label.done {
  color: #52c41a;
}
.ca-step-connector {
  width: 80px;
  height: 2px;
  background: #e8e8e8;
  margin: 0 8px;
  transition: background .3s;
}
.ca-step-connector.done {
  background: #52c41a;
}
.ca-step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ca-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
  margin-bottom: 16px;
}
.ca-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ca-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ca-card-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: #e2383e;
  border-radius: 2px;
}
.ca-card-body {
  padding: 20px;
}
.ca-form-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.ca-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ca-form-group.full {
  grid-column: 1/-1;
}
.ca-form-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}
.ca-form-label .required {
  color: #e2383e;
  margin-left: 2px;
}
.ca-form-input,.ca-form-select,.ca-form-textarea {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  transition: border-color .2s;
  outline: none;
  background: #fff;
}
.ca-form-input:focus,.ca-form-select:focus,.ca-form-textarea:focus {
  border-color: #e2383e;
  box-shadow: 0 0 0 2px rgba(226,56,62,.08);
}
.ca-form-input::placeholder,.ca-form-textarea::placeholder {
  color: #bbb;
}
.ca-form-select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") right 10px center no-repeat;
  padding-right: 28px;
  cursor: pointer;
}
.ca-form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
.ca-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ca-form-row .ca-form-input {
  flex: 1;
}
.ca-switch-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.ca-switch {
  position: relative;
  width: 40px;
  height: 22px;
  cursor: pointer;
}
.ca-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ca-switch-slider {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 11px;
  transition: all .2s;
}
.ca-switch-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform .2s;
}
.ca-switch input:checked+.ca-switch-slider {
  background: #e2383e;
}
.ca-switch input:checked+.ca-switch-slider::before {
  transform: translateX(18px);
}
.ca-switch-text {
  font-size: 13px;
  color: #666;
}
.ca-pay-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ca-pay-item {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 16px;
  transition: border-color .2s;
}
.ca-pay-item:hover {
  border-color: #e2383e;
}
.ca-pay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ca-pay-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ca-pay-title .idx {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2383e;
  color: #fff;
  font-size: 11px;
  align-items: center;
  justify-content: center;
}
.ca-pay-remove {
  color: #ff4d4f;
  cursor: pointer;
  font-size: 12px;
  border: none;
  background: none;
}
.ca-pay-remove:hover {
  text-decoration: underline;
}
.ca-pay-form {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}
.ca-add-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  color: #999;
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
  margin-top: 4px;
}
.ca-add-pay:hover {
  border-color: #e2383e;
  color: #e2383e;
  background: #fef2f2;
}
.ca-add-pay svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.ca-upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.ca-upload-area:hover {
  border-color: #e2383e;
  background: #fef2f2;
}
.ca-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  color: #ccc;
}
.ca-upload-icon svg {
  width: 48px;
  height: 48px;
  fill: #ccc;
}
.ca-upload-text {
  font-size: 13px;
  color: #999;
}
.ca-upload-text em {
  color: #e2383e;
  font-style: normal;
}
.ca-upload-hint {
  font-size: 11px;
  color: #bbb;
  margin-top: 6px;
}
.ca-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.ca-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}
.ca-file-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ca-file-icon.fi-pdf {
  background: #ff4d4f;
}
.ca-file-icon.fi-doc {
  background: #1890ff;
}
.ca-file-icon.fi-xls {
  background: #52c41a;
}
.ca-file-name {
  flex: 1;
  font-size: 12px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca-file-size {
  font-size: 11px;
  color: #999;
}
.ca-file-del {
  color: #ff4d4f;
  cursor: pointer;
  font-size: 12px;
  border: none;
  background: none;
}
.ca-file-del:hover {
  text-decoration: underline;
}
.ca-footer {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.ca-footer-left {
  display: flex;
  gap: 10px;
}
.ca-footer-right {
  display: flex;
  gap: 10px;
}
.ca-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  color: #333;
}
.ca-btn:hover {
  border-color: #e2383e;
  color: #e2383e;
}
.ca-btn-primary {
  background: #e2383e;
  color: #fff;
  border-color: #e2383e;
}
.ca-btn-primary:hover {
  background: #c62a30;
  border-color: #c62a30;
  color: #fff;
}
.ca-btn-success {
  background: #52c41a;
  color: #fff;
  border-color: #52c41a;
}
.ca-btn-success:hover {
  background: #3fad0e;
  border-color: #3fad0e;
  color: #fff;
}
.ca-step-panel {
  display: none;
}
.ca-step-panel.active {
  display: block;
}
@media (max-width:1200px) {
  .ca-form-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .ca-pay-form {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width:768px) {
  .ca-form-grid {
    grid-template-columns: 1fr;
  }
  .ca-pay-form {
    grid-template-columns: 1fr;
  }
  .ca-steps {
    flex-wrap: wrap;
    gap: 8px;
  }
  .ca-step-connector {
    width: 40px;
  }
}
.tl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.tl-breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color .15s;
}
.tl-breadcrumb a:hover {
  color: var(--primary);
}
.tl-breadcrumb .current {
  color: var(--gray-900);
  font-weight: 500;
}
.tl-breadcrumb .sep {
  color: var(--gray-300);
}
.tl-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tl-page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
}
.tl-page-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}
.tl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.tl-stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}
.tl-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.tl-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tl-stat-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.tl-stat-icon.ic-total {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}
.tl-stat-icon.ic-enabled {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}
.tl-stat-icon.ic-disabled {
  background: linear-gradient(135deg, #9ca3af, #d1d5db);
}
.tl-stat-icon.ic-recent {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}
.tl-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}
.tl-stat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}
.tl-filter-bar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tl-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-filter-label {
  font-size: 13px;
  color: var(--gray-500);
  white-space: nowrap;
}
.tl-filter-select {
  height: 32px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 28px 0 10px;
  font-size: 13px;
  color: var(--gray-700);
  outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 6px center;
  background-size: 18px;
  appearance: none;
  cursor: pointer;
  min-width: 130px;
}
.tl-filter-select:focus {
  border-color: var(--primary);
}
.tl-search {
  position: relative;
  margin-left: auto;
}
.tl-search input {
  width: 260px;
  height: 32px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 32px 0 12px;
  font-size: 13px;
  color: var(--gray-700);
  outline: none;
  transition: border-color .2s;
}
.tl-search input:focus {
  border-color: var(--primary);
}
.tl-search input::placeholder {
  color: var(--gray-400);
}
.tl-search-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  display: flex;
}
.tl-search-icon svg {
  width: 16px;
  height: 16px;
}
.tl-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-100);
  margin-bottom: 0;
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.tl-tab {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-weight: 500;
}
.tl-tab:hover {
  color: var(--gray-700);
}
.tl-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tl-tab .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}
.tl-tab.active .badge {
  background: #fef2f2;
  color: var(--primary);
}
.tl-tab:not(.active) .badge {
  background: var(--gray-100);
  color: var(--gray-500);
}
.tl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #fff;
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.tl-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-btn {
  height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s;
}
.tl-btn svg {
  width: 16px;
  height: 16px;
}
.tl-btn-primary {
  background: var(--primary);
  color: #fff;
}
.tl-btn-primary:hover {
  background: #c42e34;
}
.tl-btn-outline {
  background: #fff;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.tl-btn-outline:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}
.tl-btn-text {
  background: none;
  color: var(--primary);
  padding: 0 8px;
  height: auto;
}
.tl-btn-text:hover {
  background: #fef2f2;
}
.tl-table-wrap {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.tl-table {
  width: 100%;
  border-collapse: collapse;
}
.tl-table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-align: left;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  white-space: nowrap;
}
.tl-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-50);
  vertical-align: middle;
}
.tl-table tr:hover td {
  background: #fafafa;
}
.tl-table .cb {
  width: 40px;
  text-align: center;
}
.tl-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.tl-tpl-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tl-tpl-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tl-tpl-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.tl-tpl-icon.type-purchase {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}
.tl-tpl-icon.type-sale {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}
.tl-tpl-icon.type-service {
  background: linear-gradient(135deg, #d97706, #fbbf24);
}
.tl-tpl-icon.type-framework {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}
.tl-tpl-icon.type-labor {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}
.tl-tpl-icon.type-tech {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
}
.tl-tpl-title {
  font-weight: 500;
  color: var(--gray-900);
  font-size: 13px;
}
.tl-tpl-code {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}
.tl-cat-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}
.tl-cat-tag.cat-purchase {
  background: #eff6ff;
  color: #2563eb;
}
.tl-cat-tag.cat-sale {
  background: #f0fdf4;
  color: #16a34a;
}
.tl-cat-tag.cat-service {
  background: #fffbeb;
  color: #d97706;
}
.tl-cat-tag.cat-framework {
  background: #f5f3ff;
  color: #7c3aed;
}
.tl-cat-tag.cat-labor {
  background: #fef2f2;
  color: #e2383e;
}
.tl-cat-tag.cat-tech {
  background: #ecfeff;
  color: #0891b2;
}
.tl-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}
.tl-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.tl-status.enabled .tl-status-dot {
  background: #16a34a;
}
.tl-status.enabled {
  color: #16a34a;
}
.tl-status.disabled .tl-status-dot {
  background: #9ca3af;
}
.tl-status.disabled {
  color: #9ca3af;
}
.tl-status.draft .tl-status-dot {
  background: #d97706;
}
.tl-status.draft {
  color: #d97706;
}
.tl-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tl-act-btn {
  padding: 4px 10px;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: none;
  color: var(--gray-500);
  transition: all .15s;
  white-space: nowrap;
}
.tl-act-btn:hover {
  color: var(--primary);
  background: #fef2f2;
}
.tl-act-btn.primary {
  color: var(--primary);
}
.tl-act-btn.primary:hover {
  background: #fef2f2;
}
.tl-act-btn.danger:hover {
  color: #dc2626;
  background: #fef2f2;
}
.tl-use-count {
  font-weight: 600;
  color: var(--primary);
}
.tl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fff;
  border-top: 1px solid var(--gray-100);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.tl-page-info {
  font-size: 13px;
  color: var(--gray-500);
}
.tl-page-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tl-page-btn {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: var(--gray-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.tl-page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.tl-page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.tl-page-btn:disabled {
  color: var(--gray-300);
  cursor: not-allowed;
}
.tl-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.tl-modal-overlay.show {
  display: flex;
}
.tl-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 640px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  animation: tlModalIn .2s ease;
}
@keyframes tlModalIn {
  from {
    opacity: 0;
    transform: scale(.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.tl-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.tl-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}
.tl-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all .15s;
}
.tl-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}
.tl-modal-close svg {
  width: 18px;
  height: 18px;
}
.tl-modal-body {
  padding: 24px;
}
.tl-preview-section {
  margin-bottom: 20px;
}
.tl-preview-section:last-child {
  margin-bottom: 0;
}
.tl-preview-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.tl-preview-content {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
}
.tl-preview-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tl-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-meta-key {
  font-size: 13px;
  color: var(--gray-500);
  min-width: 70px;
}
.tl-meta-val {
  font-size: 13px;
  color: var(--gray-900);
  font-weight: 500;
}
.tl-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: #fff;
}
.tl-form-group {
  margin-bottom: 18px;
}
.tl-form-group:last-child {
  margin-bottom: 0;
}
.tl-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.tl-form-label .required {
  color: var(--primary);
  margin-left: 2px;
}
.tl-form-input, .tl-form-select, .tl-form-textarea {
  width: 100%;
  height: 38px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-size: 13px;
  color: var(--gray-700);
  outline: none;
  transition: border-color .2s;
  background: #fff;
}
.tl-form-textarea {
  height: 80px;
  padding: 8px 12px;
  resize: vertical;
}
.tl-form-input:focus, .tl-form-select:focus, .tl-form-textarea:focus {
  border-color: var(--primary);
}
.tl-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tl-upload-area {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.tl-upload-area:hover {
  border-color: var(--primary);
  background: #fef2f2;
}
.tl-upload-icon {
  color: var(--gray-400);
  margin-bottom: 8px;
}
.tl-upload-icon svg {
  width: 36px;
  height: 36px;
}
.tl-upload-text {
  font-size: 14px;
  color: var(--gray-600);
}
.tl-upload-hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}
.tl-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #16a34a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  animation: tlModalIn .3s ease;
}
@media (max-width: 1200px) {
  .tl-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .tl-stats {
    grid-template-columns: 1fr 1fr;
  }
  .tl-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .tl-search {
    margin-left: 0;
  }
  .tl-search input {
    width: 100%;
  }
  .tl-form-row {
    grid-template-columns: 1fr;
  }
  .tl-preview-meta {
    grid-template-columns: 1fr;
  }
}
.tc-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tc-page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
}
.tc-page-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}
.tc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.tc-stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}
.tc-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.tc-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tc-stat-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.tc-stat-icon.ic-total {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}
.tc-stat-icon.ic-purchase {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}
.tc-stat-icon.ic-sale {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}
.tc-stat-icon.ic-service {
  background: linear-gradient(135deg, #d97706, #fbbf24);
}
.tc-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}
.tc-stat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}
.tc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.tc-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tc-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tc-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tc-category-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.tc-category-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.tc-card-header {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
}
.tc-card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tc-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tc-cat-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.tc-cat-icon.type-purchase {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}
.tc-cat-icon.type-sale {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}
.tc-cat-icon.type-service {
  background: linear-gradient(135deg, #d97706, #fbbf24);
}
.tc-cat-icon.type-framework {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}
.tc-cat-icon.type-labor {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}
.tc-cat-icon.type-tech {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
}
.tc-cat-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}
.tc-cat-count {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}
.tc-card-actions {
  display: flex;
  gap: 4px;
}
.tc-card-actions button {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--gray-50);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all .15s;
}
.tc-card-actions button:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}
.tc-card-actions button svg {
  width: 16px;
  height: 16px;
}
.tc-card-body {
  padding: 16px 20px 20px;
}
.tc-sub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tc-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--gray-100);
  cursor: pointer;
  transition: color .15s;
}
.tc-sub-item:last-child {
  border-bottom: none;
}
.tc-sub-item:hover .tc-sub-name {
  color: var(--primary);
}
.tc-sub-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tc-sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
}
.tc-sub-name {
  font-size: 14px;
  color: var(--gray-700);
  transition: color .15s;
}
.tc-sub-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tc-sub-num {
  font-size: 12px;
  color: var(--gray-400);
  background: var(--gray-50);
  padding: 2px 8px;
  border-radius: 10px;
}
.tc-sub-arrow {
  color: var(--gray-300);
  display: flex;
  transition: color .15s;
}
.tc-sub-item:hover .tc-sub-arrow {
  color: var(--primary);
}
.tc-sub-arrow svg {
  width: 14px;
  height: 14px;
}
.tc-card-footer {
  padding: 12px 20px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tc-card-footer span {
  font-size: 13px;
  color: var(--gray-500);
}
.tc-card-footer a {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.tc-card-footer a:hover {
  text-decoration: underline;
}
.tc-search {
  position: relative;
}
.tc-search input {
  width: 240px;
  height: 36px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 36px 0 12px;
  font-size: 13px;
  color: var(--gray-700);
  outline: none;
  transition: border-color .2s;
}
.tc-search input:focus {
  border-color: var(--primary);
}
.tc-search input::placeholder {
  color: var(--gray-400);
}
.tc-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  display: flex;
}
.tc-search-icon svg {
  width: 16px;
  height: 16px;
}
.tc-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.tc-modal-overlay.show {
  display: flex;
}
.tc-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 520px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.tc-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tc-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}
.tc-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all .15s;
}
.tc-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}
.tc-modal-close svg {
  width: 18px;
  height: 18px;
}
.tc-modal-body {
  padding: 24px;
}
.tc-form-group {
  margin-bottom: 18px;
}
.tc-form-group:last-child {
  margin-bottom: 0;
}
.tc-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.tc-form-label .required {
  color: var(--primary);
  margin-left: 2px;
}
.tc-form-input, .tc-form-select, .tc-form-textarea {
  width: 100%;
  height: 38px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-size: 13px;
  color: var(--gray-700);
  outline: none;
  transition: border-color .2s;
  background: #fff;
}
.tc-form-textarea {
  height: 80px;
  padding: 8px 12px;
  resize: vertical;
}
.tc-form-input:focus, .tc-form-select:focus, .tc-form-textarea:focus {
  border-color: var(--primary);
}
.tc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tc-icon-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tc-icon-opt {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.tc-icon-opt:hover {
  border-color: var(--primary);
}
.tc-icon-opt.active {
  border-color: var(--primary);
  background: #fef2f2;
}
.tc-icon-opt svg {
  width: 20px;
  height: 20px;
}
.tc-color-options {
  display: flex;
  gap: 8px;
}
.tc-color-opt {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all .15s;
}
.tc-color-opt:hover {
  transform: scale(1.1);
}
.tc-color-opt.active {
  border-color: var(--gray-900);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gray-300);
}
.tc-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.tc-btn {
  height: 36px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s;
}
.tc-btn svg {
  width: 16px;
  height: 16px;
}
.tc-btn-primary {
  background: var(--primary);
  color: #fff;
}
.tc-btn-primary:hover {
  background: #c42e34;
}
.tc-btn-outline {
  background: #fff;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.tc-btn-outline:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}
.tc-btn-text {
  background: none;
  color: var(--gray-500);
  padding: 0 10px;
}
.tc-btn-text:hover {
  color: var(--primary);
  background: #fef2f2;
}
.tc-empty-row {
  padding: 10px 0;
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
}
@media (max-width: 1200px) {
  .tc-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tc-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .tc-category-grid {
    grid-template-columns: 1fr;
  }
  .tc-stats {
    grid-template-columns: 1fr 1fr;
  }
  .tc-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .tc-toolbar-left, .tc-toolbar-right {
    justify-content: space-between;
  }
  .tc-form-row {
    grid-template-columns: 1fr;
  }
}
.ca-page {
  padding: 0;
}
.ca-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--gray-500);
}
.ca-breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color .2s;
}
.ca-breadcrumb a:hover {
  color: var(--primary);
}
.ca-breadcrumb .bc-sep {
  color: var(--gray-300);
}
.ca-breadcrumb .bc-current {
  color: var(--gray-800);
  font-weight: 500;
}
.ca-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 20px;
  border-bottom: 1px solid var(--gray-100);
  margin: 0 24px;
}
.ca-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}
.ca-header-actions {
  display: flex;
  gap: 10px;
}
.ca-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.ca-btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.ca-btn-primary:hover {
  background: #c42e34;
  border-color: #c42e34;
}
.ca-btn-outline {
  background: #fff;
  color: var(--gray-600);
  border-color: var(--gray-200);
}
.ca-btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.ca-btn-ghost {
  background: transparent;
  color: var(--gray-500);
  border: none;
  padding: 8px 12px;
}
.ca-btn-ghost:hover {
  color: var(--primary);
}
.ca-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 24px;
  border: 1px solid var(--gray-100);
}
.ca-form-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ca-form-card-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}
.ca-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}
.ca-form-grid .ca-form-full {
  grid-column: 1/-1;
}
.ca-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ca-form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 2px;
}
.ca-form-label .required {
  color: var(--primary);
  font-size: 14px;
  line-height: 1;
}
.ca-form-input,.ca-form-select,.ca-form-textarea {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-800);
  background: #fff;
  transition: border-color .2s,box-shadow .2s;
  outline: none;
  font-family: inherit;
}
.ca-form-input::placeholder,.ca-form-textarea::placeholder {
  color: var(--gray-400);
}
.ca-form-input:focus,.ca-form-select:focus,.ca-form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(226,56,62,.08);
}
.ca-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.ca-form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
.ca-form-hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}
.ca-form-input[type="date"] {
  cursor: pointer;
}
.ca-form-input[type="date"]::-webkit-calendar-picker-indicator {
  color: var(--gray-400);
  cursor: pointer;
}
.ca-bottom-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--gray-100);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  z-index: 10;
  margin: 0 -1px;
}
.ca-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: #fff;
  z-index: 1000;
  transform: translateX(120%);
  transition: transform .3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.ca-toast.show {
  transform: translateX(0);
}
.ca-toast-success {
  background: #52c41a;
}
.ca-toast-error {
  background: var(--primary);
}
@media (max-width:900px) {
  .ca-form-grid {
    grid-template-columns: 1fr;
  }
  .ca-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width:640px) {
  .ca-form-card {
    margin: 12px 12px;
    padding: 16px;
  }
  .ca-header {
    margin: 0 12px;
    padding: 0 12px 16px;
  }
}
.sl-page {
  background: var(--gray-50, #f5f6fa);
  min-height: 100vh;
}
.sl-content {
  padding: 24px;
}
.sl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-bottom: 16px;
}
.sl-breadcrumb a {
  color: var(--gray-400, #999);
  text-decoration: none;
}
.sl-breadcrumb a:hover {
  color: var(--primary, #e2383e);
}
.sl-breadcrumb .bc-sep {
  margin: 0 2px;
}
.sl-breadcrumb .bc-current {
  color: var(--gray-700, #333);
}
.sl-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sl-title-bar h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800, #1a1a2e);
  margin: 0;
}
.sl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.sl-stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.sl-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sl-stat-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.sl-stat-icon.si-total {
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.sl-stat-icon.si-pending {
  background: linear-gradient(135deg, #f6d365, #fda085);
}
.sl-stat-icon.si-confirmed {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}
.sl-stat-icon.si-disputed {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}
.sl-stat-info {
  flex: 1;
}
.sl-stat-label {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-bottom: 4px;
}
.sl-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-800, #1a1a2e);
}
.sl-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 10px 10px 0 0;
  border-bottom: 2px solid var(--gray-100, #f0f0f5);
  padding: 0 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.sl-tab {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--gray-500, #666);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
  position: relative;
}
.sl-tab:hover {
  color: var(--primary, #e2383e);
}
.sl-tab.active {
  color: var(--primary, #e2383e);
  border-bottom-color: var(--primary, #e2383e);
  font-weight: 600;
}
.sl-tab .tab-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 11px;
  background: var(--gray-100, #f0f0f5);
  border-radius: 9px;
  padding: 0 5px;
  margin-left: 6px;
  color: var(--gray-500, #666);
}
.sl-tab.active .tab-badge {
  background: rgba(226,56,62,.1);
  color: var(--primary, #e2383e);
}
.sl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #fff;
  border-top: 1px solid var(--gray-100, #f0f0f5);
}
.sl-toolbar-left {
  display: flex;
  gap: 10px;
}
.sl-toolbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--gray-200, #e0e0e8);
  background: #fff;
  color: var(--gray-600, #444);
  transition: all .2s;
}
.sl-btn:hover {
  border-color: var(--primary, #e2383e);
  color: var(--primary, #e2383e);
}
.sl-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.sl-btn-primary {
  background: var(--primary, #e2383e);
  color: #fff;
  border-color: var(--primary, #e2383e);
}
.sl-btn-primary:hover {
  background: #c52e34;
  color: #fff;
  border-color: #c52e34;
}
.sl-btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}
.sl-btn-link {
  background: none;
  border: none;
  color: var(--primary, #e2383e);
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}
.sl-btn-link:hover {
  text-decoration: underline;
}
.sl-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--gray-200, #e0e0e8);
  border-radius: 6px;
  font-size: 13px;
  color: var(--gray-600, #444);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E") right 10px center no-repeat;
  appearance: none;
  cursor: pointer;
}
.sl-select:focus {
  border-color: var(--primary, #e2383e);
  outline: none;
}
.sl-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200, #e0e0e8);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.sl-search input {
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 13px;
  width: 220px;
  color: var(--gray-700, #333);
}
.sl-search input::placeholder {
  color: var(--gray-300, #bbb);
}
.sl-search-btn {
  padding: 8px 14px;
  background: var(--primary, #e2383e);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.sl-search-btn svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}
.sl-table-wrap {
  background: #fff;
  padding: 0px;
}
.sl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sl-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--gray-500, #666);
  background: var(--gray-50, #fafafa);
  border-bottom: 1px solid var(--gray-100, #f0f0f5);
  white-space: nowrap;
}
.sl-table td {
  padding: 14px;
  border-bottom: 1px solid var(--gray-100, #f0f0f5);
  color: var(--gray-700, #333);
  vertical-align: middle;
}
.sl-table tr:hover td {
  background: rgba(226,56,62,.02);
}
.sl-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary, #e2383e);
}
.sl-code-link {
  color: var(--primary, #e2383e);
  text-decoration: none;
  font-weight: 500;
}
.sl-code-link:hover {
  text-decoration: underline;
}
.sl-period {
  font-size: 12px;
  color: var(--gray-500, #666);
}
.sl-amount {
  font-weight: 600;
  color: var(--primary, #e2383e);
}
.sl-amount-settled {
  color: #52c41a;
}
.sl-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.sl-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.sl-status-draft {
  background: #f0f0f5;
  color: #999;
}
.sl-status-draft::before {
  background: #999;
}
.sl-status-pending {
  background: #fff7e6;
  color: #d48806;
}
.sl-status-pending::before {
  background: #d48806;
}
.sl-status-confirmed {
  background: #f0fff4;
  color: #389e0d;
}
.sl-status-confirmed::before {
  background: #389e0d;
}
.sl-status-disputed {
  background: #fff1f0;
  color: #cf1322;
}
.sl-status-disputed::before {
  background: #cf1322;
}
.sl-status-partial {
  background: #e6f7ff;
  color: #096dd9;
}
.sl-status-partial::before {
  background: #096dd9;
}
.sl-status-settled {
  background: #f9f0ff;
  color: #722ed1;
}
.sl-status-settled::before {
  background: #722ed1;
}
.sl-type-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.sl-type-purchase {
  background: rgba(226,56,62,.08);
  color: var(--primary, #e2383e);
}
.sl-type-sale {
  background: rgba(24,144,255,.08);
  color: #1890ff;
}
.sl-type-service {
  background: rgba(82,196,26,.08);
  color: #52c41a;
}
.sl-actions {
  display: flex;
  gap: 4px;
}
.sl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.sl-page-info {
  font-size: 13px;
  color: var(--gray-400, #999);
}
.sl-page-btns {
  display: flex;
  gap: 4px;
}
.sl-page-btn {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200, #e0e0e8);
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  color: var(--gray-600, #444);
  transition: all .2s;
}
.sl-page-btn:hover {
  border-color: var(--primary, #e2383e);
  color: var(--primary, #e2383e);
}
.sl-page-btn.active {
  background: var(--primary, #e2383e);
  color: #fff;
  border-color: var(--primary, #e2383e);
}
.sl-page-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
}
.sl-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.sl-modal-overlay.show {
  display: flex;
}
.sl-modal {
  background: #fff;
  border-radius: 12px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  overflow: hidden;
}
.sl-modal-header {
  padding: 20px 24px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800, #1a1a2e);
  border-bottom: 1px solid var(--gray-100, #f0f0f5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sl-modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gray-400, #999);
  border: none;
  background: none;
  font-size: 18px;
}
.sl-modal-close:hover {
  background: var(--gray-100, #f0f0f5);
  color: var(--gray-700, #333);
}
.sl-modal-body {
  padding: 24px;
}
.sl-modal-body p {
  font-size: 14px;
  color: var(--gray-600, #444);
  line-height: 1.6;
  margin: 0;
}
.sl-modal-body .warn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff7e6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.sl-modal-body .warn-icon svg {
  width: 24px;
  height: 24px;
  fill: #faad14;
}
.sl-modal-body .confirm-text {
  text-align: center;
}
.sl-modal-footer {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--gray-100, #f0f0f5);
}
@media (max-width: 1200px) {
  .sl-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .sl-stats {
    grid-template-columns: 1fr;
  }
  .sl-toolbar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .sl-toolbar-left, .sl-toolbar-right {
    flex-wrap: wrap;
  }
  .sl-table {
    font-size: 12px;
  }
  .sl-table th, .sl-table td {
    padding: 10px 8px;
  }
}
.dm-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.dm-main {
  flex: 1;
  padding: 20px 24px;
  overflow: auto;
}
.dm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 12px;
}
.dm-breadcrumb a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.dm-breadcrumb a:hover {
  color: var(--primary);
}
.dm-breadcrumb span {
  user-select: none;
}
.dm-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dm-page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--foreground);
}
.dm-page-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 4px;
}
.dm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1.4;
}
.dm-btn:hover {
  background: var(--muted);
}
.dm-btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.dm-btn-primary:hover {
  background: var(--primary-hover);
}
.dm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.dm-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--background);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.dm-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}
.dm-stat-icon svg {
  width: 20px;
  height: 20px;
}
.dm-stat-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}
.dm-stat-icon.green {
  background: #f0fdf4;
  color: #16a34a;
}
.dm-stat-icon.orange {
  background: #fff7ed;
  color: #ea580c;
}
.dm-stat-icon.red {
  background: #fef2f2;
  color: #dc2626;
}
.dm-stat-info {
  display: flex;
  flex-direction: column;
}
.dm-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
}
.dm-stat-label {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 2px;
}
.dm-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  min-height: 0;
}
.dm-tree-panel {
  display: flex;
  flex-direction: column;
  background: var(--background);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  max-height: calc(100vh - 260px);
}
.dm-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.dm-tree-header-title {
  font-size: 14px;
  font-weight: 600;
}
.dm-tree-header-actions {
  display: flex;
  gap: 4px;
}
.dm-tree-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border: none;
}
.dm-tree-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}
.dm-tree-btn svg {
  width: 16px;
  height: 16px;
}
.dm-tree-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.dm-tree-search input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--background);
}
.dm-tree-search input:focus {
  border-color: var(--primary);
}
.dm-tree {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}
.dm-tree-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 13px;
}
.dm-tree-row:hover {
  background: var(--muted);
}
.dm-tree-row.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 500;
}
.dm-tree-row.active .dm-tree-label {
  color: #2563eb;
}
.dm-tree-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s, background 0.15s;
  color: var(--muted-foreground);
}
.dm-tree-toggle:hover {
  background: var(--border);
}
.dm-tree-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.dm-tree-toggle.expanded svg {
  transform: rotate(90deg);
}
.dm-tree-toggle.empty {
  visibility: hidden;
}
.dm-tree-folder {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.dm-tree-folder svg {
  width: 18px;
  height: 18px;
}
.dm-tree-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-tree-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted-foreground);
  background: var(--muted);
  padding: 1px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}
.dm-tree-children {
  display: none;
}
.dm-tree-children.show {
  display: block;
}
.dm-table-panel {
  min-width: 0;
}
.dm-card {
  background: var(--background);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.dm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.dm-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dm-current-dept {
  font-size: 14px;
  color: var(--foreground);
}
.dm-current-dept span {
  font-weight: 600;
}
.dm-toolbar-right {
  display: flex;
  gap: 8px;
}
.dm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dm-table thead {
  background: var(--muted);
}
.dm-table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 500;
  color: var(--muted-foreground);
  font-size: 12px;
  text-transform: none;
  border-bottom: 1px solid var(--border);
}
.dm-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.dm-table tbody tr:hover {
  background: #fafbfc;
}
.dm-dept-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dm-dept-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted-foreground);
}
.dm-dept-dot.level-0 {
  background: var(--primary);
  width: 10px;
  height: 10px;
}
.dm-dept-dot.level-1 {
  background: #2563eb;
}
.dm-dept-dot.level-2 {
  background: #6366f1;
}
.dm-dept-name {
  font-weight: 500;
}
.dm-dept-path {
  font-size: 11px;
  color: var(--muted-foreground);
  margin-top: 2px;
}
.dm-leader {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dm-leader-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.dm-leader-avatar.c0 {
  background: #6366f1;
}
.dm-leader-avatar.c1 {
  background: #3b82f6;
}
.dm-leader-avatar.c2 {
  background: #10b981;
}
.dm-leader-avatar.c3 {
  background: #f59e0b;
}
.dm-leader-avatar.c4 {
  background: #ef4444;
}
.dm-leader-avatar.c5 {
  background: #8b5cf6;
}
.dm-leader-avatar.c6 {
  background: #ec4899;
}
.dm-leader-avatar.c7 {
  background: #14b8a6;
}
.dm-leader-name {
  font-size: 13px;
}
.dm-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.dm-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dm-status-dot.green {
  background: #22c55e;
}
.dm-status-dot.orange {
  background: #f59e0b;
}
.dm-status-dot.red {
  background: #ef4444;
}
.dm-action-link {
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  transition: opacity 0.15s;
  text-decoration: none;
}
.dm-action-link:hover {
  opacity: 0.8;
}
.dm-action-sep {
  color: var(--border);
  margin: 0 4px;
  font-size: 12px;
  user-select: none;
}
.dm-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}
.dm-pagination-info {
  font-size: 13px;
  color: var(--muted-foreground);
}
.dm-pagination-pages {
  display: flex;
  gap: 4px;
}
.dm-page-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--background);
  cursor: pointer;
  transition: all 0.15s;
}
.dm-page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.dm-page-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.dm-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dm-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.dm-modal-overlay.show {
  display: flex;
}
.dm-modal {
  background: var(--background);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 520px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.dm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.dm-modal-title {
  font-size: 16px;
  font-weight: 600;
}
.dm-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: all 0.15s;
  background: none;
  border: none;
}
.dm-modal-close:hover {
  background: var(--muted);
  color: var(--foreground);
}
.dm-modal-close svg {
  width: 18px;
  height: 18px;
}
.dm-modal-body {
  padding: 24px;
  overflow-y: auto;
}
.dm-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.dm-form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.dm-form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 6px;
}
.dm-form-label .required {
  color: #ef4444;
  margin-left: 2px;
}
.dm-form-input, .dm-form-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--background);
  color: var(--foreground);
}
.dm-form-input:focus, .dm-form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}
.dm-form-input.error {
  border-color: #ef4444;
}
.dm-form-error {
  display: none;
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
}
.dm-form-hint {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 4px;
}
.dm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dm-form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--background);
  color: var(--foreground);
}
.dm-form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}
.dm-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.dm-switch-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  position: relative;
  transition: background 0.2s;
}
.dm-switch-track.on {
  background: #22c55e;
}
.dm-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: left 0.2s;
}
.dm-switch-track.on .dm-switch-thumb {
  left: 22px;
}
.dm-switch-label {
  font-size: 13px;
  color: var(--foreground);
}
.dm-confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}
.dm-confirm-overlay.show {
  display: flex;
}
.dm-confirm {
  background: var(--background);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 400px;
  max-width: 90vw;
  padding: 28px;
  text-align: center;
}
.dm-confirm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fef2f2;
  color: #ef4444;
  margin: 0 auto 16px;
}
.dm-confirm-icon svg {
  width: 24px;
  height: 24px;
}
.dm-confirm-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.dm-confirm-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 24px;
  line-height: 1.5;
}
.dm-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.dm-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: var(--foreground);
  color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.dm-toast.show {
  opacity: 1;
}
.dm-toast.success {
  background: #16a34a;
}
.dm-toast.error {
  background: #ef4444;
}
.dm-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted-foreground);
}
.dm-empty p {
  margin-bottom: 8px;
}
.dm-empty a {
  color: var(--primary);
}
@media (max-width: 1024px) {
  .dm-body {
    grid-template-columns: 1fr;
  }
  .dm-tree-panel {
    max-height: 300px;
  }
  .dm-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .dm-main {
    padding: 12px 16px;
  }
  .dm-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .dm-stat-card {
    padding: 12px 14px;
  }
  .dm-stat-value {
    font-size: 20px;
  }
  .dm-form-row {
    grid-template-columns: 1fr;
  }
  .dm-toolbar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
