/* ===== Hearth & Height — 家长陪跑指南 共享样式 ===== */

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  background-color: #FFFDF7;
  color: #333;
  line-height: 1.9;
  font-size: 16px;
}

/* ===== 导航栏 ===== */
nav {
  background: #fff;
  border-bottom: 2px solid #D4A76A;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #5C4033;
  text-decoration: none;
  white-space: nowrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

nav ul li a {
  display: block;
  color: #5C4033;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0 0.9rem;
  height: 60px;
  line-height: 60px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  border-bottom-color: #D4A76A;
  color: #8B5E3C;
}

/* ===== Hero 横幅 ===== */
.hero {
  position: relative;
  background-image: url("header.jpg");
  background-size: cover;
  background-position: center;
  background-color: #5C4033;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(60, 35, 20, 0.55);
}

.hero > * { position: relative; z-index: 1; }

.site-logo {
  display: block;
  margin: 0 auto 1.2rem;
  max-height: 90px;
  width: auto;
}

.hero h1 {
  font-size: 2rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}

.hero .subtitle {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto;
  letter-spacing: 0.05em;
}

/* ===== 主内容区 ===== */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

h2 {
  font-size: 1.35rem;
  color: #5C4033;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #D4A76A;
}

h3 {
  font-size: 1.05rem;
  color: #8B5E3C;
  margin: 1.6rem 0 0.5rem;
}

p { margin-bottom: 1rem; }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.4rem; }

/* ===== 引用块 ===== */
blockquote {
  background: #FFF8EE;
  border-left: 4px solid #D4A76A;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: #5C4033;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* ===== 四个核心价值卡片 ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.value-card {
  background: #fff;
  border: 1px solid #E8D5B7;
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.value-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.value-card h3 {
  color: #5C4033;
  margin: 0.2rem 0 0.5rem;
  font-size: 1.15rem;
}

.value-card p {
  font-size: 0.88rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* ===== 书籍卡片 ===== */
.book-card {
  background: #fff;
  border: 1px solid #E8D5B7;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.book-number {
  background: #D4A76A;
  color: #fff;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.book-content h3 {
  margin-top: 0;
  color: #5C4033;
}

.book-content .tag {
  display: inline-block;
  background: #FFF0D9;
  color: #8B5E3C;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 0.6rem;
  border: 1px solid #D4A76A;
}

/* ===== 步骤/方法列表 ===== */
.step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.step-list li {
  counter-increment: step-counter;
  padding: 0.8rem 1rem 0.8rem 3.5rem;
  margin-bottom: 0.8rem;
  background: #fff;
  border: 1px solid #E8D5B7;
  border-radius: 8px;
  position: relative;
}

.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0.8rem;
  top: 0.7rem;
  background: #D4A76A;
  color: #fff;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===== 资源下载卡片 ===== */
.resource-card {
  background: #fff;
  border: 1px solid #E8D5B7;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.resource-card .resource-info h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: #5C4033;
}

.resource-card .resource-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #888;
}

/* ===== 常见问题 ===== */
details {
  background: #fff;
  border: 1px solid #E8D5B7;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

details summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  color: #5C4033;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "＋";
  font-size: 1.1rem;
  color: #D4A76A;
  transition: transform 0.2s;
}

details[open] summary::after {
  content: "－";
}

details .faq-body {
  padding: 0 1.2rem 1rem;
  color: #555;
  font-size: 0.95rem;
}

/* ===== 书籍下拉摘要行 ===== */
.book-summary-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.book-summary-inner .book-number {
  background: #D4A76A;
  color: #fff;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
}

.book-summary-inner .tag {
  display: inline-block;
  background: #FFF0D9;
  color: #8B5E3C;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 20px;
  margin-right: 0.5rem;
  border: 1px solid #D4A76A;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  background: #D4A76A;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn:hover { background: #BF8F55; }

.btn-outline {
  background: transparent;
  border: 2px solid #D4A76A;
  color: #8B5E3C;
}

.btn-outline:hover {
  background: #D4A76A;
  color: #fff;
}

/* ===== 页脚 ===== */
footer {
  background: #5C4033;
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.88rem;
}

footer a { color: #D4A76A; text-decoration: none; }

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .nav-inner { flex-direction: column; height: auto; padding: 0.5rem 0; gap: 0; }
  nav ul { flex-wrap: wrap; justify-content: center; }
  nav ul li a { height: 38px; line-height: 38px; padding: 0 0.6rem; font-size: 0.82rem; }
  .nav-logo { padding: 0.5rem 0; }
  
.hero h1 { font-size: 1.5rem; }
  .values-grid { grid-template-columns: 1fr; }
  .book-card { flex-direction: column; }
  .resource-card { flex-direction: column; align-items: flex-start; }
}
