/* 公开页面的版式 · 方向 D 的书桌托盘做首屏预览，其余照客户端 v1「玻璃书桌」的部件 */

main { overflow: hidden; }

/* ---------- 首屏：左文字右预览（常规软件官网） ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); align-items: center; gap: 56px;
  max-width: 1180px; margin: 0 auto; padding: 40px 24px 0; }
.hero-text .latin { margin: 0 0 14px; font-size: 19px; }
.hero .display { font-size: clamp(42px, 5.6vw, 68px); }
.hero .display .line { display: block; animation: tagline-in .9s var(--spring-soft) both; }
.hero .display .line + .line { animation-delay: .12s; }
@keyframes tagline-in { from { opacity: 0; translate: 0 .35em; filter: blur(6px); } }
.lead { font-size: 17px; line-height: 1.75; color: var(--text-2); max-width: 30em; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }

/* ---------- 书桌托盘 ---------- */
.stage { position: relative; display: flex; justify-content: center; height: 640px; perspective: 1400px; }

.tray {
  position: relative; z-index: 2; width: min(500px, 100%); height: 640px; border-radius: 52px; overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; will-change: transform;
  background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh-tray);
  padding: 13px 23px 0 23px;
}
.notch { margin: 0 auto; width: 120px; height: 30px; }
.tray-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 6px 22px; }
.tray-head .wordmark img { width: 26px; height: 26px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--chip);
  font: 500 14px/1 var(--zh); color: var(--ink); box-shadow: 0 0 0 1px var(--hair); }

.widgets { display: grid; grid-template-columns: 250fr 118fr 118fr; grid-template-rows: auto auto; gap: 14px; padding: 0 4px; }
.w { position: relative; border-radius: 30px; overflow: hidden; box-shadow: var(--sh-widget); aspect-ratio: 1; }

.wheel { grid-row: span 2; border-radius: 34px; background: linear-gradient(var(--wheel-a), var(--wheel-b)); box-shadow: var(--sh-widget), var(--hl); }
.wheel-ring { position: absolute; left: 12%; top: 12%; width: 76%; height: 76%; overflow: visible; transform: scale(1.15) translateY(2%); }
.wheel-time { position: absolute; top: 16%; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }
.wheel-l, .wheel-r { position: absolute; top: 47%; font-size: 11px; color: var(--faint); }
.wheel-l { left: 17%; } .wheel-r { right: 17%; }
.wheel-sub { position: absolute; bottom: 19%; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }
.rec { position: absolute; left: 34%; top: 34%; width: 32%; height: 32%; display: grid; place-items: center; animation: rec-beat 2.4s ease-in-out infinite; }
@keyframes rec-beat { 50% { scale: .93; } }
.rec img { position: absolute; inset: -5% -10% -15% -10%; width: 120%; height: 120%; }
.rec span { position: relative; color: #fff; font-size: 14px; }

.rings { background: var(--surface); border: 1px solid var(--hair); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ring-stack { position: relative; width: 71%; aspect-ratio: 1; }
.ring-stack img { position: absolute; }
.ring-stack img:nth-child(1) { inset: 0; width: 100%; height: 100%; }
.ring-stack img:nth-child(2) { inset: 8.9%; width: 82.1%; height: 82.1%; }
.ring-stack img:nth-child(3) { inset: 17.9%; width: 64.3%; height: 64.3%; }
.ring-stack img:nth-child(4) { inset: 26.8%; width: 46.4%; height: 46.4%; }
.ring-stack img:nth-child(5) { inset: 35.7%; width: 28.6%; height: 28.6%; }
.ring-stack .ring-dot { inset: 45.2%; width: 9.5%; height: 9.5%; }
.rings .mono { font-size: 10px; color: var(--muted); }
.ring-stack { animation: ring-spin 24s linear infinite; }
@keyframes ring-spin { to { rotate: 360deg; } }

/* 唯一的深色小物件：课程公式卡 */
.formula { background: var(--object); box-shadow: var(--sh-ink); color: var(--on-object); }
.formula .fx { position: absolute; left: 12%; top: 26%; font-size: clamp(20px, 5vw, 32px); line-height: 1.2;
  transform: rotate(6deg); transform-origin: left center; transition: translate .6s var(--spring); }
.formula:hover .fx { translate: 6px 0; }   /* 与客户端课程卡一样：公式往前漂一点 */
.formula small { position: absolute; left: 12%; bottom: 14%; font-size: 10px; color: var(--object-sub); }

.folder { grid-column: span 2; aspect-ratio: 250 / 118; background: var(--paper); }
.paper { position: absolute; left: 12%; top: 14%; width: 110px; height: 96px; border-radius: 6px; background: #fff; color: #141414;
  box-shadow: 0 2px 6px rgba(0,0,0,.12); transform: rotate(8deg); padding: 10px; font-size: 14px; display: flex; flex-direction: column; gap: 4px;
  transition: transform .5s var(--spring); }
.paper em { font-style: normal; color: var(--accent); font-size: 12px; }
.folder:hover .paper { transform: rotate(3deg) translateY(-14px); }
.folder-front { position: absolute; left: 0; right: 0; bottom: 0; height: 56%; border-radius: 22px; padding: 14px 20px;
  background: linear-gradient(var(--folder-a), var(--folder-b)); box-shadow: 0 -2px 8px rgba(0,0,0,.08), var(--hl);
  display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.folder-front span { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-front small { font-size: 10px; color: var(--muted); }

.threads { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.threads li { display: flex; align-items: center; gap: 14px; padding: 10px 8px; }
.threads li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.threads b { font: 500 14px/1.4 var(--zh); color: var(--ink); }
.threads span:not(.badge) { font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.threads em { font: 12px/1 var(--sans); font-style: normal; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tray-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 260px;
  background: linear-gradient(to bottom, transparent, var(--surface) 75%); pointer-events: none; }
.page-fade { position: absolute; z-index: 3; left: -50vw; right: -50vw; bottom: -60px; height: 330px;
  background: linear-gradient(to bottom, transparent, var(--bg) 70%); pointer-events: none; }


/* 托盘里的小物件轻轻浮动 */
.float { animation: bob 6s ease-in-out infinite; }
.float.f2 { animation-delay: -2s; } .float.f3 { animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -5px; } }

/* ---------- 三个功能 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1180px; margin: 0 auto; padding: 24px 24px 0; }
.feature { padding: 26px 26px 24px; transition: translate .5s var(--spring), box-shadow .45s var(--ease-out); }
.feature:nth-child(2) { animation-delay: .08s; } .feature:nth-child(3) { animation-delay: .16s; }
.feature:hover { translate: 0 -4px; box-shadow: 0 0 0 .5px rgba(64, 51, 38, .1), 0 20px 44px rgba(64, 51, 38, .1), var(--hl); }
.feature:hover .badge { rotate: -12deg; scale: 1.08; }
.feature .badge { width: 42px; height: 42px; font-size: 22px; }
.feature .badge .dot { width: 12px; height: 12px; }
.feature h3 { margin: 18px 0 8px; font-size: 20px; }
.feature p { margin: 0; font-size: 14px; color: var(--text-3); line-height: 1.75; }

/* ---------- 下载 ---------- */
.download { max-width: 1180px; margin: 0 auto; padding: 18px 24px 90px; }
.dl-card { padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.dl-meta { display: flex; align-items: center; gap: 18px; }
.dl-meta h2 { margin: 0 0 4px; }
.dl-meta p { margin: 0; }
.dl-meta a { color: var(--text-2); }
.formula-mini { display: grid; place-items: center; min-width: 72px; height: 72px; padding: 0 12px; border-radius: 22px; background: var(--object);
  color: var(--on-object); font-size: 24px; box-shadow: var(--sh-ink); transform: rotate(-4deg); transition: rotate .6s var(--spring); }
.dl-card:hover .formula-mini { rotate: 6deg; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-buttons .pill small { font: 12px var(--sans); }
.dl-buttons .pill.ink small { color: inherit; opacity: .7; }

/* ---------- 更新记录 ---------- */
.releases { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }
.page-title { margin-bottom: 18px; }
.page-title .latin { margin: 6px 0 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--hair); }
.timeline .when { display: flex; flex-direction: column; gap: 2px; }
.timeline .when .mono { font-size: 15px; color: var(--ink); }
.timeline > li:first-child .when .mono { color: var(--accent-ink); }
.timeline .when small { color: var(--faint); font-size: 12px; }
.timeline h3 { margin: 0 0 8px; font: 400 19px/1.4 var(--serif); }
.timeline ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.beta { font: 500 11px var(--mono); color: var(--accent); vertical-align: 3px; }
.empty { padding: 30px 0; }

/* ---------- 小页面：居中一张玻璃卡片（登录、账户、方案、提示） ---------- */
.solo { display: flex; flex-direction: column; align-items: center; padding: 48px 16px 90px; min-height: calc(100vh - 64px); }
.solo-card { width: min(640px, 100%); padding: 34px 36px 30px; animation: m-rise .8s var(--spring-soft) both; }
.solo.narrow .solo-card { width: min(420px, 100%); }
.solo-card.wide { width: min(980px, 100%); }
.solo-card .h2 { font-size: 30px; }
.solo-card .sub { margin: 4px 0 20px; font-size: 18px; }
.solo-card > p { margin: 8px 0 0; }
.seg { margin: 0 0 6px; width: 100%; }
.seg > a { flex: 1; text-align: center; }
.sso { display: grid; gap: 10px; margin-top: 18px; }
.sso .pill { height: 46px; gap: 10px; }
.sso-icon { width: 18px; height: 18px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; font-size: 12px; color: var(--faint); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hair-2); }
.solo-card form > .pill.block, .stack .pill.block { margin-top: 22px; }
.stack + .stack .pill.block { margin-top: 8px; }
.links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; }
button.link, a.link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--text-3); cursor: pointer; text-decoration: none; }
button.link:hover, a.link:hover { color: var(--text); }
.client-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; margin-bottom: 14px; border-radius: 999px;
  font-size: 12px; color: var(--text-2); background: var(--accent-soft); }
.client-tag .dot { width: 7px; height: 7px; }
.foot-note { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 22px -36px -30px; padding: 14px 36px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--text-3); }
.foot-note b { color: var(--text-2); font-weight: 500; letter-spacing: .06em; }
.foot-note .link { font-size: 12px; }
.who { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; }
.who > div { display: flex; flex-direction: column; min-width: 0; }
.who b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.who small { font-size: 12px; }
.who .fx-badge { width: 40px; height: 40px; font-size: 20px; }
.who.big { margin-top: 0; }
.who.big .fx-badge { width: 52px; height: 52px; font-size: 26px; }
.who.big b { font-size: 18px; }
.plan-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--hair); }
.plan-line .h3 { margin-top: 2px; }
.meters { display: grid; gap: 14px; margin-top: 18px; }
.meter-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.meter-top .fx { font-size: 16px; color: var(--text); }
.meter i { display: block; height: 6px; border-radius: 999px; background: var(--sunk); position: relative; overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: var(--ink);
  animation: grow 1.1s var(--spring-soft) .25s both; }
@keyframes grow { from { width: 0; } }
.meters p { margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.actions form { margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.plan { padding: 22px; border-radius: 22px; background: var(--plain); border: 1px solid var(--hair); }
.plan header { display: flex; align-items: center; justify-content: space-between; }
.plan .caps .dot { display: inline-block; width: 7px; height: 7px; vertical-align: 1px; }
.plan .price { font-size: 32px; margin: 12px 0 14px; color: var(--ink); }
.plan ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--hair); display: grid; gap: 7px; font-size: 14px; color: var(--text-2); }
.plan ul b { font: 500 15px var(--sans); color: var(--ink); }
.plan.hl { box-shadow: 0 0 0 1px var(--accent-line), var(--accent-glow); }
.plan.mine { background: var(--plain-strong); box-shadow: var(--lift); }
.footer .small-mark span { font-size: 15px; }
.footer .small-mark .logo-mark { width: 20px; height: 20px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 28px; text-align: center; }
  .hero-text > * { max-width: 100%; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .features { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .stage { height: 520px; }
  .tray { height: 520px; border-radius: 40px; padding: 10px 14px 0; }
  .widgets { gap: 10px; }
  .w { border-radius: 22px; }
  .paper { width: 92px; height: 80px; font-size: 12px; }
  .timeline > li { grid-template-columns: 1fr; gap: 6px; }
  .dl-card { padding: 24px; }
  .solo { padding-top: 24px; }
  .solo-card { padding: 26px 22px 24px; }
  .foot-note { margin: 22px -22px -24px; padding: 14px 22px; }
}

/* ---------- 账户页：账号与安全 ---------- */
.acct { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--hair); }
.acct > h2 { margin: 0 0 6px; }
.acct-row { border-bottom: 1px solid var(--hair); }
.acct-row > summary { display: flex; align-items: center; gap: 12px; padding: 13px 0; cursor: pointer; list-style: none; font-size: 14px; color: var(--text-2); }
.acct-row > summary::-webkit-details-marker { display: none; }
.acct-row > summary b { flex: 1; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-row[open] > summary .link { color: var(--text); }
.acct-form { display: flex; gap: 8px; padding: 0 0 16px; animation: m-rise .45s var(--spring-soft) both; }
.acct-form.col { flex-direction: column; align-items: stretch; }
.acct-form.col .pill { align-self: flex-start; }
.acct-form input { flex: 1; min-width: 0; }
.acct-form p { margin: 0; }
.devices { padding: 13px 0 6px; border-bottom: 0; }
.devices-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-2); }
.devices-head form { margin: 0; }
.devices ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.devices li { display: flex; align-items: center; gap: 12px; padding: 9px 0; animation: m-rise .5s var(--spring-soft) both; }
.devices li:nth-child(2) { animation-delay: .04s; } .devices li:nth-child(3) { animation-delay: .08s; } .devices li:nth-child(n+4) { animation-delay: .12s; }
.devices li > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.devices li b { font-weight: 500; font-size: 14px; }
.devices li small { font-size: 12px; }
.devices li form { margin: 0; }
.dev-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--sunk); font-size: 11px; color: var(--text-2); }
.forgot > summary { list-style: none; display: inline; }
.forgot > summary::-webkit-details-marker { display: none; }
.forgot p { margin: 8px 0 0; }
