/***** Astra Pro — English normal flow | Final bundle (adapted for Callie) *****/

/* =============== 全局标题调校 =============== */
/* 主标题：与模块标题接近，压缩与正文的落差 */
#post-header h1 {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 16px;
}

/* 小标题（文内 H2）：字号与间距统一，修复上方过大空白 */
#post-content h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-top: 18px;
  margin-bottom: 12px;
}
#post-content p + h2 { margin-top: 18px; }
#post-content .summary-block + h2,
#post-content .table-of-contents + h2,
#post-content .external-references + h2 { margin-top: 20px; }

/* =============== Summary（淡蓝 + 左侧蓝边） =============== */
#post-content .summary-block {
  background-color: #f0f9ff;
  padding: 20px;
  border-left: 4px solid #2196F3;
  border-radius: 12px;
  margin: 25px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
#post-content .summary-block h2 {
  font-weight: bold;
  color: #1976d2;
  margin: 0 0 10px;
}

/* =============== Experience（淡红 + 左侧红边） =============== */
#post-content .experience-box {
  background-color: #fff7f7;
  border-left: 4px solid #f44336;
  padding: 20px;
  border-radius: 10px;
  margin: 25px 0;
}
#post-content .experience-box h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #b71c1c;
}

/* =============== Expert Quote（浅绿 + 左侧绿边） =============== */
#post-content .expert-quote {
  background-color: #f0fff4;
  padding: 20px;
  border-left: 4px solid #2e7d32;
  margin: 25px 0;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
#post-content .expert-quote h2 {
  font-weight: bold;
  color: #2e7d32;
  margin: 0 0 10px;
}
#post-content .expert-quote p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 10px;
}

/* =============== CTA（虚线红框） =============== */
#post-content .cta-block {
  background-color: #fff5f5;
  border: 2px dashed #d32f2f;
  padding: 20px 24px;
  margin: 30px 0;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 500;
  color: #222;
  line-height: 1.8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* =============== FAQ（红边 + 卡片） =============== */
#post-content .faq-block {
  background: #ffffff;
  border: 2px solid #b91c1c;
  border-radius: 16px;
  padding: 40px;
  margin: 40px 0;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.03);
}
#post-content .faq-block > h2 {
  font-size: 26px;
  color: #b91c1c;
  font-weight: 700;
  padding-left: 16px;
  margin: 0 0 28px;
  border-left: 5px solid #b91c1c;
}
#post-content .faq-item {
  background: #fcfcfc;
  border: 1px solid #f1f1f1;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 0 0 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.025);
  position: relative;
}
#post-content .faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}
#post-content .faq-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: #b91c1c;
  margin: 0 0 12px;
  padding-left: 32px;
  position: relative;
}
#post-content .faq-item h3::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 20px;
  color: #b91c1c;
  background: #fff0f0;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
}
#post-content .faq-item p {
  font-size: 17px;
  line-height: 1.9;
  color: #333;
  margin: 0;
}

/* =============== Author Box（淡粉 + 红边 + 圆头像） =============== */
#post-content .author-box {
  background-color: #fff0f0;
  border: 2px solid #b91c1c;
  border-radius: 16px;
  padding: 24px;
  margin-top: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  font-size: 15px;
  line-height: 1.8;
  overflow: hidden;
  clear: both;
}
#post-content .author-meta {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
#post-content .author-avatar {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: 50%;
}
#post-content .author-info { flex: 1; }
#post-content .author-keyword { margin: 0; font-size: 14px; color: #777; }
#post-content .author-description { margin-top: 12px; font-size: 15px; color: #333; line-height: 1.8; }

/* =============== External References（虚线红框 + 列表卡片） =============== */
#post-content .external-references {
  margin: 40px 0;
  padding: 40px;
  border: 2px dashed #d32f2f;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
#post-content .external-references > h2 {
  font-size: 24px;
  color: #222;
  font-weight: 700;
  border-left: 5px solid #b91c1c;
  padding-left: 12px;
  margin: 0 0 28px;
}
#post-content .reference-list { list-style: none; padding: 0; margin: 0; }
#post-content .reference-list li {
  background: #fcfcfc;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 20px 24px 20px 40px;
  margin: 0 0 20px;
  position: relative;
  transition: all 0.3s ease;
}
#post-content .reference-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
#post-content .reference-list li::before {
  content: "»";
  position: absolute;
  left: 12px;
  top: 20px;
  color: #d32f2f;
  font-size: 18px;
  font-weight: bold;
}
#post-content .reference-list a {
  font-weight: 600;
  font-size: 16px;
  color: #b91c1c;
  text-decoration: none;
}
#post-content .reference-list a:hover { text-decoration: underline; }
#post-content .reference-list small {
  display: block;
  font-size: 14px;
  color: #555;
  margin-top: 8px;
  line-height: 1.7;
}

/* =============== TOC（红边 + 淡红背景） =============== */
#post-content .table-of-contents,
#post-content .ez-toc-container {
  margin: 40px 0;
  padding: 30px 40px;
  border-radius: 16px;
  background-color: #fff7f7;
  border: 2px solid #b91c1c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
#post-content .table-of-contents > h2,
.ez-toc-title {
  font-size: 22px !important;
  font-weight: 700;
  color: #111;
  margin: 0 0 24px;
  padding-left: 12px;
  border-left: 4px solid #b91c1c;
}
#post-content .table-of-contents ul,
.ez-toc-list { list-style: none; padding: 0; margin: 0; }
#post-content .table-of-contents li,
.ez-toc-list li {
  margin: 0 0 12px;
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  color: #000;
}
#post-content .table-of-contents li::before,
.ez-toc-list li::before {
  content: "»";
  position: absolute;
  left: 0;
  top: 0;
  color: #b91c1c;
  font-size: 16px;
  font-weight: bold;
}
#post-content .table-of-contents li a,
.ez-toc-list li a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: color .2s ease;
}
#post-content .table-of-contents li a:hover,
.ez-toc-list li a:hover { color: #b91c1c; text-decoration: underline; }

/* =============== 表格（红边 + 交替行） =============== */
#post-content .responsive-table-container {
  overflow-x: auto;
  margin: 40px 0;
  border: 2px solid #b91c1c;
  border-radius: 12px;
  background-color: #fff7f7;
  padding: 20px;
}
#post-content table.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 400px;
  background-color: #fff;
}
#post-content .styled-table th {
  background-color: #b91c1c;
  color: #fff;
  font-weight: 700;
  padding: 14px 18px;
  border: 1px solid #e0e0e0;
  text-align: left;
}
#post-content .styled-table td {
  padding: 14px 18px;
  border: 1px solid #eee;
  color: #333;
  background-color: #fff;
  text-align: left;
}
#post-content .styled-table tr:hover td { background-color: #fff0f0; }
#post-content .styled-table tbody tr:nth-child(even) { background-color: #fafafa; }

/* =============== 图片统一风格 =============== */
#post-content .image-wrapper { text-align: center; margin: 24px 0; }
#post-content .inserted-image {
  max-width: 100%;
  border-radius: 8px;
  height: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 仅保留最底部黑色条 */
#footer{
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#footer .footer-bottom{
  margin-top: 0 !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  border-top: none !important;
}

/* 让 footer 通栏显示，不留两边空白 */
#footer {
  width: 100%;
  margin: 0;
  padding: 0;
}

#footer .footer-bottom {
  max-width: 100% !important;   /* 去掉 container 的限制 */
  margin: 0 auto !important;
  padding-left: 20px;   /* 左右给一点安全间距 */
  padding-right: 20px;
}

#footer .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 20px;
  padding-right: 20px;
}

/* 让 footer 真正通栏 */
#footer {
  width: 100%;
  margin: 0;
  padding: 0;
}

#footer .footer-bottom {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 15px 30px;  /* 左右保留一点间距 */
  display: flex;
  justify-content: space-between;  /* 左右对齐 */
  align-items: center;
}

/* =============== 隐私政策页面排版 =============== */
.privacy-container {
  max-width: 900px;   /* 控制页面最大宽度 */
  margin: 0 auto;     /* 水平居中 */
  padding: 20px;      /* 内边距，避免文字贴边 */
}

.privacy-section {
  margin-bottom: 40px;
}

.privacy-section h2 {
  font-size: 22px;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.privacy-section p {
  line-height: 1.6;
  margin-bottom: 12px;
}
.privacy-container {
  max-width: 900px;   /* 控制页面最大宽度 */
  margin: 0 auto;     /* 水平居中 */
  padding: 20px;      /* 内边距，避免文字贴边 */
}

.privacy-section {
  margin-bottom: 40px;
}

.privacy-section h2 {
  font-size: 22px;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.privacy-section p {
  line-height: 1.6;
  margin-bottom: 12px;
}

/* =============== 服务条款页面排版 =============== */
.term-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.term-section {
  margin-bottom: 40px;
}

.term-section h2 {
  font-size: 22px;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.term-section p,
.term-section li {
  line-height: 1.6;
  margin-bottom: 12px;
}


