:root {
  --primary: #232f3e;
  --secondary: #37475a;
  --accent: #ff9900;
  --accent-hover: #e68a00;
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --text-primary: #0f1111;
  --text-secondary: #565959;
  --border: #ddd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans SC', 'Amazon Ember', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* Make anchors wrapping whole cards block-level so grid/flex behaves */
.blog-card-link { display: block; }

/* Navbar */
.navbar {
  background: var(--primary);
  color: #fff;
  padding: 0 24px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar .logo i { color: var(--accent); }

.navbar .nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.navbar .nav-links a {
  color: #ccc;
  font-size: 14px;
  transition: color 0.2s;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active { color: var(--accent); }

.navbar .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero {
  margin-top: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a2332 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero h1 span { color: var(--accent); }

.hero .subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #ccc;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}

.hero .cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.hero .cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .cta.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.hero .cta.secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* Section */
.section {
  padding: 64px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--primary);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
}

/* About */
.about { background: var(--card-bg); }

.about-single { text-align: center; }

.about-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin: 0 auto 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.about-avatar i {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--accent);
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.about-tagline { font-size: 16px; color: var(--text-secondary); }

.about-bio {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.blog-card .blog-img {
  height: 180px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.4);
}

.blog-card .blog-content { padding: 24px; }

.blog-card .blog-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.blog-card .blog-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card .blog-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.blog-card .read-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.25s;
}

.blog-card:hover .read-more { opacity: 1; }

/* Blog Modal */
.blog-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.blog-modal.active { display: flex; }

.blog-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.blog-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.blog-modal-close:hover { background: var(--accent); color: var(--primary); }

.blog-modal-body { padding: 48px; }

.blog-modal-body h1 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-modal-body .blog-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.blog-modal-body h2 {
  font-size: 20px;
  color: var(--primary);
  margin: 32px 0 16px;
}

.blog-modal-body h3 {
  font-size: 16px;
  color: var(--primary);
  margin: 24px 0 12px;
}

.blog-modal-body p { margin-bottom: 16px; line-height: 1.8; }

.blog-modal-body ul, .blog-modal-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.blog-modal-body li { margin-bottom: 8px; line-height: 1.7; }

.blog-modal-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  background: #f9f9f9;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.blog-modal-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* Blog listing page */
.blog-page-header {
  margin-top: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a2332 100%);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}

.blog-page-header h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
}

.blog-page-header p {
  font-size: 16px;
  color: #ccc;
}

/* Follow (关注我) */
.follow { background: var(--primary); color: #fff; }
.follow .section-title { color: #fff; }

.follow-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.follow-card {
  text-align: center;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 48px 40px;
  max-width: 320px;
  flex: 1 1 260px;
  transition: transform 0.25s, background 0.25s;
}

.follow-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.09);
}

.follow-card .qr-placeholder {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 8px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  overflow: hidden;
}

.follow-card .qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.follow-card.wechat .qr-placeholder { color: #07c160; }
.follow-card.xhs .qr-placeholder { color: #ff2442; }

.follow-card h3 { font-size: 22px; margin-bottom: 12px; }

.follow-card p {
  font-size: 15px;
  color: #ccc;
  line-height: 1.6;
}

/* 小红书文字标（FontAwesome 无小红书图标） */
.xhs-mark {
  color: #ff2442;
  font-weight: 700;
  font-size: 0.85em;
  border: 1.5px solid #ff2442;
  border-radius: 4px;
  padding: 1px 6px;
}

.follow-card .xhs-mark { font-size: 32px; padding: 8px 18px; }

/* Follow CTA（文章/情报详情页底部引导卡） */
.follow-cta {
  margin: 48px auto 0;
  max-width: 720px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 32px;
  text-align: center;
}

.follow-cta-title { font-weight: 700; margin-bottom: 12px; }

.follow-cta-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 15px;
  color: var(--text-secondary);
}

.follow-cta-links a:hover { color: var(--accent); }
.follow-cta-links .fa-weixin { color: #07c160; }

/* Footer */
.footer {
  background: #1a2332;
  color: #888;
  text-align: center;
  padding: 24px;
  font-size: 13px;
}

.footer-social { margin-bottom: 12px; }

.footer-social a {
  color: #aaa;
  margin: 0 12px;
  font-size: 14px;
}

.footer-social a:hover { color: var(--accent); }

/* Post page */
.post-page {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

.post-page .post-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1a2332 100%);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}

.post-page .post-header h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-page .post-header .post-date {
  font-size: 14px;
  color: #ccc;
}

.post-page .post-content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
  background: #fff;
}

.post-page .post-content-wrap h2 {
  font-size: 20px;
  color: var(--primary);
  margin: 32px 0 16px;
}

.post-page .post-content-wrap h3 {
  font-size: 16px;
  color: var(--primary);
  margin: 24px 0 12px;
}

.post-page .post-content-wrap p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.post-page .post-content-wrap ul,
.post-page .post-content-wrap ol {
  margin: 16px 0;
  padding-left: 24px;
}

.post-page .post-content-wrap li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.post-page .post-content-wrap blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  background: #f9f9f9;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.post-page .post-content-wrap hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.post-page .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 24px;
  cursor: pointer;
}

.post-page .back-btn:hover { text-decoration: underline; }

/* More button */
.more-btn-wrap {
  text-align: center;
  margin-top: 48px;
}

.more-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 36px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.more-btn:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Loading */
.blog-loading {
  text-align: center;
  padding: 80px;
  color: var(--text-secondary);
}

.blog-loading i {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  padding: 16px 0;
}

.page-link {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
}

.page-link:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}

.page-info {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Mobile */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

  .navbar .nav-links.active { display: flex; }
  .navbar .menu-toggle { display: block; }
  .section { padding: 48px 16px; }
  .blog-modal-body { padding: 32px 24px; }
  .blog-modal-body h1 { font-size: 22px; }
  .follow-card { padding: 32px 24px; }
  .post-page .post-content-wrap { padding: 32px 16px; }
  .post-page .post-header { padding: 40px 16px; }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }
