:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --dark: #1f2937;
  --text-main: #22262a;
  --text-sub: #5c646d;
  --text-muted: #8b949e;
  --border: #e5e7eb;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

.top-mini-bar { background: #181a1f; color: #b5bcc6; font-size: 12px; text-align: center; padding: 8px 10px; }
.mini-links { font-size: 12px; font-weight: 400; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.mini-links a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--primary); color: #fff;
  font-size: 18px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 20px; font-weight: 800; color: var(--dark); }

.site-nav .menu { display: flex; gap: 22px; align-items: center; }
.site-nav .menu > li { position: relative; }
.site-nav .menu > li > a { font-size: 14px; font-weight: 500; color: var(--text-sub); padding: 20px 0; display: block; }
.site-nav .menu > li.active > a, .site-nav .menu > li > a:hover { color: var(--primary); }
.sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 140px;
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  box-shadow: var(--shadow); padding: 6px 0; z-index: 20;
}
.has-sub:hover .sub-menu { display: block; }
.sub-menu a { display: block; padding: 8px 16px; font-size: 13px; color: var(--text-sub); }
.sub-menu a:hover { background: var(--bg); color: var(--primary); }

.right-nav { display: flex; align-items: center; gap: 10px; position: relative; }
.right-nav button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; justify-content: center;
}
.right-nav button:hover { border-color: var(--primary); color: var(--primary); }

.msg-wrap { position: relative; }
.msg-dropdown {
  display: none; position: absolute; right: 0; top: 44px; width: 320px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); padding: 12px 14px; z-index: 950;
}
.msg-dropdown.open { display: block; }
.msg-dropdown li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 12px; display: flex; gap: 8px; }
.msg-dropdown .time { color: var(--text-muted); flex-shrink: 0; }
.msg-dropdown a { color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-dropdown a:hover { color: var(--primary); }
.more-messages { text-align: center; padding-top: 8px; font-size: 12px; }
.more-messages a { color: var(--primary); font-weight: 600; }

.nav-toggle { display: none !important; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--dark); }

.top-content { padding: 24px 0 18px; }
.top-grid { display: grid; grid-template-columns: 1.85fr 1fr; gap: 18px; }

.hero-slider { position: relative; height: 360px; border-radius: 10px; overflow: hidden; }
.slide-item {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease; display: flex; align-items: flex-end; padding: 28px;
}
.slide-item.active { opacity: 1; pointer-events: auto; }
.bg-s1 { background: linear-gradient(135deg, #0f4c81, #1e88e5); }
.bg-s2 { background: linear-gradient(135deg, #1b4332, #2d6a4f); }
.bg-s3 { background: linear-gradient(135deg, #4a154b, #9c27b0); }
.bg-s4 { background: linear-gradient(135deg, #1e293b, #475569); }
.slider-cat {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
}
.slider-content h2 { font-size: 24px; color: #fff; line-height: 1.35; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.slider-dots { position: absolute; right: 20px; bottom: 18px; display: flex; gap: 8px; z-index: 5; }
.slider-dots button {
  width: 8px; height: 8px; border-radius: 99px; border: none;
  background: rgba(255, 255, 255, 0.5); cursor: pointer;
}
.slider-dots button.active { width: 22px; background: #fff; }

.hot-articles { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; }
.hots-headline { font-size: 17px; border-left: 4px solid var(--primary); padding-left: 10px; margin-bottom: 14px; color: var(--dark); }
.hots-item { margin-bottom: 14px; }
.hots-image { height: 140px; border-radius: 8px; margin-bottom: 10px; }
.bg-h1 { background: linear-gradient(135deg, #2b5876, #4e4376); }
.hots-item h3 { font-size: 15px; line-height: 1.45; color: var(--text-main); }
.hots-item a:hover h3 { color: var(--primary); }
.hots-title { padding: 10px 0; border-top: 1px dashed var(--border); font-size: 14px; color: var(--text-sub); }
.hots-title a:hover { color: var(--primary); }

.access-section { padding: 10px 0 20px; }
.access-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.access-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow);
}
.qr-box { width: 88px; height: 88px; border: 1px solid var(--border); border-radius: 8px; padding: 5px; background: #fff; flex-shrink: 0; }
.qr-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.access-info { display: flex; flex-direction: column; gap: 5px; }
.os-tag { width: fit-content; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: #e0e7ff; color: var(--primary); }
.os-tag.ios { background: #fce7f3; color: #be185d; }
.access-info h3 { font-size: 16px; color: var(--dark); }
.access-info p { font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.btn-access {
  width: fit-content; padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #fff;
}
.btn-android { background: var(--dark); }
.btn-android:hover { background: #374151; }
.btn-ios { background: var(--primary); }
.btn-ios:hover { background: var(--primary-hover); }

.recommend-content { padding: 0 0 20px; }
.video-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  height: 240px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, #111827, #1e3a8a); border: 1px solid var(--border);
}
.play-circle {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(37, 99, 235, 0.9);
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
}
.video-label { font-size: 15px; font-weight: 600; padding: 0 16px; text-align: center; }

.thumbnail-cat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.index-cat-box {
  position: relative; height: 180px; border-radius: 10px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 18px; color: #fff;
}
.bg-c1 { background: linear-gradient(135deg, #c2410c, #ea580c); }
.bg-c2 { background: linear-gradient(135deg, #0369a1, #0284c7); }
.bg-c3 { background: linear-gradient(135deg, #15803d, #16a34a); }
.overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 60%); }
.index-cat-box .title { position: relative; z-index: 2; }
.index-cat-box span { font-size: 12px; opacity: 0.9; display: block; margin-bottom: 4px; }
.index-cat-box h3 { font-size: 16px; line-height: 1.4; }

.main-content { padding: 10px 0 48px; }
.content-layout { display: grid; grid-template-columns: 1fr 330px; gap: 22px; align-items: start; }

.posts-con { display: flex; flex-direction: column; gap: 16px; }
.post-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px; display: flex; gap: 18px; box-shadow: var(--shadow);
}
.post-item:hover { border-color: rgba(37, 99, 235, 0.4); }
.post-thumb {
  width: 200px; height: 136px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px;
}
.bg-p1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-p2 { background: linear-gradient(135deg, #0d9488, #0f766e); }
.bg-p3 { background: linear-gradient(135deg, #d97706, #b45309); }
.bg-p4 { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.post-body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.post-body h2 { font-size: 18px; line-height: 1.4; color: var(--dark); }
.post-body h2 a:hover { color: var(--primary); }
.posts-text { font-size: 13px; color: var(--text-sub); line-height: 1.65; }
.post-meta { margin-top: auto; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.post-meta a:hover { color: var(--primary); }

.load-more-wrap { text-align: center; margin-top: 22px; }
.load-more-btn {
  display: inline-block; padding: 10px 36px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); color: var(--text-sub); font-size: 14px; font-weight: 600;
}
.load-more-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.sidebar-col { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px; box-shadow: var(--shadow); }
.widget h3 { font-size: 16px; color: var(--dark); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.widget h3 span { border-left: 3px solid var(--primary); padding-left: 8px; }

.recent-posts-widget .one a, .hot-post-cards li a {
  position: relative; display: flex; align-items: flex-end; height: 130px;
  border-radius: 8px; overflow: hidden; padding: 14px; color: #fff; margin-bottom: 12px;
}
.recent-posts-widget .one .title, .hot-post-cards .title { position: relative; z-index: 2; }
.recent-posts-widget .one span, .hot-post-cards span { font-size: 11px; opacity: 0.85; }
.recent-posts-widget .one h4, .hot-post-cards h4 { font-size: 14px; line-height: 1.4; margin-top: 4px; }
.recent-posts-widget .others { padding: 10px 0; border-top: 1px dashed var(--border); }
.recent-posts-widget .others h4 { font-size: 13px; color: var(--text-main); line-height: 1.45; margin-bottom: 4px; }
.recent-posts-widget .others a:hover h4 { color: var(--primary); }
.recent-posts-widget .others span { font-size: 11px; color: var(--text-muted); }

.tag-items { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-item {
  font-size: 12px; color: var(--text-sub); background: var(--bg);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 4px;
}
.tag-item:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.social-list { display: flex; flex-direction: column; gap: 10px; }
.social-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; background: var(--bg); border-radius: 6px; font-size: 13px;
}
.social-list a:hover { background: #e0e7ff; color: var(--primary); }
.social-list em { font-style: normal; font-size: 12px; color: var(--text-muted); }

.site-footer { background: #181a1f; color: #9ca3af; padding: 38px 0 28px; text-align: center; }
.social-footer { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.social-footer a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.08);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.social-footer a:hover { background: var(--primary); }
.nav-footer { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; }
.nav-footer a:hover { color: #fff; }
.copyright-footer { font-size: 12px; margin-bottom: 12px; }
.copyright-footer a:hover { color: #fff; }
.links-footer { font-size: 12px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.links-footer a:hover { color: #fff; }

.search-modal {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(15, 23, 42, 0.86); align-items: center; justify-content: center; padding: 20px;
}
.search-modal.open { display: flex; }
.search-modal-box { display: flex; width: 100%; max-width: 520px; background: #fff; border-radius: 999px; overflow: hidden; padding: 5px; }
.search-modal-box input { flex: 1; border: none; outline: none; padding: 10px 18px; font-size: 15px; }
.search-modal-box button { background: var(--primary); color: #fff; border: none; padding: 0 24px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.close-search { position: absolute; top: 24px; right: 28px; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; }

@media (max-width: 960px) {
  .top-grid, .content-layout, .access-grid, .thumbnail-cat { grid-template-columns: 1fr; }
  .hero-slider { height: 280px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex !important; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px;
  }
  .site-nav.open { display: block; }
  .site-nav .menu { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-nav .menu > li { width: 100%; }
  .site-nav .menu > li > a { padding: 10px 0; }
  .post-item { flex-direction: column; }
  .post-thumb { width: 100%; height: 150px; }
}