/* 糖心vlog 版本15 - 主流视频平台风格，响应式 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1a1a1a;
  background: #f5f5f5;
  line-height: 1.6;
}

a {
  color: #e85d04;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== 顶部导航：深色条 ========== */
.site-header {
  background: #212529;
  color: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e85d04, #f48c06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
}

.logo-desc {
  font-size: 11px;
  color: #adb5bd;
  margin-top: 0;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  padding: 8px 14px;
  border-radius: 6px;
  color: #dee2e6;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.nav-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}

.nav-menu a.active {
  background: #e85d04;
  color: #fff;
}

.nav-home {
  padding: 8px 16px;
  border-radius: 6px;
  background: #e85d04;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.nav-home:hover {
  background: #d54d03;
  text-decoration: none;
}

/* ========== 主内容区 ========== */
.main {
  flex: 1;
  padding: 24px 0 40px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #212529;
}

.section-desc {
  font-size: 14px;
  color: #495057;
  margin-bottom: 20px;
  line-height: 1.65;
}

/* 视频/内容卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-cover {
  position: relative;
  aspect-ratio: 16/9;
  background: #e9ecef;
  overflow: hidden;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 11px;
}

.card-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e85d04;
  color: #fff;
  font-size: 11px;
}

.card-body {
  padding: 12px 14px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 12px;
  color: #6c757d;
}

/* 列表页 */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #e85d04;
}

/* 文章/内容页 */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 24px;
}

.article-title {
  font-size: 22px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 10px;
  line-height: 1.35;
}

.article-meta {
  font-size: 13px;
  color: #6c757d;
}

.article-cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.article-cover img {
  width: 100%;
  height: auto;
}

.article-content {
  font-size: 15px;
  line-height: 1.75;
  color: #343a40;
}

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

.article-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 1.5em 0 0.5em;
  color: #212529;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content code {
  background: #f1f3f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.article-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags span {
  padding: 4px 12px;
  border-radius: 20px;
  background: #fff3e6;
  color: #c2410c;
  font-size: 12px;
}

.back-links {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  font-size: 14px;
  color: #6c757d;
}

.back-links a {
  color: #e85d04;
  font-weight: 500;
}

/* 列表项 */
.list-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.list-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #212529;
}

.list-item p {
  font-size: 14px;
  color: #495057;
  line-height: 1.55;
}

.list-item a.inline-link {
  color: #e85d04;
  font-weight: 500;
}

/* 底部 */
.site-footer {
  background: #212529;
  color: #adb5bd;
  padding: 32px 0 24px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-col h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #adb5bd;
  margin-bottom: 6px;
}

.footer-col a:hover {
  color: #f48c06;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #343a40;
  font-size: 12px;
  color: #868e96;
}

.footer-bottom a {
  color: #f48c06;
}

/* ========== 首页 Hero ========== */
.hero {
  background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
  padding: 32px 0 40px;
  border-bottom: 1px solid #e9ecef;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #212529;
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-title span {
  color: #e85d04;
}

.hero-text {
  font-size: 15px;
  color: #495057;
  line-height: 1.7;
  margin-bottom: 20px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-btns .btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.hero-btns .btn-primary {
  background: #e85d04;
  color: #fff;
  border: none;
}

.hero-btns .btn-primary:hover {
  opacity: 0.9;
  text-decoration: none;
}

.hero-btns .btn-outline {
  background: transparent;
  color: #e85d04;
  border: 2px solid #e85d04;
}

.hero-btns .btn-outline:hover {
  background: #fff3e6;
  text-decoration: none;
}

.hero-visual {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-height: 240px;
  }

  .hero-visual img {
    object-fit: cover;
    height: 240px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px 0;
  }

  .nav-menu {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    padding-top: 8px;
    border-top: 1px solid #343a40;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .main {
    padding: 16px 0 32px;
  }

  .hero {
    padding: 24px 0 32px;
  }

  .hero-title {
    font-size: 22px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .page-title,
  .article-title {
    font-size: 20px;
  }
}
