/* 捞捞课程表 · App 介绍页和下载页共用 */
/* 标题字体在 fonts.css 里（切成小块按需下载） */
:root {
  --sky-top: #bfe6ff; --sky-bot: #f3fbff;
  --ink: #0e2240; --sub: #5d7290; --fg: #0e2240; --fg2: #5d7290;
  --sun: #ff8a3d; --today: #ff7b2e; --blush: #ff9db5; --star: #ffd23f; --chat: #95ec69; --blue: #1e8cff;
  --card: #ffffff; --line: #e3edf6;
  --d: "ZCOOL QingKe HuangYou", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --s: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --gut: max(16px, env(safe-area-inset-left));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.7 var(--s); color: var(--fg); transition: color .6s; background: var(--sky-bot); -webkit-font-smoothing: antialiased; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.night { --fg: #eef2ff; --fg2: #aab4d8; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.d { font-family: var(--d); font-weight: 400; letter-spacing: .01em; }

/* 天空背景：随着往下滑从清晨变到深夜 */
#sky { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sky-top), var(--sky-bot)); pointer-events: none; overflow: hidden; }
#sky .stars { position: absolute; inset: 0; opacity: var(--stars, 0); transition: opacity .3s;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 28% 9%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 44% 22%, #fff8d6 50%, transparent 52%), radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 79% 26%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 91% 8%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 8% 44%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 36% 38%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 57% 47%, #fff 50%, transparent 52%), radial-gradient(2px 2px at 86% 41%, #fff8d6 50%, transparent 52%),
    radial-gradient(1px 1px at 18% 63%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 71% 61%, #fff 50%, transparent 52%); }
#sky .stars::after { content: ""; position: absolute; inset: 0; background: inherit; background-position: 37px 53px; animation: twinkle 3.2s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .15; } to { opacity: .9; } }

/* 顶栏 */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px var(--gut); padding-top: max(10px, env(safe-area-inset-top));
  transition: background .3s, box-shadow .3s, color .3s; }
.top.solid { background: color-mix(in srgb, var(--sky-bot) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 8%, transparent); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--d); font-size: 20px; }
.brand img { width: 30px; height: 30px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a { text-decoration: none; font-size: 15px; padding: 6px 12px; border-radius: 99px; color: var(--fg2); }
.top nav a:hover { color: var(--fg); }
.top nav a.pill { background: var(--ink); color: #fff; font-weight: 600; }
.night .top nav a.pill { background: #fff; color: var(--ink); }
@media (max-width: 560px) { .top nav a:not(.pill) { display: none; } }

/* 下载按钮 */
.get { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px 0 20px; border-radius: 18px; border: 0;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 17px; font-weight: 700; overflow: hidden; isolation: isolate;
  box-shadow: 0 10px 28px -10px rgba(14, 34, 64, .55), inset 0 -3px 0 rgba(0, 0, 0, .25); transition: transform .18s cubic-bezier(.3, .7, .4, 1.4), box-shadow .2s; }
.get::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%); transform: translateX(-100%); animation: sheen 3.6s ease-in-out 1.2s infinite; }
@keyframes sheen { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.get:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(14, 34, 64, .6), inset 0 -3px 0 rgba(0, 0, 0, .25); }
.get:active { transform: translateY(1px) scale(.98); }
.get .ic { width: 26px; height: 26px; flex: none; }
.get .ic .arrow { animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
.get .lbl { display: grid; line-height: 1.2; }
.get small { font-weight: 500; font-size: 12px; opacity: .72; }
.get.done { background: #1f9d55; }
.get.done .arrow { animation: none; }
.night .get { background: #fff; color: var(--ink); box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 18px 40px -12px rgba(255, 210, 63, .45); }
.night .get.done { background: #c9f5d9; }

.ghost { display: inline-flex; align-items: center; min-height: 54px; padding: 0 18px; border-radius: 18px; text-decoration: none; font-weight: 600; color: var(--fg); }
.ghost:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }

/* 微信里打开时的引导 */
#wx { position: fixed; inset: 0; z-index: 99; background: rgba(8, 14, 32, .86); color: #fff; display: none; padding: 24px; text-align: right; }
#wx.show { display: block; animation: fadeIn .25s; }
#wx svg { margin-left: auto; width: 120px; height: 120px; }
#wx p { font-size: 20px; line-height: 1.6; margin: 8px 0 0; }
#wx b { color: var(--star); }
#wx small { display: block; margin-top: 18px; opacity: .7; font-size: 14px; text-align: right; }
@keyframes fadeIn { from { opacity: 0; } }

/* 二维码 */
.qr { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 20px; background: #fff; color: var(--ink); width: max-content; max-width: 100%; box-shadow: 0 12px 30px -16px rgba(14, 34, 64, .4); }
.qr[hidden] { display: none; }
.qr img { width: 112px; height: 112px; border-radius: 8px; }
.qr b { display: block; font-size: 16px; }
.qr span { font-size: 13px; color: var(--sub); line-height: 1.6; }

.foot { padding: 40px var(--gut) calc(40px + env(safe-area-inset-bottom)); text-align: center; font-size: 13px; color: var(--fg2); }
.foot a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
