/* ==========================================================================
   外部站样式 —— 按参考站 blog.haon.cc/tool 复刻
   独立于管理端的 style.css，类名与参考站保持一致
   ========================================================================== */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #f43f5e;
  --accent: #8b5cf6;
  --light: #f8fafc;
  --dark: #1e293b;
  --gray: #64748b;
  --success: #10b981;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, .15), 0 10px 10px -5px rgba(0, 0, 0, .06);
  --grad: linear-gradient(to right, #a8c0ff, #e2b0ff);
  --grad-135: linear-gradient(135deg, #a8c0ff 0%, #e2b0ff 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: var(--dark);
  line-height: 1.6;
}

body.center-page {
  justify-content: center;
  align-items: center;
}

/* ------------------------------------------------------------------ logo */

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.logo-container.left {
  justify-content: flex-start;
  margin-bottom: 0;
}

.logo-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-135);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(168, 192, 255, .3);
  transition: transform .3s ease;
  flex-shrink: 0;
  user-select: none;
}

.logo-badge.small {
  width: 50px;
  height: 50px;
  font-size: 21px;
}

.logo-badge:hover {
  transform: rotate(5deg) scale(1.05);
}

/* ------------------------------------------------------------------ 首页 */

.header {
  color: #333;
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
}

h1.site-name {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(to right, #a8c0ff, #e2b0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 400;
  color: #666;
  margin-top: 5px;
}

.container {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  animation: fadeUp .55s cubic-bezier(.22, .8, .28, 1) both;
}

.container.narrow {
  max-width: 500px;
  padding: 2.5rem;
  transition: transform .3s ease, box-shadow .3s ease;
}

.container.medium {
  max-width: 800px;
  padding: 2.5rem;
}

.container.narrow:hover {
  box-shadow: var(--shadow-hover);
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
}

.page-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
  color: var(--dark);
  font-weight: 700;
  font-size: 1.8rem;
  position: relative;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--grad);
  border-radius: 2px;
}

.page-title.wide {
  font-size: 2rem;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.page-title.wide::after {
  left: 0;
  transform: none;
  width: 100%;
}

/* 功能导航卡片 */

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.feature-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.feature-card {
  background: #fff;
  border-radius: 50px;
  padding: 1.2rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
  border: 1px solid #f1f5f9;
  transition: all .3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  max-width: 400px;
  min-height: 90px;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(168, 192, 255, .05) 0%, rgba(226, 176, 255, .05) 100%);
  opacity: 0;
  transition: all .3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .15);
  border-color: #e0e7ff;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-135);
  color: #fff;
  box-shadow: 0 4px 10px rgba(168, 192, 255, .3);
  transition: all .3s ease;
  flex-shrink: 0;
  z-index: 1;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(168, 192, 255, .4);
}

.feature-content {
  display: flex;
  flex-direction: column;
  z-index: 1;
  min-width: 0;
  flex: 1;
}

.feature-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: .3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-desc {
  font-size: .85rem;
  color: var(--gray);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--gray);
  font-size: .9rem;
}

/* ------------------------------------------------------------------ 按钮 */

.btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .3s ease;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(168, 192, 255, .3);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transition: .5s;
}

.btn:hover {
  background: linear-gradient(to right, #98b0ef, #d2a0ef);
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(168, 192, 255, .4);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(168, 192, 255, .3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--gray) 0%, #475569 100%);
  box-shadow: 0 4px 15px rgba(113, 128, 150, .3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5a6b81 0%, #3b4757 100%);
  box-shadow: 0 7px 20px rgba(113, 128, 150, .4);
}

.btn-outline {
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(168, 192, 255, .3);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline:hover {
  background: linear-gradient(to right, #98b0ef, #d2a0ef);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(168, 192, 255, .4);
}

/* ------------------------------------------------------------------ 验证页 */

.card-header,
.container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  gap: 1rem;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(to right, #a8c0ff, #e2b0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
}

.nav-buttons {
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600;
  color: #4a5568;
  transition: color .3s ease;
}

input[type="text"] {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all .3s ease;
  background: #f8fafc;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05);
  color: var(--dark);
}

input[type="text"]::placeholder {
  color: #a0aec0;
}

input[type="text"]:focus {
  outline: none;
  border-color: #a8c0ff;
  box-shadow: 0 0 0 3px rgba(168, 192, 255, .1), inset 0 2px 4px rgba(0, 0, 0, .05);
  background: #fff;
  transform: translateY(-1px);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .02em;
}

.loading {
  display: none;
  text-align: center;
  margin-top: 1rem;
  color: var(--gray);
  font-size: .95rem;
}

.loading.show {
  display: block;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(168, 192, 255, .3);
  border-radius: 50%;
  border-top-color: #a8c0ff;
  animation: spin 1s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  color: #e53e3e;
  background: #fed7d7;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
  animation: fadeIn .5s ease;
  border-left: 4px solid #e53e3e;
}

.back-link {
  text-align: right;
  margin-top: 1rem;
}

.back-link a {
  color: #aaa;
  text-decoration: none;
  font-size: .8rem;
  transition: color .2s;
}

.back-link a:hover {
  color: var(--primary);
}

/* ------------------------------------------------------------------ 服务页 */

.card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .05);
  border: 1px solid #e2e8f0;
  transition: all .3s ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
  transform: translateY(-2px);
}

.card-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #4a5568;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid #edf2f7;
  gap: 1rem;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-weight: 500;
  color: #718096;
  flex-shrink: 0;
}

.info-value {
  font-weight: 600;
  color: #2d3748;
  word-break: break-all;
  text-align: right;
}

.phone-number {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.country-code {
  background: #e2e8f0;
  padding: .4rem .8rem;
  border-radius: 8px;
  font-weight: 700;
  color: #4a5568;
  flex-shrink: 0;
}

.phone-number .info-value {
  margin-right: .2rem;
}

.copy-btn {
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .4rem .8rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: linear-gradient(to right, #98b0ef, #d2a0ef);
  transform: translateY(-1px);
}

.copy-btn:active {
  transform: translateY(0);
}

.status-badge {
  padding: .4rem .8rem;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  display: inline-block;
  margin-right: .4rem;
}

.status-active {
  background: rgba(40, 167, 69, .15);
  color: #28a745;
}

.status-expired {
  background: rgba(220, 53, 69, .12);
  color: #dc3545;
}

/* 验证码显示区 */

.code-display {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  border: 2px dashed #a8c0ff;
  transition: all .3s ease;
  box-shadow: inset 0 4px 6px -1px rgba(0, 0, 0, .05);
  letter-spacing: 2px;
  flex-wrap: wrap;
  gap: 0 6px;
}

.code-display.has-code {
  background: linear-gradient(135deg, #f8fafc 0%, #e9effb 100%);
  box-shadow: inset 0 4px 6px -1px rgba(0, 0, 0, .04), 0 6px 20px -14px rgba(99, 102, 241, .7);
}

.code-display .digit {
  display: inline-block;
  animation: digitIn .6s cubic-bezier(.2, .85, .3, 1.1) both;
  text-shadow: 0 2px 12px rgba(99, 102, 241, .18);
}

.code-display.is-empty {
  color: #0f172a;
}

@keyframes digitIn {
  0% { opacity: 0; transform: translateY(18px) rotateX(-70deg) scale(.85); filter: blur(5px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes breathe {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-group .btn {
  flex: 1;
  min-width: 150px;
  margin: 0;
  padding: 1.2rem 1.5rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

/* 参考站服务页的次级按钮同样是紫色渐变 */
.btn-group .btn-secondary {
  background: var(--grad);
  box-shadow: 0 4px 15px rgba(168, 192, 255, .3);
}

.btn-group .btn-secondary:hover {
  background: linear-gradient(to right, #98b0ef, #d2a0ef);
  box-shadow: 0 7px 20px rgba(168, 192, 255, .4);
}

/* 提示消息 */

#message {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all .3s ease;
  opacity: 0;
  font-size: .95rem;
}

#message.show {
  opacity: 1;
}

#message.success {
  color: var(--success);
  background: #d1fae5;
  border-left: 4px solid var(--success);
}

#message.error {
  color: #e53e3e;
  background: #fed7d7;
  border-left: 4px solid #e53e3e;
}

/* 短信原文折叠 */

details.sms-raw {
  margin-top: 1rem;
}

details.sms-raw summary {
  cursor: pointer;
  font-size: .85rem;
  color: #94a3b8;
  list-style: none;
}

details.sms-raw summary::-webkit-details-marker {
  display: none;
}

details.sms-raw p {
  margin: .8rem 0 0;
  padding: .9rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: .82rem;
  color: var(--gray);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.7;
  word-break: break-all;
  animation: fadeIn .3s ease;
}

/* ------------------------------------------------------------------ 动效 */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------ 响应式 */

@media (max-width: 900px) {
  .feature-row {
    flex-wrap: wrap;
  }

  .feature-card {
    flex: 1 1 calc(50% - 1rem);
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .header {
    margin-bottom: 1.5rem;
  }

  h1.site-name {
    font-size: 2.2rem;
  }

  .container {
    padding: 1.5rem;
  }

  .container.narrow,
  .container.medium {
    padding: 1.8rem;
  }

  .page-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .page-title.wide {
    font-size: 1.7rem;
  }

  .site-title {
    font-size: 1.6rem;
  }

  .card-header,
  .container-header {
    flex-direction: row;
    gap: 1rem;
    text-align: left;
    justify-content: space-between;
    align-items: center;
  }

  .logo-container {
    flex: 1;
  }

  .card {
    padding: 1.4rem;
  }

  .code-display {
    font-size: 2rem;
    padding: 1.5rem;
    min-height: 100px;
  }
}

@media (max-width: 600px) {
  .feature-row {
    flex-direction: column;
    align-items: center;
  }

  .feature-card {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 50px;
    min-height: 90px;
  }
}

@media (max-width: 480px) {
  .header {
    margin-bottom: 1.2rem;
  }

  h1.site-name {
    font-size: 1.8rem;
  }

  .container {
    padding: 1.2rem;
    border-radius: 18px;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
  }

  .page-title.wide {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 1rem 1.2rem;
    border-radius: 40px;
    min-height: 80px;
  }

  .feature-icon {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }

  .logo-badge {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .site-title {
    font-size: 1.35rem;
  }

  .btn-outline {
    padding: 8px 14px;
    font-size: .9rem;
  }

  .card {
    padding: 1.2rem;
    border-radius: 14px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .code-display {
    font-size: 1.8rem;
    min-height: 90px;
    padding: 1.2rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .info-row {
    align-items: flex-start;
  }

  .phone-number {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* 动画兜底：即便动效被系统暂停，也强制显示内容 */
html.motion-done .digit {
  animation: none !important;
  opacity: 1 !important;
}

/* 使用指南列表 */
.guide-list {
  padding-left: 1.3rem;
  color: #4a5568;
  line-height: 2;
  font-size: .95rem;
}

.guide-list li {
  margin-bottom: .15rem;
  padding-left: .2rem;
}

.guide-list li::marker {
  color: #a8c0ff;
  font-weight: 700;
}

/* ============================================================
   空状态动效 / 加载态（参考站 .loading 的小灰字 + 呼吸）
   ============================================================ */

.code-display.is-empty {
  animation: emptyPulse 2.8s ease-in-out infinite;
}

.code-display.loading {
  color: #94a3b8;
  font-size: 1.2rem;
  letter-spacing: normal;
  font-weight: 600;
  animation: emptyPulse 1.5s ease-in-out infinite;
}

@keyframes emptyPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

/* ============================================================
   批量核验
   ============================================================ */

body.batch-page {
  display: block;
  padding: 20px;
}

body.batch-page .header {
  margin-bottom: 1.5rem;
}

body.batch-page .header .logo-badge {
  margin: 0 auto 10px;
}

textarea {
  width: 100%;
  min-height: 220px;
  padding: .9rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.8;
  background: #f8fafc;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05);
  transition: all .3s ease;
  resize: vertical;
  color: var(--dark);
}

textarea::placeholder {
  color: #a0aec0;
  font-family: inherit;
}

textarea:focus {
  outline: none;
  border-color: #a8c0ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(168, 192, 255, .1), inset 0 2px 4px rgba(0, 0, 0, .05);
}

.hint {
  font-size: .85rem;
  color: var(--gray);
  margin-top: .6rem;
}

.btn-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-row .btn {
  flex: 1;
  min-width: 180px;
  margin: 0;
}

.btn-row .btn-ghost {
  background: #fff;
  color: #6366f1;
  border: 1px solid #a8c0ff;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  text-decoration: none;
}

.btn-row .btn-ghost:hover {
  background: #f4f7ff;
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(168, 192, 255, .3);
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.result-summary {
  font-size: .9rem;
  color: var(--gray);
}

.result-summary b {
  color: #4a5568;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

table.batch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 720px;
}

table.batch-table th {
  background: #f8fafc;
  color: #718096;
  font-weight: 600;
  font-size: .8rem;
  text-align: left;
  padding: .7rem .8rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

table.batch-table td {
  padding: .7rem .8rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

table.batch-table tr:last-child td {
  border-bottom: none;
}

table.batch-table tbody tr:hover {
  background: #fafbfd;
}

td.cell-card {
  font-family: 'Courier New', Consolas, monospace;
  font-size: .82rem;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

td.cell-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  letter-spacing: .08em;
  color: #0f172a;
  white-space: nowrap;
}

td.cell-code.empty {
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0;
  font-family: inherit;
}

.row-actions {
  display: flex;
  gap: .35rem;
  flex-wrap: nowrap;
}

.badge {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 20px;
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-ok {
  background: rgba(40, 167, 69, .15);
  color: #28a745;
}

.badge-invalid {
  background: rgba(220, 53, 69, .12);
  color: #dc3545;
}

.badge-expired {
  background: rgba(245, 158, 11, .15);
  color: #b45309;
}

.btn-sm {
  padding: .35rem .7rem;
  font-size: .8rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 3px 10px rgba(168, 192, 255, .25);
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(168, 192, 255, .35);
}

.btn-sm.ghost {
  background: #fff;
  color: #6366f1;
  border: 1px solid #dbe4ff;
  box-shadow: none;
}

.btn-sm.ghost:hover {
  background: #f4f7ff;
}

.btn-sm:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* 列设置 */
.col-toggle-wrap {
  text-align: right;
  margin: -.4rem 0 .6rem;
}

.col-toggle-trigger {
  font-size: .82rem;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.col-toggle-trigger:hover {
  color: var(--primary);
}

.col-toggle-bar {
  display: none;
  gap: 1rem;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: .6rem .9rem;
  margin-bottom: .8rem;
  font-size: .82rem;
  color: #4a5568;
}

.col-toggle-bar.show {
  display: flex;
}

.col-toggle-bar label {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.col-toggle-bar input[type="checkbox"] {
  accent-color: #a8c0ff;
}

/* ============================================================
   教程页
   ============================================================ */

.tab-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab {
  background: #f8fafc;
  border: none;
  border-radius: 10px;
  padding: .8rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark);
  transition: all .3s ease;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tab:hover {
  background: #eef2f9;
}

.tab.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(168, 192, 255, .3);
}

.tutorial-content {
  margin-bottom: 2rem;
}

.tutorial-section {
  margin-bottom: 2rem;
  animation: fadeIn .35s ease;
}

.tutorial-section h3 {
  font-size: 1.2rem;
  color: #4a5568;
  margin-bottom: 1rem;
}

.step-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #a8c0ff;
  transition: all .3s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -14px rgba(16, 24, 40, .5);
}

.step-head {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.step-number {
  background: var(--grad);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: .9rem;
}

.step-card h4 {
  font-size: 1.02rem;
  color: var(--dark);
  font-weight: 600;
}

.step-card p {
  color: #4a5568;
  font-size: .95rem;
  line-height: 1.85;
}

.step-card a {
  color: #6366f1;
  text-decoration: none;
}

.tip-box {
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  border-left: 4px solid;
  font-size: .9rem;
}

.tip-warn {
  background: #fef3cd;
  border-color: #f59e0b;
  color: #92400e;
}

.tip-info {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

.tip-danger {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.img-placeholder {
  margin: 1rem 0;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: .85rem;
  gap: .4rem;
}

.faq-item {
  border-bottom: 1px solid #eef2f7;
  padding: 1rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: .35rem;
  font-size: .95rem;
}

.faq-a {
  color: #4a5568;
  font-size: .9rem;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .btn-row {
    flex-direction: column;
  }

  .btn-row .btn {
    width: 100%;
  }

  .table-wrap {
    border-radius: 10px;
  }

  .result-head {
    align-items: flex-start;
  }
}
