﻿/* ========== 全局 ========== */
* { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: radial-gradient(ellipse at center, #fff 0%, #e9e2e6 50%, #6a6266 100%);
  color: #333;
  min-height: 100vh;
}
a { text-decoration: none; }

/* ========== 导航条 ========== */
.navbar {
  background: linear-gradient(135deg, #3a4a5c 0%, #2c3e50 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  gap: 20px;
}
.logo {
  font-size: 22px;
  font-weight: bold;
  color: white;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 14px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.nav-actions { display: flex; gap: 10px; white-space: nowrap; }
.btn {
  padding: 8px 20px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.btn-outline {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { background: rgba(255,255,255,0.2); }

/* ========== 头图 + 搜索区 ========== */
.hero-banner {
  background: linear-gradient(180deg, #0a0e1a 0%, #0f1923 30%, #142850 60%, #1a2a4a 100%);
  position: relative;
  overflow: hidden;
  padding: 110px 20px 120px;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background:
    radial-gradient(circle at 25% 20%, rgba(30,80,160,0.18) 0%, transparent 55%),
    radial-gradient(circle at 75% 35%, rgba(20,60,140,0.12) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 20px;
  background: linear-gradient(to top, rgba(10,30,60,0.5), transparent);
  z-index: 0;
  pointer-events: none;
}

/* ========== 星空 + 流星特效（仅头图区域）========== */
.hero-banner .meteor-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at  10%  15%, rgba(255,255,255,0.9) 50%, transparent 100%),
    radial-gradient(1px 1px at  25%  30%, rgba(255,255,255,0.7) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at  40%  10%, rgba(200,220,255,1) 50%, transparent 100%),
    radial-gradient(1px 1px at  55%  25%, rgba(255,255,255,0.8) 50%, transparent 100%),
    radial-gradient(1px 1px at  70%  40%, rgba(255,255,255,0.6) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at  85%  20%, rgba(220,230,255,0.9) 50%, transparent 100%),
    radial-gradient(1px 1px at  15%  50%, rgba(255,255,255,0.7) 50%, transparent 100%),
    radial-gradient(1px 1px at  50%  55%, rgba(255,255,255,0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at  75%  60%, rgba(255,255,255,0.8) 50%, transparent 100%),
    radial-gradient(1px 1px at  90%  45%, rgba(255,255,255,0.6) 50%, transparent 100%),
    radial-gradient(1px 1px at  30%  70%, rgba(255,255,255,0.4) 50%, transparent 100%),
    radial-gradient(1px 1px at  60%  75%, rgba(255,255,255,0.7) 50%, transparent 100%),
    radial-gradient(1px 1px at  10%  85%, rgba(255,255,255,0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at  45%  90%, rgba(255,255,255,0.6) 50%, transparent 100%),
    radial-gradient(1px 1px at  80%  95%, rgba(255,255,255,0.4) 50%, transparent 100%),
    radial-gradient(1px 1px at   5%  35%, rgba(255,255,255,0.6) 50%, transparent 100%),
    radial-gradient(1px 1px at  35%  80%, rgba(255,255,255,0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at  65%  85%, rgba(200,220,255,0.7) 50%, transparent 100%),
    radial-gradient(1px 1px at  95%  70%, rgba(255,255,255,0.5) 50%, transparent 100%);
}
.hero-banner .meteor {
  position: absolute;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0.5) 60%, transparent);
  box-shadow: 0 0 6px 1px rgba(255,255,255,0.3);
  animation: meteorShoot 2s linear infinite;
  opacity: 0;
}
@keyframes meteorShoot {
  0%   { transform: translateX(0) translateY(0) rotate(-35deg); opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: 0.6; }
  100% { transform: translateX(-500px) translateY(350px) rotate(-35deg); opacity: 0; }
}

/* ========== 山丘背景（仅头图区域）========== */
/* 远山 - 最暗、最慢 */
.hero-banner .n-mountain-3 {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 32%; z-index: 3;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAwIDQwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PHBhdGggZD0iTTAgNDAwIEwwIDM0MCBMMTAwIDMyMCBMMjUwIDM2MCBMNDAwIDMwMCBMNTgwIDM1MCBMNzUwIDMxMCBMOTAwIDM2MCBMMTEwMCAzMjAgTDEzMDAgMzYwIEwxNTAwIDMwMCBMMTcwMCAzNTAgTDE5MDAgMzEwIEwyMTAwIDM2MCBMMjMwMCAzMjAgTDI0MDAgMzQwIEwyNDAwIDQwMFoiIGZpbGw9IiMyNTJhNDUiLz48cG9seWdvbiBwb2ludHM9IjEwMCwzMjAgMTAwLDM3NSAyNTAsMzYwIiBmaWxsPSIjMTgxZTM1Ii8+PHBvbHlnb24gcG9pbnRzPSI0MDAsMzAwIDQwMCwzNjUgNTgwLDM1MCIgZmlsbD0iIzE4MWUzNSIvPjxwb2x5Z29uIHBvaW50cz0iNzUwLDMxMCA3NTAsMzcwIDkwMCwzNjAiIGZpbGw9IiMxODFlMzUiLz48cG9seWdvbiBwb2ludHM9IjExMDAsMzIwIDExMDAsMzc1IDEzMDAsMzYwIiBmaWxsPSIjMTgxZTM1Ii8+PHBvbHlnb24gcG9pbnRzPSIxNTAwLDMwMCAxNTAwLDM2NSAxNzAwLDM1MCIgZmlsbD0iIzE4MWUzNSIvPjxwb2x5Z29uIHBvaW50cz0iMTkwMCwzMTAgMTkwMCwzNzAgMjEwMCwzNjAiIGZpbGw9IiMxODFlMzUiLz48cG9seWdvbiBwb2ludHM9IjIzMDAsMzIwIDIzMDAsMzc1IDI0MDAsMzQwIiBmaWxsPSIjMTgxZTM1Ii8+PC9zdmc+") repeat-x;
  background-size: 1200px 100%; background-position: 0 bottom;
  pointer-events: none;
  animation: mountainMove3 80s linear infinite;
}
/* 中山 */
.hero-banner .n-mountain-2 {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 40%; z-index: 4;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAwIDQwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PHBhdGggZD0iTTAgNDAwIEwwIDMzMCBMODAgMjkwIEwyMjAgMzUwIEwzODAgMjYwIEw1NDAgMzMwIEw3MDAgMjcwIEw4ODAgMzQwIEwxMDYwIDI1MCBMMTI0MCAzMzAgTDE0MjAgMjcwIEwxNjAwIDM0MCBMMTc4MCAyNjAgTDE5NjAgMzMwIEwyMTQwIDI4MCBMMjMyMCAzNDAgTDI0MDAgMzEwIEwyNDAwIDQwMFoiIGZpbGw9IiMzNTQwNzAiLz48cG9seWdvbiBwb2ludHM9IjgwLDI5MCA4MCwzNzAgMjIwLDM1MCIgZmlsbD0iIzI1MmE1MCIvPjxwb2x5Z29uIHBvaW50cz0iMzgwLDI2MCAzODAsMzQ1IDU0MCwzMzAiIGZpbGw9IiMyNTJhNTAiLz48cG9seWdvbiBwb2ludHM9IjcwMCwyNzAgNzAwLDM1MCA4ODAsMzQwIiBmaWxsPSIjMjUyYTUwIi8+PHBvbHlnb24gcG9pbnRzPSIxMDYwLDI1MCAxMDYwLDM0MCAxMjQwLDMzMCIgZmlsbD0iIzI1MmE1MCIvPjxwb2x5Z29uIHBvaW50cz0iMTQyMCwyNzAgMTQyMCwzNTAgMTYwMCwzNDAiIGZpbGw9IiMyNTJhNTAiLz48cG9seWdvbiBwb2ludHM9IjE3ODAsMjYwIDE3ODAsMzQ1IDE5NjAsMzMwIiBmaWxsPSIjMjUyYTUwIi8+PHBvbHlnb24gcG9pbnRzPSIyMTQwLDI4MCAyMTQwLDM1NSAyMzIwLDM0MCIgZmlsbD0iIzI1MmE1MCIvPjxwb2x5Z29uIHBvaW50cz0iMjQwMCwzMTAgMjQwMCwzNzAgMjQwMCwzMTAiIGZpbGw9IiMyNTJhNTAiLz48L3N2Zz4=") repeat-x;
  background-size: 1200px 100%; background-position: 0 bottom;
  pointer-events: none;
  animation: mountainMove2 55s linear infinite;
}
/* 近山 */
.hero-banner .n-mountain-1 {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 58%; z-index: 5;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDAwIDQwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PHBhdGggZD0iTTAgNDAwIEwwIDMxMCBMNjAgMjQwIEwyMDAgMzQwIEwzODAgMjAwIEw1NjAgMzIwIEw3NDAgMjMwIEw5MjAgMzUwIEwxMTIwIDE5MCBMMTMyMCAzMTAgTDE1MjAgMjIwIEwxNzIwIDM1MCBMMTkyMCAxODAgTDIxMjAgMzIwIEwyMzIwIDIxMCBMMjQwMCAyOTAgTDI0MDAgNDAwWiIgZmlsbD0iIzRhNTg4YSIvPjxwb2x5Z29uIHBvaW50cz0iNjAsMjQwIDYwLDM2MCAyMDAsMzQwIiBmaWxsPSIjMzU0MDcwIi8+PHBvbHlnb24gcG9pbnRzPSIzODAsMjAwIDM4MCwzNDAgNTYwLDMyMCIgZmlsbD0iIzM1NDA3MCIvPjxwb2x5Z29uIHBvaW50cz0iNzQwLDIzMCA3NDAsMzYwIDkyMCwzNTAiIGZpbGw9IiMzNTQwNzAiLz48cG9seWdvbiBwb2ludHM9IjExMjAsMTkwIDExMjAsMzQwIDEzMjAsMzEwIiBmaWxsPSIjMzU0MDcwIi8+PHBvbHlnb24gcG9pbnRzPSIxNTIwLDIyMCAxNTIwLDM1NSAxNzIwLDM1MCIgZmlsbD0iIzM1NDA3MCIvPjxwb2x5Z29uIHBvaW50cz0iMTkyMCwxODAgMTkyMCwzNDAgMjEyMCwzMjAiIGZpbGw9IiMzNTQwNzAiLz48cG9seWdvbiBwb2ludHM9IjIzMjAsMjEwIDIzMjAsMzU1IDI0MDAsMjkwIiBmaWxsPSIjMzU0MDcwIi8+PC9zdmc+") repeat-x;
  background-size: 1200px 100%; background-position: 0 bottom;
  pointer-events: none;
  animation: mountainMove1 35s linear infinite;
}
/* ========== 地面 ==========
   从上到下颜色过渡，可自行修改：
   - #2a3a5a = 上部深色（近山脚下的阴影色）
   - #4a6a9a = 中间过渡色（地面的中间层）
   - #e8ecf2 = 底部浅色（与页面背景衔接）
   修改这三个色值即可自定义地面颜色 */
.hero-banner .n-ground {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 12%; z-index: 6;
  background: linear-gradient(180deg, #2a3a5a 0%, #4a6a9a 50%, #e8ecf2 100%);
  pointer-events: none;
}
@keyframes mountainMove3 {
  from { background-position: 0 bottom; }
  to   { background-position: -1200px bottom; }
}
@keyframes mountainMove2 {
  from { background-position: 0 bottom; }
  to   { background-position: -1200px bottom; }
}
@keyframes mountainMove1 {
  from { background-position: 0 bottom; }
  to   { background-position: -1200px bottom; }
}
.hero-search {
  position: relative;
  z-index: 10;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.search-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.search-wrapper input {
  border: none;
  outline: none;
  font-size: 15px;
  padding: 14px 20px;
  width: 100%;
  background: transparent;
  color: #333;
  font-family: "Microsoft YaHei", sans-serif;
}
.search-wrapper input::placeholder { color: #aaa; }
.search-wrapper button {
  background: #e67e22;
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  font-family: "Microsoft YaHei", sans-serif;
  transition: background 0.2s;
}
.search-wrapper button:hover { background: #d35400; }

/* ========== 文字广告区 ========== */
.text-ads {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0;
}
.text-ads-grid {
  display: grid;
  grid-template-columns: repeat(5, 235px);
  gap: 8px 9px;
  justify-content: center;
}
.ad-link {
  width: 235px;
  height: 25px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(0,0,0,0.1);
  text-align: center;
  font-weight: bold;
  color: var(--link-color) !important;
}
.ad-link:hover {
  background: var(--link-color);
  color: #fff !important;
  border-color: transparent;
}

/* ========== 图片广告区 ========== */
.image-ads {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0;
}
.image-ads-inner {
  display: grid;
  grid-template-columns: repeat(2, 600px);
  gap: 8px;
  justify-content: center;
}
.ad-img-card {
  width: 600px;
  height: 80px;
  overflow: hidden;
  cursor: pointer;
}
.ad-img-placeholder {
  width: 600px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: bold;
}

/* ========== 文章展示区 ========== */
.articles-section {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px 40px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.title-bar {
  width: 4px;
  height: 24px;
  background: #333;
  display: block;
}
.section-title-left h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #333;
}
.section-tabs {
  display: flex;
  gap: 8px;
}
.tab {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  padding: 4px 12px;
  transition: all 0.2s;
}
.tab:hover, .tab.active {
  color: #e67e22;
  background: rgba(230,126,34,0.08);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.article-card {
  background: #fff;
  overflow: hidden;
  border: 6px solid #e0e0e0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: #ccc;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.article-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.article-image-placeholder {
  width: 100%;
  height: 170px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}
.article-content { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.article-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #333;
}
.article-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: #f6f6f6;;
  padding: 5px 6px;
  border-radius: 0;
}
.article-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e9e9e9;
  padding-top: 10px;
}
.article-footer .read-count {
  font-size: 18px;
  color: #999;
}

.article-footer .read-counts {
  font-size: 14px;
  color: #666;
  margin-right: 135px;
  /* 数字的独立样式 */
}

.article-footer .article-date {
  font-size: 13px;
  color: #999;
}

/* ========== 友情链接 ========== */
.friend-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 30px;
}
.friend-links-inner {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.friend-links-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid #333;
}
.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.friend-links-list a {
  font-size: 13px;
  color: #666;
  transition: color 0.2s;
}
.friend-links-list a:hover {
  color: #e67e22;
}

/* ========== 底部 ========== */
.footer {
  background: linear-gradient(135deg, #3a4a5c 0%, #2c3e50 100%);
  color: rgba(255,255,255,0.7);
  padding: 30px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-bottom: 6px;
}
.footer-slogan {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 5px;
}
.footer-right {
  text-align: right;
}
.footer-links {
  margin-bottom: 10px;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-divider {
  color: rgba(255,255,255,0.3);
  margin: 0 8px;
}
.footer-right p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* ========== 回到顶部 ========== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: #5cb85c;
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: #4cae4c;
}

/* ========== 文章弹窗 ========== */
.modal-overlay { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.65); z-index: 9999; justify-content: center; align-items: flex-start; padding: 40px 20px; overflow-y: auto; }
.modal-overlay.active { display: flex; }
.modal-box { background: white; width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto; position: relative; animation: fadeInUp 0.25s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.3); border: 1px solid rgba(0,0,0,0.06); }
@keyframes fadeInUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
.modal-close { position: absolute; top: 12px; right: 16px; width: 32px; height: 32px; border: none; background: rgba(0,0,0,0.5); color: white; font-size: 18px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; }
.modal-cover { width: 100%; height: auto; max-height: 280px; object-fit: contain; display: block; }
.modal-cover-placeholder { width: 100%; height: 120px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 14px; }
.modal-body { padding: 20px 28px 16px; }
.modal-account-name { font-size: 13px; color: #0d47a1; font-weight: 600; }
.modal-title { font-size: 22px; font-weight: 700; line-height: 1.5; color: #1a1a1a; margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.modal-meta { font-size: 13px; color: #999; margin-bottom: 16px; display: flex; align-items: center; gap: 14px; }
.modal-meta .meta-date { color: #666; }
.modal-meta .meta-reads { margin-left: auto; color: #e67e22; font-weight: 600; font-size: 13px; }
.modal-content { font-size: 15px; line-height: 1.8; color: #444; background: #fafafa; border: 1px solid #eee; padding: 20px 24px; margin-top: 4px; }
.modal-content img { max-width: 100%; height: auto; }
.modal-content p { margin-bottom: 12px; }
.modal-content h1, .modal-content h2, .modal-content h3 { margin-top: 16px; margin-bottom: 10px; color: #222; }
.modal-content blockquote { border-left: 3px solid #667eea; padding-left: 14px; margin: 12px 0; color: #666; background: #f5f5f5; padding: 10px 14px; }
.modal-related { background: #f8f9fa; padding: 16px 20px; margin-top: 24px; border: 1px solid #eee; }
.modal-related-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-card { background: #f8f9fb; overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid #eef0f4; }
.related-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.related-card-img { width: 100%; height: 80px; object-fit: cover; display: block; }
.related-card-img-placeholder { width: 100%; height: 80px; background: #eee; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 11px; }
.related-card-body { padding: 8px 10px 10px; }
.related-card-title { font-size: 12px; color: #333; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card-meta { font-size: 11px; color: #aaa; margin-top: 6px; }
.modal-footer { padding: 0 28px 24px; }
.modal-btn-origin { display: block; width: 100%; padding: 12px; background: linear-gradient(135deg, #667eea, #764ba2); color: white; border: none; font-size: 15px; cursor: pointer; text-align: center; text-decoration: none; }

/* ========== 公众号二维码弹窗 ========== */
.qr-modal-overlay { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.55); z-index: 10001; justify-content: center; align-items: center; }
.qr-modal-overlay.active { display: flex; }
.qr-modal-box { background: white; padding: 28px 32px 22px; text-align: center; position: relative; animation: fadeInUp 0.25s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.qr-modal-close { position: absolute; top: 10px; right: 14px; width: 28px; height: 28px; border: none; background: #eee; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qr-modal-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 14px; }
.qr-modal-img { width: 220px; height: 220px; object-fit: contain; border: 1px solid #eee; }
.qr-modal-hint { font-size: 12px; color: #aaa; margin-top: 12px; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .text-ads-grid { grid-template-columns: repeat(3, 235px); }
  .image-ads-inner { grid-template-columns: repeat(2, 600px); }
}
@media (max-width: 768px) {
  .navbar-inner { flex-wrap: wrap; padding: 10px 15px; }
  .nav-menu { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; margin-top: 8px; }
  .articles-grid { grid-template-columns: 1fr; gap: 15px; }
  .text-ads-grid { grid-template-columns: repeat(2, 1fr); }
  .image-ads-inner { grid-template-columns: 1fr; }
  .article-image { height: 160px; }
  .search-wrapper {  }
  .search-wrapper input { font-size: 14px; padding: 12px 14px; }
  .search-wrapper button { padding: 12px 20px; font-size: 14px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-right { text-align: center; }
}
        .login-box .logo {
            display: block;
            max-width: 70%;
            height: auto;
        }