/* Carvo 营销站样式（布局参考 iDealer andadata/css/idealer.css） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --carvo-accent: #c8f542;
  --carvo-accent-deep: #9ecc1f;
  --carvo-bg: #0a0a0a;
  --carvo-surface: #161616;
  --carvo-text: #f5f5f5;
  --carvo-muted: #a0a0a0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--carvo-bg);
  color: var(--carvo-text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--carvo-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--carvo-text);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}

.site-nav-brand:hover {
  text-decoration: none;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.site-nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  margin-inline-start: auto;
}

.site-nav-links a {
  color: var(--carvo-muted);
}

.site-nav-links a:hover,
.site-nav-links .nav-cta {
  color: var(--carvo-accent);
}

.inline-form {
  display: inline;
}

.link-btn {
  background: none;
  border: none;
  color: var(--carvo-muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.link-btn:hover {
  color: var(--carvo-accent);
}

.flash-wrap {
  max-width: 720px;
  margin: 0 auto 12px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.flash {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.flash-success { background: rgba(200, 245, 66, 0.15); color: var(--carvo-accent); }
.flash-danger { background: rgba(255, 80, 80, 0.15); color: #ff8a8a; }
.flash-warning { background: rgba(255, 200, 80, 0.12); color: #ffd080; }

/* 营销站：顶栏透明，主内容区统一渐变底（首页与 /pricing 等内页） */
body.site-page {
  --site-nav-overlap: 68px;
}

body.site-page .site-nav {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

body.site-page .site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: calc(-1 * var(--site-nav-overlap));
  padding-top: var(--site-nav-overlap);
  background:
    radial-gradient(ellipse at 28% 0%, rgba(200, 245, 66, 0.1), transparent 50%),
    linear-gradient(165deg, #121212 0%, #080808 42%, var(--carvo-bg) 100%);
}

/* 首页：hero 渐变从顶栏下缘连续铺到首屏，去掉 site-main 顶部 padding 造成的 body 色带 */
body.site-page.page-home .site-main {
  padding-top: 0;
  background: transparent;
}

body.site-page.page-home .flash-wrap {
  margin-top: calc(var(--site-nav-overlap) + 8px);
}

body.site-page.page-home .hero-section {
  padding-top: calc(48px + var(--site-nav-overlap));
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(200, 245, 66, 0.12), transparent 55%),
    linear-gradient(160deg, #111 0%, #050505 60%, #000 100%);
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-content {
  flex: 1;
  min-width: 0;
  text-align: left;
  animation: fadeInUp 0.9s ease-out;
}

.hero-visual {
  flex: 0 1 340px;
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.9s ease-out 0.15s both;
}

.phone-frame {
  width: min(300px, 42vw);
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(145deg, #2a2a2a, #0a0a0a);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
  position: relative;
}

.phone-screen-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.phone-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.phone-image.active {
  opacity: 1;
}

.download-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--carvo-muted);
  margin-bottom: 12px;
}

/* App Store / Android 风格下载徽章：等高、等宽、对齐 */
.store-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 440px;
  width: 100%;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  height: 56px;
  width: 100%;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--carvo-text);
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

a.store-badge:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.store-badge--android {
  border-color: rgba(61, 220, 132, 0.35);
  background: rgba(61, 220, 132, 0.08);
}

.store-badge--android .store-badge-icon {
  color: #3ddc84;
}

a.store-badge--android:hover {
  border-color: rgba(61, 220, 132, 0.55);
  background: rgba(61, 220, 132, 0.12);
}

.store-badge--ios {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
}

.store-badge--ios .store-badge-icon {
  color: #f5f5f7;
}

button.store-badge--ios:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.5);
}

.store-badge-icon {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  line-height: 1.15;
}

.store-badge-kicker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.store-badge-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.store-badge.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.hero-signed-in {
  margin-top: 16px;
  font-size: 14px;
  color: var(--carvo-muted);
}

.hero-signed-in a {
  color: var(--carvo-accent);
  font-weight: 600;
}

.demo-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.hero-single .hero-content {
  text-align: left;
  animation: fadeInUp 0.9s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo-wide {
  max-width: 88px;
  margin-bottom: 28px;
}

.logo-wide img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--carvo-muted);
  max-width: 640px;
  margin-bottom: 28px;
}

.demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.demo-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.demo-btn-primary {
  background: var(--carvo-accent);
  color: #111;
  box-shadow: 0 8px 28px rgba(200, 245, 66, 0.25);
}

.demo-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--carvo-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.features-section {
  padding: 24px 24px 64px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--carvo-surface);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--carvo-accent);
}

.feature-card p {
  color: var(--carvo-muted);
  font-size: 14px;
  line-height: 1.65;
}

.auth-section,
.account-section,
.pricing-section {
  flex: 1;
  padding: 40px 20px 64px;
  display: flex;
  justify-content: center;
}

.auth-card,
.account-card,
.pricing-inner {
  width: 100%;
  max-width: 560px;
  background: var(--carvo-surface);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-card-wide {
  max-width: 720px;
}

.pricing-inner {
  max-width: 900px;
}

.auth-card h1,
.account-card h1,
.pricing-inner h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-sub {
  color: var(--carvo-muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-card label,
.account-card form label,
.support-form label {
  display: block;
  font-size: 13px;
  color: var(--carvo-muted);
  margin: 14px 0 6px;
}

.auth-card input,
.account-card form input,
.account-card form select,
.account-card form textarea,
.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0d0d;
  color: var(--carvo-text);
  font-size: 15px;
  font-family: inherit;
}

.support-form input.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
}

.account-card form select,
.support-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--carvo-muted) 50%),
    linear-gradient(135deg, var(--carvo-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.account-card form textarea,
.support-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.account-card form .demo-btn,
.support-form .demo-btn {
  width: 100%;
  margin-top: 22px;
}

.auth-submit {
  width: 100%;
  margin-top: 22px;
}

.auth-footer {
  margin-top: 20px;
  font-size: 14px;
  color: var(--carvo-muted);
  text-align: center;
}

.auth-legal {
  margin-top: 12px;
  font-size: 12px;
  color: var(--carvo-muted);
  text-align: center;
  line-height: 1.5;
}

.quota-panel,
.plans-panel {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quota-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.quota-panel-head h2 {
  font-size: 18px;
  margin: 0;
}

.quota-mode-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--carvo-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quota-mode-badge--detail {
  color: var(--carvo-accent);
  border-color: rgba(200, 245, 66, 0.25);
  background: rgba(200, 245, 66, 0.08);
}

.entitlement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.entitlement-card {
  background: #0d0d0d;
  border-radius: 16px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 118px;
  display: flex;
  flex-direction: column;
}

.entitlement-card--wide {
  grid-column: 1 / -1;
  min-height: auto;
}

.entitlement-card--ok { border-color: rgba(61, 220, 132, 0.28); }
.entitlement-card--low { border-color: rgba(255, 200, 80, 0.35); }
.entitlement-card--exhausted,
.entitlement-card--unavailable { border-color: rgba(255, 120, 120, 0.28); }

.entitlement-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.entitlement-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.entitlement-dot--ok { background: #3ddc84; box-shadow: 0 0 10px rgba(61, 220, 132, 0.5); }
.entitlement-dot--low { background: #ffc850; box-shadow: 0 0 10px rgba(255, 200, 80, 0.45); }
.entitlement-dot--exhausted,
.entitlement-dot--unavailable { background: #ff7878; box-shadow: 0 0 10px rgba(255, 120, 120, 0.35); }

.entitlement-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--carvo-text);
  margin: 0;
}

.entitlement-status {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
}

.entitlement-card--ok .entitlement-status { color: #9ef0c0; }
.entitlement-card--low .entitlement-status { color: #ffd080; }
.entitlement-card--exhausted .entitlement-status,
.entitlement-card--unavailable .entitlement-status { color: #ffaaaa; }

.entitlement-detail {
  font-size: 12px;
  color: var(--carvo-muted);
  margin: 0;
  margin-top: auto;
  line-height: 1.45;
}

.entitlement-detail--muted { color: #777; }
.entitlement-detail--warn { color: #c9a24a; }

@media (max-width: 560px) {
  .entitlement-grid {
    grid-template-columns: 1fr;
  }
  .entitlement-card--wide {
    grid-column: auto;
  }
}

.quota-panel h2,
.plans-panel h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.quota-list {
  list-style: none;
  font-size: 14px;
  line-height: 1.9;
  color: var(--carvo-muted);
}

.quota-list .ok { color: var(--carvo-accent); font-weight: 700; }
.quota-list .muted { color: #888; }

.hint {
  font-size: 13px;
  color: #777;
  margin-top: 12px;
  line-height: 1.5;
}

.hint.center { text-align: center; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.plan-grid-wide {
  margin-top: 28px;
}

.plan-box {
  background: #0d0d0d;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-box-highlight {
  border-color: rgba(200, 245, 66, 0.35);
}

.plan-box h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 4px;
}

.pricing-promo-badge {
  display: inline-block;
  margin: 16px 0 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(200, 245, 66, 0.12);
  border: 1px solid rgba(200, 245, 66, 0.35);
  color: var(--carvo-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.plan-price-original {
  font-size: 18px;
  color: var(--carvo-muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 8px;
}

.plan-price .plan-period,
.plan-meta {
  font-size: 13px;
  color: var(--carvo-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin: 16px 0;
  font-size: 13px;
  color: var(--carvo-muted);
  line-height: 1.8;
}

.plan-pay {
  width: 100%;
  margin-top: 8px;
}

.pricing-lead {
  margin-bottom: 0;
}

.site-footer {
  margin-top: auto;
  padding: 28px 24px 36px;
  text-align: center;
  font-size: 13px;
  color: #666;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
  margin-bottom: 6px;
}

.footer-muted {
  color: #444;
}

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-visual {
    order: -1;
    flex-basis: auto;
    width: 100%;
  }
  .phone-frame {
    width: min(260px, 72vw);
  }
  .store-badges {
    margin-left: auto;
    margin-right: auto;
  }
  .store-badge-text {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .store-badges {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  body.site-page {
    --site-nav-overlap: 112px;
  }
  .site-nav {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .site-nav-right {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-inline-start: 0;
  }
  .site-nav-links {
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 12px 16px;
  }
  .lang-switcher {
    flex-shrink: 0;
    margin-inline-start: auto;
    padding-inline-start: 0;
    border-inline-start: none;
  }
}

.legal-section {
  flex: 1;
  padding: 48px 24px 64px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.legal-card h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--carvo-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal-card h2 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: var(--carvo-accent);
}

.legal-card p,
.legal-card li {
  color: var(--carvo-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-card ul {
  padding-left: 1.25rem;
  margin-bottom: 16px;
}

.legal-footer-note {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #2a2a2a;
  font-size: 0.9rem;
}

.footer-links {
  margin: 8px 0;
}

.footer-links a {
  color: var(--carvo-muted);
}

.footer-links a:hover {
  color: var(--carvo-accent);
}

.payment-history-panel,
.support-panel {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-history-panel h2,
.support-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.payment-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
  table-layout: fixed;
}

.payment-history-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
}

.payment-history-table th,
.payment-history-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.payment-history-table th:nth-child(1),
.payment-history-table td:nth-child(1) { width: 22%; }

.payment-history-table th:nth-child(2),
.payment-history-table td:nth-child(2) { width: 22%; }

.payment-history-table th:nth-child(3),
.payment-history-table td:nth-child(3) { width: 18%; }

.payment-history-table th:nth-child(4),
.payment-history-table td:nth-child(4) {
  width: 38%;
  word-break: break-all;
  font-size: 12px;
  color: var(--carvo-muted);
}

.payment-history-table th {
  color: var(--carvo-muted);
  font-weight: 600;
}

.pricing-active-banner {
  max-width: 640px;
  margin: 0 auto 20px;
}

.support-form {
  max-width: 560px;
  margin-top: 8px;
}

.demo-btn-secondary {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f5f5f5;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
}

.support-panel .demo-btn-secondary {
  margin-right: 10px;
}

.flash-success {
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.35);
  color: #3ddc84;
}

/* 首页 hero 多段文案 */
.hero-description {
  white-space: pre-line;
}

/* 语言切换（顶栏最右侧） */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
  margin-inline-start: 16px;
  padding-inline-start: 16px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-switcher summary {
  list-style: none;
  cursor: pointer;
}

.lang-switcher summary::-webkit-details-marker {
  display: none;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--carvo-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.lang-switcher summary:hover .lang-switcher-btn {
  color: var(--carvo-text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.lang-switcher[open] .lang-switcher-btn {
  color: var(--carvo-accent);
  border-color: rgba(200, 245, 66, 0.4);
  background: rgba(200, 245, 66, 0.08);
}

.lang-switcher[open] .lang-switcher-chevron {
  transform: rotate(180deg);
}

.lang-switcher-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.lang-switcher-label {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-switcher-chevron {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.15s;
}

.lang-switcher-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  min-width: 196px;
  max-height: min(320px, 70vh);
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 30;
}

.lang-switcher-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--carvo-muted);
  text-decoration: none;
  font-size: 13px;
}

.lang-switcher-menu a:hover,
.lang-switcher-menu a.is-active {
  color: var(--carvo-accent);
  background: rgba(200, 245, 66, 0.08);
}

.lang-switcher-menu a.is-active {
  font-weight: 600;
}

/* iOS 占位弹层 */
.carvo-modal[hidden] {
  display: none !important;
}

.carvo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.carvo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.carvo-modal-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  background: linear-gradient(160deg, #1e1e1e 0%, #121212 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.carvo-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f5;
}

.carvo-modal-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.carvo-modal-body {
  color: var(--carvo-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.carvo-modal-btn {
  min-width: 120px;
}

body.carvo-modal-open {
  overflow: hidden;
}

/* 错误页 */
.error-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 80px;
}

.error-card {
  text-align: center;
  max-width: 520px;
  padding: 40px 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.error-code {
  font-size: clamp(4rem, 18vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--carvo-accent) 0%, #7ab308 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-message {
  color: var(--carvo-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
