/* IngreRadar 官网 — 深色专业工具风，主色雷达青绿 #14B8A6（与 app 品牌一致）
 * 纯静态、无框架；PC / 移动端自适应。 */

:root {
  --bg: #0a0f0e;
  --bg-top: #0d1513;
  --panel: #101816;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f6f5;
  --body-text: #bcc9c5;
  --muted: #93a5a0;
  --accent: #14b8a6;
  --accent-soft: rgba(20, 184, 166, 0.14);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "PingFang TC", "Hiragino Sans", "Noto Sans CJK JP",
    "Apple SD Gothic Neo", "Noto Sans KR", Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 320px) fixed;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ---------- 语言选择器 ---------- */
.lang-select {
  position: absolute;
  /* 首页 main 为 position: relative 且 DOM 序在后，会把透明盒子盖在 select 上拦截点击；
     抬高层级确保语言选择器始终可点（法律页无定位元素、本就正常） */
  z-index: 10;
  top: 20px;
  right: 20px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 30px 7px 12px;
  font: 500 13px/1.2 inherit;
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2393a5a0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.lang-select:hover { color: var(--text); border-color: rgba(20, 184, 166, 0.4); }

/* ---------- 首页 Hero ---------- */
main { position: relative; }

.hero {
  padding: 88px 24px 8px;
  text-align: center;
}

.hero-icon {
  width: 108px;
  height: auto;
  display: block;
  margin: 0 auto 22px;
}

.hero-name {
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin-top: 10px;
  font-size: 1.08rem;
  color: var(--muted);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  background: var(--accent);
  color: #04211d;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 12px;
  transition: filter 0.15s ease;
}
.btn-download:hover { filter: brightness(1.1); text-decoration: none; }
.btn-download svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- 截图横滚区 ----------
 * width: max-content + auto margins：内容不满时居中平分剩余空间，
 * 溢出时（截图更多或视口更窄）auto margin 塌缩为 0，从第一张开始横向滚动。 */
.shots { padding: 48px 0 8px; }

.shots-scroller {
  overflow-x: auto;
  padding: 8px 24px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.shots-track {
  display: flex;
  gap: 18px;
  width: max-content;
  margin-inline: auto;
}

.shots-track img {
  height: 400px;
  width: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);
  display: block;
  cursor: zoom-in;
}

/* ---------- 正文 ---------- */
.container { max-width: 760px; margin: 0 auto; padding: 24px; }

.article { padding-bottom: 48px; }

.article .lead {
  font-size: 1.12rem;
  color: var(--text);
}

.article p, .article ul { color: var(--body-text); }

.article ul { padding-left: 1.3em; }
.article li { margin: 0.35em 0; }

.article h2 {
  margin-top: 2.4em;
  margin-bottom: 0.6em;
  font-size: 1.35rem;
  font-weight: 700;
}

.article h3 {
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  font-size: 1.08rem;
  font-weight: 600;
}

/* ---------- 法律页（privacy / terms） ---------- */
.page-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.page-header a.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.page-header a.brand:hover { text-decoration: none; color: var(--accent); }
.page-header a.brand img { width: 28px; height: auto; }

.article h1 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.8em;
}

.article h1 + p, .article .lead + p { margin-top: 1em; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 24px;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.copyright { color: var(--muted); font-size: 0.85rem; }

.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 720px) {
  .hero { padding-top: 72px; }
  .hero-name { font-size: 2.1rem; }
  .hero-icon { width: 88px; }
  .shots-track img { height: 280px; }
  .shots-scroller { padding-inline: 16px; }
  .article h1 { font-size: 1.45rem; }
  .article h2 { font-size: 1.2rem; }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- 截图灯箱（点击查看大图） ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 8, 7, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

/* 加载指示：大图加载完成前在遮罩中央旋转，图片加载后将其遮住 */
.lightbox::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: lb-spin 0.8s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }

.lb-img {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.lb-img.lb-loaded { opacity: 1; }

.lb-btn,
.lb-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 24, 22, 0.72);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
}
.lb-btn:hover,
.lb-close:hover { border-color: rgba(20, 184, 166, 0.5); color: var(--accent); }

.lb-btn { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-close { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 20px; }

@media (max-width: 720px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
