/* ============================================
   海外经销商平台 — 全局样式
   参考 Axure 原型视觉风格
   ============================================ */
:root {
  --primary: #2D78EE;
  --primary-hover: #4080ff;
  --bg-page: #F3F3F3;
  --bg-white: #FFFFFF;
  --bg-dark: #352F2F;
  --bg-sidebar: #352F2F;
  --bg-header: #352F2F;
  --bg-menu-active: #50555B;
  --bg-submenu: #C4C6C5;
  --bg-submenu-hover: #DDDDDD;
  --bg-submenu-l3: #D8DAD9;
  --text-primary: #333333;
  --text-secondary: #50555B;
  --text-placeholder: #C2C4CB;
  --text-white: #FFFFFF;
  --text-menu: #FFFEFF;
  --text-submenu: #352F2F;
  --border-color: #DCE0E6;
  --border-reset: #DDE1E5;
  --border-light: #f0f0f0;
  --shadow-header: 0px 1px 4px rgba(0, 21, 41, 0.12);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-family: "PingFangSC-Regular", "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --sidebar-width: 192px;
  --header-height: 68px;
  --tab-height: 28px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: var(--font-family); font-size: 14px; color: var(--text-primary); background: var(--bg-page); overflow: hidden; }
ul, ol { list-style: none; }
a { text-decoration: none; color: var(--primary); cursor: pointer; }
a:hover { color: var(--primary-hover); }
table { border-collapse: collapse; }
img { vertical-align: middle; }

/* ========== App Layout ========== */
.app-container { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* ---------- Header ---------- */
.app-header {
  display: flex; align-items: center; height: var(--header-height);
  background: var(--bg-header); padding: 0 20px; z-index: 100;
  flex-shrink: 0; box-shadow: var(--shadow-header);
}
.header-left { display: flex; align-items: center; gap: 8px; width: var(--sidebar-width); flex-shrink: 0; }
.header-left .logo-icon {
  width: 28px; height: 28px; background: var(--primary); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px;
}
.header-left .platform-name { font-size: 15px; font-weight: 600; color: var(--text-white); white-space: nowrap; }
.header-center { flex: 1; display: flex; align-items: center; gap: 12px; padding-left: 24px; }
.header-center .welcome { color: var(--text-white); font-size: 18px; white-space: nowrap; }
.header-center .menu-search {
  display: flex; align-items: center; background: var(--bg-white); border-radius: var(--radius-md);
  padding: 4px 12px; margin-left: 16px; border: 1px solid var(--border-color);
}
.header-center .menu-search input {
  border: none; background: transparent; outline: none; width: 160px; font-size: 13px; color: var(--text-primary);
}
.header-center .menu-search input::placeholder { color: var(--text-placeholder); }
.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-right .user-info { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.header-right .user-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #e8f0fe;
  display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 600; font-size: 14px;
}
.header-right .user-name { font-size: 14px; color: rgba(255,255,255,0.89); }
.header-right .icon-btn { width: 20px; height: 20px; cursor: pointer; opacity: 0.6; font-size: 16px; color: rgba(255,255,255,0.7); text-align: center; line-height: 20px; }
.header-right .icon-btn:hover { opacity: 1; }

/* ---------- Body ---------- */
.app-body { display: flex; flex: 1; overflow: hidden; }

/* ---------- Sidebar ---------- */
.app-sidebar {
  width: var(--sidebar-width); background: var(--bg-sidebar); color: var(--text-white);
  flex-shrink: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; user-select: none;
  transition: width 0.25s;
}
.app-sidebar::-webkit-scrollbar { width: 4px; }
.app-sidebar::-webkit-scrollbar-thumb { background: #555; border-radius: 2px; }
.app-sidebar.collapsed { width: 48px; }
.app-sidebar.collapsed .sidebar-logo { justify-content: center; padding: 16px 8px; }
.app-sidebar.collapsed .sidebar-logo-text,
.app-sidebar.collapsed .menu-item .menu-arrow,
.app-sidebar.collapsed .menu-item .menu-text,
.app-sidebar.collapsed .sub-menu { display: none; }
.app-sidebar.collapsed .menu-item { justify-content: center; padding: 0 8px; }
.app-sidebar.collapsed .sidebar-toggle { justify-content: center; padding: 12px 0; }

/* Sidebar Logo */
.sidebar-logo { display: flex; align-items: center; gap: 8px; padding: 16px 16px 20px; flex-shrink: 0; }
.sidebar-logo-icon {
  width: 28px; height: 28px; background: var(--primary); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.sidebar-logo-text { font-size: 12px; font-weight: 500; color: #fff; white-space: nowrap; }

/* Sidebar Menu */
.sidebar-menu { flex: 1; }
.menu-group { margin-top: 8px; }

.menu-item {
  display: flex; align-items: center; height: 40px; padding: 0 16px; cursor: pointer;
  color: rgba(255,255,255,0.7); font-size: 14px; transition: all 0.2s; position: relative; white-space: nowrap;
}
.menu-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.menu-item.active { background: var(--bg-menu-active); color: var(--text-menu); font-weight: 500; }
.menu-item .menu-arrow { margin-right: 6px; width: 12px; text-align: center; font-size: 10px; transition: transform 0.2s; flex-shrink: 0; }
.menu-item .menu-arrow.expanded { transform: rotate(90deg); }
.menu-item .menu-icon { margin-right: 8px; width: 16px; text-align: center; flex-shrink: 0; }
.menu-item .menu-text { flex: 1; }

/* Sub-menus */
.sub-menu { overflow: hidden; transition: max-height 0.3s ease; max-height: 0; }
.sub-menu.open { max-height: 600px; }
.sub-menu > .menu-item { padding-left: 42px; height: 40px; font-size: 14px; background: var(--bg-submenu); color: var(--text-submenu); }
.sub-menu > .menu-item:hover { background: var(--bg-submenu-hover); }
.sub-menu > .menu-item.current { color: var(--text-submenu); font-weight: 500; background: var(--bg-submenu); }
.sub-menu .sub-menu > .menu-item { padding-left: 62px; background: var(--bg-submenu-l3); }
.sub-menu .sub-menu > .menu-item:hover { background: var(--bg-submenu-hover); }

.sub-menu .menu-item .indicator {
  width: 4px; height: 40px; background: transparent; position: absolute; left: 0; top: 0;
}
.sub-menu .menu-item.current .indicator { background: #352F2F; }

/* Sidebar toggle button */
.sidebar-toggle {
  display: flex; justify-content: flex-start; padding: 12px 18px; cursor: pointer;
  opacity: 0.6; transition: opacity 0.2s; flex-shrink: 0; margin-top: auto;
}
.sidebar-toggle:hover { opacity: 1; }
.sidebar-toggle .toggle-icon {
  width: 16px; height: 16px; border: 1.5px solid rgba(255,255,255,0.6); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: rgba(255,255,255,0.6);
}

/* ---------- Main Content ---------- */
.app-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-page); }

/* Breadcrumb */
.breadcrumb {
  padding: 12px 24px; font-size: 12px; color: var(--text-secondary); background: var(--bg-white);
  flex-shrink: 0;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }
.breadcrumb .sep { margin: 0 6px; color: var(--text-placeholder); }

/* Content Wrapper */
.content-wrapper { flex: 1; overflow-y: auto; padding: 16px 24px; }

/* ---------- Query Area ---------- */
.query-area {
  background: var(--bg-white); border-radius: var(--radius-lg); padding: 20px 24px;
  margin-bottom: 16px; position: relative;
}
.query-area.collapsed { padding: 12px 24px; }

.query-toggle {
  display: flex; align-items: center; gap: 4px; color: var(--text-primary); font-size: 12px;
  cursor: pointer; user-select: none; white-space: nowrap;
}
.query-toggle .arrow { transition: transform 0.2s; font-size: 10px; }

.query-form { display: none; }
.query-form.visible { display: block; }

.query-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 20px; margin-bottom: 12px; }
@media (max-width: 1400px) { .query-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .query-row { grid-template-columns: repeat(2, 1fr); } }

.query-item { display: flex; align-items: center; gap: 8px; }
.query-item .label {
  font-size: 12px; color: var(--text-primary); white-space: nowrap;
  min-width: 72px; text-align: right;
}
.query-item .control {
  flex: 1; height: 32px; padding: 0 10px; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); font-size: 12px; color: var(--text-primary); background: var(--bg-white);
  outline: none; transition: border-color 0.2s; font-family: var(--font-family);
}
.query-item .control::placeholder { color: var(--text-placeholder); }
.query-item .control:focus { border-color: var(--primary); }
.query-item select.control {
  cursor: pointer; appearance: none; -webkit-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='%2386909c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; padding-right: 28px;
}
.query-item .control.wide { min-width: 180px; }

.query-row-actions {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding-top: 8px;
}

/* ---------- Date Range Picker ---------- */
.date-range-picker { flex: 1; position: relative; }
.date-range-display {
  display: flex; align-items: center; height: 32px; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); background: var(--bg-white); cursor: pointer;
  padding: 0 8px; transition: border-color 0.2s; font-size: 12px; color: var(--text-placeholder);
  font-family: var(--font-family);
}
.date-range-display:hover { border-color: #999; }
.date-range-display.active { border-color: var(--primary); }
.date-range-display.has-value { color: var(--text-primary); }
.date-range-icon { display: flex; align-items: center; margin-left: 4px; flex-shrink: 0; }
.date-range-dropdown {
  position: absolute; top: 38px; left: 0; width: 280px; background: var(--bg-white);
  border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px;
  box-shadow: var(--shadow-md); z-index: 20; display: none;
}
.date-range-dropdown.show { display: block; }
.date-range-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.date-range-inputs input[type="date"] {
  flex: 1; height: 32px; padding: 0 8px; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); font-size: 12px; font-family: var(--font-family); outline: none; cursor: pointer;
}
.date-range-inputs input[type="date"]:focus { border-color: var(--primary); }
.date-range-sep { color: var(--text-placeholder); font-size: 12px; }
.date-range-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 32px;
  padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer; transition: all 0.2s; user-select: none; gap: 4px;
  font-family: var(--font-family);
}
.btn-primary { background: #222222; color: #fff; border-color: #222222; }
.btn-primary:hover { background: #444444; border-color: #444444; }
.btn-default { background: var(--bg-white); color: #222222; border-color: var(--border-reset); }
.btn-default:hover { border-color: #999999; }
.btn-danger { background: #fff; color: #f53f3f; border-color: #f53f3f; }
.btn-danger:hover { background: #f53f3f; color: #fff; }
.btn-success { background: #52c41a; color: #fff; border-color: #52c41a; }
.btn-success:hover { background: #73d13d; border-color: #73d13d; }
.btn-link { background: transparent; color: var(--primary); border: none; padding: 0 8px; height: auto; }
.btn-link:hover { opacity: 0.8; }
.btn-link.danger { color: #f53f3f; }
.btn-sm { height: 28px; padding: 0 12px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.toolbar-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }

/* ---------- Table ---------- */
.table-container { background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-color); }

.table-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.table-actions .table-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }

.table-wrapper { overflow-x: auto; }

table.data-table { width: 100%; min-width: 1000px; border-collapse: collapse; }
table.data-table thead th {
  background: #fafbfc; padding: 10px 12px; font-size: 12px; font-weight: 500;
  color: var(--text-secondary); text-align: center; border-bottom: 1px solid var(--border-color);
  white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
table.data-table thead th:last-child,
table.data-table tbody td:last-child {
  position: sticky; right: 0; background: #fff; box-shadow: -2px 0 4px rgba(0,0,0,0.04);
}
table.data-table thead th:last-child { background: #fafbfc; z-index: 3; }
table.data-table tbody tr:hover td:last-child { background: #f7f8fa; }
table.data-table tbody td {
  padding: 10px 12px; font-size: 13px; color: var(--text-primary);
  border-bottom: 1px solid var(--border-light); white-space: nowrap; text-align: center;
}
table.data-table tbody tr:hover td { background: #f7f8fa; }
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table .col-seq { width: 60px; }
table.data-table .col-actions { width: 100px; }

.action-links { display: flex; gap: 12px; justify-content: center; }
.action-links a { color: var(--primary); font-size: 13px; cursor: pointer; }
.action-links a:hover { opacity: 0.8; }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 0; color: var(--text-placeholder); font-size: 14px; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }

/* ---------- Pagination ---------- */
.pagination-container {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 12px 16px; background: var(--bg-white);
}
.pagination-container .page-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-white);
  cursor: pointer; font-size: 13px; color: var(--text-primary); transition: all 0.2s; user-select: none;
}
.pagination-container .page-btn:hover { border-color: var(--primary); color: var(--primary); }
.pagination-container .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination-container .page-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-container .page-size { margin-left: 12px; font-size: 13px; color: var(--text-secondary); }
.pagination-container .page-size select {
  height: 32px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  padding: 0 8px; font-size: 13px; outline: none; margin: 0 4px;
}
.pagination-container .page-jump { margin-left: 12px; display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.pagination-container .page-jump input {
  width: 48px; height: 32px; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  text-align: center; font-size: 13px; outline: none;
}
.pagination-container .page-jump input:focus { border-color: var(--primary); }
.page-ellipsis { width: 32px; text-align: center; color: var(--text-placeholder); user-select: none; }
.pagination-info-total { font-size: 13px; color: var(--text-secondary); margin-right: auto; }

/* ---------- Tab Bar (bottom) ---------- */
.tab-bar {
  display: flex; align-items: flex-end; height: var(--tab-height); background: var(--bg-white);
  border-top: 1px solid var(--border-color); padding: 0 8px; gap: 2px; flex-shrink: 0; overflow-x: auto;
}
.tab-item {
  display: flex; align-items: center; height: 24px; padding: 0 12px; background: #e8e9eb;
  border-radius: 4px 4px 0 0; font-size: 12px; color: var(--text-secondary);
  cursor: pointer; white-space: nowrap; gap: 6px; user-select: none;
}
.tab-item.active { background: var(--bg-page); color: var(--text-primary); font-weight: 500; }
.tab-item .tab-close { font-size: 10px; width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; opacity: 0.5; }
.tab-item .tab-close:hover { opacity: 1; background: rgba(0,0,0,0.1); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.45);
  z-index: 1000; display: none; align-items: center; justify-content: center; animation: fadeIn 0.2s ease;
}
.modal-overlay.show { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-white); border-radius: var(--radius-md); min-width: 600px; max-width: 90vw;
  max-height: 80vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15); animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border-color); }
.modal-header .modal-title { font-size: 16px; font-weight: 600; }
.modal-close { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; color: var(--text-secondary); font-size: 16px; border: none; background: none; transition: all 0.2s; }
.modal-close:hover { background: var(--border-light); }
.modal-body { flex: 1; overflow-y: auto; padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--border-color); }

/* ---------- Form ---------- */
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-item { display: flex; align-items: center; gap: 8px; flex: 1; }
.form-item .form-label { font-size: 13px; color: var(--text-secondary); white-space: nowrap; min-width: 80px; text-align: right; flex-shrink: 0; }
.form-item .form-label .required { color: #f53f3f; margin-right: 2px; }
.form-item .form-control {
  flex: 1; height: 36px; padding: 0 12px; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); font-size: 13px; font-family: var(--font-family); outline: none;
}
.form-item .form-control:focus { border-color: var(--primary); }
.form-item .form-control::placeholder { color: var(--text-placeholder); }
.form-item textarea.form-control { height: 80px; padding: 8px 12px; resize: vertical; }
.form-item select.form-control {
  cursor: pointer; appearance: none; -webkit-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='%2386909c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; padding-right: 28px;
}

/* ---------- Tags ---------- */
.tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.tag-draft { background: #f0f0f0; color: #999; }
.tag-submitted { background: #e6f7ff; color: #1890ff; }
.tag-confirming { background: #fff7e6; color: #fa8c16; }
.tag-confirmed { background: #f6ffed; color: #52c41a; }
.tag-rejected { background: #fff2f0; color: #ff4d4f; }
.tag-cancelled { background: #f5f5f5; color: #ccc; }
.tag-instock { background: #f6ffed; color: #52c41a; }
.tag-sold { background: #e6f7ff; color: #1890ff; }

/* ---------- Stats cards ---------- */
.stat-cards { display: flex; gap: 16px; margin-bottom: 16px; }
.stat-card {
  background: var(--bg-white); border-radius: var(--radius-md); padding: 20px 24px; flex: 1;
  cursor: pointer; transition: all 0.2s; border-left: 3px solid transparent; box-shadow: var(--shadow-sm);
}
.stat-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.stat-card:nth-child(1) { border-left-color: #1890ff; }
.stat-card:nth-child(2) { border-left-color: #52c41a; }
.stat-card:nth-child(3) { border-left-color: #faad14; }
.stat-card .stat-title { font-size: 13px; color: #999; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 32px; font-weight: 700; color: var(--text-primary); }
.stat-card .stat-unit { font-size: 13px; color: #999; margin-left: 4px; }

/* ---------- Page Header ---------- */
.page-header { padding: 0; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.page-header h2 { font-size: 16px; font-weight: 600; }

/* ---------- Notice ---------- */
.notice-list { background: var(--bg-white); border-radius: var(--radius-md); overflow: hidden; }
.notice-item { padding: 14px 20px; border-bottom: 1px solid var(--border-light); cursor: pointer; display: flex; align-items: center; gap: 12px; }
.notice-item:hover { background: #fafbfc; }
.notice-item:last-child { border-bottom: none; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.notice-content { flex: 1; font-size: 13px; }
.notice-time { font-size: 12px; color: #999; white-space: nowrap; }

/* ---------- Section Title ---------- */
.section-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #222; display: inline-block; }

/* ---------- Transfer Panel ---------- */
.transfer-row { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 16px; overflow-x: auto; }
.transfer-panel { border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-white); min-width: 160px; }
.transfer-panel-header { padding: 8px 12px; font-size: 12px; font-weight: 600; color: #666; border-bottom: 1px solid var(--border-light); background: #fafbfc; }
.transfer-panel-body { max-height: 240px; overflow-y: auto; }
.transfer-panel-body .option { padding: 8px 12px; cursor: pointer; font-size: 12px; border-bottom: 1px solid #fafafa; display: flex; align-items: center; gap: 6px; }
.transfer-panel-body .option:hover { background: #f5f5f5; }
.transfer-panel-body .option.selected { background: #e6f7ff; color: var(--primary); }
.transfer-arrow-connector { display: flex; align-items: center; padding: 0 2px; color: var(--primary); font-size: 18px; font-weight: bold; margin-top: 30px; }

/* ---------- Login ---------- */
.login-page { height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #352F2F 0%, #1a1a2e 100%); }
.login-box { background: var(--bg-white); border-radius: var(--radius-lg); padding: 40px; width: 400px; box-shadow: 0 8px 40px rgba(0,0,0,0.2); }
.login-box h1 { font-size: 24px; text-align: center; margin-bottom: 8px; color: var(--text-primary); }
.login-box .login-subtitle { text-align: center; color: #999; font-size: 13px; margin-bottom: 32px; }
.login-item { margin-bottom: 20px; }
.login-item label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.login-item input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 14px; outline: none; }
.login-item input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(45,120,238,0.1); }
.login-item .input-wrap { position: relative; }
.login-item .input-wrap input { padding-right: 40px; }
.login-item .pwd-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #999; font-size: 16px; border: none; background: none; }
.login-error { color: #f53f3f; font-size: 12px; margin-top: 4px; display: none; }
.login-btn { width: 100%; height: 44px; background: #222; color: #fff; border: none; border-radius: var(--radius-md); font-size: 16px; cursor: pointer; margin-top: 8px; }
.login-btn:hover { background: #444; }
.login-btn:disabled { background: #d9d9d9; cursor: not-allowed; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%); padding: 10px 24px;
  border-radius: var(--radius-sm); font-size: 14px; color: #fff; z-index: 2000;
  animation: toastIn 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.toast.success { background: #00b42a; }
.toast.error { background: #f53f3f; }
.toast.info { background: var(--primary); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ---------- Detail Grid ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.detail-item { display: flex; gap: 8px; }
.detail-item .detail-label { font-size: 13px; color: var(--text-secondary); min-width: 80px; text-align: right; flex-shrink: 0; }
.detail-item .detail-value { font-size: 13px; color: var(--text-primary); }
.detail-item.full { grid-column: 1 / -1; }
