/* 骏杰AI建站 · 响应式样式（PC / 移动自适应） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: #333; background: #f5f6f8; line-height: 1.7; }
a { color: #2b6cb0; text-decoration: none; }
a:hover { color: #1a4971; }
img { max-width: 100%; display: block; }
.container { width: 1200px; max-width: 94%; margin: 0 auto; }

/* 顶部条 */
.topbar { background: #1a2b4a; color: #cdd6e4; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; padding: 8px 0; }
.topbar a { color: #cdd6e4; }

/* 导航 */
.header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 22px; font-weight: 700; color: #1a2b4a; }
.logo span { color: #2b6cb0; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 10px 16px; color: #333; border-radius: 6px; font-size: 15px; }
.nav a:hover, .nav a.on { background: #2b6cb0; color: #fff; }

/* Banner */
.banner { margin: 16px auto; }
.banner .slide { position: relative; border-radius: 10px; overflow: hidden; }
.banner img { width: 100%; height: 380px; object-fit: cover; }
.banner .cap { position: absolute; left: 0; bottom: 0; width: 100%; padding: 24px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); font-size: 22px; font-weight: 700; }

/* 区块标题 */
.section { margin: 28px auto; }
.section .hd { display: flex; align-items: baseline; border-left: 4px solid #2b6cb0; padding-left: 12px; margin-bottom: 16px; }
.section .hd h2 { font-size: 20px; color: #1a2b4a; }
.section .hd .more { margin-left: auto; font-size: 13px; color: #999; }

/* 卡片网格 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card .body { padding: 14px; }
.card .body h3 { font-size: 16px; margin-bottom: 6px; }
.card .body .meta { font-size: 12px; color: #999; }
.card .body p { font-size: 13px; color: #666; margin-top: 6px; }

/* 列表条目 */
.news-list li { list-style: none; border-bottom: 1px dashed #e3e6ea; padding: 12px 0; display: flex; }
.news-list li .date { color: #999; font-size: 13px; margin-right: 14px; white-space: nowrap; }
.news-list li a { font-size: 15px; }

/* 位置面包屑 */
.position { font-size: 13px; color: #888; padding: 14px 0; }
.position a { color: #888; }
.position .sep { margin: 0 6px; color: #bbb; }
.position .cur { color: #2b6cb0; }

/* 两栏布局 */
.layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.side .box { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 18px; }
.side .box h4 { font-size: 15px; margin-bottom: 10px; color: #1a2b4a; border-bottom: 2px solid #2b6cb0; padding-bottom: 8px; }
.side .box a { display: block; padding: 6px 0; color: #555; font-size: 14px; }
.catlist a { display: inline-block; padding: 6px 14px; background: #eef2f7; border-radius: 20px; margin: 0 8px 8px 0; font-size: 14px; }

/* 详情 */
.article { background: #fff; border-radius: 10px; padding: 30px; }
.article h1 { font-size: 26px; color: #1a2b4a; margin-bottom: 10px; }
.article .meta { color: #999; font-size: 13px; border-bottom: 1px solid #eee; padding-bottom: 12px; margin-bottom: 18px; }
.article .content { font-size: 15px; color: #444; }
.article .content p { margin-bottom: 14px; }

/* 友情链接 */
.links { background: #fff; border-radius: 10px; padding: 16px; }
.links a { display: inline-block; margin: 0 14px 8px 0; color: #666; font-size: 14px; }

/* 页脚 */
.footer { background: #1a2b4a; color: #cdd6e4; margin-top: 40px; padding: 30px 0; font-size: 13px; }
.footer .container { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer h4 { color: #fff; margin-bottom: 12px; }
.footer a { color: #cdd6e4; }

/* 表单 */
.kj-form .form-item { margin-bottom: 14px; }
.kj-form label { display: block; margin-bottom: 6px; font-size: 14px; }
.kj-form label .req { color: #e53e3e; }
.kj-form input, .kj-form textarea { width: 100%; padding: 10px; border: 1px solid #d6dbe3; border-radius: 6px; font-size: 14px; }
.kj-btn { background: #2b6cb0; color: #fff; border: 0; padding: 10px 28px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.kj-btn:hover { background: #1a4971; }

/* 响应式 */
@media (max-width: 768px) {
  .container { width: 100%; }
  .header .container { height: auto; flex-direction: column; padding: 10px 0; gap: 8px; }
  .nav { justify-content: center; }
  .banner img { height: 100px; }
  .banner .cap { font-size: 16px; padding: 14px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; }
  .article { padding: 18px; }
  .article h1 { font-size: 20px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .banner img { height: 70px; }
}

/* 搜索框 */
.search { display: flex; margin-left: 16px; }
.search input { width: 170px; padding: 8px 12px; border: 1px solid #d6dbe3; border-right: 0; border-radius: 6px 0 0 6px; font-size: 14px; outline: none; }
.search button { padding: 8px 16px; background: #2b6cb0; color: #fff; border: 0; border-radius: 0 6px 6px 0; cursor: pointer; font-size: 14px; }
.search button:hover { background: #1a4971; }

/* 搜索 / TAG 聚合结果 */
.result-bar { background: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; color: #555; font-size: 14px; border-left: 4px solid #2b6cb0; }
.result-bar b { color: #2b6cb0; }
.search-item { background: #fff; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.search-item h3 { font-size: 17px; margin-bottom: 6px; }
.search-item h3 a { color: #1a2b4a; }
.search-item .meta { font-size: 13px; color: #999; margin-bottom: 6px; }
.search-item p { font-size: 14px; color: #666; }
.search-empty { text-align: center; color: #999; padding: 40px 0; }

@media (max-width: 768px) {
  .search { width: 100%; margin: 8px 0 0; }
  .search input { flex: 1; width: auto; }
}

/* 分页条 */
.pagination { margin: 18px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span.cur, .pagination span.disabled, .pagination span.dots {
  display: inline-block; min-width: 30px; padding: 5px 10px; text-align: center;
  border: 1px solid #d9dee5; border-radius: 4px; font-size: 13px; color: #1a2b4a; background: #fff; text-decoration: none;
}
.pagination span.cur { background: #1a2b4a; color: #fff; border-color: #1a2b4a; }
.pagination span.disabled { color: #bbb; background: #f5f6f8; }
.pagination span.dots { border: none; background: none; }
.pagination a:hover { border-color: #1a2b4a; }
.pagination .info { margin-left: auto; font-size: 13px; color: #888; }

/* ============================================================
   「现代组件库」风格增强（借鉴 Uiverse / Aceternity / React Bits）
   全部为纯 CSS（无 JS），服务端渲染模板直接可用。
   用法：在模板里给元素加对应 class，或在 AI 生成的模板/在线编辑器中引用。
   ============================================================ */

/* 渐变主按钮（多彩渐变风） */
.btn-grad {
  display: inline-block; padding: 12px 28px; border: none; border-radius: 10px;
  color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none;
  background: linear-gradient(135deg, #6366f1, #a855f7 50%, #ec4899);
  background-size: 180% 180%;
  transition: background-position .35s ease, transform .2s ease, box-shadow .25s ease;
  box-shadow: 0 6px 18px rgba(168, 85, 247, .25);
}
.btn-grad:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(168, 85, 247, .38);
}
.btn-grad:active { transform: translateY(0); }

/* 霓虹发光按钮（深色科技风） */
.btn-neon {
  display: inline-block; padding: 12px 28px; border: 1px solid #22d3ee;
  border-radius: 10px; color: #22d3ee; background: transparent; font-size: 15px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 0 8px rgba(34, 211, 238, .5), inset 0 0 8px rgba(34, 211, 238, .18);
  transition: box-shadow .25s ease, background .25s ease, color .25s ease, transform .2s ease;
}
.btn-neon:hover {
  background: rgba(34, 211, 238, .14); color: #a5f3fc;
  box-shadow: 0 0 18px rgba(34, 211, 238, .85), inset 0 0 12px rgba(34, 211, 238, .3);
  transform: translateY(-2px);
}

/* 玻璃拟态卡片（Glassmorphism） */
.glass-card {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.glass-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(31, 38, 135, .2); }

/* 渐变文字标题（Aceternity 风） */
.grad-text {
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #f59e0b);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 4s linear infinite;
}
@keyframes grad-shift { to { background-position: 200% center; } }

/* Banner 淡入动画 */
.banner .slide { animation: fade-in .8s ease both; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* 产品卡片：图片 hover 微缩放 + 标题色变（克制微交互） */
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card img { transition: transform .4s ease; }
.card:hover img { transform: scale(1.05); }
.card h3 a { transition: color .2s ease; }
.card:hover h3 a { color: #2b6cb0; }

/* 新闻列表：行 hover 背景 + 标题色 */
.news-list li { padding: 10px 8px; border-radius: 6px; transition: background .2s ease; }
.news-list li:hover { background: #f5f8fc; }
.news-list li a { transition: color .2s ease; }
.news-list li:hover a { color: #2b6cb0; }

/* 友情链接：hover 下划线生长 */
.links a { position: relative; padding-bottom: 2px; }
.links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: #2b6cb0; transition: width .25s ease;
}
.links a:hover::after { width: 100%; }

/* 无障碍：尊重系统「减少动态效果」偏好（React Bits 同款理念） */
@media (prefers-reduced-motion: reduce) {
  .banner .slide, .grad-text { animation: none; }
  .card, .btn-grad, .btn-neon, .glass-card { transition: none; }
}

