/* 版权所有者：姚程樱软件开发工作室 https://anyio.club */
/* ==========================================================
   公共样式（信息页 / 后续新增页面统一使用）
   来源：由 index.css 抽取公共部分 + 新增信息页样式

   主题系统：通过 :root（暗色，默认）与 [data-theme="light"]
   两套 CSS 变量切换外观。暗色变量值与历史硬编码一致，
   切换不会造成暗色模式视觉回归。
   ========================================================== */

/* ===== 主题变量：暗色（默认） ===== */
:root {
  --c-bg: #0b0d15;
  --c-bg-header: rgba(11, 13, 21, 0.8);
  --c-bg-footer: rgba(11, 13, 21, 0.9);
  --c-bg-mobile: rgba(11, 13, 21, 0.96);
  --c-bg-elev: rgba(20, 26, 42, 0.6);
  --c-bg-glass: rgba(20, 25, 40, 0.65);
  --c-surface: rgba(255, 255, 255, 0.04);
  --c-surface-2: #1e253a;
  --c-surface-2-soft: rgba(30, 38, 60, 0.95);
  --c-border: rgba(255, 255, 255, 0.06);
  --c-border-faint: rgba(255, 255, 255, 0.04);
  --c-border-strong: rgba(255, 255, 255, 0.08);
  --c-text: #e8edf5;
  --c-text-2: #b9c6dd;
  --c-text-3: #b9c2d4;
  --c-text-4: #99aac9;
  --c-text-5: #7a89aa;
  --c-text-6: #c8d0e0;
  --c-accent: #a78bfa;
  --c-accent-2: #f472b6;
  --c-accent-hover: #c4b5fd;
  --c-gold: #fbbf20;
  --c-zi: #a78bfa;
  --c-red: #f472b6;
  --c-img-bg: #1e253a;
}

/* ===== 主题变量：亮色 ===== */
[data-theme='light'] {
  --c-bg: #f4f5f9;
  --c-bg-header: rgba(255, 255, 255, 0.85);
  --c-bg-footer: rgba(244, 245, 249, 0.92);
  --c-bg-mobile: rgba(255, 255, 255, 0.97);
  --c-bg-elev: rgba(255, 255, 255, 0.75);
  --c-bg-glass: rgba(255, 255, 255, 0.7);
  --c-surface: rgba(0, 0, 0, 0.04);
  --c-surface-2: #e7eaf2;
  --c-surface-2-soft: rgba(225, 228, 238, 0.95);
  --c-border: rgba(0, 0, 0, 0.08);
  --c-border-faint: rgba(0, 0, 0, 0.05);
  --c-border-strong: rgba(0, 0, 0, 0.1);
  --c-text: #1a1f2e;
  --c-text-2: #3c4456;
  --c-text-3: #4a5266;
  --c-text-4: #6b7488;
  --c-text-5: #8a93a8;
  --c-text-6: #2a3142;
  --c-accent: #7c3aed;
  --c-accent-2: #db2777;
  --c-accent-hover: #6d28d9;
  --c-gold: #c47f0a;
  --c-zi: #7c3aed;
  --c-red: #db2777;
  --c-img-bg: #e7eaf2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    'Inter',
    'Segoe UI',
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ===== 通用组件 ===== */
.glass-card {
  background: var(--c-bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--c-border);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
}
.color-gold {
  color: var(--c-gold);
  font-weight: 500;
  font-size: 20px;
}
.color-zi {
  color: var(--c-zi);
  font-weight: 500;
  font-size: 16px;
}

/* ===== 头部导航 ===== */
header {
  height: 72px;
  background: var(--c-bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 99;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.logo-icon {
  height: 44px;
  width: 44px;
  background: linear-gradient(145deg, #7c3aed, #ec4899);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(120, 58, 237, 0.3);
}
.logo-icon img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}
.header-nav .pc-menu {
  display: flex;
  gap: 36px;
  align-items: center;
}
.header-nav a {
  font-weight: 500;
  font-size: 18px;
  color: var(--c-text-3);
  transition: 0.2s;
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #a78bfa, #f472b6);
  transition: 0.3s;
}
.header-nav a:hover {
  color: var(--c-text);
}
.header-nav a:hover::after {
  width: 100%;
}
.header-login {
  cursor: pointer;
  padding: 8px 22px;
  border-radius: 40px;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: 0.2s;
  box-shadow: 0 4px 16px rgba(120, 58, 237, 0.25);
  white-space: nowrap;
}
.header-login:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(120, 58, 237, 0.4);
}

/* 汉堡 & 移动菜单 */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--c-text-6);
  padding: 0 6px;
}
.mobile-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  background: var(--c-bg-mobile);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border-faint);
  padding: 12px 0;
}
.mobile-menu li {
  padding: 14px 32px;
  border-bottom: 1px solid var(--c-border-faint);
}
.mobile-menu a {
  color: var(--c-text-6);
  font-size: 16px;
  font-weight: 500;
}
.mobile-menu a:hover {
  color: var(--c-text);
}
.mobile-menu.show {
  display: block;
}

/* ===== 主容器 ===== */
main {
  max-width: 1020px;
  margin: 0 auto;
  padding: 40px 20px;
}
section {
  margin-bottom: 50px;
}
section h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.3px;
}
.section-line {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, #a78bfa, #f472b6);
  border-radius: 4px;
  display: inline-block;
}
.company-desc {
  font-size: 16px;
  color: var(--c-text-2);
  margin-bottom: 16px;
  border-left: 2px solid rgba(167, 139, 250, 0.2);
  padding-left: 16px;
}
.company .ad img {
  max-width: 100%;
}

/* ===== 底部 ===== */
footer {
  background: var(--c-bg-footer);
  backdrop-filter: blur(4px);
  border-top: 1px solid var(--c-border-faint);
  color: var(--c-text-5);
  text-align: center;
  padding: 40px 20px 32px;
  font-size: 14px;
  line-height: 2;
}
footer a {
  color: var(--c-accent);
  transition: 0.2s;
}
footer a:hover {
  color: var(--c-accent-hover);
}
.footer-links {
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-links a {
  padding: 0 8px;
  color: var(--c-accent);
}
/* 页脚两栏：左侧信息 / 右侧二维码 */
.footer-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center; /* 两栏整体垂直居中对齐，高度一致 */
  justify-content: center;
  gap: 24px; /* 中间间隔收紧 */
  text-align: left;
  flex-wrap: wrap;
}
.footer-info {
  /* flex: 1 1 260px; */
  min-width: 0;
  text-align: left; /* 左侧信息内容居左 */
}
.footer-qr {
  flex-shrink: 0;
  align-self: center;
  text-align: center;
}
.footer-qr img {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--c-img-bg);
  border: 1px solid var(--c-border-strong);
  vertical-align: bottom;
}
.footer-qr p {
  color: var(--c-text-4);
  font-size: 13px;
}

/* ===== 信息页（隐私政策 / 服务条款 / 联系我们）===== */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.page-card {
  background: var(--c-bg-elev);
  backdrop-filter: blur(4px);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.5);
}
.page-card h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.updated-tip {
  color: var(--c-text-5);
  font-size: 13px;
  margin-bottom: 24px;
}
.info-content {
  color: var(--c-text-2);
  font-size: 15px;
}
.info-content h3 {
  color: var(--c-text);
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 10px;
}
.info-content h3:first-child {
  margin-top: 0;
}
.info-content p {
  margin-bottom: 12px;
}
.info-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.info-content li {
  list-style: disc;
  margin-bottom: 6px;
}
.info-content a {
  color: var(--c-accent);
}
.info-content a:hover {
  color: var(--c-accent-hover);
}
.info-content .highlight {
  color: var(--c-accent-hover);
}

/* 联系我们 */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 14px 18px;
}
.contact-item .ci-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #7c3aed, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item .ci-title {
  font-weight: 600;
  color: var(--c-text);
  font-size: 15px;
}
.contact-item .ci-desc {
  color: var(--c-text-4);
  font-size: 13px;
}
.contact-qr {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.contact-qr .qr-box {
  flex: 1;
  min-width: 180px;
  text-align: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 16px 12px;
}
.contact-qr .qr-box img {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--c-img-bg);
}
.contact-qr .qr-box p {
  margin-top: 8px;
  color: var(--c-text-4);
  font-size: 13px;
}

/* ===== 外观主题切换（暗色 / 亮色） ===== */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 12px;
  border-radius: 40px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.theme-switch-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-4);
  margin-right: 4px;
  white-space: nowrap;
}
.theme-opt {
  border: none;
  background: transparent;
  color: var(--c-text-3);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
}
.theme-opt-icon {
  margin-right: 5px;
  line-height: 1;
}
.theme-opt-text {
  white-space: nowrap;
}
.theme-opt:hover {
  color: var(--c-text);
}
.theme-opt.active {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
  box-shadow: 0 2px 10px rgba(120, 58, 237, 0.35);
}

/* ===== 移动端适配 ===== */
@media screen and (max-width: 768px) {
  .header-nav .pc-menu {
    display: none;
  }
  .hamburger {
    display: block;
  }
  header {
    padding: 0 18px;
  }
  .header-logo {
    font-size: 17px;
  }
  .header-login {
    padding: 6px 16px;
    font-size: 13px;
  }
  .theme-switch {
    padding: 3px 4px 3px 10px;
  }
  .theme-switch-label {
    display: none;
  }
  .theme-opt {
    padding: 5px 9px;
    font-size: 12px;
  }
  /* 移动端只显示图标，隐藏「暗色/亮色」文字，避免挤占 logo 空间 */
  .theme-opt-text {
    display: none;
  }
  .theme-opt-icon {
    margin-right: 0;
  }
  main {
    padding: 20px 16px;
  }
  .page-wrap {
    padding: 20px 16px 40px;
  }
  .page-card {
    padding: 24px 18px;
  }
  .page-card h2 {
    font-size: 24px;
  }
  /* 页脚移动端：二维码移到下方并居中 */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-qr {
    margin-top: 4px;
  }
}
