.gta-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #075443;
  font-family: inherit;
  white-space: nowrap;
  vertical-align: middle;
  flex-shrink: 0;
}

.gta-brand-logo .gta-brand-logo-icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.gta-brand-logo-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.gta-brand-logo-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 1px;
}

.gta-brand-logo-subtitle {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .gta-brand-logo-copy {
    gap: 1px;
  }

  .gta-brand-logo {
    gap: 5px;
  }

  .gta-brand-logo .gta-brand-logo-icon {
    width: 36px;
    height: 36px;
  }

  .gta-brand-logo-title {
    font-size: 15px;
    letter-spacing: 1px;
  }

  .gta-brand-logo-subtitle {
    font-size: 11px;
    letter-spacing: 0.4px;
  }
}

/* 英文站：标题已由词典译为 GreenTourAsia，与英文副标题重复，只保留单行品牌名 */
html[lang^='en'] .gta-brand-logo-subtitle {
  display: none;
}

html[lang^='en'] .gta-brand-logo-title {
  font-size: 20px;
  letter-spacing: 0.2px;
}

@media (max-width: 768px) {
  html[lang^='en'] .gta-brand-logo-title {
    font-size: 17px;
    letter-spacing: 0;
  }
}

.gta-text-view {
  width: 100%;
  position: relative;
}

.gta-text-view__textarea {
  width: calc(100% - 40px);
  min-width: 200px;
  min-height: 28px;
  height: 28px;
  padding: 8px 12px;
  font-size: 16px;
  line-height: 28px;
  border: 1px solid #d9d9d9;
  resize: none;
  outline: none;
  transition: all 0.3s;
  font-family: inherit;
  box-sizing: border-box;
  overflow-y: hidden;
  display: block;
}

.gta-text-view__character-count {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 12px;
  color: #bfbfbf;
  pointer-events: none;
}

.gta-text-view__textarea::placeholder {
  color: #bfbfbf;
}

/* 禁用状态 */
.gta-text-view__textarea:disabled {
  background-color: #f5f5f5;
  border-color: #d9d9d9;
  cursor: not-allowed;
  opacity: 0.6;
}

.id-card-input-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10002;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  touch-action: none;
  pointer-events: auto;
}

.id-card-input {
  width: 100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
  z-index: 10000;
}

.id-card-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
}

.id-card-input-label {
  font-size: 16px;
  color: #666;
}

.id-card-input-value {
  font-size: 16px;
  color: #333;
  min-width: 200px;
  text-align: right;
}

.id-card-input-keyboard {
  padding: 8px;
  display: flex;
  pointer-events: auto;
}

.id-card-input-left {
  flex: 3;
  display: flex;
  flex-direction: column;
}

.id-card-input-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 8px;
}

.id-card-input-row {
  display: flex;
}

.id-card-input-key {
  flex: 1;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #333;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin: 4px;
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.id-card-input-key:active,
.id-card-input-key.pressed {
  background: #e0e0e0;
  transform: scale(0.95);
}

.id-card-input-key.num-key {
  background: #fff;
}

.id-card-input-key.delete-key {
  flex: 1;
  margin: 4px 4px 4px 0;
}

.id-card-input-key.delete-key .delete-icon {
  background: transparent;
  color: #333;
  font-size: 32px;
}

.id-card-input-key.delete-key:active,
.id-card-input-key.delete-key.pressed {
  background: #e8e8e8;
}

.id-card-input-key.x-key {
  color: #333;
  font-size: 28px;
  font-weight: 500;
}

.id-card-input-key.confirm-key {
  flex: 1;
  background: var(--color-brand);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  height: 132px;
  margin: 4px 4px 4px 4px;
}

.id-card-input-key.confirm-key:active,
.id-card-input-key.confirm-key.pressed {
  background: var(--color-brand);
  transform: scale(0.98);
}

.id-card-input-key.empty {
  background: transparent;
  border: none;
  pointer-events: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
  }
  
  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.4s;
  }
  
  .toggle-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
  }
  
  /* 使用 :has() 伪类增强选中状态的样式 */
  .toggle-switch:has(input:checked) .toggle-slider {
    background-color: #17a43a !important;
  }
  
  .toggle-switch:has(input:checked) .toggle-slider::before {
    transform: translateX(26px) !important;
  }
  
  /* 保持原有的选择器兼容性 */
  .toggle-switch input:checked + .toggle-slider {
    background-color: #17a43a;
  }
  
  .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(26px);
  }
  
  @media (max-width: 768px) {
    .toggle-switch {
      width: 40px;
      height: 20px;
    }
  
    .toggle-slider::before {
      height: 14px;
      width: 14px;
      left: 3px;
      bottom: 3px;
    }
  
    .toggle-switch:has(input:checked) .toggle-slider::before {
      transform: translateX(20px) !important;
    }
    
    .toggle-switch input:checked + .toggle-slider::before {
      transform: translateX(20px); 
    }
  }
  
.gtatext-content {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  word-break: break-all;
}

.gtatext-content:not(.expanded) .gtatext-content-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gtatext-content.expanded {
  display: block;
}

.gtatext-expand-link {
  color: var(--color-brand);
  text-decoration: none;
  margin-left: 4px;
  font-weight: 500;
  cursor: pointer;
}

.gtatext-expand-link:hover {
  text-decoration: underline;
}

.gta-stars {
  display: flex;
  align-items: center;
}
.gta-stars > * {
  margin-left: 8px;
}
.gta-stars > *:first-child {
  margin-left: 0;
}
@supports (gap: 8px) {
  .gta-stars {
    gap: 8px;
  }
  .gta-stars > * {
    margin-left: 0;
  }
}

.gta-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.gta-star--interactive {
  cursor: pointer;
}

.gta-star--interactive:hover {
  transform: scale(1.1);
}

.gta-star--large svg {
  width: 32px;
  height: 32px;
}

.gta-star--medium svg {
  width: 24px;
  height: 24px;
}

.gta-star--small svg {
  width: 20px;
  height: 20px;
}

/* 语言与货币切换：页头按钮、PC 弹窗、移动端抽屉、菜单整行入口、价格旁币种按钮 */

.currency-switch-header {
  display: inline-flex;
  align-items: center;
  height: var(--hdr-ctl-h);
}

/* ---------- 页头按钮：地球图标 + 语言 · 币种 ---------- */
.lc-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 999px;
  color: var(--color-fg);
  font-size: var(--fz-sm, 14px);
  font-weight: var(--fw-medium, 500);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.lc-trigger:hover {
  border-color: var(--brand-800, #166f40);
  background: var(--color-surface-2, #f5f5f5);
}

.lc-trigger:focus-visible {
  outline: 2px solid var(--brand-800, #166f40);
  outline-offset: 2px;
}

.lc-trigger .gta-icon {
  flex: none;
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.lc-trigger-sep {
  color: var(--color-fg-muted);
}

.lc-trigger-currency {
  font-weight: var(--fw-semibold, 600);
  letter-spacing: .02em;
}

/* 769–1100px：导航较挤，页头按钮只保留图标与币种 */
@media (min-width: 769px) and (max-width: 1100px) {
  .lc-trigger-lang--collapsible,
  .lc-trigger-lang--collapsible + .lc-trigger-sep {
    display: none;
  }
}

/* 移动端页头小按钮：与 Logo 之间至少留 8px；极窄屏（≤370px）只显示地球图标 */
.lc-trigger--compact {
  flex: none;
  gap: 3px;
  height: 30px;
  margin-left: 8px;
  padding: 0 7px;
  font-size: 13px;
}

.lc-trigger--compact .gta-icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 370px) {
  .lc-trigger--compact {
    width: 30px;
    padding: 0;
    justify-content: center;
  }

  .lc-trigger--compact .lc-trigger-currency {
    display: none;
  }
}

/* ---------- 面板 ---------- */
.lc-panel {
  color: var(--color-fg);
}

.lc-section-title {
  margin: 0 0 10px;
  color: var(--color-fg-muted);
  font-size: 12px;
  font-weight: var(--fw-semibold, 600);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lc-check {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--brand-800, #166f40);
}

/* 语言：PC 竖排列表 */
.lc-language-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lc-language-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "native check" "secondary check";
  align-items: center;
  column-gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md, 8px);
  color: var(--color-fg);
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.lc-language-option:hover {
  background: var(--color-surface-2, #f5f5f5);
}

.lc-language-option.is-selected {
  border-color: var(--brand-800, #166f40);
  background: var(--brand-50, #eef8f2);
}

.lc-language-native {
  grid-area: native;
  font-size: 15px;
  font-weight: var(--fw-medium, 500);
}

.lc-language-secondary {
  grid-area: secondary;
  color: var(--color-fg-muted);
  font-size: 12px;
}

.lc-language-option .lc-check {
  grid-area: check;
}

/* 语言：移动端三等分分段按钮 */
.lc-language--chips .lc-language-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lc-language--chips .lc-language-option {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 6px;
  border-color: var(--color-border, #e5e5e5);
  font-size: 14px;
  white-space: nowrap;
}

.lc-language--chips .lc-language-native {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-language--chips .lc-check {
  width: 16px;
  height: 16px;
}

/* 币种 */
.lc-description {
  margin: -4px 0 10px;
  color: var(--color-fg-muted);
  font-size: 12px;
}

.lc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: var(--radius-md, 8px);
  background: #fff;
  color: var(--color-fg-muted);
}

.lc-search:focus-within {
  border-color: var(--brand-800, #166f40);
}

.lc-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-fg);
  font-size: 16px; /* iOS Safari 小于 16px 会在聚焦时放大页面 */
}

.lc-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.lc-currency-list {
  margin-top: 8px;
}

.lc-group-title {
  margin: 12px 0 4px;
  padding: 0 12px;
  color: var(--color-fg-muted);
  font-size: 12px;
  font-weight: var(--fw-medium, 500);
}

.lc-group-title:first-child {
  margin-top: 4px;
}

.lc-currency-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 18px;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-md, 8px);
  background: transparent;
  color: var(--color-fg);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.lc-currency-row:hover {
  background: var(--color-surface-2, #f5f5f5);
}

.lc-currency-row:focus-visible {
  outline: 2px solid var(--brand-800, #166f40);
  outline-offset: -2px;
}

.lc-currency-row.is-selected {
  background: var(--brand-50, #eef8f2);
  color: var(--brand-800, #166f40);
}

.lc-currency-code {
  font-weight: var(--fw-semibold, 600);
  letter-spacing: .02em;
}

.lc-currency-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-currency-symbol {
  color: var(--color-fg-muted);
  font-size: 13px;
  white-space: nowrap;
}

.lc-currency-row.is-selected .lc-currency-symbol {
  color: inherit;
}

.lc-currency-mark {
  display: inline-flex;
  width: 18px;
}

.lc-empty {
  margin: 24px 0;
  color: var(--color-fg-muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- PC 弹窗：左语言、右币种 ---------- */
.gta-dialog.lc-dialog {
  max-width: calc(100vw - 32px);
}

.lc-panel--dialog {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  min-height: 0;
}

.lc-panel--dialog .lc-language {
  padding-right: 24px;
  border-right: 1px solid var(--color-border, #e5e5e5);
}

.lc-panel--dialog .lc-currency {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lc-panel--dialog .lc-currency-list {
  max-height: min(420px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

/* 只有语言（大陆访问）时单列 */
.lc-panel--dialog:not(:has(.lc-currency)) {
  grid-template-columns: minmax(0, 1fr);
}

.lc-panel--dialog:not(:has(.lc-currency)) .lc-language {
  padding-right: 0;
  border-right: none;
}

/* ---------- 移动端抽屉 ---------- */
.lc-panel--sheet {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lc-panel--sheet .lc-currency .lc-search {
  position: sticky;
  top: -16px; /* 抵消 drawer-body 上内边距，滚动时贴住顶部 */
  z-index: 1;
  box-shadow: 0 0 0 8px #fff;
}

.lc-panel--sheet .lc-currency-row {
  min-height: 52px;
  padding: 0 8px;
  font-size: 15px;
}

.lc-panel--sheet .lc-group-title {
  padding: 0 8px;
}

/* ---------- 移动端菜单面板中的「语言与货币」整行入口 ---------- */
.currency-menu-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  background: var(--color-surface-2, #f5f5f5);
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: var(--radius-sm, 8px);
  color: var(--color-fg);
  font-size: var(--fz-sm, 14px);
  text-align: left;
  cursor: pointer;
}

.currency-menu-entry-title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.currency-menu-entry-value {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--color-fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.currency-menu-entry-currency::before {
  content: '·';
  margin: 0 6px;
}

.currency-menu-entry-arrow {
  flex: none;
  color: var(--color-fg-muted);
  font-size: 18px;
  line-height: 1;
}

/* ---------- 价格旁的币种按钮 ---------- */
.currency-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--color-fg-muted);
  font-size: var(--fz-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.currency-current {
  font-weight: 600;
}

.currency-switch-header--price {
  height: auto;
  min-width: 0;
}

.currency-switch-header--price .currency-switch-btn {
  min-height: 28px;
  padding: 0;
  font-size: 12px;
  color: #52606c;
  white-space: nowrap;
}

.gta-upload-image {
  margin-bottom: 32px;
}

.gta-upload-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.gta-upload-grid {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 12px;
  margin-right: -12px;
  margin-bottom: -12px;
}
.gta-upload-grid > * {
  margin-right: 12px;
  margin-bottom: 12px;
}
@supports (gap: 12px) {
  .gta-upload-grid {
    gap: 12px;
    margin-right: 0;
    margin-bottom: 0;
  }
  .gta-upload-grid > * {
    margin-right: 0;
    margin-bottom: 0;
  }
}

.gta-uploaded-image {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
}

/* 上传中状态 */
.gta-uploaded-image.uploading {
  border-color: #ff9500;
  box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.2);
}

.gta-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gta-remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0;
  transition: background 0.2s;
}

.gta-remove-image:hover {
  background: rgba(0, 0, 0, 0.8);
}

.gta-remove-image:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 上传进度条覆盖层 */
.upload-progress-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.upload-progress-overlay > * {
  margin-bottom: 8px;
}
.upload-progress-overlay > *:last-child {
  margin-bottom: 0;
}
@supports (gap: 8px) {
  .upload-progress-overlay {
    gap: 8px;
  }
  .upload-progress-overlay > * {
    margin-bottom: 0;
  }
}

/* 进度条背景 */
.upload-progress-bar {
  width: 80%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

/* 进度条填充 */
.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff9500, #ffb84d);
  border-radius: 2px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 进度条动画 */
.upload-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 进度百分比文字 */
.upload-progress-text {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.gta-add-image {
  width: 80px;
  height: 80px;
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  transition: all 0.2s;
}

.gta-add-image:hover {
  border-color: #ff9500;
  background: #fffbe6;
}

.gta-add-image-content {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.gta-upload-hint {
  font-size: 13px;
  color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .gta-uploaded-image,
  .gta-add-image {
    width: 70px;
    height: 70px;
  }
}

/* 骨架屏基础样式 */
.gta-comment-skeleton .skeleton-avatar,
.gta-comment-skeleton .skeleton-text {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.gta-comment-skeleton .skeleton-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.gta-comment-skeleton .skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.gta-comment-skeleton .skeleton-username {
  width: 120px;
  height: 16px;
  border-radius: 4px;
}

.gta-comment-skeleton .skeleton-time {
  width: 80px;
  height: 12px;
  border-radius: 4px;
}

.gta-comment-skeleton .skeleton-line-1 {
  width: 100%;
  height: 14px;
}

.gta-comment-skeleton .skeleton-line-2 {
  width: 80%;
  height: 14px;
}

.gta-comment-skeleton .skeleton-action {
  width: 60px;
  height: 32px;
  border-radius: 16px;
  margin-right: 8px;
}

