/* 基础变量与主题色 */
:root{
  --color-bg:#fff;
  --color-text:#424242;
  --color-muted:#6b7280;
  --orange:#f28f0e; /* 橙色 */
  --pink:#ed6666;   /* 粉色 */
  --purple:#6c0bda; /* 紫色 */
  --link:#6c0bda;
  /* --link-hover:#f28f0e; */
    --link-hover:#ed6666;
  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.06);
  --container:1100px;
}
*{box-sizing:border-box}
@font-face{
  font-family:Inter;
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('/assets/fonts/inter/Inter-Regular.woff2') format('woff2');
}
@font-face{
  font-family:Inter;
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url('/assets/fonts/inter/Inter-Medium.woff2') format('woff2');
}
@font-face{
  font-family:Inter;
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url('/assets/fonts/inter/Inter-Bold.woff2') format('woff2');
}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--color-text);
  background:var(--color-bg);
  line-height:1.65;
  font-size:16px;
}
img{max-width:100%;display:block}
.container{max-width:var(--container);margin:0 auto;padding:0 20px}

/* 头部导航（接近WordPress经典主题的清爽风格） */
.site-header{position:sticky;top:0;background:#fff;border-bottom:1px solid #f3f4f6;z-index:50;padding: 30px 0px;}
.site-header .nav{display:flex;align-items:center;justify-content:space-between;height:100px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#424242;font-weight:700}
.brand.small span{font-size:32px}

.nav-wrapper{display:flex;align-items:center;gap:20px}
.primary-nav a{color:#424242;text-decoration:none;margin-left:18px;padding:8px 10px;border-radius:8px;font-weight: bold;}
.primary-nav a.active,.primary-nav a:hover{color:var(--pink)}

/* 联系我们按钮（PC与移动端样式一致） */
.contact-link{
  background: var(--pink);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-block;
}
.primary-nav .contact-link{margin-left:18px}
.primary-nav .contact-link:hover{filter:brightness(0.95)}

/* 移动端Contact按钮覆盖，保持统一外观 */
.mobile-nav .contact-link{
  border: none;
  padding: 10px 14px;
  align-self: flex-start;
}
.mobile-nav .contact-link:hover{filter:brightness(0.95)}

/* 移动端菜单按钮 */
.mobile-menu-toggle{
  display:none;
  flex-direction:column;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  gap:4px;
}
.hamburger-line{
  width:24px;
  height:3px;
  background:#424242;
  border-radius:2px;
  transition:all 0.3s ease;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(1){
  transform:rotate(45deg) translate(6px, 6px);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2){
  opacity:0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3){
  transform:rotate(-45deg) translate(6px, -6px);
}

/* 移动端导航菜单 */
.mobile-nav{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:#fff;
  border-bottom:1px solid #f3f4f6;
  box-shadow:0 4px 6px rgba(0,0,0,0.1);
  padding:20px;
  flex-direction:column;
  gap:16px;
}
.mobile-nav.active{
  display:flex;
}
.mobile-nav a{
  color:#424242;
  text-decoration:none;
  padding:12px 0;
  border-bottom:1px solid #f3f4f6;
  font-weight:bold;
}
.mobile-nav a:last-child{
  border-bottom:none;
}
.mobile-nav a.active,.mobile-nav a:hover{
  color:var(--pink);
}

/* 现代链接样式（移除默认下划线） */
a{color:var(--link);text-decoration:none;transition:color .2s ease}
a:hover{color:var(--link-hover)}
a:focus-visible{outline:3px solid var(--purple);outline-offset:2px;border-radius:6px}

/* 横幅轮播图 */
.banner{
  position:relative;
  overflow:hidden;
  height:600px;
}
.banner-carousel{
  position:relative;
  width:100%;
  height:100%;
}
.carousel-container{
  position:relative;
  width:100%;
  height:100%;
}
.carousel-slide{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  opacity:0;
  transition:opacity 0.8s ease-in-out;
}
.carousel-slide.active{
  opacity:1;
}
.carousel-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.slide-content{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%);
  display:flex;
  align-items:center;
  color:#fff;
}
.banner-copy{
  max-width:600px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.banner h1{font-size:40px;margin:0 0 10px;text-shadow: 2px 2px 4px rgba(0,0,0,0.8);}
.banner p{opacity:.95;line-height:1.7;text-shadow: 1px 1px 2px rgba(0,0,0,0.7);}
/* 移动端横幅高度与标题优化 */
@media (max-width: 640px) {
  .banner { height: 360px; }
  .banner h1 { font-size: 24px; }
}
@media (max-width: 480px) {
  .banner { height: 300px; }
  .banner h1 { font-size: 20px; }
}
.search{margin-top:18px;display:flex;gap:10px}
.search input{flex:1;padding:12px 14px;border-radius:10px;border:0;outline:0}
.btn{border:0;border-radius:10px;padding:12px 16px;font-weight:700;cursor:pointer}
.btn.primary{background:#fff;color:#424242}
.btn.primary:hover{background:#f3f4f6}

.btn.btn-search{background:#424242;color:#fff}
.btn.btn-search:hover{background:#f3f4f6}


/* 轮播图样式 */
.banner-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

.carousel-slide:nth-child(1) {
  background-image: url('../img/banner/banner1.jpeg');
}

.carousel-slide:nth-child(2) {
  background-image: url('../img/banner/banner2.jpeg');
}

.carousel-slide:nth-child(3) {
  background-image: url('../img/banner/banner3.jpeg');
}

.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 600px;
}

.carousel-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.carousel-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* 轮播指示器 */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active {
  background: white;
}

/* 轮播控制按钮 */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 3;
  transition: background 0.3s ease;
}

.carousel-control:hover {
  background: rgba(0,0,0,0.7);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .carousel-content h1 {
    font-size: 2rem;
  }
  
  .carousel-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .carousel-control.prev {
    left: 10px;
  }
  
  .carousel-control.next {
    right: 10px;
  }
  
  .carousel-indicators {
    bottom: 15px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-content h1 {
    font-size: 1.5rem;
  }
  
  .carousel-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .carousel-control {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .carousel-control.prev {
    left: 5px;
  }
  
  .carousel-control.next {
    right: 5px;
  }
  
  .carousel-indicators {
    bottom: 10px;
    gap: 8px;
  }
  
  .indicator {
    width: 8px;
    height: 8px;
  }
}

/* 卡片列表 */
.section-head{display:flex;align-items:center;justify-content:center;margin:28px 0 20px 0}
.filters{display:flex;gap:10px;justify-content: center;}
.chip{padding:8px 12px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;color:#424242;cursor:pointer}
.chip[aria-pressed="true"],.chip:hover{background:#424242;color:#fff;border-color:#424242}

.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:0}
.card-grid .empty-tip{grid-column:1 / -1;text-align:center;color:var(--color-muted);padding:24px}
.card{background:#fff;border:none;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;transition:transform .18s ease, box-shadow .18s ease}
.card:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(0,0,0,.10)}
.card .cover{aspect-ratio:16/9;background:#f9fafb;overflow:hidden}
.card .cover img{width:100%;height:100%;object-fit:cover}
.card h3 a{color:#424242}
.card h3 a:hover{color:var(--link-hover)}
.card .content{padding:14px}
.card .meta{display:flex;align-items:center;gap:8px;color:var(--color-muted);font-size:12px}
.card h3{margin:8px 0 6px;font-size:18px}
.card .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tag{font-size:12px;background:#f8fafc;color:#374151;padding:4px 8px;border-radius:999px}
.tag.orange{background:#fff7ed;border-color:#fed7aa;color:#c2410c}
.tag.pink{background:#fff1f2;border-color:#fecdd3;color:#be123c}
.tag.purple{background:#f5f3ff;border-color:#ddd6fe;color:#6d28d9}

/* 详情页 */
.detail .post-header h1{margin:12px 0 0}
.meta .badge{background:#f1f5f9;border-radius:8px;padding:4px 8px}
.breadcrumb{font-size:14px;color:#6b7280;margin:14px 0}
.breadcrumb a{color:#374151;text-decoration:none}
.detail-meta{padding: 20px 0;}

.ratio-16x9{position:relative;width:100%;aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.ratio-16x9 iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

.related {
  margin-top: 3rem;
}

.related .card-grid.small{grid-template-columns:repeat(2,1fr)}

/* 底部 */
.section{padding:32px 0}
.section .section-title{font-size:22px;margin:0 0 14px}
.topic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.topic{
  border-radius:16px;padding:18px;color:#424242;background:#fff;border:1px solid #f1f5f9;box-shadow:var(--shadow);
}
.topic-icon{margin-bottom:12px}
.topic-icon img{opacity:0.8}
.topic.orange{background:linear-gradient(135deg,#fff7ed, #fde68a)}
.topic.pink{background:linear-gradient(135deg,#fff1f2, #fecdd3)}
.topic.purple{background:linear-gradient(135deg,#f5f3ff, #ddd6fe)}
.topic h3{margin:0 0 8px}
.topic p{margin:0}

.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.feature{background:#fff;border:1px solid #eef2f7;border-radius:16px;padding:16px;box-shadow:var(--shadow)}
.feature-icon{margin-bottom:12px}
.feature-icon img{opacity:0.9}
.feature h4{margin:0 0 6px}
.feature p{margin:0;color:var(--color-muted)}

/* 页脚（重塑为多列、紫色系浅底） */
.site-footer{margin-top:40px;background:#f5f3ff;border-top:0}
.footer-inner{display:none}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:24px;padding:32px 0}
.footer-menu {padding: 20px;}
.footer-col .footer-title{font-weight:700;color:var(--color-text);margin:0 0 10px}
.footer-col a{display:block;color:#4b5563;margin:8px 0}
.footer-col a:hover{color:var(--link-hover)}
.footer-brand p{color:#4b5563}
.copy{padding:14px 0;color:#6b7280;border-top:1px solid #e5e7eb}

/* 移动端尾部优化 */
@media (max-width: 640px){
  .site-footer{margin-top:30px}
  .footer-grid{
    grid-template-columns:1fr;
    gap:20px;
    padding:40px;
  }
  .footer-menu{
    padding:15px 0;
  }
  .footer-col .footer-title{
    font-size:16px;
    margin-bottom:12px;
  }
  .footer-col a{
    margin:6px 0;
    font-size:14px;
  }
  .footer-brand{
    margin-bottom:10px;
  }
  .footer-brand .brand{
    /* justify-content:center; */
  }
  .footer-brand p{
    font-size:14px;
    line-height:1.6;
    margin-top:12px;
  }
  .copy{
    text-align:center;
    font-size:12px;
    padding:16px 0;
  }
}

@media (max-width: 480px){
  .footer-grid{
    padding:40px;
  }
  .footer-brand .brand img{
    width:140px;
  }
  .footer-brand p{
    font-size:13px;
  }
}

/* 响应式 */
@media (max-width: 960px){
  .banner-inner{grid-template-columns:1fr}
  .card-grid{grid-template-columns:repeat(2,1fr)}
  .topic-grid{grid-template-columns:1fr 1fr}
  .feature-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
  /* 移动端头部菜单 */
  .primary-nav{display:none}
  .mobile-menu-toggle{display:flex}
  .site-header{position:relative}
  
  /* 移动端搜索栏 */
  .search-section{
    margin:15px 0;
    padding:15px;
  }
  .search-form{
    flex-direction:column;
    gap:10px;
  }
  .search-form input{
    font-size:16px; /* 防止iOS缩放 */
  }
  
  /* 其他移动端样式 */
  .card-grid{grid-template-columns:1fr}
  .topic-grid,.feature-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .footer-inner{flex-direction:column}
  
  /* 移动端头部高度调整 */
  .site-header{padding:15px 0}
  .site-header .nav{height:60px}
  .brand img{width:180px}
}

@media (max-width: 480px){
  .search-section{
    padding:12px;
  }
  .brand img{width:150px}
}

/* 最近更新徽标 */
.label-updated{display:inline-block;margin-left:10px;padding:2px 8px;border-radius:999px;background:linear-gradient(135deg,#f5f3ff,#e9d5ff);color:#6d28d9;font-size:12px;font-weight:600;vertical-align:middle;}
#tutorials + .label-updated{position:relative;top:-2px}

/* 搜索栏样式 */
.search-section{
  margin:20px 0;
  padding:20px;
  border-radius:var(--radius);
}
.search-form{
  display:flex;
  gap:12px;
  max-width:500px;
  margin:0 auto;
}
.search-form input{
  flex:1;
  padding:12px 16px;
  border-radius:10px;
  border:1px solid #d1d5db;
  outline:0;
  font-size:16px;
  background:#fff;
}
.search-form input:focus{
  border-color:var(--purple);
  box-shadow:0 0 0 3px rgba(108, 11, 218, 0.1);
}
.search-form .btn{
  padding:12px 20px;
  white-space:nowrap;
}

/* 懒加载相关样式 */
img {
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0.3;
  background: #f0f0f0;
}

img.loaded {
  opacity: 1;
}

img.error {
  opacity: 0.5;
  filter: grayscale(100%);
}

/* 图片加载占位符 */
.image-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 优化滚动性能 */
.card-grid {
  will-change: transform;
}

.video-list {
  will-change: scroll-position;
}

/* 减少重绘 */
.card {
  contain: layout style paint;
}

.video-item {
  contain: layout style paint;
}

.video-list-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.video-list-section h3 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
}

.video-list {
  display: grid;
  gap: 1rem;
  padding-right: 8px;
}

.video-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.video-item:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
}

.video-item.active {
  background-color: #f5f5f5;
}

.video-thumbnail {
  position: relative;
  width: 120px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-item:hover .play-overlay {
  opacity: 1;
}

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

.video-info {
  flex: 1;
  min-width: 0;
}

.video-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

.video-item.active .video-title {
  color: #424242;
  font-weight: 600;
}

.video-item.active .video-meta {
  color: #616161;
}

/* 滚动条样式 */
.video-list::-webkit-scrollbar {
  width: 6px;
}

.video-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.video-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.video-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .video-item {
    gap: 0.75rem;
    padding: 0.5rem;
  }
  
  .video-thumbnail {
    width: 100px;
    height: 56px;
  }
  
  .play-overlay {
    width: 28px;
    height: 28px;
  }
  
  .play-overlay svg {
    width: 20px;
    height: 20px;
  }
  
  .video-title {
    font-size: 0.85rem;
  }
  
  .video-meta {
    font-size: 0.75rem;
  }
  
  .video-list {
    /* 移动端也不限制高度，显示所有视频 */
  }
}
/* 加载状态样式 */
.card.loading {
  pointer-events: none;
}

.loading-placeholder {
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.loading-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.loading-text {
  background: #e0e0e0;
  border-radius: 4px;
  height: 1em;
  display: inline-block;
  width: 60px;
}

.loading-text.long {
  width: 120px;
}

/* 视频数量徽章 */
.video-count-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* 播放列表图标 */
.playlist-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px;
  border-radius: 50%;
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 错误状态徽章 */
.error-badge {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-left: 4px;
}

/* 卡片类型样式 */
.card[data-type="playlist"] {
  /* border-left: 3px solid #4CAF50; */
}

.card[data-type="video"] {
  /* border-left: 3px solid #2196F3; */
}

.card[data-type="error"] {
  /* border-left: 3px solid #ff6b6b; */
  opacity: 0.7;
}

/* 封面图片容器相对定位 */
.card .cover {
  position: relative;
  display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .video-count-badge {
    font-size: 0.7rem;
    padding: 1px 4px;
  }
  
  .playlist-icon {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
}

/* 视频序号样式 */
.video-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #f5f5f5;
  color: #424242;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 0.75rem;
  align-self: center; /* 垂直居中 */
}

.video-item.active .video-number {
  background-color: #424242;
  color: white;
}

/* 视频描述样式 */
.video-description {
  font-size: 0.8rem;
  color: #666;
  margin: 0.5rem 0 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-item.active .video-description {
  color: #616161;
}

/* 响应式调整 - 视频序号 */
@media (max-width: 768px) {
  .video-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }
}
/* 描述展开/收起功能样式 */
.description-container {
  position: relative;
}

.description-text {
  line-height: 1.6;
  margin-bottom: 1rem;
  transition: max-height 0.3s ease;
}

.description-text.collapsed {
  max-height: 4.8em; /* 3行的高度，基于line-height 1.6 */
  overflow: hidden;
  position: relative;
}

.description-text.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.6em;
  background: linear-gradient(transparent, white);
  pointer-events: none;
}

.toggle-btn {
  background: none;
  border: none;
  color: #424242;
  padding: 0.5rem 0;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-btn:hover {
  color: #666;
}

.toggle-btn:focus {
  outline: 2px solid #424242;
  outline-offset: 2px;
}

.toggle-icon {
  transition: transform 0.2s ease;
}

.toggle-btn.expanded .toggle-icon {
  transform: rotate(180deg);
}

.toggle-text {
  font-weight: 500;
}
