/* ============================================================
   昀枢 AI 官网会员系统 —— 星空毛玻璃主题（沿用 index.html 风格）
   ============================================================ */
* { margin:0; padding:0; box-sizing:border-box; font-family:"Microsoft YaHei","PingFang SC",system-ui,-apple-system,sans-serif; }
html, body { min-height:100%; }
body {
  position:relative;
  background: radial-gradient(120% 120% at 50% 10%, #0b1033 0%, #070a1f 45%, #03040f 100%);
  color:#fff; overflow-x:hidden; line-height:1.7;
}

/* ---------- 星云光晕层 ---------- */
.fx-nebula { position:fixed; inset:-10%; z-index:0; pointer-events:none; overflow:hidden; }
.fx-nebula::before, .fx-nebula::after {
  content:""; position:absolute; width:70vw; height:70vw; border-radius:50%;
  filter:blur(70px); opacity:.55; mix-blend-mode:screen;
}
.fx-nebula::before { left:-15%; top:6%; background: radial-gradient(circle, rgba(99,86,255,.75), transparent 62%); animation: nebulaA 46s ease-in-out infinite alternate; }
.fx-nebula::after { right:-18%; bottom:0; width:80vw; height:60vw; background: radial-gradient(circle, rgba(58,124,255,.65), transparent 60%); animation: nebulaB 58s ease-in-out infinite alternate; }
.fx-nebula .cloud { position:absolute; width:55vw; height:32vw; left:-10%; top:38%; background: radial-gradient(ellipse, rgba(180,90,255,.28), transparent 65%); filter:blur(46px); animation: nebulaC 70s linear infinite alternate; }
@keyframes nebulaA { 0%{ transform:translateX(0) translateY(0) scale(1);} 100%{ transform:translateX(9vw) translateY(-4vh) scale(1.12);} }
@keyframes nebulaB { 0%{ transform:translateX(0) scale(1);} 100%{ transform:translateX(-7vw) scale(1.1);} }
@keyframes nebulaC { 0%{ transform:translateX(0);} 100%{ transform:translateX(55vw);} }

/* ---------- 粒子星空 Canvas ---------- */
#stars { position:fixed; inset:0; z-index:1; pointer-events:none; }

/* ---------- 间歇流光扫屏 ---------- */
.fx-scan { position:fixed; left:0; right:0; top:-40%; bottom:-40%; z-index:2; pointer-events:none; opacity:0; }
.fx-scan::before {
  content:""; position:absolute; left:-10%; right:-10%; top:0; height:22vh;
  background: linear-gradient(100deg, transparent 18%, rgba(160,180,255,.10) 45%, rgba(255,255,255,.14) 50%, rgba(160,180,255,.10) 55%, transparent 82%);
  filter: blur(3px); animation: scanMove 9s ease-in-out infinite;
}
@keyframes scanMove { 0%,62%{ transform:translateY(-60vh) rotate(6deg); opacity:0;} 68%{ opacity:.9;} 82%{ opacity:.55;} 100%{ transform:translateY(120vh) rotate(6deg); opacity:0;} }

.page { position:relative; z-index:3; min-height:100vh; }

/* ---------- 左上角品牌 ---------- */
.brand {
  position:fixed; top:16px; left:20px; z-index:22;
  font-size:20px; font-weight:900; letter-spacing:3px;
  background: linear-gradient(115deg, #ffffff 0%, #aebdff 22%, #8f7bff 42%, #ff9be8 60%, #6fd6ff 82%, #ffffff 100%);
  background-size:220% auto;
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  filter: drop-shadow(0 0 18px rgba(130,110,255,.65)) drop-shadow(0 0 6px rgba(255,255,255,.35));
  user-select:none; animation: textFlow 6s linear infinite;
}
.brand .dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:linear-gradient(135deg,#8f7bff,#5ad7ff); box-shadow:0 0 10px rgba(120,150,255,.9); margin-right:7px; vertical-align:1px; animation: dotPulse 2.6s ease-in-out infinite; }
@keyframes dotPulse { 0%,100%{ box-shadow:0 0 6px rgba(120,150,255,.6);} 50%{ box-shadow:0 0 16px rgba(150,180,255,1);} }

/* ---------- 顶部毛玻璃导航（PC） ---------- */
.site-nav {
  position:fixed; top:14px; right:18px; z-index:20;
  display:flex; align-items:center; gap:4px;
  padding:8px 10px; border-radius:14px;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border:1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
}
.site-nav a { color:#e6eaff; text-decoration:none; font-size:14px; padding:7px 12px; border-radius:9px; transition: all .25s; white-space:nowrap; }
.site-nav a:hover { background: rgba(140,120,255,.22); color:#fff; }
.site-nav a.active { background: linear-gradient(135deg, rgba(140,120,255,.32), rgba(80,160,255,.18)); box-shadow: inset 0 0 0 1px rgba(180,180,255,.35); color:#fff; }
.site-nav a.nav-primary { background: linear-gradient(135deg,#8f7bff,#6fd6ff); color:#fff; font-weight:700; box-shadow:0 0 18px rgba(130,120,255,.4); }
.site-nav a.nav-primary:hover { filter:brightness(1.12); }
.site-nav .nav-right { display:flex; align-items:center; gap:4px; flex-wrap:nowrap; }
.site-nav .nav-user { font-size:13px; color:#ffd9f0; padding:0 6px; max-width:130px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ---------- 移动端汉堡按钮 ---------- */
.nav-hamburger {
  display:none; position:fixed; top:14px; right:18px; z-index:21;
  width:42px; height:42px; border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  cursor:pointer; flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.nav-hamburger span { display:block; width:20px; height:2px; border-radius:2px; background:#e8ebff; transition:.3s; }

/* ---------- 容器 / 标题 ---------- */
.container { max-width:1080px; margin:0 auto; padding:96px 22px 46px; }
.main-title {
  font-size: clamp(28px, 4.4vw, 50px); font-weight:800; letter-spacing:1px; line-height:1.3; margin:14px auto 12px; text-align:center;
  background: linear-gradient(115deg, #ffffff 0%, #aebdff 22%, #8f7bff 42%, #ff9be8 60%, #6fd6ff 82%, #ffffff 100%);
  background-size:220% auto;
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
  animation: textFlow 7s linear infinite, riseIn .9s cubic-bezier(.2,.7,.2,1) both;
  filter: drop-shadow(0 0 22px rgba(130,110,255,.5)) drop-shadow(0 0 5px rgba(255,255,255,.25));
}
.sub-title { font-size: clamp(15px,2vw,19px); color:#cfd6ff; opacity:.82; margin:6px auto 30px; max-width:760px; text-align:center; animation: riseIn 1s .12s cubic-bezier(.2,.7,.2,1) both; }
.grad-text {
  background: linear-gradient(115deg, #ffffff 0%, #aebdff 22%, #8f7bff 42%, #ff9be8 60%, #6fd6ff 82%, #ffffff 100%);
  background-size:220% auto;
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  animation: textFlow 7s linear infinite;
}
@keyframes textFlow { 0%{ background-position:0% center;} 100%{ background-position:220% center;} }
@keyframes riseIn { 0%{ opacity:0; transform:translateY(26px);} 100%{ opacity:1; transform:translateY(0);} }

/* ---------- 毛玻璃卡片 ---------- */
.glass {
  position:relative; border-radius:16px;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border:1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.14), 0 0 24px rgba(120,130,255,.05);
}
.card {
  position:relative; text-align:left; padding:26px 20px 24px; border-radius:16px;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border:1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.14), 0 0 24px rgba(120,130,255,.05);
  overflow:hidden; transition: transform .38s cubic-bezier(.2,.7,.2,1), border-color .38s, box-shadow .38s;
  animation: riseIn .8s both;
}
.card::after {
  content:""; position:absolute; left:0; right:0; top:0; height:60%;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,.10), transparent 70%);
  opacity:0; transition:opacity .4s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,.46); box-shadow: 0 22px 52px rgba(60,40,200,.38), inset 0 1px 0 rgba(255,255,255,.2), 0 0 36px rgba(140,120,255,.28); }
.card:hover::after { opacity:1; }
.card .ico { width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:11px; margin-bottom:15px; font-size:19px; background: linear-gradient(150deg, rgba(140,120,255,.34), rgba(80,160,255,.16)); border:1px solid rgba(180,180,255,.28); box-shadow: 0 0 16px rgba(130,120,255,.25); }
.card h3 { font-size:18px; font-weight:700; margin-bottom:9px; letter-spacing:.4px; text-shadow: 0 0 12px rgba(160,140,255,.45); }
.card p { font-size:14px; color:#cfd4f5; opacity:.9; }

/* ---------- 按钮 ---------- */
.btn {
  position:relative; display:inline-block; overflow:hidden; cursor:pointer; text-decoration:none;
  background: linear-gradient(135deg,#ffd25e 0%, #ffab1f 48%, #ff8c00 100%);
  color:#2a1700; font-weight:800; font-size:clamp(15px,2vw,18px);
  padding:13px 24px; border-radius:14px; letter-spacing:.5px; border:none;
  box-shadow: 0 8px 26px rgba(255,145,0,.32), 0 0 0 rgba(255,180,60,0);
  animation: btnBreath 2.6s ease-in-out infinite;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, filter .3s;
}
@keyframes btnBreath { 0%,100%{ box-shadow: 0 8px 26px rgba(255,145,0,.30), 0 0 6px rgba(255,180,60,.25);} 50%{ box-shadow: 0 8px 30px rgba(255,145,0,.55), 0 0 26px rgba(255,196,80,.75);} }
.btn::after { content:""; position:absolute; top:0; bottom:0; left:-75%; width:55%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); transition: left .65s ease; }
.btn:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.07); animation-play-state: paused; box-shadow: 0 14px 36px rgba(255,150,10,.6), 0 0 34px rgba(255,200,90,.85); }
.btn:hover::after { left:120%; }
.btn-primary { background: linear-gradient(135deg,#8f7bff 0%, #6f9bff 55%, #6fd6ff 100%); color:#fff; box-shadow: 0 8px 26px rgba(110,120,255,.35); animation-name: none; }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(120,130,255,.6), 0 0 26px rgba(150,160,255,.5); }
.btn-ghost { background: transparent; color:#dbe0ff; border:1px solid rgba(255,255,255,.26); animation:none; box-shadow:none; }
.btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow:none; filter:none; transform:translateY(-2px); }
.btn-block { display:block; width:100%; text-align:center; }
.btn-sm { padding:8px 16px; font-size:13px; border-radius:10px; }

/* ---------- 表单 ---------- */
.form-card { max-width:440px; margin:20px auto; padding:34px 32px 30px; }
.field { margin-bottom:18px; }
.field label { display:block; font-size:13px; color:#c3caf5; margin-bottom:7px; letter-spacing:.5px; }
.field input, .field textarea, .field select {
  width:100%; padding:11px 14px; border-radius:11px; font-size:14px; color:#fff;
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.18); outline:none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(150,140,255,.7); background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(130,120,255,.18), 0 0 18px rgba(120,130,255,.25);
}
.field textarea { resize:vertical; min-height:160px; line-height:1.7; }
.field select { appearance:none; cursor:pointer; }
.field select option { background:#0b1033; color:#fff; }
.field .hint { font-size:12px; color:#9aa1cc; opacity:.75; margin-top:6px; line-height:1.6; }
.form-tip { text-align:center; font-size:13px; color:#aeb4dc; margin-top:16px; }
.form-tip a { color:#8f9bff; text-decoration:none; }
.form-tip a:hover { text-decoration:underline; }

/* ---------- 提示条 ---------- */
.msg { display:none; margin-bottom:16px; padding:11px 14px; border-radius:10px; font-size:13px; line-height:1.6; }
.msg.show { display:block; animation: riseIn .3s ease both; }
.msg.err { background: rgba(255,90,90,.12); border:1px solid rgba(255,110,110,.35); color:#ffc2c2; }
.msg.ok { background: rgba(90,220,160,.12); border:1px solid rgba(90,220,160,.35); color:#b9f0d6; }
.msg.info { background: rgba(90,150,255,.12); border:1px solid rgba(90,150,255,.35); color:#bcd2ff; }

/* ---------- 首页功能区 ---------- */
.features { display:grid; grid-template-columns:repeat(auto-fit,minmax(228px,1fr)); gap:22px; margin:30px auto 40px; max-width:980px; }
.section-title { text-align:center; font-size:clamp(20px,2.8vw,26px); font-weight:800; margin:34px 0 8px; text-shadow:0 0 18px rgba(140,120,255,.4); }
.section-sub { text-align:center; font-size:14px; color:#b9c0e8; opacity:.8; margin-bottom:18px; }
.btn-wrap { max-width:600px; margin:20px auto 0; }
.download-title { text-align:center; font-size: clamp(21px,3vw,27px); font-weight:800; margin-bottom:6px; text-shadow:0 0 18px rgba(255,170,80,.35); }
.tip-pwd { text-align:center; color:#b9c0e8; font-size:14px; opacity:.8; margin:16px 0 6px; }
.disclaimer { margin:36px auto 0; max-width:900px; font-size:12px; color:#9aa1cc; opacity:.62; line-height:1.8; background: rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.05); padding:13px 18px; border-radius:10px; text-align:left; }
.member-cta { max-width:760px; margin:30px auto 0; padding:28px 26px; text-align:center; }
.member-cta h3 { font-size:19px; margin-bottom:10px; }
.member-cta p { font-size:14px; color:#cfd4f5; opacity:.9; margin-bottom:18px; }
.member-cta .btn { margin:0 8px; }

/* ---------- 论坛 ---------- */
.forum-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.forum-filters { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.cat-tabs { display:flex; gap:8px; flex-wrap:wrap; }
.cat-tab { padding:7px 15px; border-radius:20px; font-size:13px; cursor:pointer; color:#cfd4f5; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); transition:.25s; }
.cat-tab.on { background: linear-gradient(135deg,#8f7bff,#6fd6ff); color:#fff; border-color:transparent; box-shadow:0 0 16px rgba(130,120,255,.35); }
.search-box { position:relative; }
.search-box input { padding:9px 14px 9px 34px; border-radius:20px; font-size:13px; color:#fff; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16); outline:none; width:200px; }
.search-box input:focus { border-color:rgba(150,140,255,.7); box-shadow:0 0 0 3px rgba(130,120,255,.15); }
.post-item { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:20px 22px; margin-bottom:14px; cursor:pointer; transition:.25s; }
.post-item:hover { transform: translateY(-2px); border-color:rgba(255,255,255,.4); box-shadow: 0 12px 30px rgba(60,40,200,.3); }
.post-main { min-width:0; flex:1; }
.post-title { font-size:16px; font-weight:700; margin-bottom:6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.post-title .lock { color:#ff9be8; font-size:12px; margin-right:4px; }
.post-preview { font-size:13px; color:#aeb4dc; opacity:.85; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.post-meta { font-size:12px; color:#8f96c4; margin-top:8px; display:flex; gap:14px; flex-wrap:wrap; }
.badge { display:inline-block; padding:3px 10px; border-radius:14px; font-size:11px; background: linear-gradient(135deg, rgba(140,120,255,.3), rgba(80,160,255,.18)); border:1px solid rgba(180,180,255,.3); color:#cfd6ff; margin-right:8px; vertical-align:1px; }
.post-stats { text-align:right; font-size:12px; color:#9aa1cc; white-space:nowrap; }
.post-stats b { color:#e6e9ff; font-size:14px; }
.empty-tip { text-align:center; color:#9aa1cc; padding:50px 0; font-size:14px; }

.pagination { display:flex; justify-content:center; gap:8px; margin:22px 0 10px; flex-wrap:wrap; }
.page-btn { min-width:34px; padding:7px 12px; border-radius:9px; font-size:13px; color:#cfd4f5; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); cursor:pointer; transition:.2s; }
.page-btn.on { background: linear-gradient(135deg,#8f7bff,#6fd6ff); color:#fff; border-color:transparent; }
.page-btn:disabled { opacity:.4; cursor:not-allowed; }

/* ---------- 帖子详情 ---------- */
.post-detail-card { max-width:880px; margin:0 auto; padding:30px 30px 26px; }
.pd-title { font-size:clamp(20px,3vw,26px); font-weight:800; line-height:1.4; margin-bottom:10px; }
.pd-meta { font-size:13px; color:#8f96c4; display:flex; gap:16px; flex-wrap:wrap; margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid rgba(255,255,255,.1); }
.pd-content { font-size:15px; color:#e6e9ff; line-height:1.95; word-break:break-word; }
.pd-content h1,.pd-content h2,.pd-content h3 { margin:18px 0 8px; color:#fff; line-height:1.4; }
.pd-content h2 { font-size:20px; } .pd-content h3 { font-size:17px; }
.pd-content p { margin:10px 0; }
.pd-content ul,.pd-content ol { margin:10px 0 10px 24px; }
.pd-content li { margin:4px 0; }
.pd-content code { background: rgba(255,255,255,.1); padding:2px 7px; border-radius:6px; font-size:13px; color:#ffe9a8; font-family:Consolas,monospace; }
.pd-content pre { background: rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.1); padding:14px; border-radius:10px; overflow-x:auto; margin:12px 0; }
.pd-content pre code { background:transparent; padding:0; color:#bcd2ff; }
.pd-content blockquote { border-left:3px solid rgba(140,120,255,.6); padding-left:12px; margin:12px 0; color:#bcd2ff; opacity:.9; }
.pd-content a { color:#8f9bff; text-decoration:none; } .pd-content a:hover{ text-decoration:underline; }
.pd-content img { max-width:100%; border-radius:10px; }

.reply-section { max-width:880px; margin:18px auto 0; padding:24px 26px; }
.reply-list { margin-top:8px; }
.reply-item { padding:16px 2px; border-bottom:1px solid rgba(255,255,255,.08); }
.reply-item:last-child { border-bottom:none; }
.reply-head { font-size:13px; color:#8f96c4; display:flex; gap:14px; align-items:baseline; margin-bottom:6px; }
.reply-head b { color:#e6e9ff; }
.reply-body { font-size:14px; color:#e3e7ff; line-height:1.85; word-break:break-word; }
.reply-form { margin-top:18px; }
.reply-form .field textarea { min-height:110px; }

/* ---------- 个人中心 ---------- */
.profile-grid { max-width:880px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.profile-card { padding:26px 26px 24px; }
.profile-card h3 { font-size:17px; margin-bottom:16px; text-shadow:0 0 12px rgba(160,140,255,.4); }
.info-row { display:flex; justify-content:space-between; font-size:14px; padding:9px 0; border-bottom:1px dashed rgba(255,255,255,.1); }
.info-row span:first-child { color:#aeb4dc; }
.info-row span:last-child { color:#fff; }
.machine-box { background: rgba(255,255,255,.05); border:1px dashed rgba(255,255,255,.2); border-radius:12px; padding:14px; margin-bottom:16px; }
.machine-box .mc-value { font-family:Consolas,monospace; font-size:14px; color:#ffe9a8; word-break:break-all; display:block; margin-top:6px; }
.machine-box .mc-empty { color:#9aa1cc; font-size:13px; }
.stat-card { display:flex; gap:14px; align-items:center; padding:20px 22px; margin-bottom:14px; }
.stat-card .num { font-size:30px; font-weight:800; background: linear-gradient(135deg,#ff9be8,#6fd6ff); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.stat-card .lbl { font-size:13px; color:#aeb4dc; }
.roles-pill { display:inline-block; padding:3px 12px; border-radius:14px; font-size:12px; background: linear-gradient(135deg, rgba(255,155,232,.22), rgba(111,214,255,.2)); border:1px solid rgba(255,190,240,.35); color:#ffd9f0; }

/* ---------- 页脚 ---------- */
footer { margin-top:30px; padding-bottom:26px; text-align:center; color:#a8aedb; font-size:13px; opacity:.8; }
footer b { color:#e6e9ff; font-weight:600; text-shadow:0 0 10px rgba(150,170,255,.5); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .site-nav {
    display:none; top:64px; right:14px; width:220px; flex-direction:column; align-items:stretch;
    padding:10px; gap:2px;
  }
  .site-nav.open { display:flex; animation: navDrop .28s ease; }
  .site-nav .nav-right { flex-direction:column; align-items:stretch; gap:2px; }
  .site-nav a { padding:10px 12px; }
  .nav-hamburger { display:flex; }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity:0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand { top:10px; left:14px; font-size:16px; }
  .container { padding:88px 14px 34px; }
  .profile-grid { grid-template-columns:1fr; }
  .forum-head { flex-direction:column; align-items:flex-start; }
  .search-box input { width:100%; }
  .post-stats { display:none; }
  .btn { padding:11px 20px; }
}
@keyframes navDrop { 0%{ opacity:0; transform:translateY(-8px);} 100%{ opacity:1; transform:translateY(0);} }
