
.page-content {
    min-height: 60vh;
    padding: 2rem 0 !important;
}

 /*古诗详情页样式 */
.poem-detail-container {
    background: var(--card-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--accent-color);
    margin-bottom: 3rem;
}

.poem-detail-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

.poem-detail-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.poem-detail-header h1 {font-size: 2.2rem;}

.poem-detail-author {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.poem-detail-dynasty {
    display: inline-block;
    background: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
}

.poem-detail-content {
    padding: 3rem;
    font-size: 2.6rem;
    line-height: 2.5;
    text-align: center;
    position: relative;
}

.poem-detail-content::before {
    content: """;
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 5rem;
    color: var(--accent-color);
    opacity: 0.2;
}

.poem-detail-content::after {
    content: """;
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 5rem;
    color: var(--accent-color);
    opacity: 0.2;
    transform: rotate(180deg);
}

.poem-detail-extras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    gap: 30px;
    padding: 0.5rem;
    background: rgba(212, 167, 106, 0.1);
}

.extra-section {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-indent: 34px;
}

.extra-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--accent-color);
}

.extra-content {
    line-height: 45px;
    font-size:1.3rem;
}


.notes-content p,
.translation-content p,
.appreciation-content p {
    text-align: justify;
    text-indent: 2em;
    line-height: 45px;
    font-size: 1.3rem;  
}
.notes-content ,
.translation-content ,
.appreciation-content  {
    text-align: justify;
    text-indent: 2em;
    line-height: 45px;
    font-size: 1.3rem;  
}
        

@media (max-width: 768px) {
    header {position: relative;}
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .poem-detail-content {
        padding: 2rem 1.5rem;
        font-size: 1.5rem;
    }
    
    .poem-detail-content::before,
    .poem-detail-content::after {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    header {position: relative;}
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .poem-detail-header {
        padding: 1.5rem;
    }
    
    .poem-detail-title {
        font-size: 1.8rem;
    }
}

.recommend-poetry {
  background-color: #f8f5f0;
  padding: 60px 0;
  border-top: 1px solid #e8e1d5;
  margin-top: 50px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  color: #6b4e3d;
  margin-bottom: 40px;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: #c0a080;
  margin: 15px auto 0;
}

.poetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.poetry-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poetry-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.poetry-item a {
  display: block;
  padding: 25px;
  color: #333;
  text-decoration: none;
}

.poetry-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #8a6d3b;
  border-bottom: 1px dashed #e0d4c0;
  padding-bottom: 10px;
}

.poetry-item .author {
  font-size: 14px;
  color: #888;
  font-style: italic;
  margin-bottom: 15px;
}

.poetry-item .excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .poetry-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .recommend-poetry {
    padding: 40px 20px;
  }
  
  .section-title {
    font-size: 24px;
  }
}

.foldable-section {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(107, 78, 61, 0.08);
} 
.foldable-section.active .foldable-header i {
    transform: rotate(180deg);
}
.foldable-section {
    animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.foldable-section:nth-child(1) { animation-delay: 0.1s; }
.foldable-section:nth-child(2) { animation-delay: 0.2s; }
.foldable-section:nth-child(3) { animation-delay: 0.3s; }

.foldable-header {
    background: #f1e9df;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #c0a080;
}

.foldable-header:hover {
    background: #e8dfd1;
}

.foldable-header h3 {
    font-size: 1.4rem;
    color: #6b4e3d;
    display: flex;
    align-items: center;
    gap: 12px;
}

.foldable-header i {
    font-size: 1.2rem;
    color: #8a6d3b;
    transition: transform 0.3s ease;
}
.foldable-content {
    background: #fff;
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.foldable-content-inner {
    padding: 25px 0;
    border-top: 1px solid #f1e9df;
}

.foldable-section.active .foldable-content {
    max-height: 500px;
    overflow-y: scroll;
}