/* 整体基础样式 */
body {
  font-family: "Microsoft YaHei", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #111;
  text-align: center; 
}

.hero {
    text-align: center; /* 目标区居中 */
    margin-bottom: 40px;
}

/* 页头标题 */
.site-header {
  background-color: #fff;
  color: #000;
  padding: 30px 0 10px 0;

  display: flex;                 /* 开启弹性布局 */
  flex-direction: column;        /* 垂直排列标题和导航 */
  align-items: center;  
}

.site-title {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
}

/* 内容区 */
.container {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* CTA 按钮 */
.cta-button {
  display: inline-block;
  background-color: #f5c518;
  color: #000;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
}

.cta-button:hover {
  background-color: #e0b000;
}

/* 页脚 */
footer {
  background-color: #ffffff;
  color: #555;
  padding: 20px 0;
  margin-top: 60px;
  font-size: 14px;
}

/* 首页（index）单独样式 */
.site-title {
  margin-bottom: 25px;   /* 加大标题与导航之间距离 */
}

/* 所有页面通用样式：导航链接间距更大 */
.site-nav a {
  color: #000;
  text-decoration: none;
  margin: 0 10px;     /* 导航项之间距离改成 25px（原来15） */
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: #f5c518;
}

ul {
  list-style-position: inside;   /* ✅ 让点出现在文字前面 */
  padding-left: 0;              /* 去掉多余缩进 */
  text-align: left;             /* 保证列表左对齐 */
  display: inline-block;        /* 让整个列表居中显示 */
}

.subscribe-form {
  margin-bottom: 40px;   /* 控制订阅区与下面标题的距离 */
}

h1.site-title {
  font-weight: 700;
  letter-spacing: -0.5px;
}
h2 {
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.2px;
}
p {
  color: #444;
  line-height: 1.7;
}

button {
  transition: all 0.2s ease;
}
button:hover {
  transform: translateY(-1px);
  background: #111;
  color: #fff;
}
input:focus {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* ===== 链接统一风格 ===== */
a {
  color: #111; /* 链接默认颜色（深灰接近黑） */
  text-decoration: none; /* 去掉下划线 */
  transition: color 0.2s ease; /* 鼠标移动时有平滑过渡 */
}

/* 鼠标悬停效果 */
a:hover {
  color: #b58900 !important; /* 鼠标移上去变金色（呼应你的品牌调性） */
  text-decoration: underline; /* 加下划线，用户能知道是可点击的 */
}

/* 点击或访问过后的链接颜色 */
a:visited {
  color: #666; /* 保持与默认一致，不再变紫 */
}

/* -------- Figure 图片展示（Medium / Substack 风格） -------- */

.figure {
  margin: 48px auto;
  text-align: center;
  max-width: 820px;
}

.figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.figure img:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.20);
  filter: brightness(1.03);
}

/* 图片说明文字 */
.figure figcaption {
  font-size: 0.9rem;
  color: #777;
  margin-top: 12px;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.3px;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .figure {
    margin: 32px auto;
    padding: 0 12px;
  }
}

.subscribe-form {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.subscribe-form input {
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 240px;
  outline: none;
  transition: border 0.3s ease;
}

.subscribe-form input:focus {
  border-color: #0078ff;
}

.subscribe-form button {
  padding: 10px 18px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.subscribe-form button:hover:not(:disabled) {
  background-color: #b49715;
}

.subscribe-form button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.subscribe-message {
  text-align: center;
  font-size: 15px;
  margin-top: 12px;
  transition: opacity 0.3s ease;
}

.subscribe-message.success {
  color: #2ecc71;
}

.subscribe-message.error {
  color: #e74c3c;
}
