/* 吉他谱单页样式 - 重构精简版 */
/* 防止水平滚动 */
body, html {
    overflow-x: hidden;
}
.guitar-tab-single {
    
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 布局容器 */
.content-container {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}
.main-content {
    flex: 1;
    min-width: 0;
}
.right-sidebar {
    width: 330px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* A区: 面包屑导航 */
.breadcrumb-section {
    margin: 15px 0 25px;
}
.breadcrumb {
      position: relative; /* 为切换按钮提供定位上下文 */
    padding-right: 120px; /* 为按钮预留空间 */
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #666;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 6px;
}
.breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: #0d5bb8;
    text-decoration: underline;
}
.breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}
.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* B区: 音乐播放器 */
.music-player-section.desktop-only {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ebebeb;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.music-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.play-btn:hover {
    background: #0d62c9;
    transform: scale(1.1);
}
.image-counter {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}
.fullscreen-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}
.fullscreen-btn:hover {
    color: #1a73e8;
}
.progress-container {
    position: relative;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-bottom: 10px;
    cursor: pointer;
}
.progress-bar {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}
.progress-fill {
    position: absolute;
    height: 100%;
    background: #1a73e8;
    border-radius: 3px;
    width: 0%;
    z-index: 1;
    transition: width 0.1s linear;
}
.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

/* C区: 图片播放器 */
.tab-player-section {
    margin-bottom: 30px;
        border: 1px solid #ebebeb;
}
.tab-player-container {
    height: 760px;
    position: relative;
}


/* D区: 文章内容 */
.content-section {
    border: 1px solid #ebebeb;
    background: #fff;
    border-radius: 8px;
    padding:0px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.content-details {
    border: 1px solid #eaeaea;
    border-radius: 10px;
    background: #f9f9f9;
    overflow: hidden;
    transition: all 0.3s ease;
}
.content-details[open] {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #d0e3ff;
}
.details-summary {
    display: block;
    padding: 18px 60px 18px 25px;
    position: relative;
    cursor: pointer;
    outline: none;
    list-style: none;
    font-size: 1.05em;
    line-height: 1.6;
    color: #333;
    transition: background 0.2s;
}
.details-summary:hover {
    background: #f0f7ff;
}
.details-summary::-webkit-details-marker {
    display: none;
}
.summary-content {
    display: inline;
}
.ellipsis {
    display: inline;
    margin-right: 5px;
}
.read-more-link {
    color: #1a73e8;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}
.read-more-link:hover {
    color: #0d5bb8;
}
.details-arrow {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #666;
}
.content-details[open] .details-arrow {
    transform: translateY(-50%) rotate(180deg);
}
.details-full-content {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: #fff;
    line-height: 1.7;
}
.read-less-container {
    margin-top: 25px;
    text-align: center;
}
.read-less-toggle {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    background: #f0f7ff;
    color: #1a73e8;
    border: 1px solid #c2e0ff;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.read-less-toggle:hover {
    background: #e1eeff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* E区: 热门乐谱卡片 */
.popular-tabs-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 0px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.section-title {
    font-size: 22px;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #1a73e8;
    color: #333;
}
.tab-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.tab-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 18px;
    transition: all 0.3s;
    border: 1px solid #eee;
}
.tab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #c2e0ff;
}
.card-row {
    margin-bottom: 12px;
}
.card-row:last-child {
    margin-bottom: 0;
}
.category-title-row {
    display: flex;
    align-items: center;
}
.category-tag {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}
.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.card-title a:hover {
    color: #1a73e8;
}
.tag-author-row {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}
.card-tag {
    background: #f0f7ff;
    color: #1a73e8;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 15px;
}
.card-author {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
}
.difficulty, .restoration, .views-count {
    display: flex;
    align-items: center;
}
.views-count .iconfont {
    margin-right: 5px;
    color: #666;
}

/* 右侧边栏样式 */
.sidebar-section {
        border: 1px solid #ebebeb;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.info-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.info-row:last-child {
    border-bottom: none;
}
.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.post-title {
    font-size: 14px;
    color: black;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none; /* 标题无下划线 */
    white-space: nowrap;
     color: #333;
}

.post-title:hover {
    color: #1a73e8;
   
}
.artist-info, .popularity-info {
    font-size: 15px;
    color: #555;
}
.artist-info .label, .popularity-info .label {
    color: #888;
    margin-right: 5px;
}
.artist-info .value, .popularity-info .value {
    margin-right: 15px;
}
.restoration-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.restoration-info .label {
    font-size: 14px;
}
.restoration-info .percent {
    font-weight: bold;
    color: #e91e63;
    min-width: 45px;
    font-size: 12px;
}
.progress-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    min-width: 150px;
}
.progress {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 4px;
}
.vote-buttons {
    display: flex;
    gap: 10px;
    margin-left: 0px;
    font-size: 16px;
}
.vote-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.original-btn {
    background: #4caf50;
    margin-left: 30px;
    color: white;
}
.not-original-btn {
    background: #f44336;
    color: white;
}
.vote-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.difficulty-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.difficulty-info .label {
    font-size: 14px;
    color: #333;
}
.difficulty-info .difficulty-level {
    font-size: 14px;
    color: #ff9800;
    min-width: 40px;
}
.star-rating {
    display: flex;
    gap: 5px;
}
.star {
    color: #ddd;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.2s;
}
.star.active {
    color: #ffc107;
}
.star:hover {
    color: #ffc107;
}
.popularity-info {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* VIP促销区域 */
.section-b {
    border: 1px solid #ebebeb;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-align: center;
    padding: 25px 20px;
}
.vip-promo-header h3 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.vip-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.benefit {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s;
}
.benefit:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}
.vip-action-btn {
    background: #ffeb3b;
    color: #333;
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}
.vip-action-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* 操作按钮区域 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.download-btn {
    background: #4caf50;
    color: white;
}
.print-btn {
    background: #2196f3;
    color: white;
}
.favorite-btn {
    background: #ff9800;
    color: white;
}
.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 作者信息区域 */
/* 外层容器：卡片化 + 阴影 */
.sidebar-section.section-c {
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 作者头像区域：居中 + 圆角 */
.author-header {
    text-align: center;
    margin-bottom: 20px;
}
.author-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff; /* 头像外层白色描边（与截图一致） */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.author-name {
    margin-top: 12px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* 关注按钮 + 发谱统计：红色主题 + 边框化 */
.author-stats {
    display: flex;
    justify-content: center;
    gap: 2px; /* 按钮与统计框间距 */
    margin-bottom: 20px;
}
.visit-btn {
    background-color: #ff4d4f; /* 截图红色按钮 */
    color: #fff;
    padding: 6px 14px; /* 缩小按钮尺寸更精致 */
    border-radius: 4px; /* 小圆角更现代 */
    text-decoration: none;

    box-shadow: none; /* 截图无阴影 */
    transition: background-color 0.2s ease;
}
.visit-btn:hover {
    background-color: #f5222d; /*  hover加深红色 */
    transform: none; /* 截图无位移动画 */
    box-shadow: none;
}
.post-count {
    border: 1px solid #ff4d4f; /* 红色边框（替代原背景色） */
    border-radius: 4px;
    padding: 6px 12px;
    background-color: #fff; /* 白色背景 */
    color: #333; /* 统计文字黑色 */
    display: flex;
    align-items: center;
}
.post-count span {
    font-size: 14px;
   
}

/* 作者谱例列表：卡片化 + 内间距 */
.author-posts {
    margin-bottom: 20px;
}
.post-item {
    background-color: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* 轻微悬浮阴影 */
}
.post-item:last-child {
    margin-bottom: 0; /* 最后一个卡片取消底外边距 */
}

/* 谱例元信息（分类标签 + 标题） */
.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.post-category {
    background-color: #e6f7ff; /* 截图“弹唱”标签浅绿色背景 */
    color: #20c997; /* 标签绿色文字 */
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}


/* 谱例标签 + 作者（适配“歌手、制谱、调式、难度”布局） */
.post-tag-author {
    display: flex;
  
    gap: 6px; /* 行间距 */
    font-size: 12px;
    color: #666; /* 辅助信息浅灰色 */
    margin-bottom: 8px;
}
.post-tag-author > span {
    display: flex;
    gap: 50px; /* 歌手与制谱、调式与难度的间距 */
}
/* 调式、难度文字变红（匹配截图） */
.post-tag {
    color: #333;
}
.post-author {
     color: #333;
}

/* 查看更多按钮：居中 + 红色边框 */
.view-more-link {
    display: block; /* 块级元素实现居中 */
    width: fit-content;
    margin: 0 auto; /* 水平居中 */
    padding: 8px 24px;
    border: 1px solid #ff4d4f;
    color: #ff4d4f;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    transition: all 0.2s ease;
}
.view-more-link:hover {
    background-color: #ff4d4f;
    color: #fff;
}

/*****end*******/



/* 全屏查看器 */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    flex-direction: column;
    color: white;
}
.fullscreen-container {
    display: flex;
    flex: 1;
    align-items: center;
    padding: 20px;
    height: 100%; /* 替换原 `calc(100% - 100px)`，让容器占满父级高度 */
}
.images-wrapper {
    display: flex;
    justify-content: center;
    flex: 1;
    gap: 20px;
    height: 100%; /* 使用100%高度 */
    overflow: hidden;
    align-items: center; /* 垂直居中 */
}
.images-wrapper img {
    max-height: 100vh; /* 图片最大高度为「整个视口高度」，替换原 `95vh` */
    max-width: 100%;   /* 图片宽度自适应（替换原 `calc(50% - 10px)`） */
    height: auto;      /* 高度随比例自适应 */
    width: auto;       /* 宽度随比例自适应 */
    object-fit: contain; /* 保持图片比例，避免拉伸 */
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.fullscreen-nav .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    color: white;
    z-index: 10001; /* 确保在图片上方 */
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.fullscreen-nav .nav-arrow:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}
.fullscreen-nav .nav-arrow.prev {
    left: 20px;
}
.fullscreen-nav .nav-arrow.next {
    right: 20px;
}
.fullscreen-page-indicator {
    position: fixed;
    bottom: 20px;      /* 保持底部位置，可根据需求微调 */
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: bold;
    color: red;        /* 文字改为红色，在白色图片上更醒目 */
    text-shadow: 0 0 5px rgba(0,0,0,0.8); /* 保留文字阴影增强对比度 */
    z-index: 10001;    /* 确保在图片上方 */
    background: rgba(0, 0, 0, 0.5); /* 半透明灰色背景，让文字更易读 */
    padding: 5px 10px; /* 增加内边距，让背景区域更明显 */
    border-radius: 4px;/* 可选：让背景圆角更美观 */
}

.close-button {
    position: fixed; /* 改为fixed定位 */
    top: 20px;
    right: 20px;
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    z-index: 10002;
    cursor: pointer;
    transition: all 0.3s;
}
.close-button:hover {
    background: rgba(255,255,255,0.1);
}
/* 键盘提示样式优化 */
.keyboard-hint {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10000;
    display: none;
}

/* 单张图片时的优化 */
.images-wrapper.single-image img {
    max-width: 90%; /* 单张图片时宽度更大 */
    max-height: 95vh;
}

/* 移动端全屏查看器 */
.mobile-image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    flex-direction: column;
    justify-content: center;
}
.mobile-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow: hidden;
}
#mobile-viewer-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.mobile-image-nav .mobile-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    border: 2px solid rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
    transition: all 0.2s;
}
#mobile-prev {
    left: 10px;
}
#mobile-next {
    right: 10px;
}
.mobile-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}
.mobile-page-indicator {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    z-index: 10001;
    padding: 5px 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.mobile-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10001;
}
.play-pause-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}
.play-pause-btn::before {
    content: "▶";
    display: block;
}
.play-pause-btn.playing::before {
    content: "⏸";
}
.play-pause-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
#mobile-speed {
    width: 100px;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}
#mobile-speed::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
    .tab-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 992px) {
        .desktop-only {
        display: none !important;
    }
    /* 确保主内容区占据全部宽度 */
    .content-container {
        flex-direction: column;
    }
    
    .main-content {
        width: 100% !important;
    }
    .sidebar-toggle {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-fullscreen-btn {
        display: block;
    }
    .tab-player-container {
        height: auto !important;
        max-height: 70vh;
        aspect-ratio: 3/4;
    }
    .player-images {
        min-height: 50vh;
    }
    .tab-cards {
        grid-template-columns: 1fr;
    }
    .guitar-tab-single {
        padding: 15px;
    }
    .entry-title {
        font-size: 22px;
    }
}
@media (max-width: 480px) {
    #mobile-viewer-image {
        max-width: 95vw;
        max-height: 80vh;
    }
    .mobile-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .play-pause-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* 禁用状态导航按钮 */
.image-nav.disabled {
    opacity: 0.2;
    cursor: not-allowed;
}
/* 音乐播放器图标修复 */
.icon-bofang:before {
    content: "\\e601"; /* 播放图标编码 */
}
.icon-zanting:before {
    content: "\\e602"; /* 暂停图标编码 */
}

/* 无JS情况下的样式 */
.no-js .content-details,
.no-js .details-full-content {
    display: block !important;
}
.no-js .details-summary {
    cursor: default;
    pointer-events: none;
}
.no-js .read-more-link {
    display: none;
}

/* 打印样式 */
@media print {
    body * {
        visibility: hidden;
    }
    .tab-player-section, .tab-player-section * {
        visibility: visible;
    }
    .tab-player-section {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
    }
    .tab-player-container {
        height: auto !important;
        display: block !important;
    }
    .player-images {
        display: block !important;
        height: auto !important;
    }
    .player-image {
        position: relative !important;
        opacity: 1 !important;
        display: block !important;
        page-break-after: always;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }
    .player-image img {
        max-width: 100%;
        max-height: 100vh;
        width: auto;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    /* 显示打印编号 */
    .print-number {
        display: block !important;
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(0,0,0,0.6);
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 14px;
        z-index: 10;
    }
    /* 隐藏不需要的元素 */
    .player-nav, .total-pages, .mobile-fullscreen-btn,
    .print-mark {
        display: none !important;
    }
}
/***打印样式end****/
/* ====================== */
/* 新增: 侧边栏切换按钮样式 */
/* ====================== */
.sidebar-toggle {         /*没隐藏边栏前的按钮颜色**/
    position: absolute;
    right: 20px;
    background: #4caf50;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    z-index: 10;
}

.sidebar-toggle:hover {   
    background: #2196f3;
border: 1px solid #ddd;
}

.sidebar-toggle.hidden {
    background: #2196f3; /*隐藏边栏后的按钮颜色**/
    color: white;
border: 1px solid #ddd;
}
.sidebar-toggle.hidden:hover {
    background: #4caf50;
border: 1px solid #ddd;
}
.sidebar-toggle .iconfont {
    margin-right: 5px;
    font-size: 16px;
}
/* 将原进度条类名改为更具体的类名 */
.restoration-progress-container {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    min-width: 150px;
}

.restoration-progress {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 4px;
}
/* 侧边栏隐藏时的布局调整 */
.right-sidebar.hidden {
    display: none;
}

.content-container.sidebar-hidden .main-content {
    width: 100%;
}

/*上下篇文章CSS样式*****/
/* 文章导航父容器：Flex 让上下篇并排 */
.section-e.post-navigation {
    display: flex;          /* 启用 Flex 布局 */
    gap: 10px;             /* 上下篇之间的间距 */
    margin-top: 2px;
    margin-bottom: 2px;
    align-items: stretch;  /* 子项高度自动对齐 */
}

/* 上下篇容器：平分宽度 */
.post-navigation .prev-post,
.post-navigation .next-post {
    flex: 1;               /* 占满剩余空间，左右篇等宽 */
    min-width: 0;          /* 防止内容过宽导致布局塌陷 */
    
}

/* 单篇导航容器：Flex + 相对定位承载内部元素 */
.post-navigation .nav-link {
    display: flex;         /* 内部元素（箭头+文字）水平排列 */
    align-items: flex-start; /* 内容顶部对齐（方向文字为绝对定位） */
    position: relative;    /* 作为方向文字的定位参考 */
    padding: 15px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-decoration: none;
    color: #333;
}

/* ———— 箭头图标样式 ———— */
.post-navigation .iconfont {
    font-size: 24px;
    color: #999;
    transition: color 0.3s;
}
/* 上一篇左箭头：居左 + 右侧间距 */
.post-navigation .prev-link .iconfont {
    margin-right: 10px;
}
/* 下一篇右箭头：居右 + 左侧间距 */
.post-navigation .next-link .iconfont {
    /* 修改这里：添加右对齐属性 */
    margin-left: auto; /* 自动左外边距将图标推到右侧 */
    margin-right: 0px; /* 增加右侧间距 */
    order: 2; /* 确保图标在布局顺序中排在最后 */
}

/* ———— 方向文字（上一篇/下一篇）定位 ———— */
.post-navigation .nav-direction {
    position: absolute;    /* 脱离文档流，定位到容器角落 */
    top: 10px;             /* 距离顶部间距（上下篇保持一致） */
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin: 0;             /* 清除默认 margin 干扰 */
}
/* 上一篇方向文字：右上角 */
.post-navigation .prev-link .nav-direction {
    right: 15px;
}
/* 下一篇方向文字：左上角 */
.post-navigation .next-link .nav-direction {
    left: 15px;
}

/* ———— 文章标题样式 ———— */
.post-navigation .nav-title {
    display: block;
    font-size: 16px;
    font-weight: normal;   /* 取消加粗（原 600 改为 normal） */
    color: #333;
    overflow: hidden;      /* 防溢出基础设置 */
    text-overflow: ellipsis; /* 文字溢出时省略 */
    white-space: nowrap;   /* PC 端单行显示 */
    transition: color 0.3s;
    margin-top: 25px;      /* 与方向文字的垂直间距 */
     /* 新增：上一篇标题右对齐 */
    text-align: right; /* 默认所有标题右对齐 */
}
/* 新增：下一篇标题保持左对齐 */
.post-navigation .next-link .nav-title {
    text-align: left; /* 覆盖为左对齐 */
}

/* ———— 交互与状态 ———— */
.post-navigation .nav-link:hover {
    border-color: #0073aa;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.post-navigation .nav-link:hover .iconfont {
    color: #0073aa;
}
.post-navigation .nav-link:hover .nav-title {
    color: #0073aa;
}
.post-navigation .nav-link.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f9f9f9;
}
.post-navigation .nav-link.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #eaeaea;
}

/* ———— 移动端响应式（防溢出+布局适配） ———— */
@media (max-width: 768px) {
    .section-e.post-navigation {
        flex-direction: row; /* 保持行排列（空间不足时自动收缩） */
        gap: 10px;
        margin-top: 2px;
        margin-bottom: 1px;
    }
    .post-navigation .prev-post,
    .post-navigation .next-post {
        flex: 1;
    }
    .post-navigation .nav-link {
        padding: 10px;
        align-items: flex-start; /* 保持内容顶部对齐 */
    }
    /* 移动端标题：多行省略（最多 2 行） */
    .post-navigation .nav-title {
        white-space: normal; /* 允许换行 */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 限制显示 2 行 */
        -webkit-box-orient: vertical;
        margin-top: 15px; /* 缩小垂直间距 */
    }
    .post-navigation .iconfont {
        font-size: 20px; /* 缩小图标 */
    }
    .post-navigation .nav-direction {
        font-size: 13px; /* 缩小文字 */
        top: 5px;        /* 调整垂直位置 */
    }
}
/*上下篇文章CSS样式end*****/
/* 新增样式 */
.disabled-icon {
    opacity: 0.5;
    cursor: not-allowed;
}

.voting-disabled-notice {
    color: #ff6b6b;
    font-size: 12px;
    margin-left: 8px;
}

.star-rating.disabled .star {
    opacity: 0.5;
    cursor: not-allowed;
}

button.disabled, .disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.vote-btn.disabled {
    background-color: #e0e0e0;
    color: #999;
}

.action-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 10000;
    animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; top: 0; }
    10% { opacity: 1; top: 20px; }
    90% { opacity: 1; top: 20px; }
    100% { opacity: 0; top: 0; }
}