/* 联凯全球询价跟单系统 - 补充样式 */

.page { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 24px; }

.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.page-header a { color: #fff; }
.header-left { width: 60px; font-size: 14px; }
.header-right { flex: 0 0 auto; font-size: 14px; display: flex; align-items: center; }
.header-title { font-size: 17px; font-weight: 600; flex: 1; text-align: center; }

.login-body {
  max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 20px;
}
.login-card {
  background: #fff; border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-lg); width: 100%; max-width: 360px;
}
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo .logo-icon {
  width: 64px; height: 64px; border-radius: 16px; background: var(--primary);
  color: #fff; font-size: 24px; font-weight: 700; line-height: 64px; margin: 0 auto 12px;
}
.login-logo h1 { font-size: 20px; color: var(--text); }
.login-logo p { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.login-form .form-group { margin-bottom: 16px; }
.login-form label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 500; }
.login-form input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px;
}
.login-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.login-links { text-align: center; margin-top: 16px; font-size: 14px; }
/* ======== 语言切换器 ======== */

/* --- 登录/忘记密码页：卡片内顶部 --- */
.login-lang {
  text-align: right; margin-bottom: 4px;
}
.login-lang select {
  padding: 4px 12px; border-radius: 14px; border: 1px solid var(--border);
  background: #f8fafc; color: var(--text); font-size: 13px; cursor: pointer;
  appearance: auto; -webkit-appearance: auto;
}
.login-lang select:focus { outline: none; border-color: var(--primary); }

/* --- 顶部导航栏中的语言选择 --- */
.header-lang-select {
  padding: 4px 8px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.18); color: #fff; font-size: 12px;
  cursor: pointer; outline: none;
  appearance: auto; -webkit-appearance: auto;
}
.header-lang-select option {
  color: var(--text); background: #fff;
}

.card {
  background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow);
  margin: 12px 16px; padding: 16px;
}
.welcome-card { display: flex; justify-content: space-between; align-items: center; }
.welcome-text { font-size: 15px; color: var(--text); }
.role-badge { background: var(--primary-light); color: var(--primary); padding: 4px 10px; border-radius: 20px; font-size: 12px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 16px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.quick-actions { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }

.filter-bar { padding: 12px 16px; display: flex; gap: 8px; align-items: center; }
.filter-bar select, .filter-bar input { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; }
.filter-bar input { flex: 1; }

.request-list { padding: 0 16px 20px; }
.request-card {
  background: #fff; border-radius: var(--radius); margin-bottom: 12px; padding: 14px 16px;
  box-shadow: var(--shadow); cursor: pointer;
}
.request-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.request-no { font-size: 13px; color: var(--text-light); }
.request-product { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.request-meta { font-size: 12px; color: var(--text-light); display: flex; gap: 12px; }
.request-extra { font-size: 12px; color: var(--primary); margin-top: 8px; display: flex; gap: 12px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-lighter); display: none; }

.form-card { padding: 16px; }
.form-card .form-group { margin-bottom: 16px; }
.form-card label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 500; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; background: #fff;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.image-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.image-list .thumb { position: relative; width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; }
.image-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-list .thumb span { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); color: #fff; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; }

.detail-section { background: #fff; margin: 12px 16px; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.detail-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.detail-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.detail-row .label { color: var(--text-light); flex-shrink: 0; width: 90px; }
.detail-row .value { text-align: right; flex: 1; word-break: break-all; }
.detail-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.detail-images img { width: 100px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; }

.quote-card { background: #f8fafc; border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; border: 1px solid var(--border); }
.quote-card.winner { border-color: var(--success); background: #f0fdf4; }
.quote-card-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.quote-card .price { font-size: 16px; font-weight: 700; color: var(--danger); }
.quote-card .meta { font-size: 12px; color: var(--text-light); }
.quote-card .remarks { font-size: 13px; color: var(--text); margin-top: 6px; }

.final-section { background: #fffbeb; border: 1px solid #fde68a; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 360px; max-height: 80vh; overflow-y: auto; }
.modal-header { padding: 16px; font-weight: 600; border-bottom: 1px solid var(--border); }
.modal-body { padding: 16px; }
.modal-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.modal-footer .btn { flex: 1; }

.status-pending_quote { background: #fef3c7; color: #92400e; }
.status-quoted { background: #dbeafe; color: #1e40af; }
.status-winner_selected { background: #d1fae5; color: #065f46; }
.status-final_priced { background: #fce7f3; color: #9d174d; }
.status-completed { background: #e0e7ff; color: #3730a3; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: #1e293b; color: #fff; flex-shrink: 0; }
.admin-sidebar .logo { padding: 20px; font-size: 18px; font-weight: 700; border-bottom: 1px solid #334155; }
.admin-sidebar .menu { padding: 12px; }
.admin-sidebar .menu-item { padding: 12px 16px; border-radius: 8px; cursor: pointer; margin-bottom: 4px; }
.admin-sidebar .menu-item:hover, .admin-sidebar .menu-item.active { background: #334155; }
.admin-main { flex: 1; background: var(--bg); min-height: 100vh; }
.admin-header { background: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); }
.admin-content { padding: 24px; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table th { background: #f8fafc; font-weight: 600; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ======== 报价审核通知卡片（海外采购员视角） ======== */
.quote-pending-notice {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}
.quote-pending-notice .notice-icon { font-size: 36px; margin-bottom: 12px; }
.quote-pending-notice .notice-text {
  font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px;
}
.quote-pending-notice .notice-sub {
  font-size: 13px; color: var(--text-light);
}

/* ======== 列表中的状态提示 ======== */
.quote-hint {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 12px; background: #dbeafe; color: #1e40af;
}
.final-price-hint {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 12px; background: #fce7f3; color: #9d174d; font-weight: 600;
}

/* ======== 最终价格高亮（海外采购员视角） ======== */
.price-value {
  font-size: 18px !important; font-weight: 700; color: var(--danger) !important;
}
.detail-row.highlight { padding: 10px 0; background: #fef2f2; margin: -6px -12px; padding-left: 12px; padding-right: 12px; border-radius: 8px; }
