/* ===================================================================
   HungerWhale Games - Official Site
   Style: PrisonSoul 影调延伸 —— 压暗去饱和青灰蓝，克制，冷
   =================================================================== */

/* ---------- 变量 ---------- */
:root {
  --bg-0: #0b0f14;          /* 最深底 */
  --bg-1: #11161d;          /* 区块底 */
  --bg-2: #161c25;          /* 卡片底 */
  --bg-3: #1d2530;          /* 浮起表面 */
  --border: #243040;        /* 描边 */
  --border-soft: #1a2230;

  --text-0: #e4e9f0;        /* 主文 */
  --text-1: #a8b3c2;        /* 次文 */
  --text-2: #6b7a8c;        /* 弱文 */

  --accent: #6fb5c4;        /* 主强调：青灰蓝 */
  --accent-2: #4d8a98;      /* 暗一档 */
  --accent-glow: rgba(111, 181, 196, 0.18);

  --warn: #c9a36b;          /* 暖一点的次强调（少用） */

  --radius: 6px;
  --radius-lg: 10px;

  --t-fast: 180ms ease;
  --t-med: 320ms ease;

  --maxw: 1120px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-0);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: #9fd4e0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-0);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--text-0); }
.brand-mark {
  font-size: 22px;
  filter: grayscale(0.4) brightness(0.95);
}
.brand-text em {
  font-style: normal;
  color: var(--text-2);
  font-weight: 400;
  margin-left: 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ---------- 语言切换按钮 ---------- */
.lang-toggle {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-1);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(111, 181, 196, 0.06);
}
.nav-links a {
  color: var(--text-1);
  font-size: 14px;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--text-0); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-fast);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(77, 138, 152, 0.18), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(36, 48, 64, 0.6), transparent 60%),
    linear-gradient(180deg, #0d1218 0%, #0b0f14 100%);
  z-index: -2;
}
.hero-bg::after {
  /* 噪点纹理，让纯色背景不那么"干净" */
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg,
      rgba(255,255,255,0.012) 0,
      rgba(255,255,255,0.012) 1px,
      transparent 1px,
      transparent 3px);
  pointer-events: none;
}
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--bg-1));
  z-index: -1;
}
.hero-inner {
  padding: 80px 24px 100px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin: 0 0 28px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.2;
  margin: 0 0 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-0);
}
.hero-title span {
  display: block;
  white-space: nowrap;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-1);
  margin: 0 0 40px;
  line-height: 1.85;
}
.hero-sub span {
  display: block;
  white-space: nowrap;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--t-fast);
  border: 1px solid transparent;
  user-select: none;
}
.btn-primary {
  background: var(--accent);
  color: #0b0f14;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #87c4d1;
  color: #0b0f14;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-0);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-disabled {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-soft);
  cursor: default;
  pointer-events: none;
}

/* ---------- 区块通用 ---------- */
.section {
  padding: 100px 0;
  background: var(--bg-1);
}
.section-alt {
  background: var(--bg-0);
}
.section-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  color: var(--text-0);
}
.section-lead {
  color: var(--text-2);
  font-size: 15px;
  margin: 0 0 48px;
}

/* ---------- 产品卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6),
              0 0 0 1px rgba(111,181,196,0.08);
}
.card-cover {
  aspect-ratio: 16 / 9;
  position: relative;
  background: linear-gradient(135deg, #1a2330, #0e131a);
  overflow: hidden;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 600ms ease;
}
.card:hover .card-cover img {
  transform: scale(1.04);
}
.card-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(11, 15, 20, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  border-radius: 4px;
  z-index: 2;
}
.card-body {
  padding: 26px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text-0);
  letter-spacing: 0.02em;
}
.card-meta {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 16px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 平台图标 + tooltip ---------- */
.platforms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--border-soft);
  margin-left: 2px;
}
.platform {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--text-2);
  cursor: default;
  transition: color var(--t-fast), transform var(--t-fast);
}
.platform svg {
  width: 18px;
  height: 18px;
  display: block;
}
.platform:hover {
  color: var(--accent);
  transform: translateY(-1px);
}
/* tooltip：hover 时上方浮出小气泡 */
.platform::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-3);
  color: var(--text-0);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
  z-index: 5;
}
.platform::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
  z-index: 5;
}
.platform:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.platform:hover::before {
  opacity: 1;
}
.card-desc {
  color: var(--text-1);
  font-size: 14.5px;
  line-height: 1.8;
  margin: 0 0 22px;
  flex: 1;
}
.card-actions {
  display: flex;
  gap: 10px;
}

/* ---------- 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--text-1);
  font-size: 16px;
  margin: 0 0 18px;
  max-width: 50ch;
}
.about-text strong {
  color: var(--text-0);
  font-weight: 600;
}
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fact {
  background: var(--bg-2);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fact-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-2);
  text-transform: uppercase;
}
.fact-value {
  font-size: 18px;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- 联系 ---------- */
.contact-wrap {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.contact-wrap .section-title,
.contact-wrap .section-lead {
  text-align: center;
}
.contact-wrap .section-lead {
  margin-bottom: 36px;
  letter-spacing: 0.12em;
}
.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.contact-card:hover {
  border-color: var(--border);
  background: var(--bg-3);
}
.contact-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text-2);
  font-weight: 500;
}
.contact-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}
.contact-mail {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-0);
  font-family: ui-monospace, "SF Mono", Consolas, Menlo, monospace;
  user-select: all;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #07090c;
  border-top: 1px solid var(--border-soft);
  padding: 60px 0 24px;
  color: var(--text-2);
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 0 24px;
  max-width: var(--maxw);
  margin: 0 auto 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-tag {
  color: var(--text-2);
  margin: 0;
  line-height: 1.7;
  white-space: nowrap;
}
.footer-col h4 {
  color: var(--text-0);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col p {
  margin: 0 0 6px;
  line-height: 1.7;
  color: var(--text-1);
}
.footer-col .muted {
  color: var(--text-2);
  font-size: 12.5px;
}
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  color: var(--text-2);
  font-size: 12.5px;
  text-align: center;
}
.footer-legal-links {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 2;
}
.footer-legal-links a {
  color: var(--text-2);
  margin-right: 16px;
  white-space: nowrap;
  text-decoration: none;
}
.footer-legal-links a.beian-police {
  display: inline-flex;
  align-items: center;
}
.footer-legal-links a.footer-legal-privacy {
  display: block;
  margin-top: 4px;
}
.footer-legal-links a:hover {
  color: var(--text-1);
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .brand-text em { display: none; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero-inner { padding: 60px 24px 80px; }
  .section { padding: 70px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-mail { font-size: 22px; }
}

/* ---------- 进入动画（JS 触发） ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}
