/* ============================================================
   Kiss·Byte — shared page shell for contact + privacy pages
   Matches the Apple.com product-page language of the homepage.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --fg: #1d1d1f;
  --fg-2: #5f5f64;
  --fg-3: #5f5f64;
  --blue: #0071e3;
  --blue-text: #005bb5;
  --blue-hover: #0066cc;
  --blue-action: #0071e3;
  --blue-action-hover: #0066cc;
  --border: #d2d2d7;
  --border-soft: #e8e8ed;
  --tag-bg: rgba(0, 0, 0, 0.05);
  --tag-fg: #5f5f64;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 980px;
  --nav-h: 44px;
  --content: 1024px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #000000;
  --surface: #1c1c1e;
  --surface-2: #000000;
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #8e8e93;
  --blue: #2997ff;
  --blue-text: #2997ff;
  --blue-hover: #0077ed;
  --blue-action: #0071e3;
  --blue-action-hover: #0066cc;
  --border: #38383a;
  --border-soft: #2c2c2e;
  --tag-bg: rgba(255, 255, 255, 0.10);
  --tag-fg: #a1a1a6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--fg-3) transparent;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(0, 113, 227, 0.18); }

[lang="en"] .zh, [lang="zh-CN"] .en { display: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ---------- nav ---------- */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0; gap: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s var(--ease);
}
#site-nav.scrolled { background: rgba(0, 0, 0, 0.86); }
#site-nav .container {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 22px;
}
.nav-brand {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: #f5f5f7; white-space: nowrap;
}
.nav-sep { color: rgba(245, 245, 247, 0.3); font-size: 13px; }
.nav-page-title {
  font-size: 12px; color: rgba(245, 245, 247, 0.72);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 12px; color: rgba(245, 245, 247, 0.80);
  transition: color 0.18s var(--ease); white-space: nowrap;
}
.nav-link:hover { color: #fff; }
#lang-btn {
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  color: #f5f5f7; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 5px 14px; cursor: pointer;
  transition: background 0.18s var(--ease);
  margin-left: 0;
}
#lang-btn:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- page shell ---------- */
.wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 56px) 22px 96px;
}
.hero { text-align: center; margin-bottom: 56px; }
.app-icon {
  width: 72px; height: 72px;
  border-radius: 16px; overflow: hidden;
  margin: 0 auto 20px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-icon.icon-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
}
.app-icon.icon-fallback::after {
  content: ""; width: 28px; height: 28px; border-radius: 8px;
  background: var(--blue); opacity: 0.35;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.08; font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0 0 8px;
  text-wrap: balance;
}
.hero h1 .en span,
.hero h1 .accent { color: var(--blue); }
.hero .sub {
  font-size: 19px; line-height: 1.45;
  color: var(--fg-2);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.meta-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.meta-tag {
  font-size: 11px;
  color: var(--fg-2);
  background: var(--tag-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-family: inherit;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ---------- shared content ---------- */
.promise {
  background: rgba(0, 113, 227, 0.06);
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 48px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
}
.promise strong { font-weight: 600; color: var(--blue-text); }

.section { margin-bottom: 48px; }
.section-title {
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 12px;
  display: flex; align-items: baseline; gap: 12px;
}
.section-title .num {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue-text);
  background: none; border-radius: 0;
  min-width: 0; height: auto; padding: 0;
  font-family: inherit;
  display: inline; flex-shrink: 0;
}
.section p, .wrap p {
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.section p strong, .wrap p strong { color: var(--fg); font-weight: 600; }
.section p:last-child { margin-bottom: 0; }

.item-list { margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--fg-2);
  display: flex; gap: 10px; align-items: flex-start;
  line-height: 1.65;
}
.item::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; margin-top: 0.65em;
}
.item strong { color: var(--fg); }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.contact-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0;
}
.contact-avatar svg { width: 22px; height: 22px; }
.contact-name { font-weight: 600; margin-bottom: 4px; color: var(--fg); }
.contact-email { color: var(--blue-text); font-size: 15px; font-family: inherit; }
.contact-hint { color: var(--fg-2); font-size: 15px; margin-top: 10px; line-height: 1.65; }
.contact-hint strong { color: var(--fg); font-weight: 600; }
.contact-hint a { color: var(--blue-text); }
privacy-contact { display: block; }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; align-items: start;
  margin-bottom: 48px;
}
.contact-grid .section { margin-bottom: 0; }
.channel-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.channel-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08); }
.channel-glyph {
  width: 48px; height: 48px; border-radius: 12px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.16);
}
.channel-glyph svg { width: 24px; height: 24px; }
.channel-body { flex: 1; min-width: 0; }
.channel-name { font-size: 17px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.channel-desc { font-size: 15px; color: var(--fg-2); line-height: 1.6; margin-bottom: 14px; }
.channel-mail {
  font-family: inherit; font-size: 17px; color: var(--fg);
  background: var(--bg-alt); padding: 8px 12px; border-radius: 10px;
  display: inline-block; margin-bottom: 12px; word-break: break-all;
}
.channel-action {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-action); color: #fff;
  font-size: 17px; font-weight: 400; letter-spacing: -0.012em;
  padding: 12px 24px; border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.channel-action:hover { background: var(--blue-action-hover); }
.channel-action:active { transform: scale(0.98); }
.qr-block {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}
.qr-img {
  width: 180px; height: 180px;
  object-fit: cover; border-radius: 14px;
  border: 1px solid var(--border-soft);
  margin: 0 auto 16px; display: block; background: #fff;
}
.qr-name { font-size: 17px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.qr-hint { font-size: 15px; color: var(--fg-2); line-height: 1.6; }
.qr-hint strong { color: var(--fg); }
.callout {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 20px 22px;
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.65;
}
.callout strong { color: var(--blue-text); }

/* ---------- unified content type ---------- */
.highlight-box {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-2);
  margin-top: 14px;
}
.no-item,
.no-data-item,
.sdk-item,
.control-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-2);
}
table,
.sdk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 18px;
}
table th,
.sdk-table th {
  text-align: left;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
}
table td,
.sdk-table td {
  color: var(--fg-2);
  border-bottom: 1px solid var(--border-soft);
  padding: 10px 12px;
  vertical-align: top;
}
table tr:last-child td,
.sdk-table tr:last-child td { border-bottom: 0; }
.perm-row { font-size: 15px; line-height: 1.6; }
.perm-key {
  font-family: var(--font);
  font-size: 12px;
  color: var(--fg-2);
}
.perm-val { font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.perm-name { font-size: 15px; font-weight: 600; color: var(--fg); }
.perm-why { font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.perm-label-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}
.sdk-name {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-text);
}
.sdk-desc { font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.section-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue-text);
  background: none;
  border-radius: 0;
  min-width: 0;
  height: auto;
  padding: 0;
  font-family: inherit;
  display: inline;
  flex-shrink: 0;
}

/* ---------- drawn icon set (replaces emoji) ---------- */
.ui-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  flex-shrink: 0;
  vertical-align: -3px;
}
.icon-camera { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v10H4z'/%3E%3Ccircle cx='12' cy='13' r='3.2'/%3E%3C/svg%3E"); }
.icon-photo { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.4'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E"); }
.icon-location { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6-5.2-6-11a6 6 0 1 1 12 0c0 5.8-6 11-6 11z'/%3E%3Ccircle cx='12' cy='10' r='2.2'/%3E%3C/svg%3E"); }
.icon-settings { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6l1.4 1.4M17 17l1.4 1.4M18.4 5.6 17 7M7 17l-1.4 1.4'/%3E%3C/svg%3E"); }
.icon-trash { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V5h6v2M6 7l1 14h10l1-14M10 11v6M14 11v6'/%3E%3C/svg%3E"); }
.icon-close { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.icon-face { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 14s1.5 2 4 2 4-2 4-2'/%3E%3Ccircle cx='9' cy='10' r='.9' fill='black'/%3E%3Ccircle cx='15' cy='10' r='.9' fill='black'/%3E%3C/svg%3E"); }
.icon-text { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6h14M12 6v12M8 18h8'/%3E%3C/svg%3E"); }
.icon-save { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h12l2 2v14H5z'/%3E%3Cpath d='M8 4v6h8V4M8 20v-6h8v6'/%3E%3C/svg%3E"); }

.perm-glyph .ui-icon { width: 24px; height: 24px; color: var(--blue-text); }
.perm-label-title .ui-icon,
.control-glyph .ui-icon { color: var(--fg-2); }

.no-item::before,
.no-data-item::before {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--fg-2);
}

/* ---------- privacy content components ---------- */
.perm-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}
.section > .perm-card { overflow: hidden; margin-bottom: 12px; }
.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.perm-grid .perm-card { padding: 16px; }
.perm-glyph { margin-bottom: 8px; }
.perm-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.perm-badge {
  margin-left: auto;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  background: var(--tag-bg);
  color: var(--fg-2);
}
.perm-badge.required { background: rgba(0, 113, 227, 0.08); color: var(--blue-text); }
.perm-badge.optional { background: var(--tag-bg); color: var(--fg-2); }
.perm-rows { padding: 4px 0; }
.perm-row {
  display: flex; gap: 14px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.perm-row:last-child { border-bottom: 0; }
.perm-key { width: 72px; flex-shrink: 0; padding-top: 1px; }
.perm-val { flex: 1; }
.tag-yes { color: var(--blue-text); font-weight: 600; }
.tag-no { color: var(--fg-2); font-weight: 600; }
.no-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.no-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.no-item,
.no-data-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
}
.no-data-item { align-items: center; padding: 14px 16px; }
.sdk-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sdk-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.sdk-name {
  background: var(--tag-bg);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.sdk-desc { flex: 1; }
.sdk-badge {
  font-size: 11px;
  background: var(--tag-bg);
  color: var(--fg-2);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  white-space: nowrap;
}
.control-list { display: flex; flex-direction: column; gap: 8px; }
.control-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.control-glyph { flex-shrink: 0; line-height: 1.4; }
.control-label { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 3px; }
.control-path { color: var(--fg-2); font-size: 12px; font-family: var(--mono); }
table thead tr,
.sdk-table thead tr { background: var(--tag-bg); }
table th,
.sdk-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--mono);
}
table td,
.sdk-table td { font-size: 15px; line-height: 1.6; }
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--tag-bg);
  color: var(--fg);
  padding: 2px 5px;
  border-radius: 6px;
}
@media (max-width: 540px) {
  .perm-grid, .no-grid { grid-template-columns: 1fr; }
  .sdk-item { flex-wrap: wrap; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  font-size: 12px;
  color: var(--fg-2);
  text-align: left;
}
.site-footer .container {
  width: 100%; max-width: var(--content);
  margin: 0 auto; padding: 0 22px;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand {
  font-size: 15px; font-weight: 600; color: var(--fg);
  letter-spacing: -0.01em;
}
.footer-brand-col p { margin-top: 10px; line-height: 1.7; max-width: none; }
.footer-col h4 {
  font-size: 12px; font-weight: 600; color: var(--fg);
  margin: 0 0 12px; white-space: nowrap;
}
.footer-col a {
  display: block; color: var(--fg-2); line-height: 2;
  transition: color 0.18s var(--ease);
  white-space: nowrap;
}
site-app-links { display: contents; }
.footer-col a:hover { color: var(--fg); }
.theme-switch {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--tag-bg);
}
.theme-switch button {
  font-size: 11px; font-weight: 500; letter-spacing: -0.01em;
  color: #5f5f64; background: transparent; border: 0;
  border-radius: var(--radius-pill);
  padding: 5px 10px; cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.theme-switch button:hover:not(.is-active) { color: var(--fg); }
.theme-switch button.is-active {
  background: var(--surface); color: var(--fg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; padding-top: 24px;
  font-size: 11px; color: var(--fg-3); line-height: 1.8;
}
.footer-legal a { color: var(--fg-3); transition: color 0.18s var(--ease); }
.footer-legal a:hover { color: var(--fg); }
.footer-legal .sep { color: var(--border); }
.footer-legal .icp-link { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- dark component overrides ---------- */
[data-theme="dark"] .app-icon { background: var(--surface); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .item,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .meta-tag,
[data-theme="dark"] .channel-card,
[data-theme="dark"] .qr-block { background: var(--surface); }
[data-theme="dark"] .promise {
  background: rgba(41, 151, 255, 0.08);
  border-color: rgba(41, 151, 255, 0.18);
}
[data-theme="dark"] .channel-glyph,
[data-theme="dark"] .contact-avatar {
  background: rgba(41, 151, 255, 0.12);
  border-color: rgba(41, 151, 255, 0.20);
}
[data-theme="dark"] .channel-mail,
[data-theme="dark"] .callout { background: var(--surface); }
[data-theme="dark"] .channel-card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.50); }
[data-theme="dark"] .sdk-name { color: var(--on-dark-1); }
[data-theme="dark"] .theme-switch button { color: #a1a1a6; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 700px) {
  .nav-right { gap: 18px; }
  .nav-link { display: none; }
  .nav-page-title { max-width: 52vw; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .wrap { padding: calc(var(--nav-h) + 40px) 16px 80px; }
  .hero { margin-bottom: 44px; }
  .contact-card { flex-direction: column; }
  .channel-card { flex-direction: column; padding: 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-legal { font-size: 11px; }
  .qr-img { width: 160px; height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
