/* ============================================
   Veeam 中国区客户服务中心 — 公共样式系统
   品牌色: #00D15F (绿) #3700FF (紫) #232323 (深)
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Trebuchet MS', Tahoma, Verdana, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #232323;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ===== Layout 容器 ===== */
.g-wrapper {
  max-width: 1260px;
  min-width: 290px;
  padding: 0 15px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 顶部导航 ===== */
.main-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.main-header__inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-header__logo img { height: 36px; width: auto; }
.main-header__divider {
  display: inline-block;
  height: 32px;
  width: 1px;
  background-color: #d8dde2;
}
.main-header__hotline {
  font-size: 18px;
  color: #505861;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-left: auto;
}
.main-header__nav {
  display: flex;
  gap: 28px;
  margin-left: 12px;
}
.main-header__nav a {
  font-size: 15px;
  color: #232323;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.main-header__nav a:hover { color: #3700ff; }
.main-header__nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, #00D15F, #3700ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.main-header__nav a:hover::after { transform: scaleX(1); }
.main-header__nav a.active { color: #3700ff; }
.main-header__nav a.active::after { transform: scaleX(1); }

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: #3700ff;
  color: #fff;
}
.btn--primary:hover {
  background: #2830d4;
  box-shadow: 0 8px 20px rgba(55,0,255,0.25);
  transform: translateY(-1px);
}
.btn--secondary {
  border: 2px solid #3700ff;
  color: #3700ff;
  background: transparent;
}
.btn--secondary:hover {
  background: #3700ff;
  color: #fff;
  transform: translateY(-1px);
}
.btn--ghost {
  color: #3700ff;
  padding: 10px 16px;
}
.btn--ghost:hover { background: rgba(55,0,255,0.08); }
.btn--success {
  background: linear-gradient(135deg, #00D15F 0%, #00b351 100%);
  color: #fff;
}
.btn--success:hover {
  box-shadow: 0 8px 20px rgba(0,209,95,0.3);
  transform: translateY(-1px);
}
.btn--danger {
  background: #ff4757;
  color: #fff;
}
.btn--danger:hover { background: #ee3543; transform: translateY(-1px); }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 16px 32px; font-size: 17px; }
.btn--block { width: 100%; }

/* ===== 玻璃拟态卡片 ===== */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.glass-dark {
  background: rgba(20, 22, 32, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #fff;
}

/* ===== 通知 Toast ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  border-left: 4px solid #3700ff;
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast--success { border-left-color: #00D15F; }
.toast--error { border-left-color: #ff4757; }
.toast--warning { border-left-color: #ffaa00; }
.toast i { font-size: 18px; }
.toast--success i { color: #00D15F; }
.toast--error i { color: #ff4757; }
.toast--warning i { color: #ffaa00; }
.toast--info i { color: #3700ff; }
@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  to { transform: translateX(120%); opacity: 0; }
}
.toast.toast--leave { animation: toastOut 0.3s forwards; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #232323;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e1e5ea;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  transition: all 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: #3700ff;
  box-shadow: 0 0 0 3px rgba(55,0,255,0.1);
}
.form-control--error {
  border-color: #ff4757;
}
.form-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.form-error {
  font-size: 12px;
  color: #ff4757;
  margin-top: 4px;
}
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { cursor: pointer; }

/* ===== 状态徽章 ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge--success { background: rgba(0,209,95,0.12); color: #00a04a; }
.badge--info    { background: rgba(55,0,255,0.1); color: #3700ff; }
.badge--warning { background: rgba(255,170,0,0.12); color: #cc8800; }
.badge--danger  { background: rgba(255,71,87,0.12); color: #d42838; }
.badge--gray    { background: rgba(80,88,97,0.1); color: #505861; }

/* ===== 表格 ===== */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #f8f9fb;
  border-bottom: 1px solid #e1e5ea;
}
.table td {
  padding: 14px 18px;
  font-size: 14px;
  color: #232323;
  border-bottom: 1px solid #f0f2f5;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fafbfd; }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,22,32,0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.25s;
  padding: 20px;
}
.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f2f5;
  display: flex; align-items: center; justify-content: space-between;
}
.modal__title { font-size: 18px; font-weight: 700; }
.modal__close {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280;
  transition: all 0.2s;
}
.modal__close:hover { background: #f0f2f5; color: #232323; }
.modal__body { padding: 24px; }
.modal__footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f2f5;
  display: flex; gap: 12px; justify-content: flex-end;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== Empty / Loading ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}
.empty-state i { font-size: 48px; color: #d8dde2; margin-bottom: 16px; }
.empty-state h4 { color: #232323; margin-bottom: 8px; }
.loading {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid #e1e5ea;
  border-top-color: #3700ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .main-header__nav { display: none; }
  .main-header__hotline { font-size: 14px; }
}
@media (max-width: 600px) {
  .main-header__divider, .main-header__hotline { display: none; }
  .btn { padding: 10px 18px; font-size: 14px; }
}

/* ===== 文件拖放区 ===== */
.dropzone {
  border: 2px dashed #c8d0d8;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: #fafbfd;
  cursor: pointer;
  transition: all 0.25s;
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: #3700ff;
  background: rgba(55,0,255,0.04);
}
.dropzone i { font-size: 36px; color: #3700ff; margin-bottom: 12px; }
.dropzone__hint { font-size: 13px; color: #6b7280; margin-top: 6px; }
.file-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #f8f9fb;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 14px;
}
.file-item__name { flex: 1; word-break: break-all; }
.file-item__size { color: #6b7280; font-size: 12px; }
.file-item__remove { color: #ff4757; cursor: pointer; }

/* ===== 抄送邮箱 chips ===== */
.cc-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.cc-input-row .form-control { flex: 1; }
.cc-input-row .btn { white-space: nowrap; }
.cc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  min-height: 0;
}
.cc-chips:empty { display: none; }
.cc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 10px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3700ff;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  transition: all 0.18s ease;
}
.cc-chip:hover { background: #e0e7ff; border-color: #a5b4fc; }
.cc-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  background: rgba(55, 0, 255, 0.12);
  color: #3700ff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  padding: 0;
  transition: all 0.15s ease;
}
.cc-chip__remove:hover { background: #ff4757; color: #fff; transform: scale(1.08); }

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e1e5ea;
  margin-bottom: 24px;
}
.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.tab:hover { color: #3700ff; }
.tab.active {
  color: #3700ff;
  border-bottom-color: #3700ff;
}

/* ===== 进度条 ===== */
.progress {
  height: 6px;
  background: #f0f2f5;
  border-radius: 3px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #00D15F, #3700ff);
  transition: width 0.4s ease;
  border-radius: 3px;
}
