/* ========================================
   100Tools - 统一工具页样式
   ======================================== */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef2ff;
  --primary-50: #f5f3ff;
  --bg: #f6f8fb;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e5e7eb;
  --border-light: #f1f5f9;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --error-bg: #fef2f2;
  --info: #3b82f6;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ===== Tool Shell - 统一页面容器 ===== */
.tool-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  width: 100%;
  flex: 1;
}

@media (max-width: 768px) {
  .tool-shell { padding: 16px 14px 32px; }
}

/* ===== Tool Header ===== */
.tool-header {
  margin-bottom: 28px;
}

.tool-header .back-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.tool-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: var(--transition);
}

.tool-header .back-link:hover {
  color: var(--primary);
  background: var(--primary-50);
}

.tool-header .breadcrumb {
  color: var(--text-muted);
  font-size: 13px;
}

.tool-header .breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.tool-header .breadcrumb a:hover {
  color: var(--primary);
}

.tool-header .hd-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.tool-header .hd-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.tool-header .hd-text { flex: 1; min-width: 0; }

.tool-header .hd-text h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.tool-header .hd-text .hd-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tool-header .hd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tool-header .hd-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
}

.tool-header .hd-tag.success { background: #f0fdf4; color: #16a34a; }
.tool-header .hd-tag.warning { background: #fffbeb; color: #d97706; }
.tool-header .hd-tag.info { background: #eff6ff; color: #2563eb; }

@media (max-width: 640px) {
  .tool-header .hd-text h1 { font-size: 22px; }
  .tool-header .hd-text .hd-desc { font-size: 14px; }
  .tool-header .hd-icon { width: 40px; height: 40px; font-size: 20px; }
}

/* ===== Tool Layout - 两栏布局 ===== */
.tool-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.tool-layout .main-area {
  flex: 1;
  min-width: 0;
}

.tool-layout .side-area {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}

@media (max-width: 900px) {
  .tool-layout { flex-direction: column; }
  .tool-layout .side-area {
    width: 100%;
    position: static;
  }
}

/* ===== Tool Panel - 主操作卡片 ===== */
.tool-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .tool-panel { padding: 20px 16px; }
}

/* ===== Side Panel ===== */
.side-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.side-panel .sp-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.side-panel .sp-body { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.side-panel .sp-body ul { list-style: none; padding: 0; }
.side-panel .sp-body li { padding: 4px 0; padding-left: 16px; position: relative; }
.side-panel .sp-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
}

/* ===== Upload Zone ===== */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}

.upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.upload-zone .uz-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.upload-zone .uz-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.upload-zone .uz-hint {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.upload-zone .uz-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.upload-zone .uz-btn:hover { background: var(--primary-dark); }

.upload-zone.has-file {
  border-style: solid;
  border-color: var(--primary);
  padding: 20px 16px;
  min-height: auto;
}

@media (max-width: 640px) {
  .upload-zone { padding: 36px 20px; min-height: 160px; }
  .upload-zone .uz-icon { width: 44px; height: 44px; }
}

/* ===== Buttons ===== */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.primary-btn:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.primary-btn:active { transform: scale(0.98); }
.primary-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.primary-btn.full { width: 100%; }

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.secondary-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.danger-btn:hover { background: #fee2e2; }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: var(--transition);
}

.ghost-btn:hover { color: var(--primary); background: var(--primary-50); }

.action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ===== Form Controls ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  background: var(--card-bg);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-group .form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.form-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-row .fg {
  flex: 1;
  min-width: 130px;
}

input[type="file"] { display: none; }

/* ===== File List ===== */
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }

.file-list .fl-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.file-list .fl-item:hover { border-color: var(--primary); }

.file-list .fl-item .fl-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 16px;
}

.file-list .fl-item .fl-body { flex: 1; min-width: 0; }
.file-list .fl-item .fl-body .name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-list .fl-item .fl-body .size { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.file-list .fl-item .fl-action { flex-shrink: 0; }

/* ===== Progress ===== */
.progress-card {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.progress-card.show { display: block; }

.progress-card .p-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  border-radius: 4px;
  transition: width 0.3s;
}

/* ===== Result Panel ===== */
.result-panel {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.result-panel.show { display: block; }

.result-panel .rp-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.result-panel .rp-icon.success { background: #f0fdf4; color: var(--success); }
.result-panel .rp-icon.error { background: var(--error-bg); color: var(--error); }

.result-panel .rp-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.result-panel .rp-title.success { color: var(--success); }
.result-panel .rp-title.error { color: var(--error); }

.result-panel .rp-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}

.result-panel .rp-stats .stat-item { text-align: center; }
.result-panel .rp-stats .stat-item .num {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
}

.result-panel .rp-stats .stat-item .num.green { color: var(--success); }
.result-panel .rp-stats .stat-item .num.orange { color: var(--warning); }
.result-panel .rp-stats .stat-item .num.big { font-size: 32px; }
.result-panel .rp-stats .stat-item .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== Error Panel ===== */
.error-panel {
  display: none;
  background: var(--error-bg);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 12px;
  text-align: center;
}

.error-panel.show { display: block; }
.error-panel .ep-title { color: var(--error); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.error-panel .ep-detail { font-size: 14px; color: #991b1b; }
.error-panel .ep-action { margin-top: 12px; }

/* ===== Metric Cards ===== */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.metric-card .mc-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 2px;
}

.metric-card .mc-value.green { color: var(--success); }
.metric-card .mc-value.orange { color: var(--warning); }
.metric-card .mc-value.red { color: var(--error); }

.metric-card .mc-label {
  font-size: 12px;
  color: var(--text-muted);
}

.metric-card .mc-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.metric-card.highlight {
  background: var(--primary-light);
  border-color: var(--primary);
}

/* ===== Result Summary Card ===== */
.summary-card {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-light));
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  margin-bottom: 16px;
}

.summary-card .sc-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.summary-card .sc-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Data Table ===== */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

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

.data-table th {
  background: var(--bg);
  position: sticky;
  top: 0;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.data-table tr:hover td { background: var(--primary-50); }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Text Editor (Dev Tools) ===== */
.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.editor-toolbar .et-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.editor-toolbar .et-btn:hover { border-color: var(--primary); color: var(--primary); }
.editor-toolbar .et-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.editor-toolbar .et-btn.primary:hover { background: var(--primary-dark); }

.editor-wrap textarea {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  background: #fafbfc;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.editor-wrap textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
  background: var(--card-bg);
}

.editor-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
}

.editor-status .es-msg { color: var(--text-muted); }
.editor-status .es-msg.ok { color: var(--success); }
.editor-status .es-msg.err { color: var(--error); }
.editor-status .es-stats { color: #94a3b8; font-size: 12px; }

/* ===== Tab Selector ===== */
.tab-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-selector .ts-item {
  flex: 1;
  padding: 10px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  background: var(--card-bg);
}

.tab-selector .ts-item.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.tab-selector .ts-item:hover { border-color: var(--primary); }

/* ===== Tips / Hint ===== */
.info-box {
  margin-top: 20px;
  background: var(--primary-light);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.info-box strong { color: var(--primary); }

/* ===== Footer Info (SEO/FAQ/Related) ===== */
.tool-footer-info {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.tool-footer-info .fi-section {
  margin-bottom: 20px;
}

.tool-footer-info .fi-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.tool-footer-info .fi-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.tool-footer-info .fi-related {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 14px;
}

.tool-footer-info .fi-related a {
  color: var(--primary);
  text-decoration: none;
}

.tool-footer-info .fi-related a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 20px 16px;
  color: #94a3b8;
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ===== Responsive Helpers ===== */
@media (max-width: 640px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .result-panel { padding: 20px 16px; }
  .result-panel .rp-stats { gap: 16px; }
  .result-panel .rp-stats .stat-item .num { font-size: 22px; }
}

@media (max-width: 480px) {
  .editor-toolbar .et-btn { padding: 6px 12px; font-size: 12px; }
  .tab-selector .ts-item { font-size: 12px; padding: 8px 6px; }
}

/* ===== Legacy Support (old class names still work) ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-top { margin-bottom: 20px; }
.page-top .back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 14px; text-decoration: none; margin-bottom: 8px; }
.page-top .back-link:hover { color: var(--primary); }
.page-top .page-title { display: flex; align-items: center; gap: 8px; }
.page-top .page-title h1 { font-size: 22px; font-weight: 700; color: var(--text); }
.page-top .page-desc { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.big-btn {
  display: none;
  width: 100%; margin-top: 16px; padding: 16px;
  background: var(--primary);
  color: white; border: none; border-radius: var(--radius);
  font-size: 18px; font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
  letter-spacing: 1px;
}
.big-btn.show { display: block; }
.big-btn:active { transform: scale(0.97); opacity: 0.9; }
.big-btn:disabled { opacity: 0.5; transform: none; }

.result-card {
  display: none;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  margin-top: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}
.result-card.show { display: block; }
.result-card .r-title { font-size: 20px; font-weight: 700; color: var(--success); margin-bottom: 12px; }
.result-card .r-stats { display: flex; justify-content: center; gap: 24px; margin: 16px 0; }
.result-card .r-stats .s-item { text-align: center; }
.result-card .r-stats .s-item .num { font-size: 24px; font-weight: 700; color: var(--primary); }
.result-card .r-stats .s-item .num.green { color: var(--success); }
.result-card .r-stats .s-item .num.big { font-size: 30px; }
.result-card .r-stats .s-item .label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.d-btn {
  display: inline-block; margin-top: 4px; padding: 14px 48px;
  background: var(--success); color: white; border: none; border-radius: var(--radius);
  font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: all 0.15s;
}

.error-card {
  display: none;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius);
  padding: 20px; margin-top: 12px; text-align: center;
}
.error-card.show { display: block; }
.error-card .e-title { color: var(--error); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.error-card .e-detail { font-size: 14px; color: #991b1b; }

.again-btn { display: inline-block; margin-top: 12px; background: none; border: none; color: var(--primary); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: underline; }

.tips {
  margin-top: 16px; background: var(--card-bg); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted); line-height: 1.7;
}

.page-top .page-icon { font-size: 32px; }

.error-card .e-title { color: var(--error); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.error-card .e-detail { font-size: 14px; color: #991b1b; }
.error-card .e-btn { margin-top: 12px; background: none; border: none; color: var(--primary); font-size: 14px; cursor: pointer; text-decoration: underline; }

.seo-tagline {
  max-width: 600px;
  margin: 28px auto 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.8;
}
.seo-tagline .seo-related strong { color: var(--text-muted); margin-right: 6px; }
.seo-tagline .seo-related a { color: var(--primary); text-decoration: none; margin: 0 4px; }
.seo-tagline .seo-related a:hover { text-decoration: underline; }
.seo-tagline .seo-related a:after { content: " | "; color: var(--border); margin-left: 4px; }
.seo-tagline .seo-related a:last-child:after { content: ""; }
