/* 发布页模板（纯白底 + 蓝色按钮） */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --surface: rgba(255, 255, 255, 0.96);
  --text: #0f172a;
  --muted: #64748b;
  --muted2: #94a3b8;
  --blue: #2563eb;
  --blue2: #1d4ed8;
  --ring: rgba(37, 99, 235, 0.25);
  /* 更扁平：整体阴影弱化 */
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow2: 0 3px 10px rgba(15, 23, 42, 0.05);
  --radius: 18px;
  --accent-download: #2563eb;
  --accent-web: #16a34a;
  --accent-save: #f59e0b;
  --border: rgba(15, 23, 42, 0.08);
  --soft: rgba(15, 23, 42, 0.04);
  --soft2: rgba(15, 23, 42, 0.06);
  --overlay: rgba(15, 23, 42, 0.35);
  --header-bg: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] {
  --bg: #0b1220;
  --card: #0f172a;
  --surface: rgba(17, 24, 39, 0.96);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --muted2: #64748b;
  --ring: rgba(96, 165, 250, 0.28);
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  --shadow2: 0 6px 14px rgba(0, 0, 0, 0.22);
  --border: rgba(255, 255, 255, 0.10);
  --soft: rgba(255, 255, 255, 0.06);
  --soft2: rgba(255, 255, 255, 0.10);
  --overlay: rgba(0, 0, 0, 0.55);
  --header-bg: rgba(17, 24, 39, 0.86);
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(
      120% 120% at 20% 20%,
      rgba(37, 99, 235, 0.24) 0%,
      rgba(37, 99, 235, 0) 55%
    ),
    linear-gradient(135deg, #eff6ff 0%, #ffffff 60%);
  box-shadow: var(--shadow2);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  box-shadow: none;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.header-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.icon-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-btn:hover {
  background: var(--soft2);
}

.icon {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
.icon-moon { display: none; }

/* 右下角悬浮按钮 + 翻译面板 */
.float-dock {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  appearance: none;
  border: 1px solid var(--border);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none; /* 悬浮按钮不使用阴影 */
  backdrop-filter: blur(10px);
}

.float-btn:hover { background: var(--card); }
.float-btn:active { transform: translateY(1px); }

.float-panel {
  position: fixed;
  right: 70px;
  bottom: 14px;
  width: min(360px, calc(100vw - 100px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  z-index: 61;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(12px);
}

.float-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 8px;
}

.float-panel-title {
  font-size: 12px;
  font-weight: 800;
}

.float-panel-body {
  padding: 0 12px 12px;
}

.panel-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  padding: 6px 0 10px;
}

.translate-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.06);
}

.translate-row + .translate-row { margin-top: 10px; }

.translate-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.translate-slot {
  min-height: 34px;
  display: flex;
  align-items: center;
}

.translate-loading {
  font-size: 12px;
  color: var(--muted);
}

/* Google 翻译组件美化（goog-te-combo） */
#google_translate_element {
  display: flex;
  align-items: center;
  min-height: 40px;
}

#google_translate_element .goog-te-gadget {
  font-family: inherit !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}

#google_translate_element .goog-te-gadget span,
#google_translate_element .goog-te-gadget a {
  font-size: 12px !important;
}

#google_translate_element select.goog-te-combo {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 34px 10px 10px;
  font-size: 12px;
  height: 40px;
  outline: none;
  min-width: 180px;
  max-width: 100%;
}

#google_translate_element select.goog-te-combo:focus {
  box-shadow: 0 0 0 4px var(--ring);
  border-color: rgba(37, 99, 235, 0.35);
}

/* 下拉箭头（纯CSS） */
#google_translate_element {
  position: relative;
}
#google_translate_element::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-right: 2px solid var(--muted2);
  border-bottom: 2px solid var(--muted2);
  transform: translateY(-55%) rotate(45deg);
  opacity: 0.8;
}

/* Google 组件常见的内联 margin 清理 */
#google_translate_element .goog-te-gadget {
  margin: 0 !important;
}

/* Main */
.main {
  padding: 18px 0 40px;
  flex: 1;
}

.hero {
  padding: 18px 0 22px;
}

.hero-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  max-width: 860px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.primary-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.action-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.action-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(37, 99, 235, 0.10);
}

.svg-icon {
  width: 20px;
  height: 20px;
  color: var(--blue2);
}

.action-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue2);
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.action-badge-web {
  background: rgba(22, 163, 74, 0.14);
  color: #0f7a33;
}

.action-card {
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.action-card {
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.action-download::before {
  background: radial-gradient(120% 120% at 10% 10%, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 55%);
  opacity: 1;
}

.action-web::before {
  background: radial-gradient(120% 120% at 10% 10%, rgba(22, 163, 74, 0.22) 0%, rgba(22, 163, 74, 0) 55%);
  opacity: 1;
}

.action-save::before {
  background: radial-gradient(120% 120% at 10% 10%, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 55%);
  opacity: 1;
}

.action-card > * {
  position: relative;
  z-index: 1;
}

.action-card:hover {
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.action-card:active {
  transform: scale(0.99);
}

.action-card:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--ring), var(--shadow);
}

.action-primary {
  /* 保留兼容：主卡片更醒目，叠加轻微描边与呼吸光 */
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}

.action-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.action-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.entry-guide {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.06);
  box-shadow: var(--shadow2);
}

.entry-guide-text {
  color: var(--text);
  font-weight: 700;
  line-height: 1.6;
  font-size: 13px;
}

.entry-guide-text strong {
  color: var(--blue2);
  font-weight: 700;
  font-size: 13px;
}

.entry-guide-btn {
  flex: 0 0 auto;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12); }
  50% { box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18); }
}

@keyframes shimmer {
  0% { transform: translateX(-120%) rotate(12deg); opacity: 0; }
  20% { opacity: 0.35; }
  100% { transform: translateX(140%) rotate(12deg); opacity: 0; }
}

.action-web::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -40%;
  width: 50%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-120%) rotate(12deg);
  animation: shimmer 3.6s ease-in-out infinite;
  pointer-events: none;
}

/* 进场动画（按序一眼看懂主入口） */
.primary-actions .action-card {
  animation: floatIn 420ms ease both;
}
.primary-actions .action-card:nth-child(1) { animation-delay: 0ms; }
.primary-actions .action-card:nth-child(2) { animation-delay: 80ms; }
.primary-actions .action-card:nth-child(3) { animation-delay: 160ms; }
.action-primary { animation: pulseGlow 2.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .primary-actions .action-card,
  .action-primary,
  .action-web::after {
    animation: none !important;
  }
}

.hero-tips {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.tip {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.tip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.06);
}

.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

/* Notice */
.notice {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding: 14px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.notice-head {
  display: grid;
  gap: 10px;
}

.notice-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 12px;
}

#noticeText {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--blue2);
  background: rgba(37, 99, 235, 0.08);
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.notice-meta {
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.meta-k {
  color: var(--muted2);
}

.notice-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.notice-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.domain-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.domain-status.is-ok {
  background: rgba(22, 163, 74, 0.10);
  color: #0f7a33;
}

.domain-status.is-warn {
  background: rgba(245, 158, 11, 0.12);
  color: #9a5b00;
}

.domain-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.close-icon {
  width: 18px;
  height: 18px;
}

/* Card（无边框，仅阴影+留白） */
.card {
  background: var(--card);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.pill {
  font-size: 12px;
  color: var(--blue2);
  background: rgba(37, 99, 235, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap; /* 防止移动端逐字换行导致“竖排” */
  font-size: 12px; /* 统一按钮内文字大小（更紧凑） */
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--ring), var(--shadow2);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%);
}

.btn-primary:hover {
  filter: brightness(0.98);
}

.btn-ghost {
  background: var(--soft);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--soft2);
}

.btn-link {
  padding: 8px 0;
  color: var(--blue2);
}

.btn-link:hover {
  text-decoration: underline;
}

.mini-actions {
  margin-top: 12px;
}

/* Downloads */
.download-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.download-tile {
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow2);
  padding: 14px;
  display: grid;
  gap: 6px;
  text-decoration: none;
}

.download-tile:hover {
  box-shadow: var(--shadow);
}

.download-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.download-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.download-meta {
  margin-top: 2px;
  color: var(--muted2);
  font-size: 12px;
}

.download-reco {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue2);
}

/* Lines */
.line-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.line-fold {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.line-item {
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow2);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.line-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.line-name {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.line-url {
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
  line-height: 1.5;
}

.line-status {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
}

.dot.ok {
  background: #22c55e;
}

.dot.bad {
  background: #ef4444;
}

.line-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue2);
}

.line-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.muted-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.6;
}

/* FAQ */
.faq {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

.faq-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.faq-item {
  margin-top: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.02);
  padding: 12px 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #111827;
  font-size: 14px;
}

.faq-body {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* More sections */
.more {
  margin-top: 18px;
}

.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.friend-links {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.friend-link {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow2);
  padding: 12px;
  text-decoration: none;
  display: grid;
  gap: 6px;
}

.friend-link:hover {
  box-shadow: var(--shadow);
}

.friend-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.friend-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.contact-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.contact-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow2);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.contact-k {
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.contact-v {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  word-break: break-all;
  text-align: right;
}

/* Footer */
.footer {
  padding: 28px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 18px;
}

.footer-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.footer-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links a,
.linklike {
  color: var(--blue2);
  text-decoration: none;
  font-weight: 700;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

.footer-links a:hover,
.linklike:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 16px;
  color: var(--muted2);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow2);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 12px;
  display: none;
  z-index: 9999;
  max-width: min(92vw, 520px);
  text-align: center;
  backdrop-filter: blur(10px);
}

.toast.show {
  display: block;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  padding: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  width: min(560px, 100%);
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  padding: 18px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 15px;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.modal-body {
  margin-top: 12px;
}

.modal-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.modal-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.web-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.web-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  max-height: min(52vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.web-line {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow2);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.web-line.is-clickable {
  cursor: pointer;
}

.web-line-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.web-line-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.web-line-url {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
  line-height: 1.5;
}

.web-line-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-foot {
  margin-top: 12px;
  color: var(--muted2);
  font-size: 12px;
}

/* Save modal */
.save-box {
  margin-top: 12px;
  background: rgba(15, 23, 42, 0.02);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.save-help {
  margin-top: 12px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.save-label {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 12px;
}

.save-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.6;
}

.save-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.save-steps {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Tools */
.tools {
  margin-top: 18px;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tool-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Responsive */
@media (max-width: 980px) {
  .notice {
    padding: 12px;
  }
  .primary-actions {
    grid-template-columns: 1fr;
  }
  .notice-tools {
    grid-template-columns: 1fr;
  }
  .domain-status {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .entry-guide {
    flex-direction: column;
    align-items: flex-start;
  }
  .entry-guide-btn {
    width: 100%;
  }
  /* 移动端：卡片头部上下布局，按钮区用网格避免被压窄导致竖排 */
  .card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .line-list {
    grid-template-columns: 1fr;
  }
  .modal-actions {
    grid-template-columns: 1fr;
  }
  .web-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tool-actions {
    grid-template-columns: 1fr;
  }
  .save-actions {
    grid-template-columns: 1fr;
  }
  .more-grid {
    grid-template-columns: 1fr;
  }
  .friend-links {
    grid-template-columns: 1fr;
  }
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-v {
    text-align: left;
  }
}

