/* ============================================================
   易腾网络 前台新版 UI（设计手册 v0.3 落地版）
   覆盖：全站 token / 导航 / 页脚 / 首页 / 应用列表 / 公告列表 / 详情页 / 留言页
   注意：登录注册弹窗样式在 includes/auth_modal.php 内（含滑块验证，逻辑勿动）
   ============================================================ */

:root {
  --bg: #F6F8FA;
  --ink: #242B38;
  --ink-2: #5A6472;
  --ink-3: #8A93A1;
  --line: #D9DEE6;
  --card: #FFFFFF;
  --radius: 12px;
  --nav-h: 66px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-y: scroll; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* body 是 flex column：直接子级 section/main 必须显式全宽，
   否则 margin:auto 会吃掉 stretch，空内容的 section 会收缩塌陷 */
body > section,
body > main { width: 100%; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }

/* ---------- 导航栏 ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
}

.nav-row {
  max-width: 1080px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.nav-logo-img {
  height: 36px;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

/* 公司名：灰色加粗 + 渐变流动（复用标语渐变） */
.nav-company {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nc-txt { color: var(--ink-2); }

.nc-grad {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(90deg, #9C7C50, #A6AEBB, #9C7C50);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-flow 3.6s linear infinite;
}

/* 中段按钮组：绝对定位真居中 */
.nav-tabs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  height: 100%;
}

.nav-tab {
  position: relative;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: none;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  transition: color .3s;
}

/* 悬停：渐变背景从顶部向下冒出，四周留空隙（每按钮专属配色） */
.nav-tab::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: 10px;
  border-radius: 0 0 9px 9px;
  transform: translateY(calc(-100% - 10px));
  transition: transform .38s cubic-bezier(.22,.61,.36,1);
}

.nav-tab:nth-child(1)::before { background: linear-gradient(to top, rgba(0,147,233,.16), rgba(128,208,199,.09) 55%, rgba(128,208,199,0)); }
.nav-tab:nth-child(2)::before { background: linear-gradient(to top, rgba(251,194,235,.16), rgba(166,193,238,.09) 55%, rgba(166,193,238,0)); }
.nav-tab:nth-child(3)::before { background: linear-gradient(to top, rgba(0,176,155,.16), rgba(150,201,61,.09) 55%, rgba(150,201,61,0)); }
.nav-tab:nth-child(4)::before { background: linear-gradient(to top, rgba(161,140,209,.16), rgba(251,194,235,.09) 55%, rgba(251,194,235,0)); }

.nav-tab:hover::before { transform: translateY(0); }

.nav-tab:hover,
.nav-tab.on { color: var(--ink); }

/* 按钮间 1px 垂直渐隐分隔线 */
.nav-tab + .nav-tab::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, rgba(90,100,114,0), rgba(90,100,114,.5), rgba(90,100,114,0));
}

/* 底线：比背景稍深，两端渐隐融入 */
.nav-line {
  height: 1px;
  background: var(--line);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
}

.nav-act {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-login,
.nav-reg {
  font-size: 13px;
  color: var(--ink-2);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  transition: color .25s, background .25s;
}

.nav-sep {
  flex: none;
  width: 1px;
  height: 22px;
  align-self: center;
  background: linear-gradient(to bottom, rgba(90,100,114,0), rgba(90,100,114,.5), rgba(90,100,114,0));
}

.nav-login:hover,
.nav-reg:hover { color: var(--ink); background: rgba(36,43,56,.06); }

/* 登录态：用户名 + 会员中心/退出 */
.nav-user {
  font-size: 13px;
  color: var(--ink);
  padding: 0 4px;
}
.nav-mini {
  font-size: 13px;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .25s, background .25s;
}
.nav-mini:hover { color: var(--ink); background: rgba(36,43,56,.06); }

/* ---------- 页脚（简单一行） ---------- */

.site-footer {
  border-top: .5px solid rgba(36,43,56,.06);
  padding: 22px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.8;
}

.site-footer a { color: var(--ink-3); transition: color .2s; }
.site-footer a:hover { color: var(--ink); }
.site-footer .sep { margin: 0 8px; }

/* ---------- 返回顶部 ---------- */

.back-top {
  position: fixed; right: 32px; bottom: 32px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden;
  transition: all .3s; z-index: 900; border: none;
  font-size: 18px;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: #161A23; }

/* ---------- 首页：主标语 ---------- */

.hero {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 62px 40px 8px;
  text-align: center;
}

.hero-title {
  display: inline-block;
  text-align: left;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 5px;
}

.hero .line { display: block; overflow: hidden; }
.hero .line + .line { margin-top: 26px; }

.line-inner {
  display: inline-block;
  position: relative;
  transform: translateY(112%);
  animation: line-up 1.25s cubic-bezier(.22,.61,.36,1) forwards;
}

.line:nth-child(2) .line-inner { animation-delay: 1.15s; }

.txt { color: #A6AEBB; }

/* 渐变层：2号渐变的淡色版，只在文字上着色并流动 */
.txt-grad {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  background: linear-gradient(90deg, #ffa1a1, #ffe08e, #ffa1a1);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
  animation: grad-in .5s ease forwards, grad-flow 3.6s linear infinite;
}

@keyframes line-up { to { transform: translateY(0); } }
@keyframes grad-in { to { opacity: 1; } }
@keyframes grad-flow {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

/* ---------- 首页：扇形卡片轨道 ---------- */

.carousel-sec {
  position: relative;
  padding: 0 0 30px;
  overflow-x: clip;
}

.fan-stage {
  position: relative;
  height: 470px;
  perspective: 1400px;
}

.fan-card {
  position: absolute;
  left: 50%;
  top: 100px;
  width: 190px;
  margin-left: -95px;
  background: var(--card);
  border-radius: 10px;
  padding: 3px;
  cursor: pointer;
  display: block;
  overflow: hidden;
  will-change: transform;
  transform-origin: center center;
  box-shadow: 0 8px 26px rgba(36,43,56,.07);
}

.fan-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 7px;
  background: #E9EDF3;
  overflow: hidden;
}

.fan-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

/* ---------- 应用展示大卡：走马灯卡片点击后 FLIP 变身（rotateY 翻转飞出） ---------- */

.showcase {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  transition: visibility .7s;
}

/* 毛玻璃背景独立一层，淡入淡出不影响卡片自身动画（模糊度较轻，保持清晰感） */
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246,248,250,.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s;
}

.showcase.open { visibility: visible; }
.showcase.open::before { opacity: 1; }

.showcase-card {
  position: relative;
  width: min(620px, 78vw);
  aspect-ratio: 3 / 2;       /* 压扁高度：3:2 横版 */
  padding: 6px;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(36,43,56,.16);
  will-change: transform;
}

.showcase-body {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  background: rgba(233,237,243,.4);
  display: flex;
  gap: 20px;
  padding: 20px;
  overflow: hidden;
}

.sc-media {
  flex: none;
  height: 100%;
  aspect-ratio: 3 / 4;       /* 缩略图完整 3:4 显示，不裁切 */
  width: auto;
  border-radius: 8px;
  overflow: hidden;
  background: #E9EDF3;
}

.sc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.sc-info {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* 内容靠上对齐 */
  gap: 10px;
  padding: 4px 4px 4px 0;
}

.sc-name { font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* 简介容器：高度自适应到左侧图片底边（占满剩余空间） */
.sc-desc-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.sc-desc {
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-3);
  /* 超出可用高度时以省略号收尾（行数由 JS 按可用高度计算），不出现滚动条 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.sc-link { font-size: 12px; color: #3E7BFA; align-self: flex-start; }
.sc-link:hover { text-decoration: underline; }

.showcase-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #A6AEBB;
  color: #fff;
  font-size: 19px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(36,43,56,.16);
  transition: background .25s, transform .25s;
}

.showcase-close:hover { background: #8A93A1; transform: scale(1.06); }

/* ---------- 应用列表页 ---------- */

.apps-sec {
  max-width: 940px;
  margin: 0 auto;
  padding: 44px 40px 80px;
}

.apps-grid {
  position: relative;
  transition: height .5s cubic-bezier(.22,.61,.36,1);
}

.appcard {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  background: var(--card);
  border-radius: 10px;
  padding: 3px;
  cursor: pointer;
  will-change: transform;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), width .5s cubic-bezier(.22,.61,.36,1), height .5s cubic-bezier(.22,.61,.36,1), box-shadow .35s;
}

.appcard:hover {
  box-shadow: 0 14px 34px rgba(36,43,56,.14);
  z-index: 5;
}

.app-thumb {
  flex: none;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  background: #E9EDF3;
  overflow: hidden;
}

.app-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

/* 悬停扩出来的信息区：展开完成后整块出现，不做依次淡入 */
.app-info {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 14px 12px 10px 4px;
  opacity: 0;
}

.appcard:hover .app-info { opacity: 1; transition: opacity 0s .5s; }

.ai-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-desc {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

/* 占位色 5 色循环（无图时） */
.appcard:nth-child(5n+1) .app-thumb { background: #DCEEE8; }
.appcard:nth-child(5n+2) .app-thumb { background: #E4E1F6; }
.appcard:nth-child(5n+3) .app-thumb { background: #F7E3EA; }
.appcard:nth-child(5n+4) .app-thumb { background: #F3ECDB; }
.appcard:nth-child(5n+5) .app-thumb { background: #E1EAF7; }

/* ---------- 公告列表页 ---------- */

.ann-sec {
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 40px 80px;
}

.ann-sec.split {
  max-width: 1080px;
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.ann-list { min-height: 492px; }

.ann-sec.split .ann-list { flex: 0 0 300px; min-height: 0; }

/* 分屏态：标题框紧凑不悬停展开摘要，只变色 */
.ann-sec.split .ann-item { padding: 8px 12px; }
.ann-sec.split .ann-item .ann-sum { display: none; }

.ann-item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: .5px solid rgba(36,43,56,.07);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  opacity: 0;
  animation: rise-in .55s cubic-bezier(.22,.61,.36,1) both;
  transition: box-shadow .25s, border-color .25s;
}

.ann-item:hover {
  box-shadow: 0 10px 28px rgba(36,43,56,.08);
  border-color: rgba(36,43,56,.12);
}

/* 悬停：底色自底部升起（与导航「公告」按钮同款配色） */
.ann-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,176,155,.16), rgba(150,201,61,.09) 55%, rgba(150,201,61,0));
  transform: translateY(101%);
  transition: transform .38s cubic-bezier(.22,.61,.36,1);
}

.ann-item:hover::before { transform: translateY(0); }

.ann-num, .ann-main, .ann-date { position: relative; z-index: 1; }

.ann-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}

.ann-item:nth-child(5n+1) .ann-num { background: #DCEEE8; }
.ann-item:nth-child(5n+2) .ann-num { background: #E4E1F6; }
.ann-item:nth-child(5n+3) .ann-num { background: #F7E3EA; }
.ann-item:nth-child(5n+4) .ann-num { background: #F3ECDB; }
.ann-item:nth-child(5n+5) .ann-num { background: #E1EAF7; }

.ann-main { flex: 1; min-width: 0; }

.ann-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ann-date { flex: none; font-size: 11.5px; color: var(--ink-3); }

.ann-sum {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.22,.61,.36,1);
}

.ann-sum > p {
  overflow: hidden;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
}

.ann-item:hover .ann-sum { grid-template-rows: 1fr; }

.ann-empty {
  text-align: center;
  color: var(--ink-3);
  padding: 60px 0;
  font-size: 14px;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* 分页 */
.ann-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.pg-btn {
  min-width: 34px;
  height: 34px;
  border: .5px solid rgba(36,43,56,.1);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all .25s;
}

.pg-btn:hover { border-color: rgba(36,43,56,.25); color: var(--ink); }
.pg-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pg-btn:disabled { opacity: .35; cursor: default; }

.ann-sec.split .ann-pager { display: none; }

/* ---------- 公告两态分屏：右侧大卡 ---------- */

.ann-detail {
  flex: 1;
  min-width: 0;
  position: relative;
  background: var(--card);
  border: .5px solid rgba(36,43,56,.07);
  border-radius: 14px;
  padding: 30px 32px 36px;
  box-shadow: 0 24px 60px rgba(36,43,56,.10);
  opacity: 0;
  /* 高度约束：最小对齐 8 个标题框底边，最高 10 个标题框，超出内部滚动 */
  min-height: 408px;   /* 实测标题框 44px × 8 条 + 间距 8px × 7，底边与第 8 条对齐 */
  max-height: 512px;   /* 实测标题框 44px × 10 条 + 间距 8px × 9 */
  overflow-y: auto;
}

.ann-detail::-webkit-scrollbar { width: 6px; }
.ann-detail::-webkit-scrollbar-track { background: transparent; }
.ann-detail::-webkit-scrollbar-thumb { background: rgba(36,43,56,.18); border-radius: 3px; }
.ann-detail::-webkit-scrollbar-thumb:hover { background: rgba(36,43,56,.3); }

.ann-sec:not(.split) .ann-detail { display: none; }

.ann-detail.in { opacity: 1; }

.ann-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #A6AEBB;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, transform .25s;
}

.ann-detail-close:hover { background: #8A93A1; transform: scale(1.06); }

.ann-detail h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  padding-right: 36px;
}

.ann-detail-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.ann-detail-body {
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-2);
  overflow: hidden;
}

/* ---------- 详情页通用（应用详情 / 公告详情，浅色版） ---------- */

.dt-sec {
  max-width: 940px;
  margin: 0 auto;
  padding: 30px 40px 80px;
}

.dt-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 6px 10px 6px 0;
  font-family: inherit;
  text-decoration: none;
  transition: color .25s;
}

.dt-back:hover { color: var(--ink); }

.dt-hero {
  text-align: center;
  padding: 26px 0 34px;
}

.dt-hero h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
  letter-spacing: 1px;
}

.dt-hero .hero-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-3);
  flex-wrap: wrap;
}

.dt-hero .hero-meta .cat {
  background: rgba(0,147,233,.1);
  color: #3E7BFA;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 12.5px;
}

.dt-main { display: flex; gap: 32px; margin-top: 10px; }

.dt-cover {
  flex: none;
  width: 300px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: #DCEEE8;
  border: 3px solid #fff;
  box-shadow: 0 14px 34px rgba(36,43,56,.10);
  overflow: hidden;
}

.dt-cover img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }

.dt-info { flex: 1; min-width: 0; padding-top: 6px; }

.dt-info h1 { font-size: 24px; font-weight: 600; letter-spacing: 1px; }

.dt-sub { margin-top: 8px; font-size: 13px; color: var(--ink-3); }

.dt-meta { margin-top: 18px; display: flex; gap: 28px; flex-wrap: wrap; }

.dt-meta div { font-size: 13px; color: var(--ink-2); }

.dt-meta span { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }

.dt-dl {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 44px;
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s, transform .25s;
}

.dt-dl:hover { background: #161A23; transform: translateY(-1px); }

.dt-block {
  margin-top: 40px;
}

.dt-block h2 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 14px;
}

/* 富文本正文（浅色卡片） */
.dt-rich {
  background: var(--card);
  border: .5px solid rgba(36,43,56,.07);
  border-radius: 14px;
  padding: 34px 38px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-3);
  overflow: hidden;
}

.dt-rich h2 {
  color: var(--ink);
  font-size: 19px;
  margin: 26px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--ink);
}

.dt-rich h2:first-child { margin-top: 0; }

.dt-rich h3 { color: var(--ink); font-size: 16px; margin: 20px 0 10px; }

.dt-rich p { margin-bottom: 16px; }

.dt-rich img { max-width: 100%; border-radius: 8px; margin: 18px 0; }

.dt-rich ul, .dt-rich ol { padding-left: 24px; margin-bottom: 16px; }

.dt-rich a { color: #3E7BFA; }

.dt-rich blockquote {
  margin: 16px 0;
  padding: 12px 20px;
  background: rgba(0,147,233,.06);
  border-left: 4px solid rgba(0,147,233,.35);
  color: var(--ink-2);
}

.dt-rich:empty::after { content: '暂无内容'; color: var(--ink-3); }

/* 截图行 */
.dt-shots-row { display: flex; gap: 16px; flex-wrap: wrap; }

.dt-shot {
  flex: none;
  width: 150px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: #E9EDF3;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(36,43,56,.08);
  overflow: hidden;
}

.dt-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 下载区（浅色版） */
.dl-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--card);
  border: .5px solid rgba(36,43,56,.07);
  border-radius: 12px;
  transition: all .25s;
}

.dl-item:hover {
  border-color: rgba(36,43,56,.18);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(36,43,56,.08);
}

.file-info { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }

.file-icon {
  width: 42px; height: 42px; border-radius: 10px;
  object-fit: contain; flex-shrink: 0; display: block;
}

.file-meta { min-width: 0; }

.file-name {
  font-size: 14px; color: var(--ink); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.file-size { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.btn-download {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 22px; background: var(--ink); color: #fff;
  text-decoration: none; font-size: 13.5px; border-radius: 8px;
  transition: background .25s; flex-shrink: 0; margin-left: 16px;
}

.btn-download:hover { background: #161A23; }

.dl-empty {
  padding: 36px; text-align: center; color: var(--ink-3);
  background: var(--card); border: .5px solid rgba(36,43,56,.07);
  border-radius: 12px; font-size: 14px;
}

/* ---------- 留言页（联系方式）：大毛玻璃卡片 + 柔光斑 + 鼠标倾斜（照搬预览） ---------- */

.contact-sec {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 40px 100px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* 卡片后方的柔和光斑：让毛玻璃有内容可磨 */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
}

.blob-1 { width: 280px; height: 280px; background: #cfe9f5; top: 50px; left: 22%; }
.blob-2 { width: 320px; height: 320px; background: #f5dcec; bottom: 20px; right: 20%; }
.blob-3 { width: 220px; height: 220px; background: #e4def6; top: 55%; left: 44%; }

.contact-card {
  position: relative;
  width: 660px;
  max-width: 100%;
  padding: 38px 46px 34px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(243,239,252,.88), rgba(236,238,250,.72));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 18px 50px rgba(36,43,56,.08);
  transition: transform .12s ease-out, box-shadow .3s;
  transform-style: preserve-3d;
}

.contact-card:hover { box-shadow: 0 26px 64px rgba(36,43,56,.12); }

.contact-card h2 { font-size: 20px; font-weight: 500; text-align: center; color: var(--ink); }

.contact-card .tip {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
}

.contact-card .form-group { margin-bottom: 20px; }

.contact-card .form-group label {
  display: block; margin-bottom: 8px;
  color: var(--ink-2); font-size: 13px; font-weight: 500;
}

.contact-card .form-group label .required { color: #e24b4a; margin-left: 4px; }
.contact-card .form-group label .optional { color: var(--ink-3); font-size: 12px; font-weight: normal; margin-left: 6px; }

.contact-card textarea,
.contact-card input[type="text"] {
  display: block;
  width: 100%; padding: 12px 16px;
  border: 1px solid rgba(36,43,56,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  color: var(--ink); font-size: 13px; font-family: inherit; line-height: 1.7;
  transition: border .25s, background .25s;
}

.contact-card textarea { resize: vertical; min-height: 150px; }

.contact-card textarea:focus,
.contact-card input[type="text"]:focus {
  outline: none; border-color: rgba(161,140,209,.65); background: #fff;
}

.contact-card textarea::placeholder,
.contact-card input[type="text"]::placeholder { color: #A6AEBB; }

.contact-card .char-count {
  text-align: right; font-size: 11.5px; color: var(--ink-3); margin-top: 6px;
}

.contact-card .char-count.over { color: #e24b4a; }

/* 提交按钮：淡雅色（浅灰底深字） */
.contact-btn {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: #B4621F;
  background: #F6D4AE;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background .25s;
}

.contact-btn:hover { background: #F0C08C; }
.contact-btn:disabled { background: #F0C9A8; cursor: not-allowed; }

.contact-card .alert {
  padding: 11px 15px; border-radius: 10px; margin-bottom: 18px; font-size: 12.5px;
}

.contact-card .alert-err {
  background: rgba(254,242,242,.9); color: #d64545;
  border: 1px solid rgba(239,68,68,.35);
}

/* 成功弹层（浅色） */
.success-mask {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(36,43,56,.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center; justify-content: center;
}

.success-mask.show { display: flex; }

.success-box {
  background: rgba(255,255,255,.95);
  border-radius: 16px;
  padding: 38px 46px; max-width: 440px; text-align: center;
  box-shadow: 0 24px 70px rgba(36,43,56,.2);
  animation: successPop .3s ease-out;
}

@keyframes successPop {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: #DCEEE8; color: #2E9E7E;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: bold; margin: 0 auto 18px;
}

.success-box h2 { font-size: 19px; color: var(--ink); margin-bottom: 10px; }

.success-box p { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin-bottom: 26px; }

.success-box .btn-ok {
  padding: 10px 40px; background: var(--ink); color: #fff;
  border: none; border-radius: 9px; font-size: 14px;
  cursor: pointer; transition: background .25s;
}

.success-box .btn-ok:hover { background: #161A23; }

/* ---------- 动效降级 ---------- *//* ---------- 动效降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  .fan-stage, .apps-grid { animation: none; }
  .line-inner { transform: none; animation: none; }
  .txt-grad { animation: none; opacity: 1; }
  .ann-item { animation: none; opacity: 1; }
}

@media (max-width: 900px) {
  .nav-tabs { display: none; }
  .hero-title { font-size: 34px; letter-spacing: 2px; }
}
