/* ==========================================
   糖心VLOG站群专用 | 完整版 styles.css
   适配：index.html / about.html / 所有子页面
   功能：SEO优化、轮播、友情链接、自动化内链、横向页脚、全端响应式
========================================== */

/* 全局基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 2;
  color: #333;
  background-color: #f5f7fa;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #165dff;
  transition: all 0.3s ease;
}

a:hover {
  color: #0e42d2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

ul,
ol {
  list-style: none;
}

/* 通用容器 */
.container {
  width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================
   1. 面包屑导航（SEO结构化）
========================================== */
.breadcrumb {
  background: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 14px;
  color: #666;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb a {
  color: #666;
}

.breadcrumb a:hover {
  color: #165dff;
}

.breadcrumb span {
  margin: 0 8px;
  color: #999;
}

.breadcrumb strong {
  color: #165dff;
  font-weight: 500;
}

/* ==========================================
   2. 顶部导航栏（吸顶/渐变/精品样式）
========================================== */
.navbar {
  background: linear-gradient(90deg, #165dff, #0e42d2);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 3px 12px rgba(22, 93, 255, 0.15);
  border-radius: 8px;
  margin-bottom: 20px;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 35px;
}

.nav-list a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   3. Hero核心内容区（SEO文案区）
========================================== */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
  padding: 50px 30px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero h1 {
  font-size: 34px;
  color: #165dff;
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-desc {
  max-width: 950px;
  margin: 0 auto;
  text-align: justify;
  font-size: 16px;
  color: #444;
  text-indent: 2em;
}

/* ==========================================
   4. 轮播图（修复自动播放/精品渐变/图片适配）
========================================== */
.carousel {
  height: 420px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
}

.carousel-item {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.carousel-item.active {
  display: flex !important;
}

.carousel-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 10px;
}

.carousel-item span {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 24px;
  border-radius: 8px;
}

.carousel-item:nth-child(1) {
  background: linear-gradient(135deg, #ff6b6b, #ff4d4f);
}

.carousel-item:nth-child(2) {
  background: linear-gradient(135deg, #165dff, #0e42d2);
}

.carousel-item:nth-child(3) {
  background: linear-gradient(135deg, #00b42a, #36cfc9);
}

/* ==========================================
   5. SEO黄金布局：左70%主内容 + 右30%侧边栏
========================================== */
.main-layout {
  display: flex;
  gap: 25px;
  margin-bottom: 40px;
}

/* 左侧主内容区 */
.content-main {
  width: 70%;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* 右侧侧边栏 */
.content-side {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* 板块标题样式 */
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #165dff;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 3px solid #f0f5ff;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 60px;
  height: 3px;
  background: #165dff;
}

/* 正文内容排版（SEO核心） */
.content-main p {
  font-size: 16px;
  color: #333;
  margin: 18px 0;
  text-indent: 2em;
  line-height: 2;
}

.content-main h2 {
  font-size: 24px;
  margin: 25px 0 15px;
  color: #333;
  border-left: 4px solid #165dff;
  padding-left: 12px;
}

.content-main h3 {
  font-size: 20px;
  margin: 20px 0 12px;
  color: #444;
}

.content-main strong {
  color: #165dff;
  font-weight: 600;
}

/* 自动化内链样式 */
.content-main a[rel*="nofollow"] {
  color: #165dff;
  font-weight: 500;
  padding: 0 2px;
}

.content-main a[rel*="nofollow"]:hover {
  text-decoration: underline;
}

/* ==========================================
   6. 侧边栏模块：热门推荐 + 友情链接
========================================== */
.side-box {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 热门推荐列表 */
.hot-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  font-size: 15px;
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-list a {
  color: #333;
  display: block;
}

.hot-list a:hover {
  color: #165dff;
  padding-left: 5px;
}

/* 友情链接样式 */
.friend-link {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-link a {
  padding: 6px 14px;
  background: #f5f7fa;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.friend-link a:hover {
  background: #165dff;
  color: #fff;
}

/* ==========================================
   7. 自动更新文章板块
========================================== */
.auto-update {
  margin-top: 35px;
  padding: 25px;
  background: #fafbfc;
  border-radius: 8px;
  border: 1px dashed #eee;
}

.update-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
}

.update-item:last-child {
  border-bottom: none;
}

.update-item a {
  color: #333;
}

.update-item a:hover {
  color: #165dff;
}

/* ==========================================
   8. 全新页脚样式（横向排列/SEO权重隔离）
========================================== */
.footer {
  background: #1f2937;
  color: #fff;
  padding: 40px 0;
  border-radius: 10px 10px 0 0;
  margin-top: 30px;
}

/* 页脚顶部：快速链接 横向居中 */
.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-top a {
  color: #d1d5db;
  font-size: 15px;
}

.footer-top a:hover {
  color: #165dff;
}

/* 页脚底部：更新时间/域名/robots/sitemap 横向居中 */
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  color: #9ca3af;
  font-size: 14px;
}

.footer-bottom a {
  color: #9ca3af;
}

.footer-bottom a:hover {
  color: #165dff;
}

/* 动态信息高亮：更新时间 + 当前域名 */
#update-time,
#current-domain {
  color: #165dff !important;
  font-weight: 600;
  margin: 0 4px;
}

/* 版权信息 */
.copyright {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  border-top: 1px solid #374151;
  padding-top: 15px;
}

/* ==========================================
   9. 响应式适配（电脑/平板/手机全兼容）
========================================== */
@media (max-width: 1280px) {
  .container {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .main-layout {
    flex-direction: column;
  }

  .content-main,
  .content-side {
    width: 100%;
  }

  .nav-list {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 26px;
  }

  .carousel {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .content-main {
    padding: 25px;
  }

  .side-box {
    padding: 20px;
  }

  .footer-top,
  .footer-bottom {
    gap: 15px;
  }
}
.carousel-item:first-child {
  display: flex;
}
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px;
}
.carousel-controls button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: white;
  color: #222;
  cursor: pointer;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.main-layout > * {
  min-width: 0;
}
p,
a {
  overflow-wrap: anywhere;
}
img {
  height: auto;
}
