:root {
  --blue-primary: #1565C0;
  --blue-light: #1E88E5;
  --blue-accent: #42A5F5;
  --blue-pale: #E3F2FD;
  --blue-dark: #0D47A1;
  --white: #ffffff;
  --gray-light: #F5F7FA;
  --gray-mid: #E8ECF0;
  --gray-text: #5A6472;
  --text-dark: #1A2332;
  --shadow-sm: 0 2px 8px rgba(21,101,192,0.08);
  --shadow-md: 0 4px 20px rgba(21,101,192,0.14);
  --shadow-lg: 0 8px 40px rgba(21,101,192,0.18);
  --radius: 12px;
  --radius-lg: 18px;
}

html { overflow-x: hidden; overflow-y: auto; }
body { background: var(--white); color: var(--text-dark); }

/* ===== SEARCH BAR ===== */
.search-wrap {
  width: 100%;
  background: linear-gradient(180deg, #f0f5fc 0%, #fff 100%);
  border-bottom: 1px solid #e3ecf7;
  padding: 14px 0 12px;
}
.search-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #c5d8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(21,101,192,0.07);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
  border-color: var(--blue-primary);
  box-shadow: 0 2px 16px rgba(21,101,192,0.15);
}
.search-icon {
  margin-left: 16px;
  color: #90aac8;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  font-size: 15px;
  color: #333;
  padding: 11px 14px;
  background: transparent !important;
  font-family: 'Noto Sans SC', sans-serif;
  box-shadow: none !important;
}
.search-input::placeholder { color: #b0c4d8; }
.search-btn {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  color: #fff;
  border: none;
  padding: 0 24px;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}
.search-btn:hover { opacity: 0.9; }
.search-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.search-tag-label { font-size: 12px; color: #90aac8; }
.search-tag {
  font-size: 12px;
  color: var(--blue-primary);
  background: #e8f0fb;
  padding: 2px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.15s;
}
.search-tag:hover { background: #c5d8f0; }

/* ===== BANNER ===== */
.banner {
  width: 100%;
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.banner-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: block;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.5s ease both;
  line-height: 0;
}
.banner-inner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* ===== MAIN ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .bar {
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--blue-primary), var(--blue-accent));
  border-radius: 4px;
}
.section-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}
.section-more {
  font-size: 13px;
  color: var(--blue-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.section-more:hover { color: var(--blue-primary); }

/* ===== ARTICLE GRID ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 52px;
  animation: fadeUp 0.5s ease 0.1s both;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-accent));
  opacity: 0;
  transition: opacity 0.25s;
}
.article-card:hover {
  border-color: var(--blue-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.article-card:hover::before { opacity: 1; }

.card-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 3px 0;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.category-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'FontAwesome';
  font-size: 12px;
  font-weight: normal;
  font-style: normal;
  color: white;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.article-card:nth-child(6n+1) .category-icon { background: #1565C0; }
.article-card:nth-child(6n+1) .category-icon::before { content: '\f0ea'; }
.article-card:nth-child(6n+1) .card-category { color: #1565C0; }
.article-card:nth-child(6n+2) .category-icon { background: #F57F17; }
.article-card:nth-child(6n+2) .category-icon::before { content: '\f005'; }
.article-card:nth-child(6n+2) .card-category { color: #F57F17; }
.article-card:nth-child(6n+3) .category-icon { background: #E65100; }
.article-card:nth-child(6n+3) .category-icon::before { content: '\f075'; }
.article-card:nth-child(6n+3) .card-category { color: #E65100; }
.article-card:nth-child(6n+4) .category-icon { background: #C62828; }
.article-card:nth-child(6n+4) .category-icon::before { content: '\f095'; }
.article-card:nth-child(6n+4) .card-category { color: #C62828; }
.article-card:nth-child(6n+5) .category-icon { background: #6A1B9A; }
.article-card:nth-child(6n+5) .category-icon::before { content: '\f02d'; }
.article-card:nth-child(6n+5) .card-category { color: #6A1B9A; }
.article-card:nth-child(6n+6) .category-icon { background: #006064; }
.article-card:nth-child(6n+6) .category-icon::before { content: '\f07a'; }
.article-card:nth-child(6n+6) .card-category { color: #006064; }

.card-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}
.card-items li {
  display: flex;
  align-items: center;
  font-size: 12.5px;
  color: var(--gray-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-light);
}
.card-items li:last-child { border-bottom: none; }

.item-rank {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-text);
  flex-shrink: 0;
  margin-right: 8px;
}
.card-items li:nth-child(1) .item-rank { background: #FFF3E0; color: #E65100; }
.card-items li:nth-child(2) .item-rank { background: #F5F5F5; color: #616161; }
.card-items li:nth-child(3) .item-rank { background: #FBE9E7; color: #BF360C; }

.item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dark);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.2s;
}
.item-text:hover { color: var(--blue-primary); }
.item-views {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #bbb;
  flex-shrink: 0;
  margin-left: 6px;
}
.item-views svg { flex-shrink: 0; }

/* ===== OPENCLAW GRID ===== */
.openclaw-section { margin-bottom: 48px; }

.oc-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #0D47A1, #1E88E5);
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-left: 8px;
}

.openclaw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  animation: fadeUp 0.5s ease 0.2s both;
}

.oc-card {
  background: linear-gradient(145deg, #F0F7FF, #EBF5FF);
  border: 1px solid #BBDEFB;
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.oc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s;
}
.oc-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--blue-accent);
}
.oc-card:hover::after { transform: scaleX(1); }

.oc-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(21,101,192,0.3);
}
.oc-icon svg { width: 32px; height: 32px; color: white; }

.oc-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 10px 0;
}
.oc-card p {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.65;
  margin: 0 0 20px 0;
}
.oc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-primary);
  color: white !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
}
.oc-btn:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(21,101,192,0.4);
  color: white !important;
}

/* ===== FOOTER ===== */
footer {
  background: #111927 !important;
  color: rgba(255,255,255,0.55);
  padding: 44px 24px 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 40px;
}
.footer-brand .fn {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; max-width: 260px; line-height: 1.7; margin: 0; }
.footer-links-group { display: flex; gap: 60px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5) !important;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--blue-accent) !important; }
/* Footer contact QR + phone */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-qrcode {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.12);
  display: block;
  object-fit: cover;
}
.footer-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.75) !important;
  font-weight: 500;
  margin: 0;
}
.footer-phone svg {
  flex-shrink: 0;
  color: var(--blue-accent);
}
.footer-hours {
  font-size: 12px;
  color: rgba(255,255,255,0.35) !important;
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 12px;
}
.footer-bottom a { color: var(--blue-accent) !important; text-decoration: none; }

/* ===== VIDEO OVERLAY ===== */
.vueShadow { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.6); z-index: 99; display: none; }
.vueShadow.active { display: block; }
.videoShow { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 100; display: none; max-width: 900px; width: 90%; }
.videoShow.active { display: block; }
.videoShow video { width: 100%; border-radius: var(--radius); }

/* ===== POPUP ===== */
.ageTip-pop { padding: 20px; }
.ageTip-pop .pop-agemain h3 { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.ageTip-pop .ageTip-con { max-height: 60vh; overflow-y: auto; font-size: 14px; line-height: 1.8; color: var(--gray-text); }
.floatAd { border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow 0.3s; }
.floatAd:hover { box-shadow: var(--shadow-md); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .openclaw-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-inner { height: 280px; }
  .footer-top { flex-direction: column; gap: 24px; }
}
@media (max-width: 768px) {
  .article-grid { grid-template-columns: 1fr; }
  .openclaw-grid { grid-template-columns: 1fr; }
  .main-content { padding: 24px 16px 40px; }
  .section-title h2 { font-size: 18px; }
  .banner-inner { height: 200px; }
  .search-inner { padding: 0 16px; }
  .footer-links-group { flex-direction: column; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
