/* ============ 基础 ============ */
:root {
  --primary: #2e5e4e;
  --primary-dark: #22463a;
  --accent: #c9a063;
  --text: #2b2b2b;
  --text-light: #7a7a72;
  --bg: #faf9f6;
  --white: #ffffff;
  --footer-bg: #1c2a25;
  --serif: 'Noto Serif SC', 'Songti SC', serif;
  --sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

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

ul { list-style: none; }

.container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

.section { padding: 96px 0; }

.section-head.center { text-align: center; }

.section-no {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-light);
  font-size: 16px;
  letter-spacing: 1px;
}

.section-head.between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.explore-link {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 6px;
  transition: letter-spacing .3s, color .3s;
  white-space: nowrap;
}

.explore-link:hover { letter-spacing: 5px; color: var(--accent); border-color: var(--accent); }

/* ============ 顶部导航 ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
  transition: box-shadow .3s;
}

.header-inner {
  width: min(1280px, 92%);
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-logo {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--primary-dark);
}

.main-nav .nav-list { display: flex; gap: 40px; }

.main-nav .nav-list > li { position: relative; }

.main-nav .nav-list > li > a {
  display: block;
  padding: 26px 0;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--text);
  position: relative;
  transition: color .3s;
}

.main-nav .nav-list > li > a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 20px;
  width: 0; height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width .3s;
}

.main-nav .nav-list > li > a:hover::after,
.main-nav .nav-list > li > a.active::after { width: 100%; }

.main-nav .nav-list > li > a.active { color: var(--primary); }

.dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 160px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
}

.main-nav .nav-list > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--text);
  transition: color .2s, background .2s;
}

.dropdown li a:hover { color: var(--primary); background: #f4f6f2; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.search-btn {
  background: none; border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  padding: 6px;
  transition: color .2s;
}

.search-btn:hover { color: var(--primary); }

.menu-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: all .3s;
}

.search-overlay {
  position: absolute;
  top: 76px; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid #eee;
  padding: 16px 0;
  display: none;
}

.search-overlay.open { display: block; }

.search-overlay input {
  width: min(720px, 86%);
  display: block;
  margin: 0 auto;
  border: none;
  outline: none;
  border-bottom: 1px solid #ddd;
  font-size: 18px;
  padding: 10px 36px 10px 0;
  background: transparent;
  color: var(--text);
}

.search-close {
  position: absolute;
  right: 6%; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 28px;
  color: var(--text-light);
  cursor: pointer;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slides, .hero-slide { position: absolute; inset: 0; }

.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.4) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  z-index: 2;
  padding: 0 20px;
}

.hero-blog {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 700;
  letter-spacing: 12px;
  text-indent: 12px;
  text-shadow: 0 4px 24px rgba(0,0,0,.3);
  animation: fadeUp 1s ease both;
}

.hero-slogan {
  margin-top: 20px;
  font-size: clamp(18px, 2.6vw, 26px);
  letter-spacing: 10px;
  text-indent: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  animation: fadeUp 1s ease .25s both;
}

.hero-en {
  margin-top: 14px;
  font-size: 15px;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: .85;
  animation: fadeUp 1s ease .45s both;
}

.hero-nav {
  position: absolute;
  right: 4%;
  bottom: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--white);
}

.hero-count {
  font-size: 15px;
  letter-spacing: 2px;
  opacity: .9;
}

.hero-arrows { display: flex; gap: 10px; }

.arrow {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.5);
  color: var(--white);
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all .3s;
  backdrop-filter: blur(4px);
}

.arrow:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

/* ============ 关于我 ============ */
.about-intro {
  max-width: 760px;
  margin: 40px auto 56px;
  text-align: center;
  font-size: 17px;
  color: #4a4a44;
  letter-spacing: .5px;
}

.about-intro strong { color: var(--primary); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-card {
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.05);
  transition: transform .35s, box-shadow .35s;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,.1);
}

.about-card-img { overflow: hidden; aspect-ratio: 3/2; }

.about-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.about-card:hover .about-card-img img { transform: scale(1.08); }

.about-card-body { padding: 26px 28px 30px; }

.about-card-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.about-card-body p { color: var(--text-light); font-size: 15px; }

/* ============ 精选文章 ============ */
.featured { background: var(--white); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.featured-card { display: block; position: relative; }

.featured-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  border-radius: 4px;
}

.featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.featured-card:hover .featured-img img { transform: scale(1.1); }

.featured-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.9);
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 2px;
  padding: 5px 12px;
  border-radius: 2px;
}

.featured-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  margin-top: 16px;
  letter-spacing: 1px;
  transition: color .3s;
}

.featured-card:hover h3 { color: var(--primary); }

/* ============ 数据统计 ============ */
.stats {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #3a7562 100%);
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-num {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  margin-top: 8px;
  letter-spacing: 3px;
  font-size: 15px;
  opacity: .85;
}

.stats-foot {
  margin-top: 44px;
  letter-spacing: 2px;
  font-size: 14px;
  opacity: .75;
}

/* ============ 最新发布 ============ */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.post-card { background: var(--white); box-shadow: 0 4px 18px rgba(0,0,0,.05); }

.post-img { display: block; overflow: hidden; aspect-ratio: 9/5.2; }

.post-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.post-card:hover .post-img img { transform: scale(1.08); }

.post-body { padding: 24px 26px 28px; }

.post-date {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--accent);
}

.post-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  margin: 10px 0 12px;
}

.post-body h3 a { transition: color .3s; }

.post-body h3 a:hover { color: var(--primary); }

.post-body p {
  color: var(--text-light);
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--primary);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: all .3s;
}

.post-more:hover { border-color: var(--primary); letter-spacing: 4px; }

/* ============ 页脚 ============ */
.site-footer { background: var(--footer-bg); color: #b8c4bd; }

.footer-top { padding: 64px 0 48px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 5px;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand p { letter-spacing: 2px; font-size: 14px; opacity: .8; }

.social { display: flex; gap: 14px; margin-top: 24px; }

.social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  opacity: .85;
  transition: all .3s;
}

.social a:hover { opacity: 1; border-color: var(--accent); transform: translateY(-3px); }

.social img { width: 100%; height: 100%; object-fit: cover; }

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.footer-col li { margin-bottom: 12px; }

.footer-col a {
  font-size: 14px;
  color: #b8c4bd;
  transition: color .3s, padding-left .3s;
}

.footer-col a:hover { color: var(--accent); padding-left: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
  opacity: .7;
}

/* ============ 动画 ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
  }

  .main-nav.open { max-height: 480px; }

  .nav-list { flex-direction: column; gap: 0; padding: 10px 24px; }

  .main-nav .nav-list > li > a { padding: 14px 0; }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0 0 6px 20px;
    display: none;
  }

  .main-nav .nav-list > li:hover .dropdown { transform: none; }
  .main-nav .nav-list > li.open .dropdown { display: block; }

  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-nav { right: 5%; bottom: 32px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .featured-grid, .latest-grid { grid-template-columns: 1fr; }
  .hero-blog { letter-spacing: 8px; text-indent: 8px; }
}
