/* ============================================
   母狗园 - 影视传媒视频社区 | jrbf.com.cn
   原创CSS样式 - 全站响应式设计
   ============================================ */

/* === CSS变量定义 === */
:root {
  --primary: #E63946;
  --primary-dark: #C62833;
  --secondary: #1D3557;
  --secondary-light: #264573;
  --accent: #F4A261;
  --accent-light: #F7BC8A;
  --bg-light: #F1FAEE;
  --bg-dark: #0D1B2A;
  --bg-card: #FFFFFF;
  --text-main: #2B2D42;
  --text-light: #6C757D;
  --text-white: #FFFFFF;
  --border: #E0E0E0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --max-width: 1280px;
}

/* === 全局重置 === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === 头部导航 === */
.site-header {
  background: var(--secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.site-logo img {
  height: 42px;
  width: auto;
}

.site-logo span {
  color: var(--text-white);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 22px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  display: block;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 60%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* === 搜索栏 === */
.search-bar {
  background: var(--secondary-light);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.search-bar .container {
  display: flex;
  justify-content: center;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
}

.search-wrapper input {
  width: 100%;
  padding: 10px 48px 10px 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  background: rgba(255,255,255,0.1);
  color: var(--text-white);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-wrapper input::placeholder {
  color: rgba(255,255,255,0.5);
}

.search-wrapper input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.15);
}

.search-wrapper button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-wrapper button:hover {
  background: var(--primary-dark);
}

/* === 面包屑导航 === */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--border);
}

/* === Hero Banner === */
.hero-section {
  position: relative;
  overflow: hidden;
  height: 520px;
}

.hero-slider {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13,27,42,0.75) 0%, rgba(230,57,70,0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  padding: 20px;
}

.hero-content h1 {
  color: var(--text-white);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.3;
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(230,57,70,0.4);
}

.hero-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: var(--text-white);
  box-shadow: 0 6px 24px rgba(230,57,70,0.5);
}

/* === 通用区块标题 === */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === 视频卡片网格 === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.video-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  background: rgba(230,57,70,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent white;
  margin-left: 3px;
}

.video-card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.video-info {
  padding: 14px 16px;
}

.video-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.video-meta .views::before { content: '\25B6 '; }
.video-meta .likes::before { content: '\2764 '; }
.video-meta .comments::before { content: '\1F4AC '; }

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.video-tags span {
  background: var(--bg-light);
  color: var(--text-light);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* === 各内容区块 === */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-card);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}

.section-dark .section-title h2 {
  color: var(--text-white);
}

.section-dark .section-title p {
  color: rgba(255,255,255,0.7);
}

/* === 影视传媒模块 === */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.media-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.media-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.media-card .icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.media-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 10px;
}

.media-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === 专家展示 === */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.expert-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

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

.expert-card .info {
  padding: 20px 16px;
}

.expert-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 4px;
}

.expert-card .title {
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.expert-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.expert-card .btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-sm {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--text-white);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
}

/* === 合作品牌墙 === */
.partner-wall {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 20px 0;
}

.partner-wall img {
  height: 60px;
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(100%);
}

.partner-wall img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* === How-To指南 === */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.howto-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.howto-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.howto-step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.howto-step p {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* === 用户评论 === */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.review-header .name {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
}

.review-header .date {
  color: var(--text-light);
  font-size: 0.8rem;
}

.review-stars {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.review-card p {
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* === FAQ === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .arrow {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.faq-item.active .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding: 0 24px 18px;
  max-height: 300px;
}

/* === 联系我们 === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card .icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.contact-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* === 社交分享 === */
.share-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  transition: var(--transition);
}

.share-btn:hover {
  transform: translateY(-3px);
  color: white;
}

.share-btn.wechat { background: #07C160; }
.share-btn.weibo { background: #E6162D; }
.share-btn.douyin { background: #161823; }
.share-btn.bilibili { background: #00A1D6; }

/* === 页脚 === */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-qrcodes {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.footer-qrcodes img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.1);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

/* === 内页Banner === */
.page-banner {
  height: 300px;
  position: relative;
  overflow: hidden;
}

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

.page-banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13,27,42,0.8), rgba(230,57,70,0.4));
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner h1 {
  color: var(--text-white);
  font-size: 2.4rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* === 社区功能模块 === */
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.community-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 280px;
  box-shadow: var(--shadow);
}

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

.community-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
}

.community-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.community-card p {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* === 内页内容 === */
.page-content {
  padding: 48px 0;
}

.content-text {
  max-width: 900px;
  margin: 0 auto;
}

.content-text h2 {
  font-size: 1.6rem;
  color: var(--secondary);
  margin: 32px 0 16px;
  font-weight: 700;
}

.content-text h3 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin: 24px 0 12px;
  font-weight: 600;
}

.content-text p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text-main);
}

/* === 图片加载优化 === */
/* 视频缩略图骨架屏占位 */
.video-thumb {
  background: linear-gradient(110deg, #e8e8e8 8%, #f5f5f5 18%, #e8e8e8 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.video-thumb img {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 专家卡片图片占位 */
.expert-card img {
  background: linear-gradient(110deg, #e8e8e8 8%, #f5f5f5 18%, #e8e8e8 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

/* 社区卡片图片占位 */
.community-card img {
  background: linear-gradient(110deg, #d0d0d0 8%, #e8e8e8 18%, #d0d0d0 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

/* 骨架屏动画 */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .expert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .howto-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 56px;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background: var(--secondary);
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  .main-nav.open {
    display: flex;
  }
  
  .main-nav a {
    padding: 12px 24px;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-section {
    height: 360px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 0.95rem;
  }
  
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .media-grid {
    grid-template-columns: 1fr;
  }
  
  .expert-grid {
    grid-template-columns: 1fr;
  }
  
  .review-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .community-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .howto-steps {
    grid-template-columns: 1fr;
  }
  
  .partner-wall {
    gap: 24px;
  }
  
  .partner-wall img {
    height: 40px;
  }
  
  .page-banner {
    height: 200px;
  }
  
  .page-banner h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    height: 280px;
  }
  
  .hero-content h1 {
    font-size: 1.4rem;
  }
}

/* === MCP服务前端占位 === */
.mcp-widget {
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin-top: 20px;
}

.mcp-widget p {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

/* === 标签云 === */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 20px 0;
}

.tag-cloud a {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.tag-cloud a:hover {
  background: var(--primary);
  color: white;
}

/* === 内页推荐侧边栏 === */
.sidebar-recommend {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.sidebar-recommend h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.sidebar-item img {
  width: 80px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.sidebar-item .text h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.3;
}

.sidebar-item .text span {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* === 页面两栏布局 === */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

@media (max-width: 768px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
}
