/* ==========================================================================
   DALY BMS — 内页
   源站结构：header → .page_main.about_main（左 CATEGORY 侧栏 + 右正文）→ 联系区
   ⚠️ 源站内页**没有 hero banner**，别加。
   ========================================================================== */

.page_main {
  padding: 60px 0 80px;
}

.page_columns {
  display: flex;
  align-items: flex-start;
  gap: 46px;
}

/* ---------- 左侧 CATEGORY ---------- */
.page_side {
  flex: 0 0 260px;
  max-width: 260px;
}

.side_title {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--daly-red);
  color: #000;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.side_nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side_nav_item {
  border-bottom: 1px solid #eee;
}

.side_nav_item a {
  position: relative;
  display: block;
  padding: 13px 16px 13px 0;
  color: var(--daly-text);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: all 0.3s ease;
}

.side_nav_item a::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #bbb;
  border-right: 1px solid #bbb;
  content: "";
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.3s ease;
}

.side_nav_item a:hover,
.side_nav_item.active > a {
  padding-left: 10px;
  color: var(--daly-red);
}

.side_nav_item a:hover::after,
.side_nav_item.active > a::after {
  border-color: var(--daly-red);
}

/* ---------- 右侧正文 ---------- */
.page_body {
  flex: 1;
  min-width: 0;
}

.page_title {
  margin: 0 0 26px;
  color: #000;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
}

.page_content {
  color: var(--daly-text);
  font-size: 15px;
  line-height: 1.8;
}

.page_content h2 {
  margin: 36px 0 16px;
  font-size: 24px;
  font-weight: 600;
}

.page_content h3 {
  margin: 28px 0 12px;
  font-size: 19px;
  font-weight: 600;
}

.page_content h4 {
  margin: 22px 0 10px;
  color: #555;
  font-size: 16px;
  font-weight: 600;
}

.page_content p {
  margin: 0 0 16px;
}

.page_content ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.page_content ul li {
  position: relative;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  line-height: 1.6;
}

.page_content ul li::before {
  position: absolute;
  top: 15px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--daly-red);
  content: "";
}

.page_content img {
  max-width: 100%;
  height: auto;
}

.page_content a {
  color: var(--daly-red);
}

.page_placeholder {
  padding: 40px 0;
  color: #999;
  font-style: italic;
}

/* 正文里的统计数字（源站 R&D 页那种 4 / 100+ / 10%） */
.page_content .stat-num {
  margin: 22px 0 2px;
  color: var(--daly-red-dark);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
}

.page_content .stat-num + p {
  margin-top: 0;
  color: #666;
  font-size: 14px;
}

/* Elementor 编辑的页面：整宽，无侧栏 */
.page_full {
  width: 100%;
}

/* ---------- 新闻列表 ---------- */
.news_grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
}

.news_grid > li > a {
  display: block;
  height: 100%;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  color: var(--daly-text);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news_grid > li > a:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.news_grid figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  background: #f5f5f5;
  overflow: hidden;
}

.news_grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news_grid > li > a:hover figure img {
  transform: scale(1.06);
}

.news_meta {
  padding: 18px 22px 24px;
}

.news_meta time {
  display: block;
  margin-bottom: 8px;
  color: #999;
  font-size: 13px;
}

.news_meta h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news_grid > li > a:hover .news_meta h2 {
  color: var(--daly-red);
}

.news_meta p {
  margin: 0;
  color: #777;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 文章详情 ---------- */
.single_post {
  margin: 0 auto;
  max-width: 900px;
}

.post_meta {
  margin-bottom: 24px;
  color: #999;
  font-size: 14px;
}

.post_thumb {
  margin: 0 0 30px;
}

.post_thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.post_nav {
  display: flex;
  justify-content: space-between;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  gap: 20px;
}

.post_nav a {
  color: var(--daly-text);
  font-size: 14px;
  text-decoration: none;
}

.post_nav a:hover {
  color: var(--daly-red);
}

@media (max-width: 1080px) {
  .news_grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 640px) {
  .news_grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1080px) {
  .page_main { padding: 40px 0 56px; }

  .page_columns {
    flex-direction: column;
    gap: 30px;
  }

  .page_side {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .page_title { font-size: 26px; }
}
