.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--brand-ink);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-brand {
  background: var(--brand-soft);
  color: var(--brand);
}

.badge-warn {
  background: rgba(255, 178, 122, 0.12);
  color: var(--warn);
}

.badge-muted {
  background: var(--tag-bg);
  color: var(--muted);
}

.badge-ok {
  background: rgba(52, 211, 153, 0.14);
  color: var(--ok);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-title {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.empty-desc {
  font-size: 12px;
  color: var(--muted-2);
}

.input {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}

.input::placeholder {
  color: var(--muted-2);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.table td {
  color: var(--ink-soft);
}

.table tr:hover td {
  background: var(--line-soft);
}

.text-muted { color: var(--muted); }
.text-brand { color: var(--brand); }
.text-warn { color: var(--warn); }
.text-ok { color: var(--ok); }
.text-danger { color: var(--danger); }

/* 导航项「需境外」红色徽标 */
.nav-badge-oversea {
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 10px;
  line-height: 1.5;
  border-radius: 999px;
  color: var(--danger);
  border: 1px solid var(--danger);
  background: rgba(255, 107, 107, 0.12);
  white-space: nowrap;
  font-weight: 500;
}

/* 板块级别「需境外环境」红色提示条 */
.env-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border: 1px solid var(--danger);
  background: rgba(255, 107, 107, 0.10);
  border-radius: var(--r-md);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.65;
}
.env-alert .ea-icon { font-size: 15px; line-height: 1.5; flex-shrink: 0; }
.env-alert strong { color: var(--danger); font-weight: 600; }

.fx-source-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 16px;
  padding: 9px 13px;
  border: 1px solid rgba(0, 221, 136, 0.30);
  background: rgba(0, 221, 136, 0.08);
  border-radius: var(--r-md);
  color: var(--brand);
  font-size: 12.5px;
  line-height: 1.6;
}
.fx-source-note strong { color: var(--brand); font-weight: 600; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 18px; font-weight: 600; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.w-full { width: 100%; }

/* ===== 通用标签（国家/状态） ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  background: var(--tag-bg);
  color: var(--muted);
  white-space: nowrap;
}
.tag-brand { background: var(--brand-soft); color: var(--brand); }
.tag-warn { background: rgba(255, 178, 122, 0.12); color: var(--warn); }
.tag-ok { background: rgba(52, 211, 153, 0.14); color: var(--ok); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  background: var(--tag-bg);
  color: var(--muted);
}

/* ===== 世界时钟横条 ===== */
.world-clocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.world-clock {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.world-clock .wc-market {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.world-clock .wc-city {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.world-clock .wc-time {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin: 4px 0 2px;
}
.world-clock .wc-date {
  font-size: 12px;
  color: var(--muted);
}
.world-clock .wc-status {
  font-size: 11px;
  margin-top: 6px;
}
.wc-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 4px;
}
.wc-dot.on { background: var(--ok); }
.wc-dot.off { background: var(--muted-2); }

@media (max-width: 900px) {
  .world-clocks { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 统计卡片 ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat-card {
  background: linear-gradient(135deg, var(--bg-soft-2), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.stat-card .stat-label {
  font-size: 12px;
  color: var(--muted);
}
.stat-card .stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-foot {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 2px;
}

/* ===== 客户跟进列表 ===== */
.follow-list { display: flex; flex-direction: column; gap: 10px; }
.follow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.follow-item .fi-main { min-width: 0; }
.follow-item .fi-name {
  font-size: 14px; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.follow-item .fi-meta {
  font-size: 12px; color: var(--muted); margin-top: 3px;
}
.follow-item .fi-next {
  font-size: 12px; margin-top: 3px;
}
.follow-item .fi-actions { flex-shrink: 0; }

/* ===== 今日汇率 ===== */
.fx-panel { display: flex; flex-direction: column; gap: 10px; }
.fx-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--line-soft);
}
.fx-row:last-child { border-bottom: none; }
.fx-pair { font-size: 13px; color: var(--ink-soft); }
.fx-rate { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.fx-convert {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
}
.fx-convert .fx-convert-line {
  display: flex; align-items: center; gap: 8px;
}
.fx-convert input { flex: 1; }
.fx-result {
  font-size: 18px; font-weight: 600; color: var(--brand);
  font-variant-numeric: tabular-nums;
}

/* ===== 快捷新建 ===== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.quick-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.quick-btn .qb-icon { font-size: 22px; }
.quick-btn .qb-label { font-size: 12px; }

@media (max-width: 900px) {
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 设置页：外观主题 ===== */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.theme-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--bg-soft);
}
.theme-card:hover { border-color: var(--muted); }
.theme-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}
.theme-card .tc-swatch {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.theme-card .tc-swatch span {
  flex: 1; height: 28px; border-radius: 6px; border: 1px solid rgba(0,0,0,0.1);
}
.theme-card .tc-name { font-size: 13px; color: var(--ink); }
.theme-card .tc-check {
  position: absolute; top: 10px; right: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink);
  display: none; align-items: center; justify-content: center;
  font-size: 12px;
}
.theme-card.active .tc-check { display: flex; }

@media (max-width: 900px) {
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 设置页：开关项 ===== */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.setting-row:last-child { border-bottom: none; }
.setting-row .sr-label { font-size: 13px; color: var(--ink); }
.setting-row .sr-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.setting-row .sr-badge { margin-left: 8px; }

.switch {
  position: relative;
  width: 42px; height: 24px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(18px); }

/* ===== 设置页：状态面板 ===== */
.status-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}
.status-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.status-logo {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--brand); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.status-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.status-sub { font-size: 12px; color: var(--muted); }
.status-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.status-row:last-of-type { border-bottom: none; }
.status-row .sr-k { color: var(--muted); }
.status-row .sr-v { color: var(--ink-soft); font-weight: 500; }
.status-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

/* 完整保留原有 stage / fu / modal 样式 */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .stage-grid {
    grid-template-columns: 1fr;
  }
}

.stage-column {
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.stage-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.stage-column-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.stage-column-body {
  padding: 16px;
}

.stage-column-body .empty-state {
  border: none;
  padding: 32px 16px;
}

.stage-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.stage-item:last-child {
  border-bottom: none;
}

.stage-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.stage-item-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.stage-item-actions {
  margin-top: 10px;
}

/* —— 四步获客：场景条 —— */
.scene-bar {
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.scene-bar-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.scene-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scene-chip {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}

.scene-chip:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.scene-chip.active {
  background: var(--brand);
  color: #04241a;
  border-color: var(--brand);
  font-weight: 600;
}

.scene-chip-icon {
  margin-right: 4px;
}

.scene-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding: 10px 12px;
  background: rgba(0, 221, 136, 0.08);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-sm);
}

/* —— 四步获客：类型 badge —— */
.badge-script { background: rgba(0, 221, 136, 0.15); color: #5cffb8; }
.badge-template { background: rgba(80, 160, 255, 0.15); color: #8ec5ff; }
.badge-tip { background: rgba(255, 180, 60, 0.15); color: #ffce7a; }

/* —— 四步获客：卡片增强 —— */
.stage-item-detail {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.65;
  white-space: pre-wrap;
}

.stage-item-steps {
  margin: 10px 0 0 18px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.stage-item-script {
  margin-top: 10px;
}

.stage-item-script pre {
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: pre-wrap;
  line-height: 1.6;
  margin: 0 0 8px;
  overflow-x: auto;
}

.stage-item.recommend {
  padding: 14px;
  border: 1px solid var(--brand);
  border-radius: var(--r-sm);
  background: rgba(0, 221, 136, 0.06);
}

.reco-dot {
  color: var(--brand);
  font-size: 13px;
}

.fu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fu-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.fu-main {
  min-width: 0;
}

.fu-customer {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.fu-content {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
  line-height: 1.5;
  word-break: break-word;
}

.fu-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 440px;
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-body {
  padding: 18px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

/* ===== 获客渠道：Google 生态 / 海外社媒 四阶段矩阵 ===== */
.channel-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.channel-stage-card {
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.channel-stage-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-soft-3);
  border-bottom: 1px solid var(--line);
}

.channel-stage-no {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.channel-stage-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.channel-stage-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* ===== 获客渠道：独享环境搭建课程 ===== */
.channel-env-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.channel-env-card {
  display: flex;
  gap: 16px;
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  transition: border-color .15s, background .15s;
}

.channel-env-card:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.channel-env-no {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.channel-env-body {
  flex: 1;
  min-width: 0;
}

.channel-env-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.channel-env-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.channel-env-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-env-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.channel-env-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* ===== 获客渠道：Google 生态 双区（免费工具 + 搜客） ===== */
.google-section {
  margin-bottom: 18px;
}

.google-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.google-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.google-section-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.6;
  max-width: 720px;
}

/* 免费工具：参考社媒拓客表格 */
.google-free-table {
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.google-table-head {
  display: grid;
  grid-template-columns: 180px 90px 1fr 170px;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg-soft-3);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.google-table-row {
  display: grid;
  grid-template-columns: 180px 90px 1fr 170px;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.google-table-row:last-child {
  border-bottom: none;
}

.google-table-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.google-table-col.action {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.google-table-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.4;
}

.google-table-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.google-table-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.google-table-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
}

.google-table-input-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.google-table-input .google-input {
  padding: 8px 10px;
  font-size: 12.5px;
  min-height: 34px;
}

.google-table-result {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.google-table-result[hidden] {
  display: none;
}

/* 免费工具 */
.google-free-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.google-tool-card {
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s, background .15s;
}

.google-tool-card:hover {
  border-color: var(--brand);
}

.google-tool-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.4;
}

.google-tool-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.google-tool-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.google-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.google-input-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.google-input {
  padding: 10px 12px;
  font-size: 13px;
  min-height: 40px;
  border-radius: var(--r-sm);
}

.google-tool-result,
.google-prompt-result {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.google-result-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}

.google-result-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.google-result-line {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  word-break: break-all;
}

.google-result-actions,
.google-prompt-result .google-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 搜客 */
.google-paid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* 锁定态：整卡降透明度，不再用刺眼斜纹遮罩 */
.google-paid-tool-card.google-prompt-locked,
.google-prompt-card.google-prompt-locked {
  opacity: 0.6;
}

.google-prompt-card {
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, background .15s;
}

.google-prompt-card:not(.google-prompt-locked):hover {
  border-color: var(--brand);
}

/* 付费生成器卡片（Google 指令库 / 社媒生成器共用） */
.google-paid-tool-card {
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, background .15s;
}
.google-paid-tool-card:not(.google-prompt-locked):hover {
  border-color: var(--brand);
}
.google-tool-cat { margin-top: 14px; }
.google-tool-cat-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
}

/* 分类标签页：点哪个看哪个，避免一屏 29 张卡堆砌 */
.google-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.google-cat-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-soft-3);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.google-cat-tab:hover {
  color: var(--ink);
  border-color: var(--brand);
}
.google-cat-tab.active {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand);
  font-weight: 700;
}
.google-cat-panel[hidden] { display: none; }
.google-cat-panel { animation: gCatFade .18s ease; }
@keyframes gCatFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.google-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.google-prompt-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.4;
}

.google-prompt-lock {
  font-size: 16px;
}

.google-prompt-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.google-prompt-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.google-prompt-output {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-wrap;
  margin: 0;
  max-height: 260px;
  overflow-y: auto;
}

.google-unlock-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  background: linear-gradient(135deg, var(--brand-soft), var(--bg-soft-3));
  border: 1px solid var(--brand);
  border-radius: var(--r-md);
  padding: 16px 20px;
}

.google-unlock-text {
  font-size: 13px;
  color: var(--ink-soft);
}

.btn-disabled,
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.google-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== 获客渠道：海外独享环境搭建（付费课程页） ===== */
.env-course {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.env-hero {
  background: linear-gradient(135deg, var(--brand-soft), var(--bg-soft-2));
  border: 1px solid var(--brand);
  border-radius: var(--r-md);
  padding: 30px 32px;
}

.env-hero-main {
  max-width: 760px;
}

.env-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin: 12px 0 8px;
  letter-spacing: 0.3px;
}

.env-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.6;
}

.env-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 22px;
  margin-bottom: 22px;
}

.env-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.env-highlight-icon {
  font-size: 16px;
}

.env-buy-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.env-price {
  display: flex;
  align-items: baseline;
  color: var(--brand);
  font-weight: 800;
}

.env-price-cur {
  font-size: 18px;
  margin-right: 2px;
}

.env-price-num {
  font-size: 30px;
  line-height: 1;
}

.env-buy-btn {
  font-size: 15px;
  padding: 11px 28px;
}

.env-unlocked {
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-soft);
  border: 1px solid var(--brand);
  border-radius: var(--r-sm);
  padding: 10px 18px;
}

.env-outline {
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
}

.env-outline-head {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.env-module {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .15s;
}

.env-module:last-child {
  margin-bottom: 0;
}

.env-module:hover {
  border-color: var(--brand);
}

.env-module-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.env-module-no {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.env-module-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.env-module-toggle {
  color: var(--muted);
  font-size: 12px;
}

.env-module-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.env-module-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0;
  line-height: 1.6;
}

.env-module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.env-module-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.env-module-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.env-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-soft-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
}

.env-footer-text {
  font-size: 13px;
  color: var(--muted);
}

/* 购买弹窗 */
.modal-buy .modal-body {
  padding: 4px 0 0;
}

.buy-modal {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.buy-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.buy-qr-box {
  width: 200px;
  height: 200px;
  border: 1px dashed var(--brand);
  border-radius: var(--r-md);
  background: var(--brand-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  gap: 6px;
}

.buy-qr-ph {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

.buy-qr-tip {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.buy-qr-note {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.5;
}

.buy-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.buy-divider::before,
.buy-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.buy-cdk {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.buy-cdk-hint {
  font-size: 11px;
  color: var(--muted);
}

/* ── 套餐中心（升级会员）────────────────────────── */
.bundle-modal { display: flex; flex-direction: column; gap: 14px; }
.bundle-list { display: flex; flex-direction: column; gap: 10px; }
.bundle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card);
}
.bundle-info { display: flex; flex-direction: column; gap: 2px; }
.bundle-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.bundle-note { font-size: 11px; color: var(--muted); }
.bundle-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bundle-price { font-size: 18px; font-weight: 800; color: var(--brand); }
.bundle-cur { font-size: 12px; font-weight: 700; margin-right: 1px; }
.bundle-tip {
  font-size: 11px; color: var(--muted); line-height: 1.6;
  padding: 8px 10px; background: var(--brand-soft);
  border-radius: var(--r-sm); border: 1px solid var(--line);
}

@media (max-width: 720px) {
  .env-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
  .channel-stage-grid { grid-template-columns: repeat(2, 1fr); }
  .google-table-head,
  .google-table-row {
    grid-template-columns: 140px 80px 1fr 150px;
  }
}

@media (max-width: 900px) {
  .google-table-head,
  .google-table-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .google-table-head {
    display: none;
  }
  .google-table-col.action {
    justify-content: flex-start;
  }
  .google-table-col.free .badge {
    align-self: flex-start;
  }
}

@media (max-width: 720px) {
  .channel-stage-grid { grid-template-columns: 1fr; }
  .channel-env-grid { grid-template-columns: 1fr; }
  .google-paid-grid { grid-template-columns: 1fr; }
}

/* ===== 外贸常用工具 ===== */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.toolkit-card {
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, background .15s;
}

.toolkit-card:hover {
  border-color: var(--brand);
}

.toolkit-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-soft-3);
  border-bottom: 1px solid var(--line);
}

.toolkit-card-icon {
  font-size: 20px;
  line-height: 1.2;
  flex-shrink: 0;
}

.toolkit-card-meta {
  flex: 1;
  min-width: 0;
}

.toolkit-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.toolkit-card-desc {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.5;
}

.toolkit-card-count {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 20px;
  padding: 2px 9px;
  font-weight: 600;
  align-self: center;
}

.toolkit-card-body {
  padding: 8px 16px 14px;
  display: flex;
  flex-direction: column;
}

.toolkit-tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.toolkit-tool:last-child {
  border-bottom: none;
}

.toolkit-tool-name {
  font-size: 13px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolkit-tool-ext {
  font-size: 11px;
  color: var(--muted-2);
}

.toolkit-tool [data-open-url] {
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .toolkit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .toolkit-grid { grid-template-columns: 1fr; }
}

/* ===== 四阶段获客工作流（合并进社媒生成器区） ===== */
.wf-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 16px;
}
.wf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wf-field label {
  font-size: 12px;
  color: var(--muted);
}
.wf-field .input {
  width: 210px;
}
.social-workflow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 980px) {
  .social-workflow { grid-template-columns: 1fr; }
}
.need-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
.need-tag.anon { background: rgba(0,221,136,0.12); color: var(--brand); }
.need-tag.login { background: rgba(255,170,0,0.14); color: #ffaa00; }
.stage-item.wf-locked {
  opacity: 0.6;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-soft-2);
  padding: 12px;
}
.stage-item.recommend.wf-locked {
  border-color: rgba(0, 221, 136, 0.4);
  background: rgba(0, 221, 136, 0.05);
}
.stage-item.wf-locked .stage-item-name::after {
  content: '🔒';
  margin-left: 6px;
  font-size: 12px;
}
