/* ============================================
   臻云官网 前台样式 v2.0（深色科技风）
   设计规范：深蓝黑底 + 蓝紫青渐变 + 玻璃拟态 + 发光
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --card: rgba(255,255,255,.035);
  --card-border: rgba(255,255,255,.09);
  --card-hover: rgba(255,255,255,.06);
  --text: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --primary: #3b82f6;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --grad: linear-gradient(135deg, #3b82f6, #8b5cf6 55%, #22d3ee);
  --glow: 0 0 24px rgba(99,102,241,.35);
}
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}
/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(59,130,246,.13), transparent 60%),
    radial-gradient(600px 400px at 50% 110%, rgba(34,211,238,.07), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
a { color: #7ea8ff; text-decoration: none; transition: color .2s; }
a:hover { color: #a5c4ff; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
code {
  background: rgba(99,102,241,.14);
  border: 1px solid rgba(99,102,241,.25);
  padding: 1px 7px; border-radius: 6px;
  font-size: 12.5px; color: #93c5fd;
  font-family: Consolas, "Courier New", monospace;
}
.mono { font-family: Consolas, "Courier New", monospace; }

/* 页签（用户中心登录/注册） */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
.tabs a {
  padding: 10px 20px; font-size: 14px; color: var(--text-2);
  border-bottom: 2px solid transparent; transition: all .2s; font-weight: 600;
}
.tabs a:hover { color: #fff; }
.tabs a.active { color: #fff; border-bottom-color: var(--violet); }

/* 双列栅格（前台） */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- 头部 ---------- */
.site-header {
  background: rgba(9,13,24,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  font-size: 22px; font-weight: 800; letter-spacing: 1px;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  position: relative;
}
.logo::after {
  content: "";
  position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--grad); border-radius: 2px; opacity: .5;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--text-2); padding: 8px 15px; border-radius: 8px;
  font-size: 14px; transition: all .2s; position: relative;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a.active {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(139,92,246,.22));
  box-shadow: inset 0 0 0 1px rgba(99,102,241,.4);
}
.nav a.nav-admin {
  border: 1px solid rgba(255,255,255,.16); margin-left: 8px;
  background: rgba(255,255,255,.04);
}
.nav a.nav-admin:hover { border-color: var(--violet); box-shadow: var(--glow); }

/* ---------- Hero Banner ---------- */
.banner {
  position: relative; overflow: hidden;
  background: var(--bg-2);
  padding: 96px 0 84px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
/* 网格底纹 */
.banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.07) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
/* 光晕 */
.banner::after {
  content: "";
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 860px; height: 420px;
  background: radial-gradient(ellipse, rgba(99,102,241,.30), rgba(139,92,246,.12) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.banner-inner { position: relative; z-index: 1; }
.banner-badges { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.banner-badges span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #a5b4fc;
  border: 1px solid rgba(139,92,246,.35);
  background: rgba(139,92,246,.1);
  padding: 5px 13px; border-radius: 24px;
}
.banner-badges span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.banner-text h2 {
  font-size: 44px; font-weight: 800; margin-bottom: 16px; letter-spacing: 2px;
  background: linear-gradient(120deg, #fff 30%, #a5b4fc 60%, #67e8f9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.banner-text p { font-size: 16px; color: var(--text-2); max-width: 680px; margin-bottom: 32px; line-height: 1.9; }
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .25s; border: none; text-align: center;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 18px rgba(99,102,241,.4);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 26px rgba(99,102,241,.55); }
.btn-outline {
  background: rgba(255,255,255,.04); color: #dbeafe;
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #a5b4fc; color: #fff; }
.btn-sm { padding: 8px 20px; font-size: 13px; border-radius: 8px; }
.btn-block { display: block; width: 100%; padding: 13px 20px; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid rgba(255,255,255,.16); }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.banner-btns { display: flex; gap: 14px; }

/* 提示与消息 */
.tip { font-size: 12px; color: var(--text-3); line-height: 1.8; margin-top: 6px; }
.flash {
  padding: 12px 16px; border-radius: 10px; font-size: 13.5px; line-height: 1.8;
  margin-bottom: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
}

/* ---------- 数据统计条 ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin: -70px auto 44px; position: relative; z-index: 2;
}
.stat-item {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 20px 18px; text-align: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: all .25s;
}
.stat-item:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.5); box-shadow: var(--glow); }
.stat-num {
  font-size: 30px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-family: Consolas, monospace;
}
.stat-label { font-size: 12.5px; color: var(--text-2); margin-top: 4px; letter-spacing: 1px; }

/* ---------- 版块 ---------- */
.main { padding-bottom: 60px; }
.section { margin-bottom: 46px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; position: relative; padding-left: 16px;
}
.section-head::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 20px; border-radius: 4px; background: var(--grad);
  box-shadow: 0 0 12px rgba(99,102,241,.7);
}
.section-head h3 { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.section-head .more { font-size: 13px; color: var(--text-3); }
.section-head .more:hover { color: #a5b4fc; }

/* ---------- 置顶公告 ---------- */
.top-list { list-style: none; }
.top-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 10px; margin-bottom: 8px;
  transition: all .2s;
}
.top-list li:hover { background: var(--card-hover); border-color: rgba(139,92,246,.45); }
.top-list li a { color: var(--text); font-size: 14px; font-weight: 500; }
.top-list li a:hover { color: #a5b4fc; }
.top-list .date { color: var(--text-3); font-size: 12px; flex-shrink: 0; margin-left: 16px; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.product-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 24px 22px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: all .25s;
}
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .25s;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139,92,246,.5);
  box-shadow: 0 12px 34px rgba(2,6,23,.5), var(--glow);
}
.product-card:hover::before { opacity: 1; }
.product-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 6px 16px rgba(99,102,241,.4);
}
.product-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.product-version {
  display: inline-block; font-size: 12px; color: #a5b4fc;
  border: 1px solid rgba(139,92,246,.4); background: rgba(139,92,246,.12);
  padding: 2px 10px; border-radius: 20px; margin-bottom: 12px;
}
.product-desc { color: var(--text-2); font-size: 13px; min-height: 44px; }
.product-code { color: var(--text-3); font-size: 12px; margin-top: 12px; }
.product-code code { background: rgba(30,41,59,.8); color: #67e8f9; border-color: rgba(34,211,238,.3); }

/* ---------- 文章列表 ---------- */
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-item {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 20px 24px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: all .25s;
}
.article-item:hover { background: var(--card-hover); border-color: rgba(99,102,241,.45); transform: translateX(4px); }
.article-info h4 { font-size: 16px; margin-bottom: 6px; }
.article-info h4 a { color: var(--text); }
.article-info h4 a:hover { color: #a5b4fc; }
.article-summary { color: var(--text-2); font-size: 13px; margin-bottom: 10px; }
.article-meta { color: var(--text-3); font-size: 12px; display: flex; gap: 14px; align-items: center; }
.article-meta .cat {
  background: rgba(99,102,241,.16); color: #a5b4fc;
  border: 1px solid rgba(99,102,241,.3);
  padding: 1px 12px; border-radius: 20px; font-size: 11.5px;
}
.tag-top {
  background: linear-gradient(135deg, rgba(245,158,11,.9), rgba(239,68,68,.9));
  color: #fff; font-size: 11px; padding: 1px 9px; border-radius: 6px;
  margin-left: 8px; vertical-align: 2px;
}

/* ---------- 分类标签 ---------- */
.cat-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-tags a {
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--text-2); padding: 8px 20px; border-radius: 24px;
  font-size: 13px; transition: all .2s;
}
.cat-tags a:hover {
  border-color: var(--violet); color: #fff; background: rgba(139,92,246,.14);
  box-shadow: 0 0 14px rgba(139,92,246,.25);
}

/* ---------- 对接指南（终端风格） ---------- */
.guide-box {
  background: #0d1424;
  border: 1px solid rgba(99,102,241,.28);
  border-radius: 14px; padding: 22px 28px;
  box-shadow: inset 0 0 40px rgba(99,102,241,.05);
}
.guide-box ol { padding-left: 22px; }
.guide-box li { font-size: 14px; color: var(--text-2); line-height: 2.3; }
.guide-box li b { color: #93c5fd; }
.guide-box code { background: rgba(30,41,59,.8); }

/* ---------- 列表页布局 ---------- */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 34px 0 24px; flex-wrap: wrap; gap: 12px;
}
.page-head h2 { font-size: 24px; font-weight: 700; position: relative; padding-left: 16px; }
.page-head h2::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px;
  border-radius: 4px; background: var(--grad);
}
.search-form { display: flex; gap: 8px; }
.search-form input {
  width: 230px; padding: 10px 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; font-size: 13px; color: var(--text); outline: none;
  transition: all .2s;
}
.search-form input::placeholder { color: var(--text-3); }
.search-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.search-form button {
  padding: 10px 22px; background: var(--grad); color: #fff; border: none;
  border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.search-form button:hover { box-shadow: var(--glow); transform: translateY(-1px); }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.layout-main { min-width: 0; }
.layout-side .side-box { margin-bottom: 18px; }
.side-box {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.side-box h4 {
  font-size: 15px; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08); position: relative;
}
.side-box h4::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.side-cats { list-style: none; }
.side-cats li { margin-bottom: 4px; }
.side-cats a {
  color: var(--text-2); font-size: 14px; display: block; padding: 8px 12px;
  border-radius: 8px; transition: all .15s;
}
.side-cats a:hover, .side-cats a.active {
  background: rgba(99,102,241,.14); color: #fff;
  border-left: 3px solid var(--violet);
}

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination a {
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--text-2); padding: 8px 15px; border-radius: 8px; font-size: 13px;
  transition: all .2s;
}
.pagination a.current {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(99,102,241,.4);
}
.pagination a:hover:not(.current) { border-color: var(--violet); color: #fff; }

/* ---------- 文章详情 ---------- */
.breadcrumb { font-size: 13px; color: var(--text-3); margin: 26px 0 16px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: #a5b4fc; }
.article-detail {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 36px 40px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.article-title {
  font-size: 26px; margin-bottom: 12px; line-height: 1.45;
  background: linear-gradient(120deg, #fff, #a5b4fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.article-content { color: #cbd5e1; font-size: 15px; line-height: 2; }
.article-content h2, .article-content h3 { color: #fff; margin: 22px 0 10px; }
.article-content a { color: #7ea8ff; }
.article-content img { max-width: 100%; border-radius: 10px; }
.article-content pre {
  background: #0d1424; border: 1px solid rgba(99,102,241,.25);
  border-radius: 10px; padding: 16px; overflow: auto;
}
.article-content code { background: rgba(30,41,59,.8); }

/* ---------- 授权查询 ---------- */
.query-form { display: flex; gap: 10px; margin-bottom: 22px; }
.query-form input {
  flex: 1; padding: 14px 18px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px; font-size: 15px; letter-spacing: 1.5px;
  color: #fff; outline: none; text-transform: uppercase;
  font-family: Consolas, monospace;
  transition: all .2s;
}
.query-form input::placeholder { color: var(--text-3); letter-spacing: 0; }
.query-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.14); }
.query-form button {
  padding: 14px 36px; background: var(--grad); color: #fff; border: none;
  border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all .2s;
}
.query-form button:hover { box-shadow: var(--glow); transform: translateY(-1px); }
.query-result {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; overflow: hidden;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.query-status {
  padding: 18px 24px; font-size: 17px; font-weight: 700;
  border-bottom: 1px solid var(--card-border);
}
.query-status.ok {
  background: linear-gradient(135deg, rgba(16,185,129,.16), rgba(16,185,129,.05));
  color: #34d399;
}
.query-status.fail {
  background: linear-gradient(135deg, rgba(239,68,68,.16), rgba(239,68,68,.05));
  color: #f87171;
}
.query-table { width: 100%; border-collapse: collapse; }
.query-table td { padding: 13px 24px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.query-table td:first-child { color: var(--text-3); width: 140px; }
.query-tip {
  padding: 13px 24px;
  background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(245,158,11,.04));
  color: #fbbf24; font-size: 13px; border-top: 1px solid var(--card-border);
}

/* ---------- 空状态 / 页脚 ---------- */
.empty { text-align: center; color: var(--text-3); padding: 50px 0; font-size: 14px; }
.site-footer {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.07);
  background: #060a12;
  color: var(--text-3); padding: 32px 0; text-align: center; font-size: 13px;
  margin-top: 20px;
}
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
}
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: #a5b4fc; }
.site-footer p { margin-bottom: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .banner { padding: 60px 0 56px; }
  .banner-text h2 { font-size: 30px; }
  .stat-strip { margin-top: -52px; }
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; gap: 10px; }
  .nav { flex-wrap: wrap; justify-content: center; }
  .query-form { flex-direction: column; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .search-form { width: 100%; }
  .search-form input { flex: 1; width: auto; }
  .article-detail { padding: 24px 20px; }
}
