:root {
  color-scheme: dark;
  --bg: #08111f;
  --card: rgba(10, 22, 40, 0.9);
  --card-strong: rgba(13, 31, 57, 0.94);
  --border: rgba(115, 149, 207, 0.24);
  --border-strong: rgba(110, 168, 255, 0.45);
  --text: #e9f1ff;
  --muted: #9db1d3;
  --accent: #6ea8ff;
  --accent-strong: #4a8eff;
  --danger: #ffb366;
  --danger-text: #ffb3b3;
  --success: #8ae6b0;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(110, 168, 255, 0.26), transparent 30rem),
    radial-gradient(circle at 85% 10%, rgba(138, 230, 176, 0.12), transparent 26rem),
    linear-gradient(180deg, #08111f, #040913 70%);
}

button,
input {
  font: inherit;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 20px 0;
}

.site-logo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.lang-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(110, 168, 255, 0.08);
  color: #cfe1ff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  letter-spacing: 0.04em;
}

.lang-btn:hover {
  background: rgba(110, 168, 255, 0.18);
  transform: translateY(-1px);
}

.lang-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 22, 40, 0.92);
  color: #cfe1ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236ea8ff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  padding-right: 26px;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--accent);
  background-color: rgba(110, 168, 255, 0.1);
}

.lang-select option {
  background: #0a1628;
  color: #e9f1ff;
}

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px) 20px 80px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 55%;
  height: 220px;
  background: radial-gradient(circle, rgba(110, 168, 255, 0.22), transparent 65%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 24px;
  align-items: stretch;
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(110, 168, 255, 0.12);
  color: #cfe1ff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.06;
  margin: 18px 0 14px;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

h3 {
  margin-bottom: 12px;
}

.lead {
  color: #dce8ff;
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 0;
}

.hero-panel {
  display: grid;
  gap: 12px;
  align-content: center;
}

.metric-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(110, 168, 255, 0.18), rgba(138, 230, 176, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.metric-label {
  color: var(--muted);
}

.trust-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-list strong,
.trust-list span {
  display: block;
}

.trust-list span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.notice {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  line-height: 1.7;
}

.notice.warning {
  background: rgba(255, 179, 102, 0.14);
  border: 1px solid rgba(255, 179, 102, 0.34);
}

.grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

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

.primary-grid {
  align-items: stretch;
}

.upload-card {
  background: var(--card-strong);
}

.compact {
  margin-top: -6px;
  line-height: 1.6;
}

.upload {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 188px;
  border: 1px dashed var(--border-strong);
  border-radius: 20px;
  background: rgba(110, 168, 255, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  text-align: center;
  padding: 18px;
  outline: none;
}

.upload:hover,
.upload.drag-over,
.upload:focus-within {
  transform: translateY(-1px);
  border-color: rgba(138, 230, 176, 0.8);
  background: rgba(110, 168, 255, 0.1);
}

.upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.upload-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(110, 168, 255, 0.16);
  color: #dce8ff;
  font-size: 30px;
}

.upload-title {
  font-size: 18px;
  font-weight: 800;
}

.file-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(138, 230, 176, 0.08);
  border: 1px solid rgba(138, 230, 176, 0.2);
}

.file-meta div,
.file-meta strong,
.file-meta span {
  min-width: 0;
}

.file-meta strong,
.file-meta span {
  display: block;
}

.file-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.primary {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.primary:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.status {
  margin: 14px 0 0;
  line-height: 1.6;
}

.status.error {
  color: var(--danger-text);
}

.muted {
  color: var(--muted);
}

.tag-list,
.bullet-list,
.signal-list,
.detail-list,
.limitation-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(110, 168, 255, 0.1);
  border: 1px solid rgba(110, 168, 255, 0.24);
  color: #dbe8ff;
  font-size: 14px;
}

.skeleton-list:empty::before {
  content: "加载中…";
  display: inline-flex;
  color: var(--muted);
  padding: 8px 0;
}

.bullet-list li,
.limitation-list li {
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
  line-height: 1.7;
}

.bullet-list li::before,
.limitation-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.result-card {
  scroll-margin-top: 20px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #dce8ff;
  background: rgba(110, 168, 255, 0.12);
  border: 1px solid rgba(110, 168, 255, 0.22);
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  line-height: 1.7;
}

.success-state {
  border: 1px solid rgba(138, 230, 176, 0.18);
  background: rgba(138, 230, 176, 0.06);
}

.hidden {
  display: none;
}

.report-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.badge.high {
  background: rgba(255, 114, 114, 0.15);
  color: #ffb3b3;
}

.badge.medium {
  background: rgba(255, 198, 92, 0.15);
  color: #ffd792;
}

.badge.low {
  background: rgba(141, 185, 255, 0.16);
  color: #b9d3ff;
}

.badge.none {
  background: rgba(138, 230, 176, 0.12);
  color: var(--success);
}

.signal-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 12px;
}

.signal-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.signal-source {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag-inline {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dce8ff;
  font-size: 12px;
}

.detail-list li {
  margin-top: 8px;
  color: #dce7fb;
  line-height: 1.65;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.summary-item {
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.summary-item .label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.summary-item .value {
  font-size: 16px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .hero-layout,
  .two-col {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .card {
    border-radius: 20px;
  }

  .hero-panel,
  .trust-list,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .file-meta,
  .section-heading {
    flex-direction: column;
  }
}

/* ─── Multi-page layout ─── */

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: 12px;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* ─── Content pages ─── */

.content-page {
  padding-top: clamp(16px, 3vw, 28px);
}

.content-hero {
  margin-bottom: 24px;
}

.content-section {
  margin-top: 20px;
}

.content-article {
  max-width: 820px;
}

.lead-text {
  font-size: 17px;
  line-height: 1.75;
  color: #dce8ff;
  margin-bottom: 24px;
}

.article-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 20px;
}

.content-list {
  padding-left: 20px;
  line-height: 1.9;
}

.content-list li {
  margin: 8px 0;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.breadcrumb a:hover { color: var(--text); }

/* ─── Platform grid ─── */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.platform-card {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.platform-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.platform-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-card h2 {
  font-size: 18px;
  margin: 0;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-link {
  margin-top: auto;
  color: var(--accent);
  font-size: 14px;
}

/* ─── Signal detail grid ─── */

.signal-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}

.signal-detail-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(110, 168, 255, 0.07);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}

.signal-detail-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--accent);
}

.signal-detail-card code {
  font-size: 12px;
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* ─── Comparison table ─── */

.comparison-table {
  overflow-x: auto;
  margin: 16px 0 24px;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.comparison-table th,
.comparison-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.comparison-table th {
  background: rgba(110, 168, 255, 0.1);
  color: var(--accent);
}

.comparison-table code {
  font-size: 12px;
  background: rgba(255,255,255,0.08);
  padding: 2px 5px;
  border-radius: 4px;
}

/* ─── CTA box ─── */

.cta-box {
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.12), rgba(138, 230, 176, 0.08));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-box p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* ─── FAQ ─── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.025);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.6;
  list-style: none;
  display: flex;
  align-items: flex-start;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "Q：";
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 12px;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  margin-bottom: 10px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

/* ─── Related platforms ─── */

.related-platforms {
  margin-top: 20px;
}

.related-platforms h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  color: var(--accent);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(110, 168, 255, 0.3);
  font-size: 14px;
  transition: background 0.15s ease;
}

.related-links a:hover {
  background: rgba(110, 168, 255, 0.1);
}

/* ─── 404 ─── */

.not-found-card {
  text-align: center;
  padding: 60px 40px;
}

.not-found-card h1 {
  font-size: 80px;
  margin-bottom: 10px;
  opacity: 0.4;
}

/* ─── Hamburger menu ─── */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  margin-left: 8px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  gap: 2px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  transition: background 0.15s ease;
}

.mobile-link:hover {
  background: rgba(255,255,255,0.06);
}

/* ─── Theme toggle ─── */

.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(110, 168, 255, 0.08);
  color: var(--accent);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.theme-btn:hover {
  background: rgba(110, 168, 255, 0.18);
}

/* ─── Light theme ─── */

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --card: rgba(255, 255, 255, 0.95);
  --card-strong: rgba(240, 245, 255, 0.98);
  --border: rgba(100, 130, 200, 0.2);
  --border-strong: rgba(80, 120, 220, 0.45);
  --text: #1a2540;
  --muted: #5a6a8a;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --danger: #d97706;
  --danger-text: #b91c1c;
  --success: #15803d;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 30rem),
    radial-gradient(circle at 85% 10%, rgba(21, 128, 61, 0.06), transparent 26rem),
    linear-gradient(180deg, #f5f7fb, #eef2ff 70%);
}

body[data-theme="light"] .theme-btn {
  color: var(--accent);
}

/* ─── Ad slot styles ─── */

.ad-slot {
  margin: 20px 0;
  text-align: center;
  overflow: hidden;
}

.ad-slot--horizontal {
  min-height: 90px;
}

.ad-slot--square {
  min-height: 250px;
}

/* ─── History section ─── */

.history-section {
  margin-top: 20px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s ease;
}

.history-item:hover {
  background: rgba(110, 168, 255, 0.07);
}

.history-item .badge {
  flex-shrink: 0;
  font-size: 11px;
  padding: 4px 8px;
}

.history-item .history-name {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item .history-time {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.history-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0;
}

/* ─── Share button ─── */

.share-btn {
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(110, 168, 255, 0.08);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.share-btn:hover {
  background: rgba(110, 168, 255, 0.16);
  transform: translateY(-1px);
}

.share-btn.copied {
  color: var(--success);
  border-color: var(--success);
}

/* ─── Batch detection ─── */

.batch-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.batch-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.batch-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.batch-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  background: rgba(255,255,255,0.02);
  transition: background 0.15s ease;
}

.batch-item-header::-webkit-details-marker { display: none; }

.batch-item-header:hover {
  background: rgba(110, 168, 255, 0.06);
}

.batch-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.batch-item-body {
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* ─── Blog cards ─── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.blog-card {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.blog-card h2 {
  font-size: 17px;
  margin-bottom: 0;
  line-height: 1.4;
}

.blog-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .platform-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ─── CTA anchor button ─── */

.cta-btn {
  display: inline-block;
  text-decoration: none;
  width: auto;
  padding: 12px 28px;
}

/* ─── Comparison table alternating rows ─── */

.comparison-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}

/* ─── Content article section spacing ─── */

.content-article h2 {
  margin-top: 26px;
}

/* ─── Keyboard focus states ─── */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

.upload:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Content area link styling ─── */

.content-article a:not(.primary):not(.cta-btn),
.content-section a:not(.primary):not(.cta-btn) {
  color: var(--accent);
  text-decoration: none;
}

.content-article a:not(.primary):not(.cta-btn):hover,
.content-section a:not(.primary):not(.cta-btn):hover {
  text-decoration: underline;
}

/* ─── Static (non-link) platform cards ─── */

.platform-card-static {
  cursor: default;
}

.platform-card-static:hover {
  transform: none;
  border-color: var(--border);
}

/* ─── Mobile refinements: 360–760 px ─── */

@media (max-width: 760px) {
  /* Header: reduce padding so controls don't overflow narrow screens */
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
    gap: 6px;
  }

  /* Lang select: shrink slightly to save header space */
  .lang-select {
    font-size: 12px;
    padding-left: 8px;
  }

  /* CTA anchor: full-width block, easier to tap */
  .cta-btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* CTA box: tighter padding and gap */
  .cta-box {
    padding: 16px;
    gap: 12px;
  }

  /* Signal detail grid: single column to avoid cramped cards */
  .signal-detail-grid {
    grid-template-columns: 1fr;
  }

  /* Comparison table: smooth iOS scrolling; set a min-width so
     columns aren't squeezed below readable widths */
  .comparison-table {
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table table {
    min-width: 440px;
  }

  /* Related links: ensure comfortable touch targets */
  .related-links a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  /* Footer links: wrap on narrow screens */
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  /* Mobile menu links: meet 44 px touch target height */
  .mobile-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Notice: slightly smaller text for readability in tight cards */
  .notice {
    font-size: 14px;
    line-height: 1.65;
  }
}

/* ─── Mobile refinements: ≤ 480 px ─── */

@media (max-width: 480px) {
  /* Page: tightest edge padding on small phones */
  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Header: minimal padding on small phones */
  .site-header {
    padding: 12px 12px 0;
  }

  /* Cards: slightly smaller radius to reclaim edge space */
  .card {
    border-radius: 16px;
  }

  /* Metric cards: less height and smaller value font */
  .metric-card {
    min-height: 88px;
    padding: 14px 16px;
    gap: 6px;
  }
  .metric-value {
    font-size: 26px;
  }

  /* Trust list: tighter spacing and font */
  .trust-list {
    gap: 8px;
    margin-top: 14px;
  }
  .trust-list li {
    padding: 11px 12px;
  }
  .trust-list span {
    font-size: 13px;
  }

  /* Upload zone: compact for tiny screens */
  .upload {
    min-height: 156px;
    padding: 14px;
    gap: 6px;
  }
  .upload-icon {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
  .upload-title {
    font-size: 16px;
  }
  /* Shrink the long formats list so it doesn't crowd the drop zone */
  .upload small {
    font-size: 11px;
    line-height: 1.5;
  }

  /* Analyze button: slightly taller tap target */
  .primary {
    padding: 15px 18px;
  }

  /* CTA anchor: larger tap target on tiny screens */
  .cta-btn {
    padding: 14px 20px;
  }

  /* Batch item header: tighter on small screens */
  .batch-item-header {
    padding: 10px 12px;
  }

  /* FAQ items: tighter padding */
  .faq-item {
    padding: 12px 14px;
  }

  /* 404 page */
  .not-found-card {
    padding: 40px 20px;
  }
  .not-found-card h1 {
    font-size: 56px;
  }
}
