/* .wrap 宽度见 brand-theme.css 流体自适应 */

header {
  text-align: left;
  margin-bottom: 18px;
}

header h1 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--accent);
}

header.site-head {
  --site-head-h: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--site-head-h);
  text-align: left;
  margin-bottom: 18px;
}

header.site-head .brand h1 {
  margin: 0;
  padding: 0;
  min-height: var(--site-head-h);
  display: flex;
  align-items: center;
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  line-height: 1.15;
}

header.site-head .head-tools-floating {
  position: relative;
  top: auto;
  right: auto;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: center;
  height: var(--site-head-h);
  gap: 6px;
  margin: 0;
  padding: 0;
}

header.site-head .head-help-wrap,
header.site-head .head-menu-wrap {
  display: flex;
  align-items: center;
  height: var(--site-head-h);
}

/* ── 会员 / 激活码 ── */
.license-zone {
  padding: 10px 14px;
  margin-bottom: 12px;
}

.license-zone.hidden {
  display: none;
}

.license-zone.lz-collapsed {
  padding: 8px 14px;
}

.lz-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.lz-label {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.license-preview {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.license-zone.lz-collapsed .license-key-row {
  display: none;
}

.license-zone:not(.lz-collapsed) .license-key-row .license-preview {
  display: none;
}

.license-key-row {
  margin-top: 8px;
}

.device-code-display {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 0;
  background: transparent;
  border: none;
}

.license-key-row #licenseKey {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 6px 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.lz-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lz-action-btn {
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 4px 0;
  white-space: nowrap;
}

.license-auto-hint {
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}

.license-auto-hint.hidden {
  display: none;
}

.license-zone.lz-collapsed .lz-extra {
  display: none;
}

.license-zone.lz-collapsed.lz-pin-extra .lz-extra {
  display: block;
  margin-top: 8px;
}

.license-zone.lz-pin-extra .hint.lz-extra {
  color: var(--lock-text, #be123c);
  font-weight: 600;
}

.license-zone.lz-pin-extra .lz-extra {
  color: var(--lock-text, #be123c);
}

.license-zone .hint.lz-extra {
  margin: 10px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.lock-banner.hidden {
  display: none;
}

/* ── 转换工作区 ── */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab {
  flex: 1;
  padding: 0.65rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.upload-zone {
  position: relative;
  border: 2px dashed rgba(14, 165, 233, 0.35);
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.empty-hint {
  margin-top: 0.75rem;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.file-row.hidden {
  display: none;
}

.file-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-all;
  text-align: left;
  flex: 1;
}

.btn-clear {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.15);
  color: var(--fail);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.btn-clear:hover {
  background: rgba(244, 63, 94, 0.25);
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
}

.btn.primary {
  margin-top: 4px;
}

.status.error {
  color: var(--fail);
}

.quota-shop-hint {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--lock-text, #be123c);
}
.quota-shop-hint.hidden { display: none; }
.quota-shop-hint a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field {
  margin-top: 0.75rem;
}

#splitColumnField {
  margin-bottom: 0.85rem;
}

.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
}

.card.disabled {
  opacity: 0.65;
  pointer-events: none;
}

@media (max-width: 560px) {
  .lz-row {
    flex-wrap: wrap;
  }
  .lz-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .license-preview {
  width: 100%;
  }
  .lz-action-btn {
    min-height: 44px;
    padding: 8px 0;
  }
}

.brand-sub {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.xls-suite-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.qc-main-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 6px;
  flex-shrink: 0;
  background: var(--accent-soft, rgba(20, 184, 166, 0.12));
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 12px;
}

.qc-main-tab {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.75rem;
  padding: 10px 14px;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.35));
  border-radius: 10px;
  background: var(--input-bg, rgba(15, 23, 42, 0.4));
  color: var(--text, inherit);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.qc-main-tab:hover:not(.active) {
  background: rgba(20, 184, 166, 0.18);
  border-color: var(--accent, #10b981);
  color: var(--accent-hover, #0d9488);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.22);
}

.qc-main-tab:active:not(.active) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.15);
}

.qc-main-tab.active {
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent, #14b8a6), var(--accent-hover, #0d9488));
  color: #042f2e;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.35);
}

.qc-view-panel.hidden {
  display: none !important;
}

.qc-view-panel {
  width: 100%;
  box-sizing: border-box;
}

.tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  margin-bottom: 0.75rem;
}

.tabs-row .tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin-bottom: 0;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.file-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.file-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.35rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.file-list-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.result-row.hidden {
  display: none !important;
}

.btn.secondary {
  background: rgba(20, 184, 166, 0.15);
  color: var(--accent-hover, #0d9488);
  border: 1px solid rgba(20, 184, 166, 0.35);
  width: auto;
  min-width: 10rem;
}

.btn.link-btn {
  background: transparent;
  color: var(--accent2, #0ea5e9);
  width: auto;
  padding: 0.75rem 0.5rem;
}

.muted-hint {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  opacity: 0.9;
}

  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.status.ok {
  color: var(--accent-hover, #0d9488);
}

@media (max-width: 767px) {
  .qc-main-tabs {
    gap: 4px;
    margin-bottom: 0;
    padding: 8px var(--page-gutter, 12px);
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .qc-main-tab {
    border-radius: 8px;
    font-weight: 600;
  }
}

