/* ============================================================
   嵌入页样式（/app/* 服务端直出页面，显示在手机壳 iframe 内）
   深色玻璃质感，与手机屏幕氛围统一
   ============================================================ */
:root {
  --txt: #eef3ff;
  --txt-dim: rgba(238, 243, 255, .62);
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .12);
  --stroke: rgba(255, 255, 255, .14);
  --cyan: #67e8f9;
  --violet: #a78bfa;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body.embedded-page {
  font-family: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--txt);
  min-height: 100vh;
  background:
    radial-gradient(130% 70% at 50% -10%, rgba(56, 100, 200, .28), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(124, 58, 237, .18), transparent 60%),
    #070b18;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.page-wrap { max-width: 760px; margin: 0 auto; padding: 30px 18px 60px; }

/* ---------------- 页头 ---------------- */
.page-head { text-align: center; padding: 18px 0 22px; }
.page-head__emoji {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  background: linear-gradient(150deg, rgba(103, 232, 249, .25), rgba(129, 140, 248, .3));
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 26px -8px rgba(56, 189, 248, .5), 0 1px 0 rgba(255, 255, 255, .25) inset;
}
.page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.page-head p { color: var(--txt-dim); font-size: 13px; margin-top: 6px; }

/* ---------------- 列表页：搜索栏 + 分类下拉 ---------------- */
.listbar { display: flex; gap: 10px; margin-bottom: 20px; position: sticky; top: 10px; z-index: 5; }
.listbar__search {
  flex: 1; height: 44px; border-radius: 999px; padding: 0 18px; font-size: 14px; color: var(--txt);
  background: rgba(10, 14, 32, .72); border: 1px solid var(--stroke); outline: none;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .7);
}
.listbar__search::placeholder { color: rgba(238, 243, 255, .4); }
.listbar__search:focus { border-color: rgba(103, 232, 249, .6); box-shadow: 0 0 0 3px rgba(103, 232, 249, .15); }
.listbar__cat {
  flex: none; height: 44px; border-radius: 999px; padding: 0 16px; font-size: 13px; color: var(--txt);
  background: rgba(10, 14, 32, .72); border: 1px solid var(--stroke); outline: none;
  backdrop-filter: blur(14px); appearance: none; text-align: center;
}
.listbar__cat option { background: #0c1228; color: var(--txt); }

/* ---------------- 内容卡片列表 ---------------- */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-card {
  display: flex; gap: 14px; padding: 12px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .1) inset;
  transition: transform .18s cubic-bezier(.22, 1.4, .36, 1), border-color .2s;
}
.news-card:active { transform: scale(.98); }
.news-card:hover { border-color: rgba(103, 232, 249, .45); }
.card-cover {
  flex: none; width: 96px; height: 96px; border-radius: 14px;
  background-size: cover; background-position: center;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7);
}
.card-cover--ph {
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  background: linear-gradient(150deg, rgba(56, 189, 248, .3), rgba(99, 102, 241, .35));
}
.news-card__body { flex: 1; min-width: 0; }
.news-card__tag {
  display: inline-block; font-size: 10.5px; padding: 2px 10px; border-radius: 999px;
  background: rgba(103, 232, 249, .15); border: 1px solid rgba(103, 232, 249, .3); color: #a5f3fc;
  margin-bottom: 6px;
}
.news-card__body h3 { font-size: 15.5px; font-weight: 700; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.news-card__body p { font-size: 12.5px; color: var(--txt-dim); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-card__meta { font-size: 11px; color: rgba(238, 243, 255, .45); margin-top: 8px; }

.empty { text-align: center; color: var(--txt-dim); font-size: 13px; padding: 46px 0;
  background: var(--glass); border: 1px dashed var(--stroke); border-radius: 18px; }
.empty a { color: var(--cyan); }

/* ---------------- 文章详情 ---------------- */
.article { }
.article__head { margin-bottom: 18px; }
.article__tag { display: inline-block; font-size: 11px; padding: 3px 12px; border-radius: 999px;
  background: rgba(167, 139, 250, .18); border: 1px solid rgba(167, 139, 250, .35); color: #ddd6fe; margin-bottom: 10px; }
.article__head h1 { font-size: 22px; font-weight: 800; line-height: 1.4; }
.article__meta { font-size: 12px; color: rgba(238, 243, 255, .45); margin-top: 8px; }
.article__summary { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px;
  background: var(--glass); border-left: 3px solid var(--cyan); color: var(--txt-dim); }
.article__cover { width: 100%; border-radius: 18px; margin: 16px 0; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .9); }
.article__content { font-size: 15px; line-height: 2; }
.article__content p { margin: 12px 0; }
.article__content h2, .article__content h3 { margin: 20px 0 8px; }
.article__content img, .content-img { width: 100%; border-radius: 14px; margin: 12px 0; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .8); }
.video-frame { position: relative; width: 100%; padding-top: 56.25%; border-radius: 16px; overflow: hidden; margin: 16px 0;
  background: #000; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .9); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article__back { margin-top: 28px; text-align: center; }
.article__back a { display: inline-block; padding: 10px 26px; border-radius: 999px; font-size: 13px;
  background: var(--glass-strong); border: 1px solid var(--stroke); }

/* ---------------- 富文本区块（简介） ---------------- */
.rich { display: flex; flex-direction: column; gap: 14px; }
.rich__block { padding: 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--stroke); }
.rich__block h2 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.rich__block p { font-size: 14px; color: var(--txt-dim); margin: 6px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.feat { text-align: center; padding: 18px 10px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.feat__ic { font-size: 30px; margin-bottom: 8px; filter: drop-shadow(0 0 12px rgba(103, 232, 249, .5)); }
.feat h3 { font-size: 14px; }
.feat p { font-size: 11.5px; margin-top: 4px; }

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.contact-card { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--stroke); }
.contact-card__ic { font-size: 22px; flex: none; }
.contact-card h3 { font-size: 12px; color: var(--txt-dim); font-weight: 500; }
.contact-card p { font-size: 13.5px; font-weight: 600; word-break: break-all; }
.contact-card a { color: var(--cyan); }
.qr-wrap { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 20px 0; }
.qr-item { text-align: center; padding: 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--stroke); }
.qr-item img { width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 6px; }
.qr-item span { display: block; margin-top: 8px; font-size: 12px; color: var(--txt-dim); }
.map-tip { text-align: center; font-size: 12px; color: var(--txt-dim); padding: 12px;
  background: rgba(103, 232, 249, .08); border: 1px dashed rgba(103, 232, 249, .3); border-radius: 14px; }

/* ---------------- 网站地图 ---------------- */
.sm-h2 { font-size: 15px; margin: 22px 0 12px; color: var(--txt-dim); font-weight: 600; }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sm-link {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--stroke);
  transition: transform .18s cubic-bezier(.22, 1.4, .36, 1), border-color .2s;
}
.sm-link:active { transform: scale(.97); }
.sm-link:hover { border-color: rgba(103, 232, 249, .45); }
.sm-link__ic {
  flex: none; width: 42px; height: 42px; border-radius: 12px; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(103, 232, 249, .2), rgba(129, 140, 248, .28));
  border: 1px solid var(--stroke);
}
.sm-link span { font-size: 14px; font-weight: 600; }
.sm-link small { display: block; font-size: 11px; color: var(--txt-dim); font-weight: 400; margin-top: 2px; }

@media (max-width: 420px) {
  .contact-grid { grid-template-columns: 1fr; }
  .page-wrap { padding: 22px 14px 50px; }
}
