/* ============================================================
 * MockAddr · 现代深色极简毛玻璃界面 (Midnight Glassmorphism)
 * ============================================================ */
:root {
  --bg: #090c13;
  --bg-gradient: radial-gradient(circle at 50% 0%, #151c2e 0%, #090c13 75%);
  --card: rgba(22, 28, 45, 0.45);
  --card-hover: rgba(26, 34, 56, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-glow: rgba(124, 140, 255, 0.25);
  --card-inner: rgba(13, 17, 28, 0.55);
  
  --ink: #f1f5f9;
  --ink-secondary: #cbd5e1;
  --ink-mut: #8e9bb3;
  --ink-faint: #5a6682;
  
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --ok: #10b981;
  --danger: #f43f5e;
  
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- 背景柔光光斑 ---------- */
.glow {
  position: fixed;
  width: 50rem; height: 50rem;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease;
}
.glow-a { 
  top: -15rem; left: -10rem; 
  background: radial-gradient(circle, #4f46e5 0%, #7c3aed 50%, transparent 70%); 
}
.glow-b { 
  bottom: -20rem; right: -12rem; 
  background: radial-gradient(circle, #06b6d4 0%, #3b82f6 50%, transparent 70%); 
}

.container { 
  width: min(1080px, 100% - 2.5rem); 
  margin-inline: auto; 
  position: relative; 
  z-index: 1; 
}

/* ---------- 顶栏导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  background: rgba(9, 12, 19, 0.75);
  border-bottom: 1px solid var(--card-border);
  transition: border-color 0.3s ease;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap; padding: 0.9rem 0;
}

.brand { 
  display: flex; align-items: center; gap: 0.75rem; 
  text-decoration: none; user-select: none;
}
.brand-mark { 
  font-size: 1.65rem; 
  display: grid; place-items: center;
  filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.45));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .brand-mark { transform: scale(1.08) rotate(-4deg); }

.brand-text { display: flex; flex-direction: column; gap: 0.05rem; }
.brand-name { 
  font-size: 1.22rem; font-weight: 850; 
  letter-spacing: -0.02em; 
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub { 
  font-size: 0.72rem; font-weight: 550; 
  color: var(--ink-mut); letter-spacing: 0.06em; 
}

.country-switch {
  display: flex; gap: 0.35rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
.cs-btn {
  appearance: none; border: none; background: transparent;
  color: var(--ink-mut);
  font: inherit; font-size: 0.88rem; font-weight: 600;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex; align-items: center; gap: 0.45rem;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.cs-btn .flag { font-size: 1.05rem; transition: transform 0.2s; }
.cs-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.cs-btn:hover .flag { transform: scale(1.15); }
.cs-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 18px -3px var(--accent-glow);
}

/* ---------- 核心容器与通用卡片 ---------- */
main { 
  flex: 1; padding: 1.8rem 0 3.2rem; 
  display: flex; flex-direction: column; gap: 1.3rem; 
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ---------- 控制面板 ---------- */
.console {
  display: flex; align-items: flex-end; flex-wrap: wrap;
  gap: 1.1rem;
  padding: 1.15rem 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ctrl { display: flex; flex-direction: column; gap: 0.4rem; }
.ctrl label { 
  font-size: 0.74rem; font-weight: 700; 
  color: var(--ink-mut); letter-spacing: 0.05em; 
  padding-left: 0.25rem; 
}

.select-wrapper { position: relative; }
select {
  font: inherit; font-size: 0.92rem;
  color: var(--ink);
  background: var(--card-inner);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 2.4rem 0.55rem 0.95rem;
  min-width: 11.5rem;
  outline: none;
  transition: all 0.2s ease;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238e9bb3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}
select:hover { background-color: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }
select:focus { 
  border-color: var(--ca, var(--accent)); 
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ca, var(--accent)) 25%, transparent); 
}
select option { background: #111624; color: var(--ink); padding: 0.4rem; }

.stepper { 
  display: flex; align-items: stretch; 
  background: var(--card-inner);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.stepper:focus-within {
  border-color: var(--ca, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ca, var(--accent)) 25%, transparent);
}
.stepper input {
  font: inherit; font-size: 0.95rem; font-weight: 700;
  color: var(--ink); background: transparent;
  width: 3.8rem; min-width: 0; text-align: center;
  border: none; outline: none; cursor: text;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper button {
  font: inherit; font-weight: 700; font-size: 1.05rem;
  width: 2.3rem; border: none; background: rgba(255, 255, 255, 0.03);
  color: var(--ink-mut); cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s, color 0.15s;
}
.stepper button:hover { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.stepper button:active { background: rgba(255, 255, 255, 0.16); }

.ctrl-actions { 
  flex-direction: row; align-items: flex-end; gap: 0.65rem; 
  margin-left: auto; 
}

.btn-primary {
  font: inherit; font-weight: 700; font-size: 0.95rem;
  color: #ffffff;
  border: none; border-radius: var(--radius-sm);
  padding: 0.62rem 1.45rem;
  background: linear-gradient(135deg, var(--ca, var(--accent)), var(--ca2, var(--accent-2)));
  box-shadow: 0 4px 18px -3px var(--ca-glow, var(--accent-glow));
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn-primary:hover { 
  filter: brightness(1.1); 
  box-shadow: 0 6px 24px -2px var(--ca-glow, var(--accent-glow)); 
}
.btn-primary:active { transform: translateY(1px) scale(0.985); }
.btn-primary .btn-icon { font-size: 1.05rem; line-height: 1; }

.btn-ghost {
  font: inherit; font-weight: 600; font-size: 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.62rem 1.2rem;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
  white-space: nowrap;
}
.btn-ghost:hover { 
  background: rgba(255, 255, 255, 0.11); 
  border-color: rgba(255, 255, 255, 0.2); 
}
.btn-ghost:active { transform: translateY(1px); }

/* ---------- 当前地区指示条 ---------- */
.now-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap;
  padding: 0.9rem 1.35rem;
  border-left: 4px solid var(--ca, var(--accent));
  background: linear-gradient(90deg, color-mix(in srgb, var(--ca, var(--accent)) 8%, transparent) 0%, var(--card) 60%);
}
.now-info { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.now-flag {
  font-size: 1.55rem; line-height: 1;
  width: 2.85rem; height: 2.85rem;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ca, #6366f1) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--ca, #6366f1) 40%, transparent);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--ca, #6366f1) 30%, transparent);
}
.now-text { display: flex; flex-direction: column; gap: 0.08rem; min-width: 0; }
.now-cap { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-mut); }
.now-region {
  font-size: 1.15rem; font-weight: 800;
  color: color-mix(in srgb, var(--ca, #6366f1) 40%, #ffffff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.now-hint { 
  font-size: 0.82rem; font-weight: 500;
  color: var(--ink-mut); white-space: nowrap; 
}

/* ---------- 结果网格区 ---------- */
.results { 
  display: grid; gap: 1rem; 
  grid-template-columns: repeat(auto-fill, minmax(min(480px, 100%), 1fr)); 
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4.5rem 1.5rem 5rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.empty-art {
  width: 4.6rem; height: 4.6rem; margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  font-size: 2.1rem;
  background: color-mix(in srgb, var(--ca, #6366f1) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ca, #6366f1) 30%, transparent);
  border-radius: 1.4rem;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
}
.empty-title { font-weight: 750; font-size: 1.1rem; color: var(--ink); }
.empty-sub { font-size: 0.85rem; color: var(--ink-mut); margin-top: 0.4rem; }

/* ---------- 地址卡片设计 (Card Item) ---------- */
.addr-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.15rem 1.25rem 1.2rem;
  overflow: hidden;
  box-shadow: 0 8px 26px -8px rgba(0, 0, 0, 0.5);
  animation: cardRise 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.addr-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.65);
}

@keyframes cardRise { 
  from { opacity: 0; transform: translateY(12px) scale(0.99); } 
  to { opacity: 1; transform: none; } 
}

.addr-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ca, var(--accent)), transparent 80%);
  opacity: 0.95;
}

.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  margin-bottom: 0.85rem;
}
.who { display: flex; align-items: center; gap: 0.55rem; min-width: 0; flex-wrap: wrap; }
.who .flag-badge {
  font-size: 1rem;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ca, #6366f1) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--ca, #6366f1) 32%, transparent);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.who b { font-size: 1.05rem; font-weight: 750; color: #ffffff; letter-spacing: -0.01em; }
.who .region-chip {
  font-size: 0.74rem; font-weight: 600; color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  padding: 0.12rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.who .gender { 
  font-size: 0.82rem; font-weight: 700;
  color: var(--ink-mut); 
}

.card-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.icon-btn {
  appearance: none;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  width: 2.1rem; height: 2.1rem;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--ink-mut);
  display: grid; place-items: center;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.icon-btn:hover { 
  color: var(--ink); 
  background: rgba(255, 255, 255, 0.12); 
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px); 
}
.icon-btn:active { transform: translateY(1px); }
.icon-btn.star.active { 
  color: #fbbf24; 
  border-color: rgba(251, 191, 36, 0.5); 
  background: rgba(251, 191, 36, 0.14); 
}
.icon-btn.del:hover { 
  color: var(--danger); 
  border-color: rgba(244, 63, 94, 0.45); 
  background: rgba(244, 63, 94, 0.14); 
}

/* 核心大字地址区 */
.addr-main {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--card-inner);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.78rem 1.05rem;
  margin-bottom: 0.85rem;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.addr-card:hover .addr-main {
  border-color: rgba(255, 255, 255, 0.14);
}
.addr-line {
  flex: 1;
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.01em;
  word-break: break-word;
  color: #ffffff;
}
.copy-line {
  appearance: none; border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem; font-weight: 700;
  color: color-mix(in srgb, var(--ca, #6366f1) 80%, #ffffff);
  cursor: pointer; opacity: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.12s;
  white-space: nowrap;
}
.addr-card:hover .copy-line, .copy-line:focus-visible { opacity: 1; }
.copy-line:hover { 
  background: rgba(255, 255, 255, 0.14); 
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.04);
}

/* 结构化字段 Chip */
.field-wrap { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.field {
  display: inline-flex; align-items: center; gap: 0.48rem;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.32rem 0.72rem;
  color: var(--ink);
  max-width: 100%;
  transition: background 0.15s, border-color 0.15s;
}
.field:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
.field .k { 
  color: var(--ink-mut); 
  font-size: 0.73rem; font-weight: 700; 
  white-space: nowrap; 
}
.field .v { 
  word-break: break-word; 
  color: var(--ink-secondary);
}
.field .copy-one {
  appearance: none; border: none; background: none;
  font-size: 0.74rem; font-weight: 700;
  color: color-mix(in srgb, var(--ca, #6366f1) 80%, #ffffff);
  cursor: pointer; opacity: 0; padding: 0 0 0 0.2rem;
  transition: opacity 0.15s, transform 0.12s;
}
.field:hover .copy-one, .field .copy-one:focus-visible { opacity: 1; }
.field .copy-one:hover { transform: scale(1.2); }

/* ---------- 单条生成：焦点放大模式 (Hero Mode) ---------- */
.results.single { grid-template-columns: 1fr; }
.addr-card.solo { 
  padding: 1.6rem 1.85rem 1.7rem; 
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.addr-card.solo .flag-badge { width: 2.6rem; height: 2.6rem; font-size: 1.35rem; border-radius: 12px; }
.addr-card.solo .who b { font-size: 1.35rem; }
.addr-card.solo .who .region-chip { font-size: 0.82rem; padding: 0.18rem 0.75rem; }
.addr-card.solo .who .gender { font-size: 0.95rem; }
.addr-card.solo .card-actions .icon-btn { width: 2.4rem; height: 2.4rem; font-size: 1rem; }
.addr-card.solo .addr-main { padding: 1.15rem 1.4rem; border-radius: 14px; margin-bottom: 1.05rem; }
.addr-card.solo .addr-line { font-size: 1.45rem; line-height: 1.55; letter-spacing: -0.01em; }
.addr-card.solo .copy-line { opacity: 1; font-size: 0.84rem; padding: 0.35rem 0.75rem; }
.addr-card.solo .field { font-size: 0.96rem; padding: 0.44rem 0.95rem; border-radius: 11px; }
.addr-card.solo .field .k { font-size: 0.82rem; }
.addr-card.solo .field .copy-one { opacity: 1; font-size: 0.84rem; }
.addr-card.solo .field-wrap { gap: 0.6rem; }

/* ---------- 收藏面板 ---------- */
.saved-panel { padding: 1.2rem 1.4rem; }
.saved-head { 
  display: flex; align-items: center; justify-content: space-between; 
  flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1rem; 
}
.saved-head h2 { 
  font-size: 1.02rem; font-weight: 800; 
  display: flex; align-items: center; gap: 0.55rem; 
  color: #ffffff;
}
.pill {
  font-size: 0.75rem; font-weight: 750;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 0.05rem 0.65rem;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}
.saved-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.mini {
  font: inherit; font-size: 0.8rem; font-weight: 650;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.mini:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.mini.danger { color: var(--danger); }
.mini.danger:hover { 
  background: rgba(244, 63, 94, 0.12); 
  border-color: rgba(244, 63, 94, 0.4); 
}

.saved-list { list-style: none; display: grid; gap: 0.55rem; }
.saved-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: var(--card-inner);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.saved-item:hover { 
  background: rgba(255, 255, 255, 0.08); 
  border-color: rgba(255, 255, 255, 0.22); 
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.saved-item .saved-text { flex: 1; min-width: 0; }
.saved-item .saved-text strong { 
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.92rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
  color: #ffffff;
}
.saved-item .saved-text span { 
  display: block; font-size: 0.8rem; 
  color: var(--ink-mut); white-space: nowrap; 
  overflow: hidden; text-overflow: ellipsis;
  margin-top: 0.15rem;
}
.saved-item .saved-actions {
  display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0;
}
.saved-item .icon-btn { width: 1.95rem; height: 1.95rem; font-size: 0.82rem; }

/* ---------- 详情弹窗 (Modal Viewer) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid; place-items: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out both;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #121726;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem 1.6rem;
  animation: modalPop 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
}
.modal-head h3 { font-size: 1.1rem; font-weight: 800; color: #ffffff; }
.modal-close { font-size: 0.95rem; }

.modal-body .addr-card {
  border: none; padding: 0; background: transparent; box-shadow: none; animation: none;
}
.modal-body .addr-card:hover { transform: none; }
.modal-body .addr-card::before { display: none; }
.modal-body .addr-main { padding: 0.95rem 1.2rem; }
.modal-body .addr-line { font-size: 1.15rem; }
.modal-body .copy-line { opacity: 1; }
.modal-body .field { font-size: 0.88rem; padding: 0.38rem 0.8rem; }
.modal-body .field .copy-one { opacity: 1; }

/* ---------- SEO 内容区 ---------- */
.seo-section {
  padding: 2.2rem 0 0.5rem;
  border-top: 1px solid var(--card-border);
  margin-top: 1rem;
}
.seo-section h2 {
  font-size: 1.35rem; font-weight: 800; color: #ffffff;
  letter-spacing: -0.01em; margin-bottom: 0.9rem;
}
.seo-section h3 {
  font-size: 1.05rem; font-weight: 750; color: var(--ink);
  margin: 1.8rem 0 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.seo-section h3::before {
  content: ""; width: 3px; height: 1rem; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.seo-lead {
  font-size: 0.92rem; line-height: 1.85; color: var(--ink-secondary);
  max-width: 72ch;
}
.seo-lead strong { color: #ffffff; font-weight: 700; }

.seo-grid {
  display: grid; gap: 0.7rem;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}
.seo-feat {
  display: flex; gap: 0.85rem; align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
  transition: border-color 0.2s, background 0.2s;
}
.seo-feat:hover { border-color: rgba(255, 255, 255, 0.18); background: var(--card-hover); }
.seo-feat .sf-icon { font-size: 1.4rem; line-height: 1.2; flex-shrink: 0; }
.seo-feat b { display: block; font-size: 0.92rem; font-weight: 750; color: #ffffff; margin-bottom: 0.2rem; }
.seo-feat span:not(.sf-icon) { font-size: 0.82rem; line-height: 1.65; color: var(--ink-mut); }

.seo-faq { display: grid; gap: 0.55rem; max-width: 72ch; }
.seo-faq details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.seo-faq details[open] { border-color: rgba(255, 255, 255, 0.18); }
.seo-faq summary {
  cursor: pointer; list-style: none;
  font-size: 0.92rem; font-weight: 700; color: var(--ink);
  padding: 0.85rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after {
  content: "+"; font-size: 1.15rem; font-weight: 600; color: var(--ink-mut);
  transition: transform 0.2s ease; flex-shrink: 0;
}
.seo-faq details[open] summary::after { transform: rotate(45deg); }
.seo-faq details p {
  font-size: 0.86rem; line-height: 1.8; color: var(--ink-secondary);
  padding: 0 1.1rem 0.95rem;
}

/* ---------- 页脚与 Toast 提示 ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 1.6rem 0 1.8rem;
  font-size: 0.76rem;
  color: var(--ink-faint);
  position: relative; z-index: 1;
  background: rgba(9, 12, 19, 0.4);
}
.site-footer a { color: #a5b4fc; text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer p + p { margin-top: 0.4rem; }
.site-footer .disclaimer { color: var(--ink-mut); line-height: 1.6; }

.toast {
  position: fixed; left: 50%; bottom: 2rem;
  transform: translateX(-50%) translateY(1rem);
  background: #1e2538;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.88rem; font-weight: 650;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-full);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式调整 ---------- */
@media (max-width: 768px) {
  .container { width: calc(100% - 1.8rem); }
  .topbar-inner { justify-content: center; gap: 0.8rem; }
  .country-switch { order: 2; width: 100%; justify-content: space-between; }
  .cs-btn { flex: 1; justify-content: center; padding: 0.48rem 0.5rem; font-size: 0.84rem; }
  .console { gap: 0.9rem; padding: 1rem; }
  .ctrl { flex: 1 1 45%; }
  .select-wrapper, select, .stepper { width: 100%; min-width: 0; }
  .ctrl-actions { margin-left: 0; flex: 1 1 100%; }
  .ctrl-actions .btn-primary, .ctrl-actions .btn-ghost { flex: 1; }
  .results { grid-template-columns: 1fr; }
  .copy-line { opacity: 1; }
}
