/* ============================================
   电竞之家 — 官方网站样式
   风格：简洁大方、国际化（类 Apple/Stripe）
   ============================================ */

/* ---------- 基础重置 & 变量 ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-accent: #3b5bdb;
  --color-accent-light: #eef1ff;
  --color-accent-hover: #364fc7;
  --color-border: #e5e5ea;
  --color-footer-bg: #1d1d1f;
  --color-footer-text: #a1a1a6;
  --font-sans: -apple-system, "SF Pro Display", "Inter", "Roboto", "Helvetica Neue", sans-serif;
  --max-width: 1120px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* 强制固定尺寸 Logo，覆盖全局 img max-width */
.navbar__logo-img,
.logo-showcase__img {
  max-width: none !important;
}

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background var(--transition);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.navbar__logo:hover {
  color: var(--color-accent);
}
.navbar__logo-img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  min-width: 32px;
  min-height: 32px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.navbar__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.navbar__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition);
}
.navbar__links a:hover {
  color: var(--color-text);
}

/* 汉堡菜单按钮 */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端菜单 */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 24px 32px;
  border-bottom: 1px solid var(--color-border);
}
.navbar__mobile.open {
  display: block;
}
.navbar__mobile a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.navbar__mobile a:last-child {
  border-bottom: none;
}

/* ---------- 英雄区 ---------- */
.hero {
  padding: 160px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.logo-showcase {
  padding: 20px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.logo-showcase .container {
  display: flex;
  justify-content: center;
}

.logo-showcase__img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(59, 91, 219, 0.2);
}

.hero__title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--color-accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 20px;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero__btn {
  display: inline-block;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border-radius: 980px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(59, 91, 219, 0.3);
}
.hero__btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 91, 219, 0.35);
}

/* ---------- 功能卡片区 ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}
.feature-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  border-radius: 12px;
}

.feature-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card__desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ---------- 关于/理念区 ---------- */
.about__content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about__quote {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--color-text);
}

.about__text {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ---------- 联系方式区 ---------- */
.contact__inner {
  text-align: center;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-accent);
  margin-top: 8px;
}
.contact__email:hover {
  color: var(--color-accent-hover);
}

.contact__note {
  margin-top: 24px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 13px;
  color: var(--color-footer-text);
  transition: color var(--transition);
}
.footer__links a:hover {
  color: #fff;
}

.footer__copy {
  font-size: 13px;
  color: var(--color-footer-text);
}

.footer__icp {
  font-size: 13px;
}
.footer__icp a {
  color: var(--color-footer-text);
  transition: color var(--transition);
}
.footer__icp a:hover {
  color: #fff;
}

/* ---------- 隐私政策 / 技术支持 页面 ---------- */
.page-header {
  padding: 120px 0 48px;
  background: var(--color-bg-alt);
  text-align: center;
}

.page-header__title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header__subtitle {
  margin-top: 8px;
  font-size: 16px;
  color: var(--color-text-secondary);
}

.legal-content {
  padding: 64px 0 100px;
}

.legal-content .container {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-content p,
.legal-content ul {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--color-accent);
}

/* FAQ 手风琴 */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
}
.faq-item__question::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--color-text-secondary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-item__question::after {
  content: "−";
}
.faq-item__answer {
  display: none;
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.faq-item.open .faq-item__answer {
  display: block;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__title {
    font-size: 44px;
  }
  .section__title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }
  .navbar__hamburger {
    display: flex;
  }

  .hero {
    padding: 120px 0 80px;
  }
  .hero__title {
    font-size: 36px;
  }
  .hero__desc {
    font-size: 17px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }
  .section__title {
    font-size: 28px;
  }
  .section__subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .about__quote {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 30px;
  }
  .hero__btn {
    padding: 14px 28px;
    font-size: 15px;
  }
  .feature-card {
    padding: 28px 24px;
  }
}
