/* ======= 修复全局滚动问题 ======= */
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ======= 头部区域 ======= */
.baidu-header {
  background: #fff;
  color: #333;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.baidu-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.baidu-logo img {
  height: 36px;
}

.baidu-main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.baidu-main-nav ul {
  display: inline-flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.baidu-main-nav li a {
  color: #333;
  font-size: 15px;
  text-decoration: none;
}

.baidu-main-nav li a:hover {
  color: #ff6d00;
}

/* 登录注册按钮 */
.baidu-header-actions {
  display: flex;
  gap: 10px;
}

.baidu-btn {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
  text-align: center;
}

.baidu-btn-login {
  background: #f5f5f5;
  color: #333;
}

.baidu-btn-login:hover {
  background: #e0e0e0;
}

.baidu-btn-register {
  background: #ff6d00;
  color: #fff;
}

.baidu-btn-register:hover {
  background: #e65c00;
}

/* 移动端按钮 */
.baidu-nav-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ======= 响应式样式 ======= */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

.baidu-mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 10px 15px;
}

.baidu-mobile-nav ul {
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.baidu-mobile-nav ul li a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
}

.baidu-mobile-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.baidu-mobile-actions .baidu-btn {
  flex: 1;
}

.baidu-mobile-nav.show {
  display: block;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  .baidu-header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}

/* ======= 卡片结构与工具盒子 ======= */
.baidu-article-box {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.baidu-article-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 6px 0 0 0;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baidu-card-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
}

.baidu-article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

/* ======= 页面结构 ======= */
.baidu-page-wrapper {
  max-width: 960px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.baidu-page-header {
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.baidu-breadcrumb {
  font-size: 14px;
  color: #888;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.baidu-breadcrumb i {
  margin-right: 6px;
  color: #ccc;
}

.baidu-breadcrumb a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.baidu-breadcrumb a:hover {
  color: #ff6600;
  text-decoration: underline;
}

.baidu-page-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.baidu-page-content p {
  margin-bottom: 1.2em;
}

.baidu-page-content ul,
.baidu-page-content ol {
  margin-bottom: 1.2em;
  padding-left: 1.6em;
}

.baidu-page-content li {
  margin-bottom: 0.5em;
}

/* ======= 文章详情页 ======= */
.baidu-article-detail {
  max-width: 960px;
  margin: 40px auto;
  padding: 32px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.baidu-article-title {
  font-size: 28px;
  font-weight: bold;
  color: #222;
  margin: 0 0 20px;
  line-height: 1.4;
}

.baidu-article-meta {
  font-size: 14px;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.baidu-article-meta i {
  margin-right: 6px;
  color: #bbb;
}

.baidu-article-content {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  word-break: break-word;
}

.baidu-article-content p {
  margin-bottom: 1.4em;
}

.baidu-article-content img,
.baidu-article-content video {
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  display: block;
  border-radius: 6px;
}

.baidu-article-tags {
  margin-top: 30px;
  font-size: 15px;
  color: #666;
}

.baidu-article-tags strong {
  color: #333;
  margin-right: 10px;
}

.baidu-article-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 15px;
  color: #666;
}

.baidu-article-nav a {
  color: #0073e6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.baidu-article-nav a:hover {
  color: #ff6600;
  text-decoration: underline;
}

.baidu-article-prev i,
.baidu-article-next i {
  margin: 0 6px;
  color: #bbb;
}

/* ======= 友情链接 ======= */
.baidu-friendlinks {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  margin: 30px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.baidu-section-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  border-left: 4px solid #ff6600;
  padding-left: 10px;
  margin-bottom: 15px;
}

.baidu-friendlinks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.baidu-friendlinks-list li a {
  display: inline-block;
  padding: 6px 14px;
  background-color: #f5f5f5;
  border-radius: 6px;
  color: #0073e6;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.baidu-friendlinks-list li a:hover {
  background-color: #0073e6;
  color: #fff;
}

/* ======= 页脚 ======= */
.baidu-footer-dark {
  background-color: #222;
  color: #ccc;
  font-size: 14px;
  padding: 15px 10px;
}

.baidu-footer-dark-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.baidu-footer-dark-container span {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .baidu-footer-dark-container {
    flex-direction: column;
    gap: 6px;
  }
}


