* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  background: #f7f4ee; color: #2b2b2b; line-height: 1.7;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* 顶部导航 */
.topbar {
  position: sticky; top: 0; z-index: 99;
  background: rgba(43, 43, 43, 0.96); box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { color: #f7f4ee; font-size: 22px; font-weight: bold; text-decoration: none; }
.logo span { color: #d8b25a; }
.nav nav a { color: #d9d4ca; text-decoration: none; margin-left: 18px; font-size: 15px; }
.nav nav a:hover { color: #d8b25a; }

/* 首屏 */
.hero {
  background: linear-gradient(rgba(30,28,25,.78), rgba(30,28,25,.82)),
              radial-gradient(circle at 70% 30%, #4a4034, #262320);
  color: #f7f4ee; text-align: center; padding: 80px 16px;
}
.hero h1 { font-size: 40px; letter-spacing: 6px; margin-bottom: 14px; }
.hero p { font-size: 17px; color: #cfc8ba; margin-bottom: 26px; }
.btn {
  display: inline-block; background: #d8b25a; color: #26231f; padding: 10px 28px;
  border-radius: 4px; text-decoration: none; font-size: 16px; margin: 0 6px;
}
.btn.ghost { background: transparent; color: #d8b25a; border: 1px solid #d8b25a; }
.btn:hover { opacity: .88; }

/* 分节 */
.section { padding: 46px 16px 8px; }
.sec-title { font-size: 26px; letter-spacing: 3px; border-left: 5px solid #d8b25a; padding-left: 12px; }
.sec-sub { color: #8a8375; margin: 8px 0 22px 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

/* 通用卡片 */
.card {
  display: block; background: #fff; border-radius: 8px; padding: 20px;
  text-decoration: none; color: #2b2b2b; border: 1px solid #eee6d8;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .15s;
}
.card:hover { transform: translateY(-3px); }
.card h3 { font-size: 18px; margin-bottom: 8px; color: #7a5c1e; }
.card p { font-size: 14px; color: #6d675c; }

/* 图片画廊 */
.photo { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #eee6d8; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.photo img { width: 100%; height: 210px; object-fit: cover; display: block; background: #efe9dd; }
.photo .cap { padding: 10px 12px; font-size: 14px; text-align: center; }

/* 视频 */
.video-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #eee6d8; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.video-card video { width: 100%; height: 210px; background: #171512; display: block; }
.video-card .cap { padding: 10px 12px; font-size: 15px; text-align: center; }

/* 资料未上传时的提示 */
.empty-tip {
  grid-column: 1 / -1; background: #fff; border: 1px dashed #cbbfa5; color: #8a8375;
  border-radius: 8px; padding: 26px; text-align: center; font-size: 15px;
}

/* 文章正文页 */
.article { background: #fff; border-radius: 8px; border: 1px solid #eee6d8; padding: 34px; max-width: 820px; margin: 30px auto; }
.article h1 { font-size: 26px; color: #7a5c1e; margin-bottom: 6px; }
.article .meta { color: #9a9384; font-size: 14px; margin-bottom: 22px; }
.article p { margin-bottom: 14px; font-size: 16px; text-indent: 2em; }
.article h2 { font-size: 20px; margin: 24px 0 12px; border-left: 4px solid #d8b25a; padding-left: 10px; }
.article img { max-width: 100%; border-radius: 6px; margin: 10px 0; }
.back { display: inline-block; margin-top: 20px; color: #7a5c1e; text-decoration: none; }

.footer { margin-top: 54px; background: #2b2b2b; color: #9a9384; text-align: center; padding: 22px 0; font-size: 14px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 26px; letter-spacing: 3px; }
  .nav nav a { margin-left: 10px; font-size: 13px; }
  .logo { font-size: 18px; }
}
