/* ABC学科英语 — 官方下载说明页 */

:root {
  --bg-top: #e7f3fb;
  --bg-bottom: #f8fafc;
  --ink: #152433;
  --muted: #5d6f80;
  --accent: #1780d6;
  --accent-strong: #0f6cba;
  --accent-border: #2c9cff;
  --line: rgba(21, 52, 80, 0.11);
  --danger-soft: #fff7ea;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 100% 70% at 50% -18%, #9fd0f0 0%, transparent 58%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.section {
  margin-bottom: 24px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.section-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.brand {
  text-align: center;
  padding: 4px 0 0;
  margin-bottom: 16px;
}

.brand-logo {
  width: min(46vw, 156px);
  height: auto;
  display: block;
  margin: 0 auto 12px;
}

.brand-tagline {
  margin: 0 auto;
  max-width: 22em;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.5;
}

.download {
  margin-bottom: 20px;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 0;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.dl-btn img {
  flex-shrink: 0;
  /* Icons are blue-tinted assets; invert on dark fills for contrast */
  filter: brightness(0) invert(1);
}

.dl-btn.btn-apk {
  color: #fff;
  background: linear-gradient(180deg, #4ad295, #2f9e63);
  box-shadow: 0 8px 18px rgba(47, 158, 99, 0.28);
}

.dl-btn.btn-apk img {
  filter: brightness(0) invert(1);
}

.dl-btn.btn-play {
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(47, 158, 99, 0.4);
  box-shadow: 0 4px 12px rgba(21, 52, 80, 0.06);
}

.dl-btn.btn-play img {
  filter: none;
}

.dl-btn.btn-ios {
  color: #fff;
  background: linear-gradient(180deg, #3a3a3c, #111113);
  box-shadow: 0 8px 18px rgba(17, 17, 19, 0.28);
}

.dl-btn.is-emphasis {
  opacity: 1;
}

.dl-btn.is-muted {
  opacity: 0.78;
  box-shadow: none;
  filter: saturate(0.85);
}

.dl-btn.btn-apk:hover {
  filter: brightness(1.04);
}

.dl-btn.btn-play:hover {
  border-color: rgba(47, 158, 99, 0.7);
  background: #f7fcf9;
}

.dl-btn.btn-ios:hover {
  filter: brightness(1.08);
}

.dl-btn.is-muted:hover {
  opacity: 0.9;
}

.dl-btn:disabled,
.dl-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.2);
}

.apk-ready-note {
  margin: 10px 0 0;
  text-align: center;
  color: #a05a00;
  font-size: 0.9rem;
}

.wechat-tip {
  margin: 0 auto 14px;
  max-width: 520px;
  padding: 12px 14px;
  background: var(--danger-soft);
  border-left: 3px solid #e0a84a;
  color: #6a4a12;
  font-size: 0.9rem;
  line-height: 1.5;
}

.wechat-tip.is-attention {
  box-shadow: 0 0 0 2px rgba(224, 168, 74, 0.35);
}

.wechat-tip-title {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.wechat-tip-steps {
  margin: 0;
  padding-left: 1.25rem;
}

.wechat-tip-steps li + li {
  margin-top: 4px;
}

.screenshots {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.shot-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  overflow-x: auto;
  padding: 2px 0 8px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.shot {
  margin: 0;
  flex: 0 0 auto;
  width: 124px;
  text-align: center;
  scroll-snap-align: center;
}

.shot-frame {
  border-radius: 16px;
  padding: 6px;
  background: linear-gradient(165deg, #cfe6f7, #f3f8fc 55%, #ffffff);
  box-shadow: 0 12px 28px rgba(21, 52, 80, 0.12);
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 11px;
  display: block;
  background: #fff;
}

.shot figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.publisher,
.apk-meta {
  padding-top: 16px;
  background: transparent;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.publisher-line {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

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

.meta-list {
  margin: 0;
}

.meta-list > div {
  display: grid;
  grid-template-columns: 5.8em 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  align-items: start;
}

.meta-list > div:last-child {
  border-bottom: 0;
}

.meta-list dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.meta-list dd {
  margin: 0;
  word-break: break-all;
}

.meta-sha dd {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.install-hint {
  margin: 8px 0 20px;
  padding: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.site-footer {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.legal-links a {
  color: var(--accent);
  text-decoration: none;
}

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

.icp-line {
  margin: 0;
  font-size: 0.82rem;
}

.icp-link {
  color: #667788;
  text-decoration: none;
}

.icp-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (min-width: 640px) {
  .page {
    padding: 40px 28px 52px;
  }

  .brand-logo {
    width: 168px;
  }

  .brand-tagline {
    font-size: 1.1rem;
    max-width: 28em;
  }

  .btn-row {
    flex-direction: row;
    max-width: none;
  }

  .shot-row {
    gap: 18px;
    overflow: visible;
  }

  .shot {
    width: 176px;
  }
}

@media (min-width: 900px) {
  .shot {
    width: 198px;
  }

  .dl-btn.btn-apk.is-emphasis:hover,
  .dl-btn.btn-ios.is-emphasis:hover {
    transform: translateY(-1px);
  }
}

/* —— Account deletion page —— */

.account-deletion .brand-home {
  display: inline-block;
  line-height: 0;
}

.account-deletion .page-heading {
  margin: 14px 0 8px;
  font-size: 1.45rem;
  font-weight: 650;
  text-align: center;
}

.disclosure-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.disclosure-list li + li {
  margin-top: 6px;
}

.disclosure-list a {
  color: var(--accent);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.88rem;
  color: var(--muted);
}

.field-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.field-input:focus {
  outline: 2px solid rgba(23, 128, 214, 0.35);
  border-color: var(--accent-border);
}

.field-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.field-row .field-input {
  flex: 1;
  min-width: 0;
}

.field-error {
  margin: 0;
  color: #b42318;
  font-size: 0.88rem;
}

.field-hint {
  margin: 0;
  color: #1b7a3d;
  font-size: 0.88rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto 14px;
  font-size: 0.92rem;
  color: var(--ink);
}

.check-row input {
  margin-top: 3px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

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

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

.btn-secondary {
  flex: 0 0 auto;
  white-space: nowrap;
  background: #eef4fa;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:disabled,
.btn-primary:disabled,
.btn-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-danger {
  display: flex;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: #c62828;
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #b71c1c;
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.confirm-actions .btn-danger,
.confirm-actions .btn-cancel {
  width: 100%;
  max-width: none;
  margin: 0;
}

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

.account-deletion .btn-primary.inline-link {
  display: inline-flex;
  width: auto;
  max-width: none;
  margin-top: 8px;
}

.account-deletion #btn-verify {
  width: 100%;
}

