/* ===== 关爱老人网 - 响应式主题 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #C0392B;
  --primary-light: #E74C3C;
  --warm: #F39C12;
  --bg: #FDF6EC;
  --bg-card: #FFFFFF;
  --text: #3D3D3D;
  --text-light: #7F7F7F;
  --border: #E8DDD0;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --font: "Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif;
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.header {
  background: linear-gradient(135deg, var(--primary), #A93226);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo a {
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-icon { font-size: 1.6rem; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.nav a:hover, .nav a.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--warm));
  color: #fff;
  text-align: center;
  padding: 70px 20px 60px;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 12px; font-weight: bold; }
.hero p { font-size: 1.15rem; opacity: 0.9; }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 15px 0; font-size: 0.9rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* ===== Section Title ===== */
.section-title {
  font-size: 1.5rem;
  padding: 15px 0;
  border-bottom: 3px solid var(--primary);
  margin-bottom: 20px;
  color: var(--text);
}

/* ===== Article Grid ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  padding: 20px 0;
}
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.card-body { padding: 22px; }
.card-cat {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.card-body h3 a {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.5;
  display: block;
  margin-bottom: 8px;
}
.card-body h3 a:hover { color: var(--primary); }
.card-excerpt { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; margin-bottom: 12px; }
.card-meta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-light); }

/* ===== Article Detail ===== */
.article-detail {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow);
  margin: 15px 0 40px;
}
.article-title { font-size: 1.6rem; line-height: 1.4; margin-bottom: 15px; }
.article-meta {
  display: flex; gap: 20px;
  font-size: 0.88rem; color: var(--text-light);
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
  margin-bottom: 25px;
}
.article-content { font-size: 1.05rem; line-height: 2; color: #333; }
.article-content p { margin-bottom: 1.2em; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 15px 0; }
.article-content h2, .article-content h3 { margin: 1.2em 0 0.6em; color: var(--text); }

/* ===== Page Box ===== */
.page-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow);
  margin: 15px 0 40px;
}
.page-box h1 { font-size: 1.5rem; margin-bottom: 20px; }
.page-box p { margin-bottom: 1em; line-height: 2; }
.page-box ul { padding-left: 20px; margin-bottom: 1em; }
.page-box li { margin-bottom: 8px; }

/* ===== Pagination ===== */
.pagination { text-align: center; padding: 30px 0; display: flex; justify-content: center; gap: 6px; }
.pagination a, .pagination span {
  display: inline-block; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.9rem; color: var(--text);
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .dots { border: none; padding: 8px 4px; color: var(--text-light); }

/* ===== Footer ===== */
.footer {
  background: #2C3E50;
  color: rgba(255,255,255,0.8);
  margin-top: auto;
  padding: 40px 0 0;
}
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 25px; }
.footer-section h3 { font-size: 1.2rem; margin-bottom: 12px; color: #fff; }
.footer-section h4 { font-size: 1rem; margin-bottom: 10px; color: #fff; }
.footer-section p { font-size: 0.9rem; line-height: 1.7; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 6px; }
.footer-section a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-section a:hover { color: var(--warm); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 15px 0;
  font-size: 0.85rem;
}

/* ===== Empty State ===== */
.empty { text-align: center; padding: 60px 0; color: var(--text-light); font-size: 1rem; }

/* ===== Button ===== */
.btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.btn:hover { background: var(--primary-light); color: #fff; }

/* ===== Responsive - Mobile ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hero { padding: 50px 20px 40px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
  .article-grid { grid-template-columns: 1fr; gap: 16px; }
  .article-detail { padding: 20px; }
  .article-title { font-size: 1.3rem; }
  .article-meta { flex-wrap: wrap; gap: 10px; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .page-box { padding: 20px; }
  .logo a { font-size: 1.15rem; }
}
