:root {
  --bg-1: #f4f6fb;
  --bg-2: #eef2f7;
  --text-main: #18212d;
  --text-sub: #5f6c7b;
  --card-bg: rgba(255, 255, 255, 0.92);
  --border: rgba(33, 43, 57, 0.12);
  --accent: #1267d6;
  --accent-soft: #e7f0ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 8% 10%, #dce9ff 0, transparent 34%),
    radial-gradient(circle at 92% 92%, #d7eef3 0, transparent 36%),
    linear-gradient(155deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
}

html[data-i18n-ready="false"] body {
  visibility: hidden;
}

.page {
  width: min(1120px, 95vw);
  margin: 0 auto;
  position: relative;
  padding: 32px 0 44px;
}

.lang-switch {
  position: fixed;
  top: 10px;
  right: max(10px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  z-index: 60;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-sub);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  background: rgba(18, 103, 214, 0.1);
  color: var(--text-main);
}

.lang-btn.is-active {
  color: #fff;
  background: var(--accent);
}

.hero {
  text-align: center;
  margin-bottom: 22px;
}

.logo {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(16, 31, 56, 0.1);
}

h1 {
  margin: 14px 0 8px;
  font-size: clamp(26px, 3.5vw, 40px);
  letter-spacing: 0.01em;
}

.intro {
  margin: 0 auto;
  color: var(--text-sub);
  font-size: clamp(14px, 1.4vw, 16px);
  max-width: 640px;
  line-height: 1.55;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.platform {
  background: transparent;
  border: none;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: none;
  box-shadow: none;
}

.shot-wrap {
  border-radius: 14px;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-wrap img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
}

.desc {
  margin: 8px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.5;
}

.actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 132px;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-icon {
  font-size: 13px;
  line-height: 1;
  width: 14px;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(18, 103, 214, 0.2);
}

.desktop-notes {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.desktop-note {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.desktop-dropdown {
  position: relative;
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.desktop-dropdown-toggle {
  width: 180px;
  justify-content: space-between;
  gap: 8px;
}

.desktop-caret {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.desktop-dropdown.open .desktop-caret {
  transform: rotate(180deg);
}

.desktop-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  display: none;
  z-index: 20;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 26px rgba(19, 36, 62, 0.18);
}

.desktop-dropdown.open .desktop-dropdown-menu {
  display: block;
}

.desktop-dropdown-item {
  position: relative;
}

.desktop-submenu-toggle {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 9px 10px;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.desktop-submenu-toggle:hover,
.desktop-dropdown-item.open .desktop-submenu-toggle,
.desktop-dropdown-item:focus-within .desktop-submenu-toggle {
  background: var(--accent-soft);
}

.desktop-option-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.desktop-submenu-caret {
  font-size: 11px;
  color: var(--text-sub);
}

.desktop-submenu {
  position: absolute;
  top: -6px;
  left: calc(100% + 8px);
  min-width: 150px;
  display: none;
  z-index: 30;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 26px rgba(19, 36, 62, 0.18);
}

.desktop-dropdown-item:hover .desktop-submenu,
.desktop-dropdown-item:focus-within .desktop-submenu,
.desktop-dropdown-item.open .desktop-submenu {
  display: block;
}

.desktop-submenu-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.desktop-submenu-link:hover {
  background: var(--accent-soft);
}

.test-notice {
  margin: 30px auto 0;
  width: min(920px, 100%);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(18, 103, 214, 0.22);
  background: linear-gradient(140deg, rgba(232, 242, 255, 0.92), rgba(246, 250, 255, 0.92));
  box-shadow: 0 10px 24px rgba(18, 103, 214, 0.08);
}

.test-notice-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #0f4ca7;
}

.test-notice-head i {
  font-size: 15px;
}

.test-notice-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.test-notice-text {
  margin: 0;
  color: #27435f;
  font-size: 13px;
  line-height: 1.65;
}

.test-notice-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #27435f;
  font-size: 13px;
  line-height: 1.7;
}

.test-notice-list li + li {
  margin-top: 4px;
}

@media (max-width: 980px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 24px 0 30px;
  }

  .lang-switch {
    top: 8px;
    right: max(8px, env(safe-area-inset-right));
  }

  .platform {
    padding: 12px;
  }

  .shot-wrap {
    min-height: 160px;
  }

  .test-notice {
    margin-top: 22px;
    padding: 14px 14px;
  }

  .test-notice-head h3 {
    font-size: 15px;
  }

  .desktop-dropdown-menu,
  .desktop-submenu {
    width: 100%;
    min-width: 0;
  }

  .desktop-submenu {
    position: static;
    margin-top: 6px;
    box-shadow: none;
  }
}
