/* =========================================================
   乾坤BOT - 全局样式 (科技蓝风格)
   配色：
     深海蓝 #0A4B8C  - 导航/标题/页脚
     亮科技蓝 #1E90FF - 按钮/链接/强调
     浅天蓝 #E8F4FD   - 卡片背景
     纯白 #FFFFFF     - 大面积背景
     深灰蓝 #2C3E50   - 正文文字
     淡蓝 #D6EAF8    - 分割线
     橙色 #FF8C00    - 点缀（新标签/下载图标）
   ========================================================= */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #2C3E50;
  background: #FFFFFF;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #1E90FF; text-decoration: none; transition: color .3s; }
a:hover { color: #0A4B8C; }
img { max-width: 100%; height: auto; }

/* ---------- 导航栏 ---------- */
.navbar {
  background: #0A4B8C;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(10,75,140,.3);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}
.navbar .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.navbar .logo span { color: #1E90FF; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .9rem;
  transition: all .3s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Hero 区 ---------- */
.hero {
  background: linear-gradient(135deg, #071b33 0%, #0a3a6e 40%, #0f5aa8 70%, #1a7ad4 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  overflow: hidden;
}

/* 右上角装饰动图 — 摇头机器人背景层 */
.hero-bg-robot {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
}

.hero-robot-deco {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(30,144,255,.25));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%);
}

/* 文字在上层 */
.hero h1, .hero p, .hero .btn-group {
  position: relative;
  z-index: 1;
}

.hero h1 { font-size: 2.6rem; margin-bottom: 12px; letter-spacing: 2px; }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 30px; }
.hero .btn-group { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* 彩虹欢迎光束 — 单次缓扫，七彩长光带 */
.hero-lightbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

/* 主光带 — 横向长条，纵向细窄，彩虹渐变，从左滑到右 */
.lightbar-beam {
  position: absolute;
  top: 5%;
  left: -65%;
  width: 70%;
  height: 85px;
  background: linear-gradient(90deg,
    rgba(255,60,60,0.5) 5%,        /* 红 */
    rgba(255,180,0,0.5) 18%,       /* 橙 */
    rgba(255,255,60,0.55) 30%,     /* 黄 */
    rgba(60,255,80,0.5) 42%,       /* 绿 */
    rgba(60,200,255,0.55) 55%,     /* 青/蓝 */
    rgba(130,130,255,0.55) 68%,    /* 靛蓝 */
    rgba(220,110,255,0.5) 80%,     /* 紫 */
    rgba(255,120,200,0.45) 92%     /* 粉 */
  );
  border-radius: 16px;
  filter: blur(5px);
  box-shadow: 0 0 20px rgba(100,150,255,0.2);
  animation: rainbowSweep 10s ease-in-out 1 forwards;
  -webkit-animation: rainbowSweep 10s ease-in-out 1 forwards;
}

/* 第二道尾光 — 稍后跟上，更淡的拖影 */
.lightbar-beam-2 {
  position: absolute;
  top: 5%;
  left: -65%;
  width: 60%;
  height: 48px;
  background: linear-gradient(90deg,
    rgba(200,100,255,0.25) 15%,
    rgba(80,200,255,0.3) 40%,
    rgba(60,255,180,0.25) 60%,
    transparent 85%
  );
  border-radius: 12px;
  filter: blur(8px);
  animation: trailSweep 10s ease-in-out 1 forwards;
  -webkit-animation: trailSweep 10s ease-in-out 1 forwards;
}

@keyframes rainbowSweep {
  0%   { left: -65%; opacity: 0; }
  10%  { left: -65%; opacity: 0.4; }
  18%  { left: -65%; opacity: 1; }
  55%  { left: 20%;  opacity: 1; }
  85%  { left: 75%;  opacity: 0.6; }
  95%  { left: 95%;  opacity: 0.2; }
  100% { left: 105%; opacity: 0; }
}

@-webkit-keyframes rainbowSweep {
  0%   { left: -65%; opacity: 0; }
  10%  { left: -65%; opacity: 0.4; }
  18%  { left: -65%; opacity: 1; }
  55%  { left: 20%;  opacity: 1; }
  85%  { left: 75%;  opacity: 0.6; }
  95%  { left: 95%;  opacity: 0.2; }
  100% { left: 105%; opacity: 0; }
}

@keyframes trailSweep {
  0%   { left: -65%; opacity: 0; }
  22%  { left: -65%; opacity: 0; }
  30%  { left: -65%; opacity: 0.5; }
  60%  { left: 15%;  opacity: 0.6; }
  88%  { left: 70%;  opacity: 0.3; }
  95%  { left: 90%;  opacity: 0.1; }
  100% { left: 100%; opacity: 0; }
}

@-webkit-keyframes trailSweep {
  0%   { left: -65%; opacity: 0; }
  22%  { left: -65%; opacity: 0; }
  30%  { left: -65%; opacity: 0.5; }
  60%  { left: 15%;  opacity: 0.6; }
  88%  { left: 70%;  opacity: 0.3; }
  95%  { left: 90%;  opacity: 0.1; }
  100% { left: 100%; opacity: 0; }
}
}

.hero .btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: all .3s;
  border: 2px solid transparent;
}
.hero .btn-primary {
  background: #fff;
  color: #0A4B8C;
}
.hero .btn-primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.hero .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .hero { padding: 50px 20px 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-bg-robot { width: 120px !important; height: 120px !important; opacity: .2; }
  /* 手机端彩虹光束缩放 */
  .lightbar-beam,
  .lightbar-beam-2 {
    height: 50px !important;
    top: 4% !important;
  }
  .lightbar-beam { border-radius: 10px; }
  .lightbar-beam-2 { border-radius: 8px; }
}

/* ---------- 标题光效线 ---------- */
.section-title {
  font-size: 1.5rem;
  color: #0A4B8C;
  margin-bottom: 24px;
  padding-bottom: 10px;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1E90FF, #63B3FF);
  border-radius: 2px;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.card {
  background: #E8F4FD;
  border-radius: 12px;
  padding: 24px;
  transition: all .3s;
  cursor: default;
}
a.card {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(30,144,255,.2);
}
.card h3 { color: #0A4B8C; font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: .9rem; color: #555; line-height: 1.6; }
.card .tag {
  display: inline-block;
  background: #1E90FF;
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: .75rem;
  margin-top: 10px;
}

/* ---------- 文章列表 ---------- */
.article-list { list-style: none; }
.article-item {
  padding: 16px 0;
  border-bottom: 1px solid #D6EAF8;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.article-item:last-child { border-bottom: none; }
.article-item .date {
  min-width: 70px;
  font-size: .8rem;
  color: #888;
  text-align: right;
}
.article-item .title { font-size: 1rem; color: #2C3E50; }
.article-item .title:hover { color: #1E90FF; cursor: pointer; }

/* ---------- 新闻滚动条 ---------- */
.news-ticker {
  background: #E8F4FD;
  border-radius: 10px;
  padding: 12px 20px;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 30px;
}
.news-ticker-inner {
  display: inline-block;
  animation: ticker 45s linear infinite;
}
.news-ticker-inner span,
.news-ticker-inner a {
  margin-right: 120px;
  font-size: .9rem;
  color: #1E90FF;
  text-decoration: underline;
  cursor: pointer;
  transition: color .2s;
}
.news-ticker-inner a:hover { color: #0A4B8C; }
.news-ticker-inner span::before { content: '• '; color: #FF6B35; font-weight: bold; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- 文章页 ---------- */
.article-page { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.article-page h1 { font-size: 2rem; color: #0A4B8C; margin-bottom: 10px; }
.article-page .meta {
  color: #888;
  font-size: .85rem;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid #D6EAF8;
}
.article-page .content { font-size: 1.05rem; line-height: 1.9; }
.article-page .content p { margin-bottom: 16px; }
.article-page .content h2 { color: #0A4B8C; margin: 32px 0 12px; font-size: 1.4rem; }

/* ---------- 下载链接 ---------- */
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E8F4FD;
  color: #0A4B8C;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all .3s;
}
.download-link:hover {
  background: #1E90FF;
  color: #fff;
}

.download-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #eee;
}
.download-name {
  font-weight: 600;
  flex: 1;
  min-width: 180px;
}
.download-meta {
  font-size: .82rem;
  color: #999;
}

/* ---------- 底部版权 ---------- */
footer {
  background: #0A4B8C;
  color: rgba(255,255,255,.8);
  text-align: center;
  padding: 30px 20px;
  margin-top: auto;
  font-size: .85rem;
  line-height: 2;
}
footer a { color: #63B3FF; }
footer a:hover { color: #fff; }

/* ---------- 管理员入口 ---------- */
.admin-link {
  color: rgba(255,255,255,.3) !important;
  font-size: .75rem;
  margin-left: 10px;
  transition: color .3s;
}
.admin-link:hover { color: rgba(255,255,255,.8) !important; }

/* ---------- 淡入上滑动画 ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- 容器 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

/* ---------- 文章水印（透明） ---------- */
.watermark {
  opacity: 0;
  font-size: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- 404/500 页面 ---------- */
.error-page {
  text-align: center;
  padding: 100px 20px;
}
.error-page h1 { font-size: 4rem; color: #0A4B8C; }
.error-page p { font-size: 1.2rem; color: #666; margin: 20px 0; }

/* ---------- 页面内容区 ---------- */
.page-content { max-width: 800px; margin: 40px auto; padding: 0 20px; }

/* ---------- 建设中页面 ---------- */
.coming-soon {
  text-align: center;
  padding: 80px 20px;
}
.coming-soon h2 { font-size: 2rem; color: #0A4B8C; margin-bottom: 16px; }

/* ===== Twikoo 评论区样式 ===== */
/* 隐藏网址输入框——按 name 属性定位 */
.tk-meta-input .el-input-group:has(input[name="link"]) {
  display: none !important;
}
/* 邮箱选填提示加在 prepend 里 */
.tk-meta-input .el-input-group:has(input[name="mail"]) .el-input-group__prepend::after {
  content: '（选填）';
  font-size: 12px;
  color: #999;
  font-weight: normal;
  margin-left: 4px;
}
/* 昵称必填星标 */
.tk-meta-input .el-input-group:has(input[name="nick"]) .el-input-group__prepend::after {
  content: ' *';
  color: #e74c3c;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .navbar-inner { height: 50px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: #0A4B8C;
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  .nav-links.open { display: flex; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 50px 20px 40px; }
  .card-grid { grid-template-columns: 1fr; }
  .article-item { flex-direction: column; }
  .article-item .date { text-align: left; min-width: auto; }
}