/* ==========================================================================
   NATSUKO 账号中心 — 官网 / 登录页补充样式
   与 program 的 extract 明亮主题共用 tokens / base / components / light。
   这里只放 account 独有的布局；全部用 CSS 变量，暗色主题同样成立。
   ========================================================================== */

/* ---------- 首页：英雄区 ---------- */
.nk-hero { padding-top: 76px; padding-bottom: 54px; }
.nk-hero .hero-title { max-width: 18em; }
.nk-hero .hero-title .l3 {
  font-size: .3em; line-height: 1.6; margin-top: 18px;
  color: var(--fg-3); font-weight: 500; letter-spacing: 0;
}
.nk-hero .hero-lede { margin-top: 22px; }
.nk-hero .hero-facts { margin-top: 40px; }

/* 顶栏登录按钮：account 站点复用 program 的 .nav-login 亮色规则 */
.nk-nav-home { color: var(--fg) !important; font-weight: 600; }

/* ---------- 首页：接入应用卡 ---------- */
.nk-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 780px) { .nk-apps { grid-template-columns: 1fr; } }

.nk-app {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px; box-shadow: 0 1px 3px rgba(16,18,22,.05);
  text-decoration: none; color: inherit; transition: border-color .15s, transform .15s;
}
.nk-app:hover { border-color: var(--line-hi); transform: translateY(-1px); }
.nk-app-icon {
  width: 44px; height: 44px; flex: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; letter-spacing: -.04em;
  background: var(--green-glow); color: var(--green);
  border: 1px solid var(--line);
}
.nk-app-body { min-width: 0; }
.nk-app-title { font-size: 16px; font-weight: 700; margin: 1px 0 6px; color: var(--fg); }
.nk-app-desc { font-size: 13px; line-height: 1.7; color: var(--fg-2); margin: 0 0 10px; }
.nk-app-meta { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 首页：用户 / 开发者对比 ---------- */
.nk-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 780px) { .nk-split { grid-template-columns: 1fr; } }
.nk-split-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px; box-shadow: 0 1px 3px rgba(16,18,22,.05);
}
.nk-split-card.is-primary { border-color: var(--green); }
.nk-split-tag {
  display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px;
  background: var(--green-glow); color: var(--green); margin-bottom: 12px;
}
.nk-split-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--fg); }
.nk-split-card p { margin: 0 0 14px; font-size: 13px; color: var(--fg-2); }
.nk-split-card ul { margin: 0 0 18px; padding-left: 18px; font-size: 13px; color: var(--fg-2); }
.nk-split-card li { margin: 6px 0; }

/* ---------- 登录页：左右分栏 ---------- */
.nk-auth-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 0; align-items: stretch;
  max-width: 1040px; margin: 0 auto;
}
@media (max-width: 860px) { .nk-auth-shell { grid-template-columns: 1fr; gap: 24px; } }

.nk-auth-aside {
  padding: 44px 44px 40px 0; border-right: 1px solid var(--line);
}
@media (max-width: 860px) {
  .nk-auth-aside { padding: 0 0 24px; border-right: none; border-bottom: 1px solid var(--line); }
}
.nk-auth-aside .hero-tag { margin-bottom: 18px; }
.nk-auth-aside h1 {
  font-size: clamp(28px, 4vw, 40px); line-height: 1.2; letter-spacing: -.02em;
  margin: 0 0 18px; color: var(--fg);
}
.nk-auth-aside p { color: var(--fg-2); font-size: 14px; line-height: 1.8; max-width: 34em; }
.nk-auth-list { list-style: none; padding: 0; margin: 26px 0 0; }
.nk-auth-list li {
  position: relative; padding: 9px 0 9px 26px; font-size: 13px; color: var(--fg-2);
  border-top: 1px solid var(--line);
}
.nk-auth-list li::before {
  content: '✓'; position: absolute; left: 2px; top: 9px;
  color: var(--green); font-weight: 700;
}
.nk-auth-list li b { color: var(--fg); }
.nk-auth-foot { margin-top: 26px; font-size: 13px; color: var(--fg-3); }
.nk-auth-foot a { color: var(--green); }

.nk-auth-panel { padding: 8px 0 0 0; }
@media (max-width: 860px) { .nk-auth-panel { padding: 0; } }
.nk-auth-panel .app-card { padding: 26px; box-shadow: 0 4px 20px rgba(16,18,22,.06) !important; }
.nk-auth-panel .app-title { margin-top: 0; }
.nk-auth-panel .auth-alt { margin-top: 18px; }

/* ---------- 通用小件 ---------- */
.nk-note {
  font-size: 12px; color: var(--fg-3); line-height: 1.7;
  border-left: 2px solid var(--green); padding-left: 10px; margin-top: 16px;
}


/* ---------- Hero 标题:炫彩渐变流动 ---------- */
.nk-hero .hero-title .l2 {
  background: linear-gradient(90deg,#0a84ff,#5ac8fa 30%,#30d5c8 55%,#0a84ff 85%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: none;
  animation: nk-shine 7s linear infinite;
}
@keyframes nk-shine { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) {
  .nk-hero .hero-title .l2 { animation: none; }
}

/* ---------- Hero 背景装饰:网格 + 光斑 + 浮动图标 ---------- */
.nk-hero { position: relative; }
.nk-hero > *:not(.nk-hero-deco) { position: relative; z-index: 1; }
.nk-hero-deco {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
/* 透视网格 */
.nk-hero-deco::before {
  content: ''; position: absolute; right: -8%; top: -34%; width: 62%; height: 150%;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 72%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 72%);
  transform: perspective(600px) rotateX(38deg) scale(1.4);
  opacity: .55;
}
/* 主色光斑 */
.nk-hero-deco::after {
  content: ''; position: absolute; right: 0; top: 2%; width: 430px; height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow), transparent 65%);
}
.nk-fl {
  position: absolute; color: var(--green); opacity: .5;
  filter: drop-shadow(0 0 12px var(--green-glow)) blur(.4px);
  animation: nk-float 6s ease-in-out infinite;
}
.nk-fl svg { width: 100%; height: 100%; display: block; }
.nk-fl1 { right: 6%;  top: 14%; width: 52px; height: 52px; transform: rotate(-8deg); }
.nk-fl2 { right: 17%; top: 46%; width: 40px; height: 40px; transform: rotate(10deg);  opacity: .35; animation-delay: 1.2s; }
.nk-fl3 { right: 27%; top: 22%; width: 34px; height: 34px; transform: rotate(-14deg); opacity: .3;  animation-delay: 2.1s; }
.nk-fl4 { right: 9%;  top: 64%; width: 30px; height: 30px; transform: rotate(6deg);   opacity: .28; animation-delay: 3s; }
.nk-fl5 { right: 31%; top: 58%; width: 26px; height: 26px; transform: rotate(12deg);  opacity: .22; animation-delay: 4.2s; }
@keyframes nk-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (max-width: 860px) {
  .nk-fl { display: none; }
  .nk-hero-deco::before { width: 100%; right: -24%; }
  .nk-hero-deco::after { width: 300px; height: 300px; }
}


/* ---------- nk-liquid-glass:首页卡片玻璃质感(亮色) ---------- */
html[data-theme="light"] .nk-app,
html[data-theme="light"] .nk-split-card {
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 4px 24px rgba(16, 18, 22, .07);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
html[data-theme="light"] .nk-app:hover,
html[data-theme="light"] .nk-split-card:hover {
  border-color: rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 28px rgba(0, 113, 227, .12);
}
html[data-theme="light"] .nk-app-icon { border-color: rgba(255, 255, 255, .8); }
