/* 翻墙123镜像 · 追加样式（镜像补充层）
   -----------------------------------------------------------------
   原站这些样式由 CSS-in-JS 在运行时注入（依赖 data-slot / data-open 等属性），
   镜像的静态 CSS 抓不到。这里按原站视觉补齐，只补「缺失」的部分，
   已有同名规则不受影响（本文件最后加载）。

   涉及：机场分享明信片、TG 频道弹窗、纠错弹窗、详情页分享弹窗
   ----------------------------------------------------------------- */

/* ===== 通用遮罩 ===== */
.airport-share-overlay,
.correction-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ===== 机场分享明信片 ===== */
.airport-share-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(900px, 100%);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 44px 18px 18px;
  overflow-y: auto;
  border-radius: 20px;
  background: var(--popover, #16161a);
  color: var(--popover-foreground, #f4f4f5);
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.55);
  outline: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.airport-share-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.airport-share-close:hover { background: rgba(255, 255, 255, 0.16); }

.airport-share-themes { position: relative; min-width: 0; }

.airport-share-theme-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.airport-share-theme-track {
  display: flex;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
  touch-action: pan-y pinch-zoom;
}

.airport-share-theme-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}
.airport-share-theme-slide[aria-hidden="true"] { visibility: hidden; }

/* 原站轮播区高度 524px（1440×900 实测），明信片按 2730×1536 比例自适应 */
.airport-share-theme-viewport {
  overflow: hidden;
  max-height: 524px;
  border-radius: 12px;
}

.airport-share-postcard {
  overflow: hidden;
  min-width: 0;
  border-radius: 12px;
  background: #fbf6ed;
}
.airport-share-postcard svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 524px;
}

/* 左右切换 */
.airport-share-prev,
.airport-share-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.airport-share-prev { left: 8px; bottom: 8px; top: auto; transform: none; }
.airport-share-next { right: 8px; bottom: 8px; top: auto; transform: none; }
.airport-share-prev:hover,
.airport-share-next:hover { opacity: 1; background: rgba(0, 0, 0, 0.65); }

/* 主题提示条：「黑金 1/2 · 左右滑动切换」（原站有，居中显示） */
.airport-share-theme-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  font-size: 12px;
  color: var(--muted-foreground, #a1a1aa);
}

/* 底部动作：等宽铺满（原站两个按钮各占一半） */
.airport-share-actions {
  display: flex;
  justify-content: stretch;
  gap: 10px;
}
.airport-share-actions > button { flex: 1; }

.airport-share-copy,
.airport-share-download {
  min-height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--secondary, rgba(255, 255, 255, 0.08));
  color: inherit;
}
.airport-share-copy:hover,
.airport-share-download:hover { background: rgba(255, 255, 255, 0.16); }

.airport-share-download,
.airport-share-actions .airport-share-download {
  background: var(--primary, #38bdf8);
  color: var(--primary-foreground, #0b1622);
}
.airport-share-download:hover { filter: brightness(1.08); }

.airport-share-status {
  display: block;
  min-height: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-foreground, #a1a1aa);
}

/* ===== 纠错弹窗 / TG 详情弹窗 ===== */
.correction-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border-radius: 16px;
  background: var(--popover, #16161a);
  color: var(--popover-foreground, #f4f4f5);
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.55);
  outline: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.correction-dialog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}
.correction-dialog-header h2 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.correction-dialog-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
}
.correction-dialog-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }

.correction-dialog-action button,
.correction-dialog-action .airport-channel-original {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--primary, #38bdf8);
  color: var(--primary-foreground, #0b1622);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.correction-dialog-body {
  padding: 16px;
  overflow-y: auto;
}

.correction-dialog-subject {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted-foreground, #a1a1aa);
}

.correction-form { display: flex; flex-direction: column; gap: 10px; }

.correction-field textarea {
  width: 100%;
  min-height: 128px;
  padding: 10px 12px;
  border: 1px solid var(--input, rgba(255, 255, 255, 0.16));
  border-radius: 10px;
  background: var(--background, #09090d);
  color: inherit;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
.correction-field textarea:focus {
  outline: 2px solid var(--primary, #38bdf8);
  outline-offset: 1px;
}

.correction-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.correction-form-footer p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground, #a1a1aa);
}

/* TG 频道弹窗内容 */
.airport-channel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}
.airport-channel-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary, #38bdf8);
  text-decoration: none;
  font-weight: 500;
}
.airport-channel-meta time {
  color: var(--muted-foreground, #a1a1aa);
  font-size: 12px;
}
.airport-channel-text {
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== 下载弹窗：选中态对勾 =====
   site.css 里 .download-choice-check 只有尺寸和颜色，没有显隐规则。
   原站的勾选标记是「选中才出现」，不选中时该位置是空的。
   否则用户会看到每一条都有对勾，误以为全部已选，但确认按钮是灰的。

   :has() 在现代浏览器（Chrome 105+/Safari 15.4+/Firefox 121+）均支持。 */
.download-choice .download-choice-check {
  opacity: 0;
  transition: opacity 120ms ease;
}
.download-choice:has(input:checked) .download-choice-check {
  opacity: 1;
}
/* 不支持 :has() 的旧浏览器兜底：用相邻兄弟选择器控制同层内的标记 */
@supports not selector(:has(*)) {
  .download-choice .download-choice-check { opacity: 1; }
}

/* ===== 本站桌面客户端下载区块（/download 页顶部） =====
   由 _probe/mkdlpage.mjs 插入，原站样式里没有这些类。 */
.our-client-section { margin: 0 auto 32px; }
.our-client-inner {
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(56, 189, 248, 0.10), transparent 60%),
    var(--popover, #16161a);
  padding: 26px 24px;
}
.our-client-head { margin-bottom: 20px; }
.our-client-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: var(--primary, #38bdf8);
  font-size: 12px;
  font-weight: 600;
}
.our-client-head h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}
.our-client-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-foreground, #a1a1aa);
}
.our-client-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
}
@media (max-width: 820px) {
  .our-client-cards { grid-template-columns: 1fr; }
}
.our-client-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--hairline, rgba(255, 255, 255, 0.09));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.our-client-card-main {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.05);
}
.our-client-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground, #f4f4f5);
}
.our-client-card-head svg { color: var(--primary, #38bdf8); flex: 0 0 auto; }
.our-client-specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground, #a1a1aa);
}
.our-client-specs li { position: relative; padding-left: 15px; }
.our-client-specs li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary, #38bdf8);
  opacity: 0.7;
}
.our-client-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  background: var(--primary, #38bdf8);
  color: var(--primary-foreground, #0b1622);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 120ms ease, transform 120ms ease;
}
.our-client-download:hover { filter: brightness(1.08); transform: translateY(-1px); }
.our-client-download:active { transform: translateY(0); }
.our-client-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground, #a1a1aa);
}
.our-client-note a {
  color: var(--primary, #38bdf8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 便携版按钮：描边样式，与安装版的实心按钮区分 */
.our-client-download-ghost {
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--primary, #38bdf8);
}
.our-client-download-ghost:hover {
  background: rgba(56, 189, 248, 0.10);
  filter: none;
}

/* ===== 详情页分享链接弹窗（复用 download-dialog 骨架） ===== */
.detail-share-dialog { width: min(460px, 100%); }
.detail-share-dialog .download-dialog-body input[readonly] {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--input, rgba(255, 255, 255, 0.16));
  border-radius: 9px;
  background: var(--background, #09090d);
  color: inherit;
  font-size: 13px;
}
.detail-share-dialog .download-dialog-body output {
  display: block;
  min-height: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--green, #16865d);
}

/* 下载弹窗遮罩（原站由运行时注入，静态 CSS 缺失） */
.download-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* 截图灯箱遮罩（同上） */
.screenshot-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.82);
}

/* ===== 分享弹窗的套餐编辑区 ===== */
.airport-share-plan-picker {
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.airport-share-plan-picker > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}
.airport-share-plan-picker > summary::-webkit-details-marker { display: none; }
.airport-share-plan-picker > summary::after {
  content: '⌄';
  font-size: 14px;
  opacity: 0.6;
}
.airport-share-plan-picker[open] > summary::after { transform: rotate(180deg); }
.airport-share-plan-picker > p {
  margin: 0;
  padding: 0 14px 6px;
  font-size: 12px;
  color: var(--muted-foreground, #a1a1aa);
}
.airport-share-plan-picker fieldset {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0 8px 8px;
  border: 0;
  max-height: 220px;
  overflow-y: auto;
}
.airport-share-plan-picker legend {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.airport-share-plan-picker label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.airport-share-plan-picker label:hover { background: rgba(255, 255, 255, 0.06); }
.airport-share-plan-picker label small {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted-foreground, #a1a1aa);
  white-space: nowrap;
}

.airport-share-unit-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  border: 0;
}
.airport-share-unit-picker legend {
  float: left;
  width: auto;
  padding: 0;
  font-size: 13px;
  color: var(--muted-foreground, #a1a1aa);
}
.airport-share-unit-picker label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.airport-share-price-editor {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.airport-share-price-editor > span:first-child {
  min-width: 34px;
  color: var(--muted-foreground, #a1a1aa);
}

.airport-share-unit-picker select,
.airport-share-price-editor input,
.airport-share-price-editor select {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--input, rgba(255, 255, 255, 0.16));
  border-radius: 9px;
  background: var(--background, #09090d);
  color: inherit;
  font: inherit;
  font-size: 13px;
}
.airport-share-price-editor input { flex: 1; min-width: 0; }
.airport-share-traffic-editor input { flex: 1; min-width: 0; }
.airport-share-traffic-editor select { flex: 0 0 88px; }

/* ===== 机场自定义价格区间面板 =====
   原站的 .airport-price-custom* 规则在 site.css 里已有（14 条），
   但面板由运行时创建，需补定位与显隐。 */
.airport-desktop-price-wrap { position: relative; }
.airport-price-custom {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  background: var(--popover, #16161a);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.5);
}
.airport-price-custom[hidden] { display: none; }

/* ===== 404 页面 ===== */
.error-page {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  background: var(--background, #09090d);
  color: var(--foreground, #f4f4f5);
}
.error-page-main {
  width: min(560px, 100%);
  text-align: center;
}
.error-page-code {
  margin: 0 0 8px;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--primary, #38bdf8);
  opacity: 0.9;
}
.error-page-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}
.error-page-desc {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-foreground, #a1a1aa);
}
.error-page-search {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
}
.error-page-search input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--input, rgba(255, 255, 255, 0.16));
  border-radius: 10px;
  background: var(--popover, #16161a);
  color: inherit;
  font: inherit;
  font-size: 14px;
}
.error-page-search input:focus-visible {
  outline: 2px solid var(--primary, #38bdf8);
  outline-offset: 2px;
}
.error-page-search button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--primary, #38bdf8);
  color: var(--primary-foreground, #0b1622);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.error-page-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.error-page-links a {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 13px;
  text-decoration: none;
}
.error-page-links a:hover {
  background: var(--primary, #38bdf8);
  color: var(--primary-foreground, #0b1622);
}

@media (max-width: 720px) {
  .error-page-code { font-size: 56px; }
  .error-page-search { flex-direction: column; }
  .airport-share-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 40px 12px 12px;
  }
  .correction-dialog { width: 100%; }
  .airport-price-custom {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
}
