/* 巨人网络家长关爱平台 — 视觉对齐 ztgame.com */

:root {
  --color-primary: #4882ff;
  --color-primary-hover: #568bff;
  --color-accent: #e9553d;
  --color-bg: #f4f6f5;
  --color-surface: #ffffff;
  --color-text: #000000;
  --color-text-muted: #666666;
  --color-text-light: #aaaaaa;
  --color-border: #e5e5e5;
  --color-dark: #211d1d;
  --color-dark-deep: #191c1f;
  --color-header: #000000;
  --color-nav: #f1efef;
  --font-body: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
  --header-height: 81px;
  --container-width: 1200px;
  --radius: 20px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font: 16px/1.7 var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(var(--container-width), calc(100% - 48px));
  margin-inline: auto;
}

/* ===== 导航栏（对齐 ztgame.com .menu） ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-header);
  color: #464646;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.brand {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo img {
  height: 51px;
  width: auto;
}

.brand-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-sub span:first-child {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-sub span:last-child {
  color: var(--color-nav);
  font-size: 12px;
  opacity: 0.8;
}

.site-nav {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
}

.site-nav li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0 20px;
}

.site-nav li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right bottom;
  transition: transform var(--transition);
}

.site-nav li:hover::after,
.site-nav li.is-active::after {
  transform: scaleX(1);
  transform-origin: left bottom;
}

.site-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--color-nav);
  font-size: 18px;
  transition: color var(--transition);
}

.site-nav li:hover a,
.site-nav li.is-active a {
  color: #fff;
  font-weight: 700;
}

.header-link {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 14px;
  transition: color var(--transition);
}

.header-link:hover {
  color: var(--color-primary-hover);
}

.menu-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  padding: 16px 24px 24px;
  z-index: 99;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--color-nav);
  font-size: 16px;
  border-bottom: 1px solid #3d3738;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: #fff;
}

/* 为 fixed header 留出空间 */
main {
  padding-top: var(--header-height);
}

/* ===== 按钮（对齐 .gwbtn） ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
  height: 46px;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-accent {
  background: var(--color-primary);
  color: #fff;
}

.btn-accent:hover {
  background: var(--color-primary-hover);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== 区块标题（对齐 .title） ===== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-label {
  display: block;
  color: var(--color-text-muted);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.section-title {
  position: relative;
  color: var(--color-text);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  margin-bottom: 20px;
}

.section-title::after {
  content: "";
  display: block;
  width: 88px;
  height: 6px;
  background: #000;
  margin: 10px auto 0;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-dark-deep);
  color: #fff;
  padding: 72px 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(25, 28, 31, 0.3) 0%, rgba(25, 28, 31, 0.85) 100%),
    radial-gradient(circle at 80% 20%, rgba(72, 130, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--color-primary);
  background: rgba(72, 130, 255, 0.12);
  border: 1px solid rgba(72, 130, 255, 0.35);
  border-radius: var(--radius);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(72, 130, 255, 0.35);
  border-radius: var(--radius);
  padding: 28px;
}

.hero-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.compliance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compliance-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.compliance-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--color-primary);
}

/* ===== 关于 ===== */
.about {
  background: var(--color-surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-item {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: rgba(72, 130, 255, 0.1);
  color: var(--color-primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ===== 合规说明 ===== */
.legal-notice {
  background: var(--color-bg);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.legal-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px 32px;
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition);
}

.legal-card:hover {
  transform: translateY(-4px);
}

.legal-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.legal-card p,
.legal-card ul {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.legal-card ul {
  list-style: none;
  margin-top: 8px;
}

.legal-card li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.legal-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* ===== 咨询指引 ===== */
.guide {
  background: var(--color-surface);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.step:nth-child(even) .step-content {
  order: 3;
  text-align: left;
}

.step:nth-child(even) .step-image {
  order: 1;
}

.step:nth-child(even) .step-marker {
  order: 2;
}

.step-content {
  text-align: right;
}

.step-marker {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(72, 130, 255, 0.4);
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.step-image img {
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 6px solid var(--color-primary);
}

.guide-cta {
  text-align: center;
  margin-top: 64px;
}

/* ===== FAQ ===== */
.faq {
  background: var(--color-bg);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text);
  transition: background var(--transition);
}

.faq-question:hover {
  background: #fafafa;
}

.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin: 0 24px 20px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ===== 联系我们 ===== */
.contact {
  background: var(--color-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(72, 130, 255, 0.1);
  color: var(--color-primary);
  display: grid;
  place-items: center;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card .contact-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.contact-card .contact-note {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ===== 页脚（对齐 ztgame.com .footer_section） ===== */
.site-footer {
  background: var(--color-dark);
  color: var(--color-text-light);
  padding: 48px 0 0;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo img {
  height: 69px;
  width: auto;
}

.footer-brand {
  flex: 1;
}

.footer-brand h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px 0;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links a {
  color: #fff;
  font-size: 14px;
  padding: 0 15px;
  border-right: 1px solid #999;
  line-height: 1;
}

.footer-links a:last-child {
  border-right: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  background: var(--color-dark);
  padding: 24px 0 28px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 14px;
  line-height: 1.8;
  color: #939393;
}

.footer-disclaimer {
  margin-top: 12px;
  max-width: 800px;
  margin-inline: auto;
  padding: 0 16px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.38);
}

/* ===== 弹窗 ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal.is-open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.modal-close:hover {
  background: var(--color-border);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.8;
}

.modal-qr img {
  border-radius: 12px;
  margin: 0 auto;
}

.modal-tip {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ===== 滚动动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .feature-grid,
  .legal-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .step-content,
  .step:nth-child(even) .step-content {
    order: 1;
    text-align: center;
  }

  .step-marker,
  .step:nth-child(even) .step-marker {
    order: 2;
    margin: 0 auto;
  }

  .step-image,
  .step:nth-child(even) .step-image {
    order: 3;
  }
}

@media (max-width: 768px) {
  .site-nav,
  .header-link,
  .brand-sub {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .brand {
    left: 16px;
  }

  .brand-logo img {
    height: 40px;
  }

  .section {
    padding: 56px 0;
  }

  .footer-links a {
    border-right: none;
    padding: 6px 12px;
  }
}
