:root {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --card: #ffffff;
  --border: #e6e8ef;
  --text: #0a1626;
  --text-muted: #5b6573;
  --primary: #1f6feb; /* azure blue */
  --primary-600: #1757c9;
  --primary-50: #eaf2ff;
  --success: #17b26a;
  --danger: #e5484d;
  --shadow: 0 4px 16px rgba(20, 41, 83, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --spacing: 16px;
  --spacing-lg: 24px;
  --font-size-base: 15px;
  --font-size-small: 13px;
  --font-size-title: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, var(--surface), #fff 20%, var(--surface) 100%) no-repeat fixed;
  font-size: var(--font-size-base);
  line-height: 1.65;
}

.app { max-width: 1200px; margin: 0 auto; padding: 24px; }

.app-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand i { font-size: 24px; color: var(--primary); }
.brand-text h1 { margin: 0; font-size: 20px; font-weight: 700; }
.brand-text p { margin: 2px 0 0; color: var(--text-muted); font-size: 12px; }
.header-meta { color: var(--text-muted); font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }
/* Header meta responsive */
.header-meta { flex-wrap: wrap; }
.settings-btn { margin-left: 6px; }
.dot { margin: 0 8px; color: #c2c8d0; }
/* Auth status badge */
.auth-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 999px; border: 1px solid var(--border); font-size: 11px; margin-left: 6px; }
.auth-badge.configured { background: #ecfdf3; border-color: #b7f0cc; color: #067647; }
.auth-badge.missing { background: #fff4f3; border-color: #ffd7d3; color: #b42318; }

.app-main { margin-top: 20px; display: grid; gap: 16px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; align-items: center; gap: 10px; color: var(--text-muted); box-shadow: var(--shadow); }
.step span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: var(--surface); color: var(--text-muted); font-weight: 600; border: 1px solid var(--border); }
.step.active { color: var(--primary); border-color: var(--primary-50); background: linear-gradient(180deg, #fff, var(--primary-50)); }
.step.active span { background: var(--primary); color: #fff; border-color: var(--primary); }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.panel-header h2 { margin: 0; font-size: var(--font-size-title); }
.panel-body { padding: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1.2fr 0.8fr; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow); }
.card-title { margin: 0 0 12px; font-size: var(--font-size-title); display: flex; align-items: center; gap: 8px; }
.card-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

.field-label { display: block; font-size: var(--font-size-small); color: var(--text-muted); margin-bottom: 6px; }
.input, .textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 10px 12px; outline: none; background: #fff; color: var(--text); transition: 0.15s ease; font-size: var(--font-size-base); }
.input:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12); }
.textarea { resize: vertical; min-height: 120px; }

.input-with-button { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }

/* Buttons (global) */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius-xs); border: 1px solid var(--border); padding: 9px 14px; background: #fff; color: var(--text); cursor: pointer; transition: 0.15s ease; font-weight: 600; font-size: 14px; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { filter: brightness(0.98); }
.btn.ghost { background: #fff; }
.btn.chip { background: #f3f6fb; border-color: #dbe3f0; color: #1b2b45; border-radius: 10px; }
.btn.chip:hover { background: #e9f1ff; border-color: var(--primary); color: var(--primary); }
.btn.w-full { width: 100%; justify-content: center; }
.icon-btn { border: 1px solid var(--border); background: #fff; color: var(--text-muted); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.icon-btn:hover { color: var(--text); box-shadow: var(--shadow); }

/* Suggested question pills: keep original roundness */
.suggested-questions { margin-top: 12px; }
.sugg-title { font-size: var(--font-size-small); color: var(--text-muted); margin-bottom: 6px; }
.sugg-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sugg-list .suggestion-btn { border: 1px solid var(--border); background: #fff; color: var(--text); padding: 8px 12px; border-radius: 999px; cursor: pointer; font-size: var(--font-size-small); }
.sugg-list .suggestion-btn:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.advanced { margin-top: 12px; padding: 12px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-xs); }

.placeholder { color: var(--text-muted); padding: 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-xs); }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.timeline-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.timeline-item .dot { width: 10px; height: 10px; background: #c2d6ff; border-radius: 50%; display: inline-block; }
.timeline-item.active { color: var(--primary); font-weight: 600; }
.timeline-item.active .dot { background: var(--primary); }

.loading { display: flex; gap: 10px; align-items: center; color: var(--primary); margin-top: 12px; font-weight: 600; }
.hidden { display: none !important; }
.muted { color: var(--text-muted); font-size: var(--font-size-small); }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.tab-btn { border: 1px solid var(--border); background: #fff; color: var(--text); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.tab-btn.active, .btn.chip.active { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }

/* Config items */
.config-head { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 10px; }

.config-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.config-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; background: #fff; box-shadow: var(--shadow); position: relative; }
.config-item .auto-badge { position: absolute; top: 10px; right: 10px; background: #eef7ff; color: var(--primary); border: 1px solid var(--primary-50); border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.config-item .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.config-item .service { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.config-item .service .icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.config-item .service .icon.compute { background: linear-gradient(180deg, #5672ff, #475cff); }
.config-item .service .icon.storage { background: linear-gradient(180deg, #23b8ff, #1da7e6); }
.config-item .service .icon.network { background: linear-gradient(180deg, #6fda44, #56c235); }
.config-item .service .icon.security { background: linear-gradient(180deg, #ff8a00, #ff6b00); }
.config-item .service .icon.xinchuang { background: linear-gradient(180deg, #7c4dff, #5e35b1); }
.config-item .qty { background: var(--surface); border: 1px solid var(--border); padding: 4px 8px; border-radius: 999px; font-weight: 600; }
.config-item .spec { margin-top: 8px; display: grid; gap: 4px; color: var(--text-muted); }
.config-item .reason { margin-top: 8px; font-size: var(--font-size-small); color: #1f6feb; }

/* Tables */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.table thead th { background: var(--surface); color: var(--text-muted); font-weight: 600; }

/* Summary grid */
.summary-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.summary-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.summary-item .value { font-size: 18px; font-weight: 700; color: var(--text); }
.summary-item .label { font-size: var(--font-size-small); color: var(--text-muted); }

.summary-content { padding: 12px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); color: var(--text); }

/* Toast (top-center) */
.toast { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); max-width: 640px; width: calc(100% - 32px); background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--danger); border-radius: 12px; box-shadow: var(--shadow); z-index: 1100; pointer-events: none; }
.toast-content { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; pointer-events: auto; }
.toast-text { color: var(--text); font-size: 14px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 1000; }
.modal.hidden { display: none !important; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,22,38,0.45); backdrop-filter: saturate(120%) blur(2px); }
.modal-dialog { position: relative; margin: 10vh auto; max-width: 560px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 14px 16px; display: grid; gap: 12px; }
.modal-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* Rules modal (centered & scrollable) */
#rulesModal { display: grid; place-items: center; }
#rulesModal .modal-dialog { width: min(100% - 16px, 960px); height: 72vh; margin: 0; display: flex; flex-direction: column; }
#rulesModal .modal-body { overflow: auto; flex: 1 1 auto; }
#rulesModal .table-wrap { overflow: auto; }

/* Single-column fallback */
.panel-body > .card + .card { margin-top: 12px; }

/* 移动端快捷添加容器优化 */
#quickAddContainer { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#quickAddContainer::-webkit-scrollbar { display: none; }

/* 紧凑型下拉样式 */
.select-compact { padding: 6px 10px; font-size: 13px; line-height: 1.2; height: 32px; }
.select-compact option { font-size: 13px; }

/* 两层空状态外层样式 */
.empty-wrap { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); padding: 12px; width: 100%; margin: 12px 0; }

/* 空状态样式 */
.empty-state { border: 1px dashed var(--border); background: #f9fbff; color: var(--text-muted); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.empty-state .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
/* 空状态在网格中的跨列（宽度已在 .empty-wrap 统一） */
.summary-grid .empty-wrap { grid-column: 1 / -1; }
.config-items .empty-wrap { grid-column: 1 / -1; }

/* 进度条 */
.progress { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-xs); background: #fff; margin-bottom: 10px; }
.progress .bar { position: relative; height: 6px; flex: 1 1 auto; background: #edf2ff; border-radius: 999px; overflow: hidden; }
.progress .bar::after { content: ''; position: absolute; left: -40%; top: 0; height: 100%; width: 40%; background: linear-gradient(90deg, var(--primary-50), var(--primary)); border-radius: 999px; animation: progress-stripes 1.2s linear infinite; }
.progress .progress-text { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
@keyframes progress-stripes { 0% { left: -40%; } 100% { left: 100%; } }

/* 成功 toast */
.toast.success { border-left-color: var(--success); }
.toast.success .toast-content i { color: var(--success); }

/* 紧凑按钮样式 */
.btn-compact { padding: 6px 10px; font-size: 13px; line-height: 1.2; }

/* 报价开关微缩 */
#pricingToggle { width: 16px; height: 16px; }

/* switch 开关样式 */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .slider { position: relative; width: 44px; height: 24px; background: #e5e7eb; border-radius: 999px; transition: background .2s ease; }
.switch .slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow); transition: transform .2s ease; }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch .switch-label { font-size: 14px; color: var(--text); }

/* 表格视图金钱图标样式（JS 控制切换） */
#tableViewBtn { position: relative; padding-right: 28px; }
#tableViewBtn.money::after { content: '\f51e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #b58900; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* 表格价格列宽与对齐 */
#configTableHead th.col-price, #configTableBody td.col-price { width: 120px; text-align: right; white-space: nowrap; }
#configTableHead th.col-discount, #configTableBody td.col-discount { width: 110px; text-align: right; white-space: nowrap; }
#configTableHead th.col-total, #configTableBody td.col-total { width: 130px; text-align: right; font-weight: 600; white-space: nowrap; }
#configTableHead th.col-quantity, #configTableBody td.col-quantity { width: 100px; text-align: center; white-space: nowrap; }
#configTableHead th.col-actions, #configTableBody td.col-actions { width: 80px; text-align: center; white-space: nowrap; }
#configTableBody td.col-price input.price-input, #configTableBody td.col-discount input.price-input { width: 100%; text-align: right; }
#configTableBody td.col-quantity input.quantity-input { width: 60px; text-align: center; }

/* 表格横向滚动与最小宽度（移动端优化） */
#configTableContainer { width: 100%; max-width: 100%; overflow-x: auto !important; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#configTableContainer .table { table-layout: auto; }

/* 冻结表格标题行（sticky header） */
#configTableContainer { position: relative; }
#configTableHead th { position: sticky; top: 0; z-index: 5; background: var(--surface); }

@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .config-items { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  html, body, .app, .panel, .card { overflow-x: hidden; }
  .steps { grid-template-columns: 1fr 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  /* Small screen table text */
  .table th, .table td { font-size: 12px; padding: 9px 10px; }
  #rulesModal #rulesServiceFilter { min-width: 140px; max-width: 100%; }
  /* 优化整体留白与布局 */
  .app { padding: 12px; }
  /* tabs 改为横向滚动而不是换行堆叠 */
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  /* 表格容器在小屏用视窗高度，覆盖行内高度 */
  #configTableContainer { height: 60vh !important; }
  /* Header 改为小屏上下两行：标题第一行，说明第二行 */
  .app-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .brand { width: 100%; }
  .header-meta { width: 100%; justify-content: flex-start; gap: 8px; }
  #quickAddContainer { gap: 8px; }
  #quickAddContainer .muted { font-size: 12px; }
  .select-compact { padding: 5px 8px; font-size: 12px; height: 30px; }
  .btn-compact { padding: 5px 8px; font-size: 12px; }
  
  /* 确保所有chip按钮在移动端高度一致 */
  .btn.chip {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
  }
  
  /* 修复导出按钮图标对齐 */
  #exportDropdownBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  
  #exportDropdownBtn i {
    font-size: 12px;
    line-height: 1;
  }
  
  /* 移动端报价开关优化 */
  .switch {
    flex-shrink: 0;
    min-width: auto;
  }
  
  .switch .slider {
    width: 36px;
    height: 20px;
  }
  
  .switch .slider::after {
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
  }
  
  .switch input:checked + .slider::after {
    transform: translateX(16px);
  }
  
  .switch .switch-label {
    font-size: 12px;
    white-space: nowrap;
  }
  #configTableHead th.col-price, #configTableBody td.col-price { width: 92px; }
  #configTableHead th.col-discount, #configTableBody td.col-discount { width: 92px; }
  #configTableHead th.col-total, #configTableBody td.col-total { width: 100px; }
  #configTableContainer { overflow-x: auto; }
  #configTableContainer .table { min-width: 960px; }
  .table th, .table td { white-space: nowrap; }
}

/* 详细配置清单：小屏左对齐且不换行，必要时横向滚动 */
@media (max-width: 640px) {
  .card-header-row { align-items: flex-start; }
  .card-header-row .actions { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card-header-row .actions::-webkit-scrollbar { display: none; }
  .config-head { flex-direction: column; align-items: flex-start; gap: 6px; }
} 

/* 避免解析占位阻挡点击 */
.progress { pointer-events: none; }
.empty-wrap { pointer-events: none; }

/* 卡片视图数量控制 */
.config-item { position: relative; }
.config-item .qty-controls { display: flex; align-items: center; gap: 4px; }
.config-item .qty-controls .qty-btn { width: 24px; height: 24px; border: 1px solid var(--border); background: #fff; color: var(--text-muted); border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.config-item .qty-controls .qty-btn:hover { color: var(--primary); border-color: var(--primary); }
.config-item .qty-controls .qty-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.config-item .qty-controls .qty-display { min-width: 32px; text-align: center; font-weight: 600; }
.config-item .qty-controls .delete-btn { width: 24px; height: 24px; border: 1px solid var(--border); background: rgba(255,255,255,0.95); color: var(--text-muted); border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; margin-left: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.config-item .qty-controls .delete-btn:hover { color: var(--danger); border-color: var(--danger); background: var(--danger); color: #fff; }

/* 表格行操作按钮 */
.table-action-btn { width: 24px; height: 24px; border: 1px solid var(--border); background: #fff; color: var(--text-muted); border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; margin: 0 2px; }
.table-action-btn:hover { color: var(--danger); border-color: var(--danger); }
.table-action-btn.delete:hover { background: var(--danger); color: #fff; }

/* 表单行样式 */
.form-row { margin-bottom: 12px; }
.form-row:last-child { margin-bottom: 0; }

/* 导出按钮下拉菜单样式优化 */
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle { position: relative; }
.dropdown-toggle .fa-caret-down { font-size: 12px; opacity: 0.7; transition: transform 0.2s ease, opacity 0.2s ease; }
.dropdown.open .dropdown-toggle .fa-caret-down { transform: rotate(180deg); opacity: 1; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  box-shadow: 0 8px 24px rgba(20, 41, 83, 0.12);
  z-index: 100;
  min-width: 180px;
  padding: 6px 0;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.15s ease;
  pointer-events: none;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.dropdown-item i {
  width: 16px;
  font-size: 14px;
  opacity: 0.8;
}

.dropdown-item:hover i {
  opacity: 1;
}

/* Excel 图标颜色 */
.dropdown-item i.fa-file-excel {
  color: #217346;
}

/* Word 图标颜色 */
.dropdown-item i.fa-file-word {
  color: #2b579a;
}

/* 导出按钮图标优化 */
#exportDropdownBtn i.fa-download {
  color: var(--primary);
  opacity: 0.9;
}

#exportDropdownBtn:hover i.fa-download {
  opacity: 1;
}

/* 导出按钮激活状态 */
.dropdown.open .dropdown-toggle {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary);
}

/* 移动端导出下拉菜单优化 */
@media (max-width: 640px) {
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: auto;
    bottom: auto;
    transform: translateY(-8px);
    min-width: 200px;
    max-width: calc(100vw - 32px);
    z-index: 1100;
    margin-top: 0;
  }
  
  .dropdown-menu.show {
    transform: translateY(0);
  }
  
  .dropdown-item {
    padding: 12px 16px;
    font-size: 15px;
  }
  
  /* 确保导出按钮高度与其他按钮一致 */
  #exportDropdownBtn {
    height: auto;
    min-height: 36px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  
  /* 移动端按钮组布局优化 */
  .card-header-row .actions {
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible !important; /* 避免裁剪下拉菜单 */
  }
  
  .card-header-row .actions > div {
    flex-shrink: 0;
  }

  /* 确保下拉容器不裁剪 */
  .dropdown { overflow: visible; z-index: 2000; }
  
  /* 移动端不使用遮罩，避免阻挡点击 */
  .dropdown.open::before { display: none !important; }
  
  /* 移动端导出下拉菜单优化 */
  .card-header-row .actions {
    overflow: visible;
    z-index: 1200;
  }
}