/* ==========================================================
   Cloudflare 云端部署器品牌适配样式
   配色体系：Cloudflare 橙 #F6821F + 深蓝 #1E1E2C
   ========================================================== */
:root {
  color-scheme: light;

  /* 背景与面�?*/
  --bg: #f0f2f5;
  --bg-gradient-1: #f8fafc;
  --bg-gradient-2: #eef1f6;
  --panel: rgba(255, 255, 255, 0.80);
  --panel-strong: rgba(255, 255, 255, 0.94);

  /* 文字 */
  --text: #1e1e2c;
  --muted: #6b7280;
  --line: rgba(30, 30, 44, 0.10);

  /* Cloudflare 品牌�?*/
  --accent: #f6821f;
  --accent-strong: #e07612;
  --accent-dark: #c25e08;
  --accent-soft: rgba(246, 130, 31, 0.10);
  --accent-softer: rgba(246, 130, 31, 0.05);
  --cf-blue: #2c4ee6;
  --cf-blue-soft: rgba(44, 78, 230, 0.08);

  --danger: #dc2626;
  --shadow: 0 8px 32px rgba(30, 30, 44, 0.06);
  --shadow-hover: 0 12px 40px rgba(30, 30, 44, 0.10);
  --shadow-accent: 0 8px 24px rgba(246, 130, 31, 0.22);

  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(246, 130, 31, 0.08), transparent 35%),
    radial-gradient(circle at 85% 8%, rgba(44, 78, 230, 0.06), transparent 30%),
    linear-gradient(180deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
}

button,
input,
select {
  font: inherit;
}

/* ── 布局�?── */
.shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

/* ── Hero 区域 ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  padding: 24px 0 20px;
}

.hero-content {
  min-width: 0;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.cf-logo {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(246, 130, 31, 0.25));
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
}

.version-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: 8px;
  padding: 3px 12px;
  margin-left: 10px;
  vertical-align: middle;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(246, 130, 31, 0.30);
}

h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.summary {
  max-width: 580px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ── 状态卡�?── */
.status-card,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow);
}

.status-card {
  border-radius: 18px;
  padding: 18px 20px;
}

.status-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

/* ── 面板 ── */
.panel {
  margin-top: 16px;
  border-radius: 20px;
  padding: 20px 22px;
}

.page-hidden {
  display: none !important;
}

.login-panel {
  max-width: 760px;
}

/* ── 折叠面板 ── */
summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 15px;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font-size: 14px;
  line-height: 1;
}

details[open] summary::before {
  content: "\2212";
}

.advanced-panel .panel-head {
  margin-top: 16px;
}

/* ── 面板�?── */
.panel-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.panel-head.compact {
  margin-bottom: 10px;
}

/* ── 按钮�?── */
.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* ── 紧凑工具栏按�?── */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(246, 130, 31, 0.18);
  border-radius: 10px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-softer);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tool-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(246, 130, 31, 0.20);
}

.tool-btn:active {
  transform: translateY(0) scale(0.98);
}

.tool-btn svg {
  flex-shrink: 0;
}

/* ── 网格 ── */
.grid {
  display: grid;
  gap: 12px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.span-two {
  grid-column: span 2;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 12.5px;
  font-weight: 700;
}

.form-note {
  align-self: end;
  min-height: 42px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(246, 130, 31, 0.15);
  border-radius: 12px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ── 输入�?── */
input,
select {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(30, 30, 44, 0.12);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  border-color: rgba(246, 130, 31, 0.6);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.toggle {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 10px;
  padding-top: 22px;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.toggle span {
  margin: 0;
}

/* ── 按钮 ── */
button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button:active {
  transform: translateY(1px) scale(0.99);
}

.primary {
  min-height: 48px;
  padding: 0 26px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: var(--shadow-accent);
  font-weight: 800;
  font-size: 15px;
  border: 0;
}

.primary:hover {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-dark));
  box-shadow: 0 10px 30px rgba(246, 130, 31, 0.30);
}

.secondary {
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 700;
  border: 1px solid rgba(246, 130, 31, 0.15);
}

.secondary:hover {
  background: var(--accent-softer);
}

.small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
}

.action-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 18px 0 0;
}

.quick-action {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.result {
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--muted);
  background: var(--panel-strong);
  font-size: 13.5px;
}

.result.success {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: rgba(246, 130, 31, 0.2);
}

.result.error {
  color: var(--danger);
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.15);
}

/* ── 日志面板 ── */
.logs-panel {
  padding: 18px 22px 10px;
}

pre {
  min-height: 200px;
  max-height: 400px;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(30, 30, 44, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  color: #c4b5fd;
  background: #1e1e2c;
  font: 12.5px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

/* ── 响应�?── */
@media (max-width: 860px) {
  .hero,
  .two,
  .three {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: auto;
  }

  .panel-head,
  .action-row,
  .quick-action {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }

  .button-group,
  .toolbar {
    justify-content: stretch;
  }

  .primary,
  .secondary,
  .button-group button,
  .toolbar .tool-btn {
    width: 100%;
  }
}

/* ── HTML 编辑器与预览�?── */
.editor-panel {
  max-width: 100%;
}

.editor-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.editor-box,
.preview-box {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-strong);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30, 30, 44, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.editor-box:focus-within {
  border-color: rgba(246, 130, 31, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.editor-header,
.preview-header {
  padding: 10px 16px;
  background: var(--accent-softer);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  gap: 12px;
}

.editor-header .file-tabs {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.file-tab {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  transition: all 0.15s ease;
}

.file-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.file-tab:hover:not(.active) {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

textarea#htmlCode {
  width: 100%;
  height: 360px;
  border: none;
  padding: 14px 16px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #1e293b;
  background: rgba(248, 250, 252, 0.9);
  resize: vertical;
  outline: none;
  border-radius: 0 0 0 16px;
}

iframe#htmlPreview {
  width: 100%;
  height: 360px;
  border: none;
  background: #ffffff;
  border-radius: 0 0 16px 0;
}

@media (max-width: 860px) {
  .editor-container {
    grid-template-columns: 1fr;
  }

  textarea#htmlCode,
  iframe#htmlPreview {
    height: 280px;
    border-radius: 0 0 16px 16px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .status-card,
  .panel {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ── 危险按钮 ── */
.btn-danger {
  color: white !important;
  background: var(--danger) !important;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-danger:hover {
  background: #b91c1c !important;
}

.btn-danger:active {
  transform: translateY(1px) scale(0.98);
}

.btn-danger:disabled {
  background: #f2f4f7 !important;
  color: #98a2b3 !important;
  cursor: not-allowed;
}

/* ── 项目域名展示�?── */
.project-domains-bar {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(246, 130, 31, 0.18);
  border-radius: 14px;
  background: var(--accent-soft);
}

.project-domains-bar .domains-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-strong);
  white-space: nowrap;
  padding-top: 4px;
}

.project-domains-bar .domains-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-domains-bar .domain-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(246, 130, 31, 0.25);
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-strong);
  transition: all 0.15s ease;
}

.project-domains-bar .domain-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(246, 130, 31, 0.20);
}

.project-domains-bar .domain-link .domain-icon {
  font-size: 14px;
}

/* ── 项目操作按钮�?── */
.project-action-row {
  display: flex;
  gap: 10px;
  margin-top: -4px;
  margin-bottom: 4px;
}

.project-action-row button {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  white-space: nowrap;
  padding: 0 14px;
}

/* ── 当前文件标签 ── */
.current-file-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

/* ── 模板选择与操作组 ── */
.template-selector-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.template-select {
  height: 38px;
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  color: var(--text);
  border: 1px solid rgba(30, 30, 44, 0.15);
  cursor: pointer;
  min-width: 150px;
}

/* ── 页面标题与指南按�?── */
.title-with-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.guide-trigger-btn {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  height: auto;
  min-height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  transition: all 0.2s ease;
}

.guide-trigger-btn:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

/* ── 文件上传拖拽区域 ── */
.file-uploader-box {
  margin: 12px 0;
}

.upload-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 2px dashed rgba(246, 130, 31, 0.3);
  border-radius: 14px;
  background: rgba(246, 130, 31, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: inset 0 0 10px rgba(246, 130, 31, 0.05);
}

.upload-dropzone span {
  font-size: 13px;
  color: var(--accent-strong);
  font-weight: 600;
}

.upload-dropzone span code {
  background: rgba(246, 130, 31, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

.upload-icon {
  color: var(--accent);
  animation: bounceSlow 2s infinite;
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ── 编辑�?Tab 选项�?── */
.editor-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 2px;
}

.tab-btn {
  padding: 8px 16px;
  border: none;
  background: none;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  min-height: auto;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--accent-softer);
}

.tab-btn.active {
  color: var(--accent-strong);
  background: none;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
}

/* ── Worker 详情引导�?── */
.worker-notice-box {
  padding: 20px;
  background: #1e1e2f;
  color: #e2e8f0;
  height: 100%;
  overflow-y: auto;
  border-radius: 0 0 16px 0;
}

.notice-card h3 {
  color: #f6821f;
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 12px;
}

.code-example-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  margin: 16px 0 6px;
}

.code-example {
  background: #0f0f1a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  margin: 0;
  overflow-x: auto;
}

.code-example code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #38bdf8;
  line-height: 1.5;
}

/* ── 模态弹窗系�?(磨砂玻璃与渐入特�? ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  animation: fadeInModal 0.2s ease-out forwards;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  width: 90%;
  max-width: 750px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
  opacity: 0;
  animation: scaleIn 0.28s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--accent-softer), rgba(255,255,255,0));
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-strong);
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  min-height: auto;
  line-height: 1;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--accent-strong);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guide-section h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-section p, .guide-section li {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

.guide-section ol, .guide-section ul {
  margin: 0;
  padding-left: 20px;
}

.guide-section li {
  margin-bottom: 6px;
}

.changelog-item {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 16px;
}

.changelog-ver {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-strong);
  margin-bottom: 6px;
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 6px;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes scaleIn {
  to { transform: scale(1); opacity: 1; }
}

/* ── Worker 独立代码编辑�?── */
.file-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-strong);
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(246, 130, 31, 0.25);
}

.worker-code-editor {
  width: 100%;
  height: 360px;
  border: none;
  padding: 16px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #f8fafc;
  background: #1e1e2e;
  resize: vertical;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  border-radius: 0 0 0 16px;
}

/* ── 项目绑定域名展示�?── */
.project-domains-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--accent-softer);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.domains-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
}

.domains-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.domain-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 9999px;
  color: var(--cf-blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.domain-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(246, 130, 31, 0.2);
}

.domain-icon {
  font-size: 11px;
}

/* ── 自定义高颜值模态弹�?── */


.modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: slideInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 20px 24px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-icon {
  font-size: 24px;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.modal-body {
  padding: 20px 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.modal-footer {
  padding: 16px 24px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.1);
}

.modal-footer button {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-footer button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.modal-footer button.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.modal-footer button.danger {
  background: var(--danger);
  border: none;
  color: #fff;
}

.modal-footer button.danger:hover {
  background: #ef4444;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
  transform: translateY(-1px);
}

.modal-footer button.primary {
  background: var(--accent);
  border: none;
  color: #fff;
}

.modal-footer button.primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 20px rgba(246, 130, 31, 0.3);
  transform: translateY(-1px);
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInModal {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* 多项目文件切换按钮 Tab 样式 */
.file-tabs-container {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 70%;
  padding-bottom: 2px;
}
.file-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.file-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.file-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}



