body {
  margin: 0;
  background: #fff;
  color: #333;
  line-height: 1.42857143;
  font-family: "Relay Cond Regular" !important
}

/* 顶部导航栏 */
.nav-header {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  width: 60%; /* 与正文同宽 */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

/* 左侧LOGO */
.nav-logo img {
  height: 32px;
}

/* 中间导航链接 */
.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}

.nav-links a:hover {
  color: #c00;
}

.nav-links a.active {
  color: #c00;
  border-bottom-color: #c00;
}

/* 右侧搜索区 */
.nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #000;
}
/* 右侧搜索链接 */
.nav-search a {
  text-decoration: none;   /* 去掉下划线 */
  color: #000;             /* 黑色文字 */
  font-weight: 500;
}
.search-icon {
  font-size: 16px;
  line-height: 1;
}


/* 主体 */
.container {
  width: 60%;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
div {
    display: block;
    unicode-bidi: isolate;
}
h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
a {
  color: #b22222;          /* 继承父元素颜色 */
}

a:hover,
a:visited,
a:active {
  color: #b22222;          /* 保持颜色一致 */
}
p {
  font-size: 18px;   /* 默认大约 17–18px */
  line-height: 1.6;    /* 让行距更舒服 */
  font-style: italic;
}
strong {
  font-size: 1.2rem;   /* 默认大约 17–18px */
  line-height: 1.6;    /* 让行距更舒服 */
}


.hero {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* 侧栏 */
.sidebar {
  border-left: 1px solid #eee;
  padding-left: 1.5rem;
}

.sidebar h3 {
  font-size: 1rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.reader-result {
  margin-bottom: 2rem;
}

.single-photo {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.image-container {
  text-align: center;      /* 内容居中 */
  margin-bottom: 20px;     /* 与下方内容留空 */
}

.image-container img {
  width: 100%;             /* 保持响应式 */
  border-radius: 8px;      /* 圆角可选 */
}

.caption {
  font-size: 0.9em;        /* 比正文略小 */
  color: #555;             /* 浅灰色文字 */
  margin-top: 5px;         /* 与图片间距 */
}

/* 外层 wrapper，模拟 container 宽度并居中 */
.cpa-wrapper {
  width: 60%;
  margin: 60px auto;
}

/* 内层样式 */
.cpa-box {
  background-color: #fff3d1;
  border: 2px solid #ffcc66;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 30px 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.cpa-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.cpa-img {
  width: 250px;
  border-radius: 8px;
  display: block;
}
.cpa-logo {
  width: 350px;
  margin-top: 2px;
  border-radius: 6px;
}

.cpa-text {
  text-align: left;
}

.cpa-text h2 {
  font-size: 1.6em;
  margin-bottom: 12px;
  color: #b85c00;
}

.cpa-text p {
  font-size: 1em;
  margin-bottom: 20px;
  color: #333;
}

.cpa-btn {
  display: inline-block;
  padding: 14px 26px;
  background-color: #ff6600;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s ease-in-out;
}

.cpa-btn:hover {
  background-color: #e55500;
}
.comment-wrapper {
  width: 60%;              /* 与 CPA 相同宽度 */
  margin: 40px auto;       /* 居中 */
  font-family: Arial, sans-serif;
}

.comment-box {
  font-size: 14px;
  color: #1d2129;
}

.comment {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 10px;
}

.comment p {
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
  color: #333;
  font-family: Arial, sans-serif;
}

.comment-author {
  font-weight: bold;
  color: #385898;
}


.avatar {
  width: 60px;
  height: 60px;
  border-radius: 3px;
  margin-right: 10px;
}

.comment-content {
  flex: 1;
}

.name {
  font-weight: bold;
  color: #385898;
  margin: 0 0 3px 0;
}

.text {
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.meta {
  color: #65676b;
  font-size: 12px;
  user-select: none;
  color: #777;
  margin-bottom: 1rem;
}
.sDate {
  color: #65676b;
  font-size: 12px;
  user-select: none;
  color: #777;
  margin-bottom: 1rem;
}

/* 响应式 */
@media (max-width: 900px) {
  .nav-inner,
  .container {
    width: 90%;
  }

  .container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border: none;
    padding: 0;
    margin-top: 2rem;
  }
  h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  
}
/* ======== 手机端优化 ======== */
/* ======== 手机端优化 ======== */
@media (max-width: 768px) {

  /* 顶部导航栏 */
  .nav-container {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
  }

  /* 隐藏普通导航链接 */
  .nav-links {
    display: none;
  }

  /* 搜索按钮靠右显示 */
  .nav-search {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
  }

  .nav-search a {
    color: #000;
    text-decoration: none;
  }

  .search-icon {
    font-size: 1.1em;
    line-height: 1;
  }

  /* logo 居中对齐 */
  .nav-logo img {
    display: block;
    height: 26px; /* 可根据需要调整 */
	width:82px;
  }

  /* 主体布局：上下排列 */
  .container {
    width: 90%;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* 图片自适应 */
  .hero {
    width: 100%;
    height: auto;
  }

  /* 标题缩放 */
  h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.3rem;
  }

  /* 侧边栏置底 */
  .sidebar {
    border: none;
    padding: 0;
    margin-top: 2rem;
  }

  .cpa-wrapper {
    width: 90%;
  }

  .cpa-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .cpa-image-wrapper {
    width: 60%;
    max-width: 240px;
  }

  .cpa-img {
    width: 100%;
  }

  .cpa-logo {
    width: 100%;
    margin-top: 10px;
  }

  .cpa-text h2 {
    font-size: 1.2rem;
  }

  .cpa-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
