/* =====================================================
   supporter for all —— 全局样式（所有页面共用这一个文件）
   想换颜色/字体/间距，改这里就行。
   ===================================================== */

/* ---------- 全局重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #faf9f7;          /* 米白背景，像纸张 */
  color: #2d2a26;
  line-height: 1.7;
}

/* 页面主体居中，限制宽度 */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 链接默认样式 */
a {
  color: #d97757;
}

/* ---------- 顶部导航 ---------- */
header {
  padding: 32px 0 8px;
  border-bottom: 1px solid #e8e4df;
}

.site-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-title a {
  text-decoration: none;
  color: #2d2a26;
}

nav {
  margin-top: 12px;
}

nav a {
  color: #6b6560;
  text-decoration: none;
  margin-right: 24px;
  font-size: 15px;
}

nav a:hover {
  color: #d97757;
}

/* ---------- 首页：简介区 ---------- */
.intro {
  padding: 40px 0 8px;
}

.intro h1 {
  font-size: 22px;
  font-weight: 600;
}

.intro p {
  color: #6b6560;
  margin-top: 8px;
  font-size: 15px;
}

/* ---------- 首页：全屏封面图 ---------- */
.hero {
  position: relative;  /* 让标题能叠在图片上 */
  width: 100%;
  height: 100vh;       /* 100vh = 占满整个屏幕的高度 */
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 图片铺满整个区域，不变形 */
  display: block;
}

/* 底部渐隐：让图片自然过渡到下方米白背景，不出现生硬的白色分界线 */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to bottom, rgba(250, 249, 247, 0), #faf9f7);
  z-index: 1;
}

/* 叠在图片上的标题 */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero-text h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero-text p {
  margin-top: 12px;
  font-size: 18px;
}

/* 去掉暗化遮罩后，给白字加一点阴影，保证在亮色图片上也看得清 */
.hero-text h1,
.hero-text p {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

/* ---------- 首页：文章列表 ---------- */
.article-list {
  padding: 32px 0;
}

.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 24px 0;
  border-bottom: 1px solid #eeeae5;
  transition: transform 0.15s ease;
}

.article-card:hover {
  transform: translateX(6px);
}

.article-card .meta {
  font-size: 13px;
  color: #9a938c;
  margin-bottom: 6px;
}

.article-card .tag {
  color: #d97757;
  font-weight: 600;
  margin-right: 12px;
}

.article-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.article-card p {
  color: #6b6560;
  font-size: 15px;
}

/* ---------- 文章详情页 ---------- */
.back-link {
  display: inline-block;
  margin: 32px 0 0;
  font-size: 14px;
  text-decoration: none;
  color: #6b6560;
}

.back-link:hover {
  color: #d97757;
}

.article {
  padding: 32px 0;
}

.article-header .meta {
  font-size: 13px;
  color: #9a938c;
  margin-bottom: 10px;
}

.article-header .tag {
  color: #d97757;
  font-weight: 600;
  margin-right: 12px;
}

.article-header h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* 正文排版：适合阅读 */
.article-body {
  font-size: 16px;
}

.article-body p {
  margin-bottom: 20px;
  color: #3a3631;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 14px;
}

.article-body ul {
  margin: 0 0 20px 24px;
  color: #3a3631;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 3px solid #d97757;
  padding: 4px 0 4px 16px;
  margin: 0 0 20px;
  color: #6b6560;
}

/* ---------- 日志页：顶部背景图 ---------- */
.log-hero {
  position: relative;
  height: 40vh;          /* 顶部约占屏幕 4 成高度 */
  min-height: 240px;
  background-image: url("images/log-bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 半透明黑色遮罩，让白字看得清 */
.log-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

.log-hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ---------- 日志板块 ---------- */
.log {
  padding: 48px 0 8px;
}

.log-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.log-item {
  display: flex;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid #eeeae5;
}

.log-date {
  flex-shrink: 0;
  width: 80px;
  color: #d97757;
  font-weight: 600;
  font-size: 14px;
}

.log-item p {
  color: #3a3631;
  font-size: 15px;
}

.log-loading {
  color: #9a938c;
  font-size: 14px;
  padding: 16px 0;
}

/* ---------- 页脚 ---------- */
footer {
  padding: 32px 0 48px;
  text-align: center;
  color: #9a938c;
  font-size: 13px;
}
