* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --blue: #4168e6;
  --blue-2: #5f83ff;
  --text: #1f2a44;
  --text-soft: #586680;
  --white-glass: rgba(255,255,255,.84);
  --card-shadow: 0 22px 52px rgba(61, 118, 198, .14);
  --radius-xl: 32px;
  --radius-lg: 24px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  background: #eefaff;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("./assets/dooloo-bg.svg") center top / cover no-repeat;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.48), transparent 22%),
    radial-gradient(circle at 84% 22%, rgba(255,255,255,.38), transparent 20%),
    linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,.72) 76%);
}

.site-header {
  width: min(1456px, calc(100% - 80px));
  min-height: 84px;
  margin: 24px auto 0;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 24px 60px rgba(49, 120, 210, .14);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 18px;
  z-index: 10;
}

.inner-header { margin-bottom: 10px; }

.subpage-header {
  position: static !important;
  top: auto !important;
  margin: 12px auto 0;
  padding: 0 4px 12px;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border: none;
  min-height: auto;
}

.subpage-header .nav {
  background: transparent;
  padding: 0;
}

.subpage-header .nav a {
  border-radius: 14px;
}

.subpage-header .nav a:hover,
.subpage-header .nav .active {
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 0 3px 0 rgba(255,255,255,.8);
}
.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-logo {
  transform: scale(1.88);
  transform-origin: center;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.52);
}
.nav a {
  padding: 12px 20px;
  border-radius: 999px;
  color: #25324c;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: .2s ease;
}
.nav a:hover,
.nav .active {
  color: #fff;
  background: linear-gradient(135deg, #4d7cff, #6c74ff);
  box-shadow: 0 10px 24px rgba(74, 108, 255, .28);
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-status-text {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.trial-btn,
.primary-btn,
.secondary-btn,
.resource-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.trial-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.resource-card:hover { transform: translateY(-2px); }

.trial-btn,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #3f6dff, #6e79ff);
  box-shadow: inset -10px -8px 18px rgba(0,0,0,.08), 0 12px 25px rgba(62, 103, 255, .32);
}
.trial-btn {
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  white-space: nowrap;
}
.secondary-btn {
  color: #4161b8;
  background: rgba(255,255,255,.88);
  box-shadow: 0 15px 28px rgba(49, 120, 210, .13);
}
.small-btn {
  min-width: 150px;
  height: 52px;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 16px;
}

main {
  width: min(1456px, calc(100% - 80px));
  margin: 0 auto;
  padding-bottom: 42px;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  padding: 52px 56px 0;
}
.eyebrow,
.section-tag,
.preview-label,
.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 900;
}
.eyebrow {
  margin: 0 0 18px;
  background: rgba(255,255,255,.72);
  color: #4773ff;
  font-size: 16px;
  box-shadow: 0 12px 30px rgba(79, 139, 255, .14);
}
.hero h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(42px, 5.1vw, 74px);
  line-height: 1.14;
  letter-spacing: 1px;
  text-shadow: 0 5px 0 #fff, 0 12px 24px rgba(45, 94, 207, .16);
}
.hero-desc,
.section-desc {
  color: #33415f;
  line-height: 1.8;
  font-weight: 700;
}
.hero-desc {
  max-width: 620px;
  margin: 28px 0 32px;
  font-size: 22px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.primary-btn,
.secondary-btn {
  min-width: 190px;
  height: 58px;
  border-radius: 999px;
  font-size: 18px;
}
.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.glow {
  position: absolute;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.92), rgba(120, 200, 255, .18) 55%, transparent 72%);
  filter: blur(8px);
}
.hero-mascot {
  position: relative;
  width: min(420px, 78%);
  filter: drop-shadow(0 26px 25px rgba(47, 99, 176, .26));
  animation: floaty 3.4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

.feature-panel,
.content-section,
.resource-preview-box,
.member-cta,
.feedback-card {
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255,255,255,.85);
}

.feature-panel {
  margin-top: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  border-radius: 28px;
  background: rgba(255,255,255,.9);
}
.course-card {
  min-height: 176px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 22px 24px 26px;
  border-radius: 24px;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 24px rgba(37, 73, 132, .11);
}
.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 84% 20%, rgba(255,255,255,.35), transparent 34%);
}
.course-card > div,
.course-card img { position: relative; z-index: 1; }
.course-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.05;
}
.course-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 800;
}
.course-card img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  transform: translateX(8px) translateY(10px);
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.12));
}
.green { background: linear-gradient(135deg, #76d789, #9ee6a2); }
.yellow { background: linear-gradient(135deg, #ffba4c, #ffd77c); }
.purple { background: linear-gradient(135deg, #8b73ee, #b18aff); }
.pink { background: linear-gradient(135deg, #ef719c, #ff9cbc); }

.content-section {
  margin-top: 30px;
  border-radius: var(--radius-xl);
  padding: 34px;
  background: rgba(255,255,255,.9);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}
.single-head { grid-template-columns: 1fr; }
.section-tag {
  margin-bottom: 16px;
  background: rgba(225,239,255,.8);
  color: var(--blue);
  font-size: 15px;
}
.content-section h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(30px, 3.3vw, 50px);
  line-height: 1.25;
  text-shadow: 0 4px 0 rgba(255,255,255,.9);
}
.section-desc {
  margin: 18px 0 0;
  font-size: 18px;
}

.tool-page-main {
  padding-top: 24px;
}

.tool-page-hero {
  margin-top: 0;
  padding: 36px 40px;
  background:
    radial-gradient(circle at 10% 16%, rgba(255,255,255,.92), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(227, 245, 255, .84));
}

.tool-page-hero h1 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.14;
}

.tool-page-hero .section-desc {
  max-width: 840px;
  margin: 0;
}

.tool-page-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tool-page-body {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.qr-card {
  padding: 20px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(244,250,255,.96), rgba(234,247,255,.92));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 36px rgba(63, 113, 191, .12);
}
.qr-card img {
  width: min(240px, 100%);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(49,120,210,.12);
}
.qr-card h3 {
  margin: 16px 0 8px;
  font-size: 26px;
  color: var(--blue);
}
.qr-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.problem-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.problem-strip article {
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(239,247,255,.95), rgba(255,255,255,.9));
  border: 1px solid rgba(219,235,252,.95);
}
.problem-strip strong {
  display: block;
  font-size: 22px;
  color: #233a68;
  margin-bottom: 10px;
}
.problem-strip p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 700;
}

.miniapp-feature-grid {
  display: grid;
  gap: 22px;
}
.mini-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f7fbff, #ffffff);
  border: 1px solid rgba(223,237,255,.95);
}
.mini-card-copy h3 {
  margin: 14px 0 12px;
  font-size: 30px;
  color: #1d3870;
}
.mini-card-copy p {
  margin: 0;
  color: #43506b;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 700;
}
.mini-card-copy ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 700;
}
.mini-badge { font-size: 14px; color: #fff; }
.green-badge { background: linear-gradient(135deg, #4fc76d, #7fdc8e); }
.blue-badge { background: linear-gradient(135deg, #5e87ff, #73b4ff); }
.orange-badge { background: linear-gradient(135deg, #ff9c42, #ffc15e); }
.purple-badge { background: linear-gradient(135deg, #8a6dff, #c087ff); }

.mini-card-gallery {
  display: grid;
  gap: 14px;
}
.mini-card-gallery.two-shot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini-card-gallery.triple-shot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-card-gallery img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(46, 92, 168, .13);
  background: #eef6ff;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.resource-card {
  min-height: 88px;
  padding: 0 18px;
  border-radius: 22px;
  font-size: 20px;
  font-weight: 900;
  color: #31476d;
  background: linear-gradient(135deg, #ffffff, #f5fbff);
  box-shadow: 0 10px 22px rgba(76, 123, 194, .10);
}
.resource-card.active {
  color: #fff;
  background: linear-gradient(135deg, #4f7dff, #6b7fff);
  box-shadow: 0 14px 26px rgba(74, 108, 255, .24);
}
.resource-preview-box {
  margin-top: 24px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}
.resource-preview-image-wrap {
  border-radius: 26px;
  overflow: hidden;
  background: #edf6ff;
}
.resource-preview-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.preview-label {
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--blue);
  background: rgba(225,239,255,.9);
}
.resource-preview-copy h3 {
  margin: 0;
  font-size: 32px;
  color: #233a68;
}
.resource-preview-copy p {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.9;
  font-weight: 700;
}
.resource-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.file-name-tip {
  font-size: 15px;
  color: #53627e;
  font-weight: 700;
}
.file-name-tip strong { color: var(--blue); }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tool-card {
  display: block;
  padding: 24px 24px 22px;
  border-radius: 24px;
  text-decoration: none;
  background: linear-gradient(135deg, #f7fbff, #fff);
  border: 1px solid rgba(223,237,255,.95);
  box-shadow: 0 14px 28px rgba(76, 123, 194, .10);
}
.tool-card h3 {
  margin: 0;
  font-size: 24px;
  color: #24417a;
}
.tool-card p {
  margin: 12px 0 16px;
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 700;
}
.tool-card span {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: #ff8a00;
  background: #fff3db;
  font-weight: 900;
}

.member-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(243,249,255,.96), rgba(255,255,255,.94));
}
.feedback-section { max-width: 980px; margin-left: auto; margin-right: auto; }
.feedback-card {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f7fbff, #ffffff);
}
.field-label {
  display: block;
  margin: 0 0 12px;
  color: #2a4679;
  font-size: 17px;
  font-weight: 900;
}
.feedback-input,
.feedback-textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #d7e7f8;
  background: #fff;
  font: inherit;
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(13,58,122,.04);
}
.feedback-input:focus,
.feedback-textarea:focus { border-color: #89b0ff; box-shadow: 0 0 0 4px rgba(80,124,255,.10); }
.feedback-input { margin-bottom: 20px; }
.feedback-textarea {
  min-height: 240px;
  resize: vertical;
}
.feedback-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.feedback-tip {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .site-header, main { width: min(100% - 32px, 1080px); }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 40px 24px 0; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 360px; }
  .feature-panel { grid-template-columns: repeat(2, 1fr); }
  .section-head,
  .mini-card,
  .resource-preview-box { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 72px;
    padding: 10px 16px;
    border-radius: 24px;
    gap: 10px;
  }
  .brand { font-size: 20px; gap: 8px; }
  .brand img { width: 52px; height: 52px; }
  .trial-btn { height: 44px; padding: 0 16px; font-size: 14px; }
  main { width: min(100% - 24px, 720px); }
  .hero { min-height: auto; padding: 28px 8px 0; }
  .hero h1 { font-size: 38px; }
  .hero-desc { font-size: 17px; }
  .hero-visual { min-height: 320px; }
  .feature-panel,
  .content-section { padding: 18px; border-radius: 24px; }
  .tool-page-hero { padding: 28px 22px; }
  .tool-page-actions { gap: 12px; }
  .feature-panel,
  .problem-strip,
  .resource-grid,
  .tool-grid,
  .mini-card-gallery.two-shot,
  .mini-card-gallery.triple-shot { grid-template-columns: 1fr; }
  .feature-panel { gap: 16px; }
  .course-card { min-height: 160px; }
  .content-section h2 { font-size: 30px; }
  .section-desc,
  .mini-card-copy p,
  .resource-preview-copy p { font-size: 16px; }
  .mini-card { padding: 18px; }
  .mini-card-copy h3,
  .resource-preview-copy h3 { font-size: 26px; }
  .mini-card-gallery img { min-height: 180px; }
  .resource-card { min-height: 72px; font-size: 18px; }
  .resource-preview-box { padding: 18px; }
  .resource-preview-image-wrap img { min-height: 220px; }
  .qr-card { padding: 18px; }
  .qr-card img { width: 180px; }
  .feedback-card { padding: 18px; }
}

/* ===== V3 美化：单词小程序介绍 + 联系我们 ===== */
.words-section {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, .98), transparent 34%),
    radial-gradient(circle at 90% 14%, rgba(255, 221, 128, .28), transparent 26%),
    linear-gradient(135deg, rgba(240, 249, 255, .96), rgba(255, 255, 255, .92));
  overflow: hidden;
  position: relative;
}

.words-section::before {
  content: "WORD GAME";
  position: absolute;
  right: -18px;
  top: 16px;
  font-size: clamp(46px, 8vw, 118px);
  font-weight: 900;
  letter-spacing: 6px;
  color: rgba(65, 104, 230, .045);
  pointer-events: none;
}

.words-hero-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 340px;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
}

.words-hero-copy {
  padding: 34px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,249,255,.88));
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 20px 44px rgba(70, 122, 195, .11);
}

.words-hero-copy h2 {
  max-width: 840px;
  font-size: clamp(34px, 3.6vw, 56px);
}

.words-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.words-highlights span {
  padding: 11px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #31476d;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(70, 122, 195, .10);
}

.scan-panel {
  display: flex;
  align-items: stretch;
}

.scan-card {
  width: 100%;
  padding: 24px 22px;
  border-radius: 30px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 232, 146, .35), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,248,255,.94));
  border: 1px solid rgba(255,255,255,.94);
  box-shadow: 0 22px 46px rgba(60, 113, 190, .14);
}

.scan-card img {
  width: min(236px, 100%);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(49, 120, 210, .16);
}

.scan-card h3,
.wechat-card h3 {
  margin: 18px 0 8px;
  color: #4168e6;
  font-size: 26px;
}

.scan-card p,
.wechat-card p {
  margin: 0;
  color: #63718d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.game-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.game-flow article {
  padding: 20px 18px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(223,237,255,.92);
  box-shadow: 0 14px 28px rgba(76, 123, 194, .10);
}

.game-flow span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 15px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #4d7cff, #7d86ff);
  box-shadow: 0 10px 18px rgba(74,108,255,.22);
}

.game-flow strong {
  display: block;
  margin-bottom: 8px;
  color: #253b6b;
  font-size: 20px;
}

.game-flow p {
  margin: 0;
  color: #65728c;
  line-height: 1.65;
  font-weight: 700;
  font-size: 15px;
}

.game-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.game-card {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 26px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 24px 54px rgba(59, 110, 182, .14);
  overflow: hidden;
  position: relative;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.52), transparent 28%),
    radial-gradient(circle at 12% 86%, rgba(255,255,255,.42), transparent 28%);
  pointer-events: none;
}

.tree-theme { background: linear-gradient(135deg, rgba(224, 251, 226, .96), rgba(255,255,255,.96)); }
.sky-theme { background: linear-gradient(135deg, rgba(222, 243, 255, .96), rgba(255,255,255,.96)); }
.rocket-theme { background: linear-gradient(135deg, rgba(255, 240, 211, .97), rgba(255,255,255,.96)); }
.magic-theme { background: linear-gradient(135deg, rgba(239, 229, 255, .97), rgba(255,255,255,.96)); }

.game-card.reverse .game-copy { order: 2; }
.game-card.reverse .phone-pair,
.game-card.reverse .phone-triplet { order: 1; }

.game-copy {
  position: relative;
  z-index: 1;
}

.game-copy h3 {
  margin: 16px 0 14px;
  color: #213d73;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.22;
}

.game-copy p {
  margin: 0;
  color: #42516f;
  font-size: 17px;
  line-height: 1.92;
  font-weight: 700;
}

.game-copy strong {
  color: #365eef;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.game-tags em {
  font-style: normal;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #37527f;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(76, 123, 194, .08);
}

.phone-pair,
.phone-triplet {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 14px;
}

.phone-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phone-triplet { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.phone-frame {
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff, #eef7ff);
  box-shadow: 0 20px 34px rgba(49, 96, 167, .18);
  transform: rotate(-2deg);
  transition: transform .22s ease;
}

.phone-frame.raised {
  transform: translateY(-16px) rotate(2deg);
}

.phone-frame:hover {
  transform: translateY(-6px) rotate(0deg) scale(1.02);
}

.phone-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 22px;
  background: #eaf5ff;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: center;
  background:
    radial-gradient(circle at 86% 18%, rgba(100, 224, 135, .20), transparent 28%),
    linear-gradient(135deg, rgba(244,255,248,.96), rgba(255,255,255,.94));
}

.contact-copy h2 {
  font-size: clamp(30px, 3.4vw, 50px);
}

.contact-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(216,239,225,.95);
  color: #41536e;
  line-height: 1.75;
  font-weight: 700;
}

.contact-note strong {
  color: #1f8b4d;
  margin-right: 6px;
}

.wechat-card {
  padding: 24px 22px;
  border-radius: 30px;
  text-align: center;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 22px 46px rgba(40, 150, 88, .14);
}

.wechat-card img {
  width: min(238px, 100%);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(39, 156, 88, .14);
}

.wechat-card code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #effaf3;
  color: #278b50;
}

@media (max-width: 1180px) {
  .words-hero-card,
  .game-card,
  .contact-section {
    grid-template-columns: 1fr;
  }
  .scan-card,
  .wechat-card {
    max-width: 420px;
    margin: 0 auto;
  }
  .game-card.reverse .game-copy,
  .game-card.reverse .phone-pair,
  .game-card.reverse .phone-triplet {
    order: initial;
  }
  .game-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .words-hero-copy {
    padding: 22px;
    border-radius: 24px;
  }
  .words-highlights span {
    width: 100%;
    justify-content: flex-start;
  }
  .game-flow,
  .phone-pair,
  .phone-triplet {
    grid-template-columns: 1fr;
  }
  .game-card {
    min-height: auto;
    padding: 18px;
    border-radius: 26px;
  }
  .phone-frame,
  .phone-frame.raised {
    transform: none;
  }
  .phone-frame img {
    aspect-ratio: 16 / 10;
  }
  .contact-section {
    gap: 20px;
  }
}


/* ===== 更新：顶部功能卡片可点击定位 + Excel 动态下载区 ===== */
#words,
#documents,
#tools,
#contact {
  scroll-margin-top: 128px;
}

a.course-card {
  text-decoration: none;
  cursor: pointer;
}

.nav-card {
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.nav-card:hover {
  transform: translateY(-6px);
  filter: saturate(1.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 20px 34px rgba(37, 73, 132, .18);
}

.download-config-tip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 18px;
  color: #35507d;
  background: rgba(232, 244, 255, .78);
  border: 1px solid rgba(199, 224, 255, .85);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 700;
}

.resource-loading,
.resource-status {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border-radius: 20px;
  color: #47607e;
  background: rgba(255,255,255,.76);
  border: 1px dashed rgba(116, 157, 220, .45);
  font-weight: 800;
}

.resource-status {
  margin-top: 14px;
  font-size: 14px;
  color: #60708d;
  background: rgba(255, 255, 255, .62);
}

.resource-card {
  position: relative;
}

@media (max-width: 720px) {
  #words,
  #documents,
  #tools,
  #contact {
    scroll-margin-top: 96px;
  }

  .download-config-tip {
    display: block;
    font-size: 14px;
  }
}

/* ===== 下载密码弹窗 ===== */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.download-modal.show {
  display: flex;
}

.download-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(31, 42, 68, .38);
  backdrop-filter: blur(8px);
}

.download-modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 34px 32px 30px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, .95), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(238,247,255,.96));
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 30px 90px rgba(30, 65, 120, .28);
  animation: modalPop .18s ease-out;
}

@keyframes modalPop {
  from { transform: translateY(12px) scale(.98); opacity: .4; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  color: #567095;
  background: rgba(255,255,255,.76);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(67, 112, 180, .10);
}

.modal-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 22px;
  font-size: 34px;
  background: linear-gradient(135deg, #fff3c9, #ffffff);
  box-shadow: 0 14px 26px rgba(255, 178, 54, .16);
}

.modal-tag {
  margin-bottom: 12px;
}

.download-modal-card h3 {
  margin: 0;
  color: #24417a;
  font-size: 32px;
  line-height: 1.25;
}

.modal-desc {
  margin: 12px 0 20px;
  color: #586680;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 700;
}

.password-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(232, 244, 255, .78);
  border: 1px solid rgba(199, 224, 255, .85);
}

.password-target span {
  color: #687995;
  font-size: 14px;
  font-weight: 800;
}

.password-target strong {
  color: #4168e6;
  font-size: 17px;
  text-align: right;
}

.password-label {
  display: block;
  margin: 0 0 10px;
  color: #2a4679;
  font-size: 16px;
  font-weight: 900;
}

.password-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid #d7e7f8;
  background: #fff;
  color: #1f2a44;
  font: inherit;
  font-size: 18px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(13,58,122,.04);
}

.password-input:focus {
  border-color: #89b0ff;
  box-shadow: 0 0 0 4px rgba(80,124,255,.10);
}

.password-error {
  min-height: 22px;
  margin: 9px 0 0;
  color: #e84d5b;
  font-size: 14px;
  font-weight: 800;
}

.official-account-qr-box {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 16px;
  align-items: center;
  margin: 16px 0 18px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(238,255,246,.96), rgba(255,255,255,.92));
  border: 1px solid rgba(177, 232, 195, .92);
  box-shadow: 0 14px 28px rgba(69, 160, 105, .10);
}

.official-account-qr-box img {
  width: 142px;
  height: 142px;
  padding: 8px;
  border-radius: 22px;
  object-fit: contain;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(53, 196, 106, .16), 0 10px 20px rgba(49, 120, 80, .10);
}

.official-account-qr-box strong {
  display: block;
  color: #279151;
  font-size: 22px;
  margin-bottom: 8px;
}

.official-account-qr-box span {
  display: block;
  color: #526471;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 800;
}

.official-account-tip {
  margin-top: 0;
  padding: 10px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 247, 221, .95), rgba(255, 255, 255, .85));
  border: 1px solid rgba(255, 220, 139, .75);
  color: #79552a;
  font-size: 15px;
  line-height: 1.7;
}

.official-account-tip strong {
  display: block;
  color: #d68617;
  font-size: 16px;
  margin-bottom: 4px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

@media (max-width: 720px) {
  .download-modal {
    padding: 18px;
  }

  .download-modal-card {
    padding: 28px 20px 22px;
    border-radius: 26px;
  }


  .official-account-qr-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .official-account-qr-box img {
    width: 178px;
    height: 178px;
    margin: 0 auto;
  }

  .download-modal-card h3 {
    font-size: 26px;
  }

  .password-target {
    align-items: flex-start;
    flex-direction: column;
  }

  .password-target strong {
    text-align: left;
  }
}


/* ===== 弹出框优化：只调整密码弹窗预览效果，不改图片路径 ===== */
.download-modal {
  padding: 28px;
  align-items: center;
  justify-content: center;
}

.download-modal-mask {
  background: rgba(31, 42, 68, .24);
  backdrop-filter: blur(4px);
}

.download-modal-card {
  width: min(440px, calc(100vw - 56px));
  max-height: min(720px, calc(100vh - 72px));
  overflow-y: auto;
  padding: 24px 24px 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.96), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(243,249,255,.96));
  box-shadow: 0 24px 70px rgba(30, 65, 120, .22);
  scrollbar-width: thin;
}

.download-modal-card::-webkit-scrollbar {
  width: 6px;
}

.download-modal-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(92, 120, 168, .28);
}

.modal-close {
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  font-size: 24px;
}

.modal-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 18px;
  font-size: 26px;
}

.modal-tag {
  margin-bottom: 8px;
  padding: 7px 13px;
  font-size: 13px;
}

.download-modal-card h3 {
  font-size: 26px;
  line-height: 1.25;
}

.modal-desc {
  margin: 8px 0 14px;
  font-size: 14px;
  line-height: 1.65;
}

.official-account-qr-box {
  grid-template-columns: 108px 1fr;
  gap: 14px;
  margin: 12px 0 14px;
  padding: 14px;
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(69, 160, 105, .08);
}

.official-account-qr-box img {
  width: 108px;
  height: 108px;
  padding: 6px;
  border-radius: 18px;
}

.official-account-qr-box strong {
  font-size: 20px;
  margin-bottom: 6px;
}

.official-account-qr-box span {
  font-size: 14px;
  line-height: 1.55;
}

.password-target {
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 16px;
}

.password-target span {
  font-size: 13px;
}

.password-target strong {
  font-size: 16px;
}

.password-label {
  margin-bottom: 8px;
  font-size: 15px;
}

.password-input {
  height: 50px;
  border-radius: 16px;
  font-size: 16px;
}

.password-error {
  min-height: 18px;
  margin: 7px 0 0;
  font-size: 13px;
}

.official-account-tip {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.official-account-tip strong {
  font-size: 15px;
  margin-bottom: 3px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.modal-actions .small-btn {
  min-width: 0;
  width: 100%;
  height: 48px;
  font-size: 15px;
}

/* 弹出时避免视觉上像整页内容，保持浮层卡片感 */
.download-modal.show .download-modal-card {
  transform-origin: center;
}

@media (max-width: 720px) {
  .download-modal {
    padding: 14px;
    align-items: center;
  }

  .download-modal-card {
    width: min(420px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  .official-account-qr-box {
    grid-template-columns: 94px 1fr;
    text-align: left;
    gap: 12px;
  }

  .official-account-qr-box img {
    width: 94px;
    height: 94px;
    margin: 0;
  }

  .download-modal-card h3 {
    font-size: 24px;
  }

  .password-target {
    flex-direction: row;
    align-items: center;
  }

  .password-target strong {
    text-align: right;
  }
}


/* ===== 弹出框优化 V2：加宽并改成上下标题 + 左右内容布局 ===== */
.download-modal {
  padding: 32px;
  align-items: center;
  justify-content: center;
}

.download-modal-mask {
  background: rgba(31, 42, 68, .22);
  backdrop-filter: blur(4px);
}

.download-modal-card {
  width: min(760px, calc(100vw - 72px));
  max-height: min(620px, calc(100vh - 72px));
  overflow-y: auto;
  padding: 28px 30px 26px;
  border-radius: 30px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px 24px;
  align-items: start;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.96), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(243,249,255,.96));
  box-shadow: 0 24px 70px rgba(30, 65, 120, .22);
}

/* 顶部标题区横跨两列 */
.download-modal-card .modal-icon,
.download-modal-card .modal-tag,
.download-modal-card h3,
.download-modal-card .modal-desc {
  grid-column: 1 / -1;
}

.download-modal-card .modal-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 0;
  border-radius: 18px;
  font-size: 26px;
}

.download-modal-card .modal-tag {
  width: fit-content;
  margin: -48px 0 0 64px;
  padding: 7px 13px;
  font-size: 13px;
}

.download-modal-card h3 {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.22;
}

.download-modal-card .modal-desc {
  margin: 4px 0 8px;
  font-size: 15px;
  line-height: 1.6;
}

/* 左侧二维码区域 */
.official-account-qr-box {
  grid-column: 1;
  grid-row: 5 / span 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin: 0;
  padding: 18px;
  border-radius: 24px;
  min-height: 300px;
  justify-content: center;
}

.official-account-qr-box img {
  width: 178px;
  height: 178px;
  padding: 7px;
  border-radius: 22px;
}

.official-account-qr-box strong {
  font-size: 21px;
  margin-bottom: 4px;
}

.official-account-qr-box span {
  font-size: 14px;
  line-height: 1.55;
}

/* 右侧密码操作区 */
.password-target,
.password-label,
.password-input,
.password-error,
.official-account-tip,
.modal-actions {
  grid-column: 2;
}

.password-target {
  margin-bottom: 0;
  padding: 12px 14px;
  border-radius: 16px;
}

.password-label {
  margin: 4px 0 -4px;
  font-size: 15px;
}

.password-input {
  height: 52px;
  border-radius: 16px;
  font-size: 16px;
}

.password-error {
  min-height: 18px;
  margin: -2px 0 0;
  font-size: 13px;
}

.password-error:empty {
  display: none;
}

.official-account-tip {
  margin-top: -2px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 2px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 0;
}

.modal-actions .small-btn {
  min-width: 0;
  width: 100%;
  height: 48px;
  font-size: 15px;
}

.modal-close {
  right: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  font-size: 24px;
  z-index: 3;
}

@media (max-width: 820px) {
  .download-modal {
    padding: 18px;
  }

  .download-modal-card {
    width: min(480px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 20px 20px;
    border-radius: 26px;
  }

  .download-modal-card .modal-icon,
  .download-modal-card .modal-tag,
  .download-modal-card h3,
  .download-modal-card .modal-desc,
  .official-account-qr-box,
  .password-target,
  .password-label,
  .password-input,
  .password-error,
  .official-account-tip,
  .modal-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .download-modal-card .modal-tag {
    margin: 0;
  }

  .official-account-qr-box {
    display: grid;
    grid-template-columns: 110px 1fr;
    text-align: left;
    min-height: auto;
    gap: 12px;
    padding: 14px;
  }

  .official-account-qr-box img {
    width: 110px;
    height: 110px;
  }

  .download-modal-card h3 {
    font-size: 25px;
  }

  .password-target {
    flex-direction: row;
    align-items: center;
  }

  .password-target strong {
    text-align: right;
  }
}

@media (max-width: 520px) {
  .official-account-qr-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .official-account-qr-box img {
    margin: 0 auto;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}


/* ===== Eleventy 安全首页补充样式 ===== */
.security-strip {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.security-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #37527f;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(67, 112, 180, .08);
}

.tool-card,
.resource-card {
  position: relative;
}

.tool-card::before {
  content: "🔒";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(232, 244, 255, .9);
  box-shadow: inset 0 0 0 1px rgba(199,224,255,.8);
}

body.is-logged-in .tool-card::before {
  content: none;
}

.resource-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.resource-preview-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #4168e6;
  font-size: 13px;
  font-weight: 900;
}

.turnstile-wrap {
  grid-column: 2;
  min-height: 48px;
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.turnstile-wrap .cf-turnstile {
  transform: scale(.92);
  transform-origin: left top;
}

.password-lock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.turnstile-placeholder {
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(240,247,255,.88);
  border: 1px dashed rgba(104,139,210,.42);
  color: #5f6f8a;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
}

@media (max-width: 820px) {
  .turnstile-wrap {
    grid-column: 1;
  }
}

.no-js-tip {
  margin: 20px auto;
  width: min(900px, calc(100% - 32px));
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff6dc;
  color: #805800;
  font-weight: 900;
}
