/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0066cc;
  --secondary-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --dark-color: #333;
  --light-color: #f8f9fa;
  --border-color: #dee2e6;
  --shadow: 0 2px 8px rgba(0,0,0,0.05);
  --radius: 12px;
  
  /* 浅色模式变量 */
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --nav-bg: rgba(255, 255, 255, 0.95);
}

/* 深色模式变量 */
[data-theme="dark"] {
  --bg-primary: #1a1d23;
  --bg-secondary: #2d3139;
  --text-primary: #e9ecef;
  --text-secondary: #adb5bd;
  --border-color: #495057;
  --nav-bg: rgba(45, 49, 57, 0.95);
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 导航栏 */
.navbar {
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 30px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-brand h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* 主题切换按钮 */
.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
  color: var(--text-primary);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.theme-toggle .icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover .icon {
  transform: rotate(180deg);
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(0, 123, 191, 0.1);
  border-color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
  background: rgba(0, 123, 191, 0.15);
  border-color: var(--primary-color);
  font-weight: 600;
}

.nav-btn {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: #0052a3;
  border-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 快速操作区域 */
.quick-action {
  text-align: center;
  padding: 40px 20px;
}

.quick-action h2 {
  color: var(--text-primary);
  margin-bottom: 15px;
  border: none;
  padding: 0;
}

.quick-action p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.quick-action .btn-primary {
  display: inline-block;
  width: auto;
  min-width: 200px;
  text-decoration: none;
}

/* Header */
.header {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 30px;
  transition: background-color 0.3s ease;
}

.header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Section */
.section {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  transition: background-color 0.3s ease;
}

.section h2 {
  color: var(--text-primary);
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

/* 搜索框 */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.search-box button {
  padding: 12px 24px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.search-box button:hover {
  background: #0052a3;
}

/* 镜像列表 */
.images-list {
  min-height: 200px;
}

.image-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  background: var(--bg-secondary);
  transition: all 0.3s ease;
}

.image-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.image-name {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 8px;
  word-break: break-all;
}

.image-meta {
  display: flex;
  gap: 15px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.image-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.image-path {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.image-path small {
  color: var(--text-secondary);
  font-size: 0.85rem;
  word-break: break-all;
}

/* 标签徽章样式 */
.tag-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--primary-color);
}

/* 可选标签样式 */
.optional-badge {
  background: #6c757d;
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-left: 5px;
}

/* 警告消息样式 */
.warning-message {
  background: var(--bg-secondary);
  border: 1px solid var(--warning-color);
  border-radius: var(--radius);
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.warning-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.warning-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.warning-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* 镜像名称可点击样式 */
.image-name {
  cursor: pointer;
  transition: color 0.3s ease;
}

.image-name:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* 标签列表样式 */
.tags-list {
  margin-top: 15px;
  padding: 15px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary-color);
  transition: background-color 0.3s ease;
}

.tags-container h4 {
  margin: 0 0 10px 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.tags-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tag-button {
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag-button:hover {
  background: var(--primary-color);
  color: white;
}

.tag-button.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

/* 拉取命令样式 */
.pull-command {
  margin-top: 15px;
}

.command-section h5 {
  margin: 0 0 10px 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.pull-command .command-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pull-command .command-line pre {
  flex: 1;
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  overflow-x: auto;
}

.pull-command .btn-copy {
  padding: 6px 10px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.pagination button {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 表单样式 */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.form-group h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.form-group h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

/* 验证选项 */
.validation-section {
  background: var(--bg-secondary);
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
}

.checkbox,
.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox input,
.radio input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.hint-list {
  margin-left: 28px;
  margin-top: 10px;
  list-style: none;
}

.hint-list li {
  padding: 5px 0;
  color: var(--text-secondary);
}

.hint-list li:before {
  content: "• ";
  color: var(--primary-color);
  font-weight: bold;
}

/* 通知方式 */
.radio-group {
  display: flex;
  gap: 20px;
}

.notify-section {
  background: var(--light-color);
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 15px;
}

.notify-section .form-group {
  background: var(--bg-secondary);
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 0;
}

.notify-section .form-group label {
  color: var(--text-primary);
  font-weight: 600;
}

.notify-section .form-group input {
  width: 100%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* 二维码 */
.qrcode-section {
  text-align: center;
}

.qrcode-section p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.qrcode-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 20px;
}

.qrcode-container img {
  max-width: 200px;
  border-radius: var(--radius);
}

/* 错误提示 */
.error-message {
  text-align: center;
  padding: 20px;
}

.error-message p {
  color: #dc3545;
  margin-bottom: 15px;
  font-weight: 500;
}

.error-message .btn-secondary {
  margin-top: 10px;
}

/* 验证状态 */
#imageNameError {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

#imageNameError code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

/* 必选/可选标签 */
.required-badge {
  display: inline-block;
  background: #dc3545;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

.optional-badge {
  display: inline-block;
  background: #6c757d;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

/* 禁用的勾选框 */
.checkbox input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.checkbox input[type="checkbox"]:disabled:checked {
  opacity: 1;
}

/* 验证状态文本 */
#domainStatus,
#tagStatus {
  font-weight: 500;
  font-size: 0.95rem;
}

/* 按钮 */
.btn-primary,
.btn-secondary,
.btn-copy {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  width: 100%;
}

.btn-primary:hover:not(:disabled) {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary:disabled {
  background: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

.btn-copy {
  background: var(--secondary-color);
  color: white;
  padding: 8px 16px;
  font-size: 0.9rem;
  margin-top: 10px;
}

.btn-copy:hover {
  background: #218838;
}

/* 进度显示 */
.progress-container {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  transition: background-color 0.3s ease;
}

.progress-info {
  margin-bottom: 20px;
}

.progress-info p {
  margin-bottom: 10px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status-badge.pending {
  background: var(--warning-color);
  color: var(--text-primary);
}

.status-badge.running {
  background: #17a2b8;
  color: white;
}

.status-badge.success {
  background: var(--secondary-color);
  color: white;
}

.status-badge.failure {
  background: var(--danger-color);
  color: white;
}

.progress-bar-container {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  height: 30px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  transition: width 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  width: 0%;
}

.progress-logs {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 15px;
  border-radius: var(--radius);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.progress-logs > div {
  margin-bottom: 8px;
  padding: 5px;
  border-left: 3px solid #4ec9b0;
  padding-left: 10px;
}

.progress-logs .log-info {
  color: #4ec9b0;
  border-left-color: #4ec9b0;
}

.progress-logs .log-success {
  color: #6a9955;
  border-left-color: #6a9955;
}

.progress-logs .log-error {
  color: #f48771;
  border-left-color: #f48771;
}

.progress-logs .log-warning {
  color: #dcdcaa;
  border-left-color: #dcdcaa;
}

.progress-logs a {
  color: #569cd6;
  text-decoration: underline;
}

.progress-logs a:hover {
  color: #4fc3f7;
}

.progress-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* 结果显示 */
.result-container {
  padding: 20px;
}

.result-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.result-actions .btn-primary,
.result-actions .btn-secondary {
  flex: 1;
  max-width: 200px;
  text-align: center;
}

.result-info {
  background: var(--bg-secondary);
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.result-info p {
  margin-bottom: 10px;
  word-break: break-all;
}

.docker-commands {
  margin-bottom: 30px;
}

.docker-commands h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.command-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.command-block h4 {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 1rem;
}

.command-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
}

.command-line:last-child {
  margin-bottom: 0;
}

.command-line pre {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  padding: 8px 12px;
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-all;
}

.command-line code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.command-line .btn-copy {
  padding: 8px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.command-block .highlight {
  color: #4ec9b0;
}

.command-block .highlight-source {
  color: #ce9178;
}

.command-block .highlight-target {
  color: #9cdcfe;
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 基础字体和间距调整 */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* 导航栏优化 - 现代移动端设计 */
  .navbar {
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .nav-container {
    padding: 8px 15px;
    flex-direction: column;
    gap: 8px;
  }
  
  /* 第一行：品牌标题 + 主题切换 */
  .nav-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-brand h1 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    line-height: 1.3;
  }
  
  /* 主题切换按钮 - 更小尺寸设计 */
  .theme-toggle {
    font-size: 11px;
    padding: 4px 8px;
    min-height: 28px;
    min-width: 55px;
    white-space: nowrap;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
  }
  
  .theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  
  .theme-toggle .icon {
    font-size: 13px;
    margin-right: 4px;
  }
  
  .theme-toggle .text {
    font-weight: 500;
  }
  
  /* 第二行：导航链接 - 水平滚动 */
  .nav-links {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  
  .nav-link, .nav-btn {
    font-size: 11px;
    padding: 4px 8px;
    min-height: 28px;
    min-width: 55px;
    white-space: nowrap;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
  }
  
  .nav-link:hover, .nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  
  .nav-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
  }
  
  .nav-link.active:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
  }
  
  /* 容器优化 */
  .container {
    padding: 0 15px;
    max-width: 100%;
  }

  /* 标题优化 */
  .header h1 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  
  .header p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .section {
    padding: 20px 15px;
    margin-bottom: 20px;
  }
  
  .section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  /* 表单优化 */
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
  }
  
  .form-group input[type="text"],
  .form-group input[type="email"] {
    padding: 15px;
    font-size: 16px;
    min-height: 44px;
    border-radius: 8px;
  }
  
  .search-box {
    flex-direction: column;
    gap: 10px;
  }
  
  .search-box input {
    padding: 15px;
    font-size: 16px;
    min-height: 44px;
    border-radius: 8px;
  }
  
  .search-box button {
    padding: 15px 20px;
    font-size: 16px;
    min-height: 44px;
    border-radius: 8px;
  }

  /* 按钮优化 */
  .btn-primary, .btn-secondary, .btn-copy {
    padding: 15px 20px;
    font-size: 16px;
    min-height: 44px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  /* 单选按钮组优化 */
  .radio-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .radio, .checkbox {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    min-height: 44px;
  }
  
  .radio input, .checkbox input {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }

  /* 卡片优化 */
  .image-card {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
  }
  
  .image-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .image-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .image-meta span {
    font-size: 14px;
  }
  
  .image-path small {
    font-size: 13px;
  }

  /* 标签优化 */
  .tag-badge {
    font-size: 12px;
    padding: 3px 8px;
  }
  
  .tag-button {
    padding: 10px 15px;
    font-size: 14px;
    min-height: 40px;
    border-radius: 20px;
  }
  
  .tags-list {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .tags-container h4 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  /* 进度条优化 */
  .progress-container {
    padding: 15px;
  }
  
  .progress-bar-container {
    height: 25px;
    margin-bottom: 15px;
  }
  
  .progress-logs {
    font-size: 14px;
    padding: 15px;
    min-height: 200px;
  }
  
  .progress-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .progress-actions a {
    text-align: center;
    padding: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 命令块优化 */
  .command-line {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .command-line pre {
    font-size: 12px;
    padding: 15px;
    min-height: 60px;
    word-break: break-all;
  }
  
  .btn-copy {
    font-size: 14px;
    padding: 12px 15px;
    min-height: 44px;
  }
  
  .command-block {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .command-block h4 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .docker-commands h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  /* 结果页面优化 */
  .result-info {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .result-info p {
    font-size: 14px;
    margin-bottom: 8px;
    word-break: break-all;
  }
  
  .result-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .result-actions button,
  .result-actions a {
    width: 100%;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 验证状态优化 */
  .validation-section {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .hint-list {
    margin-left: 15px;
    margin-top: 10px;
  }
  
  .hint-list li {
    font-size: 14px;
    padding: 8px 0;
  }

  /* 通知区域优化 */
  .notify-section {
    padding: 15px;
  }
  
  .notify-section .form-group {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .qrcode-container {
    padding: 15px;
    min-height: 200px;
  }
  
  .qrcode-container img {
    max-width: 150px;
  }

  /* 警告消息优化 */
  .warning-message {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .warning-text {
    font-size: 14px;
    line-height: 1.6;
  }

  /* 错误消息优化 */
  .error-message {
    padding: 15px;
  }
  
  .error-message p {
    font-size: 14px;
    margin-bottom: 10px;
  }

  /* 状态徽章优化 */
  .status-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* 分页优化 */
  .pagination {
    flex-direction: column;
    gap: 10px;
  }
  
  .pagination button {
    padding: 15px 20px;
    font-size: 16px;
    min-height: 44px;
    width: 100%;
  }

  /* 加载状态优化 */
  .loading {
    padding: 30px;
    font-size: 16px;
  }
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeIn 0.5s ease-out;
}

/* 加载动画 */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading:after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  margin: 4% auto;
  padding: 0;
  max-width: 720px;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  animation: slideDown 0.25s ease-out;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2.2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 16px 16px 0 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.8rem 2.2rem 0;
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.2rem 2.2rem 1.6rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 0 0 16px 16px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* 测试通知弹窗专用样式 */
#testNotifyModal .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#testNotifyModal .form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

#testNotifyModal .radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#testNotifyModal .radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-secondary);
}

#testNotifyModal .radio-label:hover {
  border-color: var(--text-secondary);
  background: var(--bg-primary);
}

#testNotifyModal .radio-label input[type="radio"] {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

#testNotifyModal .radio-label input[type="radio"]:checked + span {
  color: var(--primary-color);
  font-weight: 500;
}

#testNotifyModal .form-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: all 0.2s ease;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

#testNotifyModal .form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

#testNotifyModal textarea.form-input {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

#testNotifyModal .modal-footer .btn-primary,
#testNotifyModal .modal-footer .btn-secondary {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#testNotifyModal .modal-footer .btn-primary {
  background: var(--primary-color);
  color: white;
}

#testNotifyModal .modal-footer .btn-primary:hover {
  background: #0052a3;
  transform: translateY(-1px);
}

#testNotifyModal .modal-footer .btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

#testNotifyModal .modal-footer .btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

#testNotifyModal .modal-footer .btn-secondary:hover {
  background: var(--text-secondary);
  color: var(--bg-secondary);
}

/* 开发环境专用样式 */
.dev-only {
  display: none !important;
}

/* 只在开发环境显示 */
body[data-env="development"] .dev-only {
  display: inline-block !important;
}

/* 响应式弹窗 */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    max-width: 92%;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem 1.2rem;
  }
}
