/* 明心读诗 PC端样式 */



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;

    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

    min-height: 100vh;

    color: #333;

}



.container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;

}



/* 导航栏 */

.header {

    background: #fff;

    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

    position: sticky;

    top: 0;

    z-index: 100;

}



.nav {

    display: flex;

    justify-content: space-between;

    align-items: center;

    height: 70px;

}



.logo {

    font-size: 28px;

    font-weight: bold;

    color: #667eea;

    cursor: pointer;

    white-space: nowrap;

}



/* 导航栏搜索框 */

.header-search {

    flex: 1;

    display: flex;

    align-items: center;

    max-width: 400px;

    margin: 0 30px;

}



.header-search .search-input {

    flex: 1;

    padding: 8px 15px;

    border: 2px solid #e0e0e0;

    border-right: none;

    border-radius: 20px 0 0 20px;

    font-size: 14px;

    outline: none;

    transition: border-color 0.3s;

}



.header-search .search-input:focus {

    border-color: #667eea;

}



.header-search .search-btn {

    padding: 8px 20px;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: #fff;

    border: none;

    border-radius: 0 20px 20px 0;

    cursor: pointer;

    font-size: 14px;

    transition: all 0.3s;

}



.header-search .search-btn:hover {

    opacity: 0.9;

}



.nav-menu {

    display: flex;

    list-style: none;

    gap: 6px;

}



.nav-menu a {

    text-decoration: none;

    color: #666;

    font-size: 15px;

    padding: 4px 10px;

    border-radius: 6px;

    transition: color 0.3s, background 0.3s;

}

.nav-menu a:hover {

    background: rgba(102, 126, 234, 0.08);

}



.nav-menu a:hover,

.nav-menu a.active {

    color: #667eea;

}



.user-actions {

    display: flex;

    gap: 15px;

    align-items: center;

}



.user-info {

    display: flex;

    align-items: center;

    gap: 15px;

}



.user-info .nickname {

    color: #333;

    font-weight: 500;

}



/* 按钮 */

.btn {

    padding: 8px 20px;

    border: none;

    border-radius: 20px;

    cursor: pointer;

    font-size: 14px;

    text-decoration: none;

    display: inline-block;

    transition: all 0.3s;

}



.btn-primary {

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: #fff;

}



.btn-primary:hover {

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);

}



.btn-login {

    background: #fff;

    color: #667eea;

    border: 1px solid #667eea;

}



.btn-login:hover {

    background: #667eea;

    color: #fff;

}



.btn-register {

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: #fff;

}



.btn-publish,

.btn-my,

.btn-logout {

    background: #f5f5f5;

    color: #666;

}



.btn-publish:hover,

.btn-my:hover {

    background: #667eea;

    color: #fff;

}



.btn-logout:hover {

    background: #f44;

    color: #fff;

}



.btn-block {

    width: 100%;

}



/* 筛选区 */

.filter-section {

    padding: 20px 0;

    background: #fff;

    margin-top: 20px;

}



/* 搜索结果区 */

.search-section {

    padding: 30px 0;

    background: #fff;

    margin-top: 20px;

}



.search-result-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

    padding-bottom: 15px;

    border-bottom: 2px solid #f0f0f0;

}



.search-result-header h3 {

    font-size: 20px;

    color: #333;

    margin: 0;

}



.search-result-info {

    display: flex;

    align-items: center;

    gap: 15px;

}



.search-result-info span:first-child {

    color: #667eea;

    font-weight: 500;

}



.search-result-info span:first-child::before {

    content: '关键词：';

    color: #666;

    font-weight: normal;

}



.search-result-info span:nth-child(2) {

    color: #999;

    font-size: 14px;

}



.clear-search {

    color: #667eea;

    text-decoration: none;

    font-size: 14px;

    padding: 5px 15px;

    border: 1px solid #667eea;

    border-radius: 15px;

    transition: all 0.3s;

}



.clear-search:hover {

    background: #667eea;

    color: #fff;

}



.search-empty {

    text-align: center;

    padding: 60px 20px;

}



.search-empty .empty-icon {

    font-size: 64px;

    margin-bottom: 20px;

}



.search-empty .empty-text {

    font-size: 18px;

    color: #666;

    margin-bottom: 10px;

}



.search-empty .empty-hint {

    font-size: 14px;

    color: #999;

}



.filter-items {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

}



.filter-items a {

    padding: 8px 20px;

    background: #f5f5f5;

    border-radius: 20px;

    text-decoration: none;

    color: #666;

    transition: all 0.3s;

}



.filter-items a:hover,

.filter-items a.active {

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: #fff;

}



/* 排行榜标签 */

.rank-tabs {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

}



.rank-tab {

    padding: 8px 20px;

    background: #f5f5f5;

    border-radius: 20px;

    text-decoration: none;

    color: #666;

    transition: all 0.3s;

    cursor: pointer;

}



.rank-tab:hover,

.rank-tab.active {

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: #fff;

}



/* 诗歌列表 */

.main {

    padding: 30px 0;

}



.poetry-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));

    gap: 25px;

    margin-bottom: 30px;

}



.poetry-card {

    background: #fff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    transition: transform 0.3s, box-shadow 0.3s;

    cursor: pointer;

    display: flex;

    flex-direction: column;

}



.poetry-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 8px 25px rgba(0,0,0,0.15);

}



.poetry-card-cover {

    width: 100%;

    height: 200px;

    overflow: hidden;

    background: #f5f5f5;

}



.poetry-card-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.poetry-card-no-image {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #999;

    font-size: 14px;

}



.poetry-card-body {

    padding: 20px;

}



.poetry-card-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 15px;

}



.poetry-card-title {

    font-size: 18px;

    font-weight: bold;

    color: #333;

    margin-bottom: 12px;

    line-height: 1.4;

}



.poetry-card-meta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 13px;

    color: #999;

}



.poetry-card-type {

    display: inline-block;

    padding: 3px 12px;

    background: #667eea;

    color: #fff;

    border-radius: 12px;

    font-size: 12px;

}



.poetry-card-author {

    color: #999;

    font-size: 14px;

    margin-bottom: 15px;

}



.poetry-card-content {

    color: #666;

    line-height: 1.8;

    margin-bottom: 15px;

    max-height: 120px;

    overflow: hidden;

    text-overflow: ellipsis;

    display: -webkit-box;

    -webkit-line-clamp: 4;

    -webkit-box-orient: vertical;

}



.poetry-card-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-top: 15px;

    border-top: 1px solid #eee;

}



.poetry-card-user {

    display: flex;

    align-items: center;

    gap: 10px;

}



.poetry-card-avatar {

    width: 32px;

    height: 32px;

    border-radius: 50%;

    background: #f5f5f5;

    overflow: hidden;

    flex-shrink: 0;

}



.poetry-card-avatar img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.poetry-card-nickname {

    color: #666;

    font-size: 14px;

}



.poetry-card-stats {

    display: flex;

    gap: 20px;

}



.stat {

    display: flex;

    align-items: center;

    gap: 5px;

    color: #999;

    font-size: 13px;

}



.stat span {

    font-weight: bold;

    color: #667eea;

}



/* 加载更多 */

.load-more {

    text-align: center;

    margin-top: 20px;

}



.btn-load-more {

    padding: 12px 40px;

    background: #fff;

    color: #667eea;

    border: 2px solid #667eea;

    border-radius: 25px;

    font-size: 16px;

    cursor: pointer;

    transition: all 0.3s;

}



.btn-load-more:hover {

    background: #667eea;

    color: #fff;

}



/* 弹窗 */

.modal {

    display: none;

    position: fixed;

    z-index: 1000;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    background: rgba(0,0,0,0.5);

    animation: fadeIn 0.3s;

}



.modal.show {

    display: flex;

    justify-content: center;

    align-items: center;

}



.modal-content {

    background: #fff;

    border-radius: 12px;

    padding: 30px;

    max-width: 600px;

    width: 90%;

    max-height: 85vh;

    overflow-y: auto;

    position: relative;

    animation: slideUp 0.3s;

}



.modal-small {

    max-width: 400px;

}



.modal-medium {

    max-width: 520px;

    min-width: 360px;

}



.close {

    position: absolute;

    right: 20px;

    top: 15px;

    font-size: 28px;

    cursor: pointer;

    color: #999;

    transition: color 0.3s;

}



.close:hover {

    color: #333;

}



.modal h2 {

    margin-bottom: 25px;

    color: #333;

}



/* 表单 */

.form-group {

    margin-bottom: 20px;

}



.form-group label {

    display: block;

    margin-bottom: 8px;

    color: #666;

    font-weight: 500;

}



.required {

    color: #ff4d4f;

}



.form-group input,

.form-group select,

.form-group textarea {

    width: 100%;

    padding: 12px 15px;

    border: 1px solid #ddd;

    border-radius: 8px;

    font-size: 14px;

    transition: border-color 0.3s;

}



.form-group input:focus,

.form-group select:focus,

.form-group textarea:focus {

    outline: none;

    border-color: #667eea;

}



.form-group textarea {

    resize: vertical;

    min-height: 150px;

}



.form-hint {

    display: block;

    margin-top: 5px;

    color: #999;

    font-size: 12px;

}



/* 头像上传 */

.avatar-upload {

    display: flex;

    align-items: center;

    gap: 15px;

}



.avatar-preview {

    width: 80px;

    height: 80px;

    border-radius: 50%;

    border: 2px dashed #ddd;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #f9f9f9;

    flex-shrink: 0;

}



.avatar-preview img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.avatar-preview .avatar-placeholder {

    font-size: 32px;

    color: #999;

}



.btn-secondary {

    background: #f5f5f5;

    color: #666;

    border: 1px solid #ddd;

}



.btn-secondary:hover {

    background: #e8e8e8;

    color: #333;

}



/* 封面上传 */

.cover-upload {

    display: flex;

    align-items: center;

    gap: 15px;

}



.cover-preview {

    width: 150px;

    height: 100px;

    border-radius: 8px;

    border: 2px dashed #ddd;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #f9f9f9;

    flex-shrink: 0;

}



.cover-preview img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.cover-preview .cover-placeholder {

    font-size: 32px;

    color: #999;

}



/* 诗歌详情 */

.poetry-detail-title {

    font-size: 28px;

    font-weight: bold;

    color: #333;

    margin-bottom: 20px;

    line-height: 1.4;

}



.poetry-detail-meta {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 20px;

    padding-bottom: 15px;

    border-bottom: 1px solid #eee;

}



.poetry-detail-views {

    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 4px;

    color: #999;

    font-size: 13px;

    white-space: nowrap;

}



.poetry-detail-views .views-icon {

    font-size: 14px;

}



.poetry-detail-views .views-count {

    font-size: 13px;

}



.poetry-detail-avatar {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    overflow: hidden;

    background: #f0f0f0;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}



.poetry-detail-avatar img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.poetry-detail-avatar .avatar-placeholder {

    font-size: 20px;

    font-weight: bold;

    color: #999;

}



.poetry-detail-meta-info {

    display: flex;

    flex-direction: column;

    gap: 5px;

}



.poetry-detail-author {

    color: #333;

    font-size: 15px;

    font-weight: 500;

}



.poetry-detail-time {

    color: #999;

    font-size: 13px;

}



.poetry-detail-cover {

    width: 100%;

    margin-bottom: 25px;

    border-radius: 8px;

    overflow: hidden;

}



.poetry-detail-cover img {

    width: 100%;

    display: block;

}



/* 我的菜单 */

.my-menu {

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.my-menu-item {

    padding: 15px 20px;

    background: #f5f5f5;

    border-radius: 8px;

    text-decoration: none;

    color: #333;

    transition: all 0.3s;

    cursor: pointer;

}



.my-menu-item:hover {

    background: #667eea;

    color: #fff;

    transform: translateX(5px);

}



.poetry-detail-meta {

    color: #999;

    font-size: 14px;

    margin-bottom: 20px;

    padding-bottom: 15px;

    border-bottom: 1px solid #eee;

}



.poetry-detail-content {

    color: #333;

    line-height: 2;

    font-size: 16px;

    white-space: pre-wrap;

    margin-bottom: 25px;

}



.poetry-detail-original-author {

    text-align: right;

    color: #666;

    font-style: italic;

    margin-bottom: 25px;

}



.poetry-detail-actions {

    display: flex;

    gap: 10px;

    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid #eee;

    justify-content: center;

}



.action-btn {

    flex: 0 0 auto;

    padding: 10px 25px;

    border: 1px solid #ddd;

    background: #fff;

    border-radius: 8px;

    cursor: pointer;

    transition: all 0.3s;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

}



.action-btn:hover {

    background: #f5f5f5;

}



.action-btn.active {

    background: #667eea;

    color: #fff;

    border-color: #667eea;

}



/* 页脚 */

.footer {

    background: #fff;

    padding: 30px 0;

    text-align: center;

    color: #999;

    margin-top: 50px;

}



.footer p {

    margin: 5px 0;

}



.footer .icp-info {

    font-size: 13px;

}



.footer .icp-info a {

    color: #999;

    text-decoration: none;

    transition: color 0.3s;

}



.footer .icp-info a:hover {

    color: #667eea;

}



/* 动画 */

@keyframes fadeIn {

    from { opacity: 0; }

    to { opacity: 1; }

}



@keyframes slideUp {

    from { transform: translateY(20px); opacity: 0; }

    to { transform: translateY(0); opacity: 1; }

}



/* 我的页面样式 */

.my-page {

    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

    min-height: calc(100vh - 70px);

    padding: 30px 0;

}



/* 用户信息卡片 - 紧凑模式 */

.user-info-card {

    background: #fff;

    border-radius: 12px;

    box-shadow: 0 4px 20px rgba(0,0,0,0.1);

    margin-bottom: 0;

    overflow: hidden;

}



/* 用户信息头部 - 横向布局 */

.user-info-header {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 20px 30px;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: #fff;

}



.user-info-header .info-avatar {

    width: 70px;

    height: 70px;

    border-radius: 50%;

    background: rgba(255,255,255,0.2);

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border: 3px solid rgba(255,255,255,0.5);

}



.user-info-header .info-avatar img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.user-info-header .info-avatar .avatar-placeholder {

    font-size: 28px;

    color: #fff;

}



.user-info-header .info-main {

    flex: 1;

}



.user-info-header .info-nickname {

    font-size: 20px;

    font-weight: bold;

    margin-bottom: 5px;

}



.user-info-header .info-stats {

    display: flex;

    gap: 20px;

    font-size: 13px;

    opacity: 0.9;

}



.user-info-header .info-stats span {

    display: flex;

    align-items: center;

    gap: 5px;

}



.user-info-header .edit-profile-btn {

    padding: 8px 20px;

    background: rgba(255,255,255,0.2);

    color: #fff;

    border: 1px solid rgba(255,255,255,0.4);

    border-radius: 20px;

    font-size: 13px;

    cursor: pointer;

    transition: all 0.3s;

}



.user-info-header .edit-profile-btn:hover {

    background: rgba(255,255,255,0.3);

}



/* 我的导航 */

.my-nav {

    display: flex;

    gap: 0;

    margin: 0;

    border-bottom: 2px solid #e8e8e8;

    padding: 0;

    position: relative;

    background: #fff;

    border-radius: 0;

}



.my-nav-item {

    padding: 14px 22px;

    font-size: 14px;

    color: #666;

    text-decoration: none;

    border-radius: 0;

    transition: all 0.3s;

    border: none;

    border-bottom: 3px solid transparent;

    position: relative;

    z-index: 1;

}



.my-nav-item:hover {

    color: #667eea;

    background: rgba(102, 126, 234, 0.05);

}



.my-nav-item.active {

    color: #667eea;

    font-weight: bold;

    border-bottom-color: #667eea;

}



/* 我的内容区 */

.my-content {

    background: #fff;

    border-radius: 12px;

    padding: 30px;

    box-shadow: 0 4px 20px rgba(0,0,0,0.1);

    min-height: 400px;

    margin-top: 20px;

}



/* 我的标签页 */

.my-tab {

    display: none;

}



.my-tab.active {

    display: block;

}



/* 我的信息样式 - 详情页 */

.my-tab-info {

    padding-top: 10px;

}



.info-card {

    max-width: 700px;

}



.info-details {

    flex: 1;

}



.info-item {

    display: flex;

    padding: 16px 0;

    border-bottom: 1px solid #f0f0f0;

}



.info-item:last-child {

    border-bottom: none;

}



.info-label {

    width: 120px;

    color: #666;

    font-weight: 500;

    flex-shrink: 0;

}



.info-value {

    flex: 1;

    color: #333;

}



/* 空消息和错误消息 */

.empty-message,

.error-message {

    text-align: center;

    padding: 60px 20px;

    color: #999;

    font-size: 16px;

}



.error-message {

    color: #ff4d4f;

}



/* 我的诗歌卡片包装器 */

.my-poetry-wrapper {

    display: flex;

    flex-direction: column;

}



/* 我的诗歌操作按钮 */

.my-poetry-actions {

    display: flex;

    gap: 8px;

    padding: 8px 12px 12px;

    background: #fff;

    border-top: 1px solid #f5f5f5;

    border-radius: 0 0 12px 12px;

    margin-top: -12px;

}



.my-poetry-btn {

    flex: 1;

    height: 32px;

    border: none;

    border-radius: 6px;

    font-size: 13px;

    cursor: pointer;

    font-weight: 500;

    transition: opacity 0.2s;

}



.my-poetry-btn:hover {

    opacity: 0.8;

}



.my-poetry-btn.edit-btn {

    background: #f0f4ff;

    color: #667eea;

}



.my-poetry-btn.delete-btn {

    background: #fff0f0;

    color: #f44336;

}



/* 我的诗歌网格 */

#myPoetryList,

#myLikesList,

#myFavoritesList,

#mySharesList,

#myEbooksList {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

    gap: 20px;

}



/* ==================== 诗集功能样式 ==================== */



/* 诗集书库工具栏 - 与首页分类栏白色块风格保持一致 */

.ebook-toolbar {

    background: #fff;

    padding: 15px 20px;

    border-radius: 12px;

    margin-bottom: 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 15px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.04);

}



.ebook-sort-group {

    display: flex;

    align-items: center;

    gap: 10px;

}



.ebook-sort {

    padding: 8px 15px;

    border: 1px solid #ddd;

    border-radius: 8px;

    font-size: 14px;

    background: #fff;

    cursor: pointer;

}



/* 诗集筛选 - 与首页分类栏风格保持一致 */

.ebook-filter {

    padding: 8px 20px;

    border-radius: 20px;

    font-size: 14px;

    color: #666;

    text-decoration: none;

    transition: all 0.3s;

    background: #f5f5f5;

}



.ebook-filter.active,

.ebook-filter:hover {

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: #fff;

}



/* 诗集卡片 */

.ebook-card {

    background: #fff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    transition: transform 0.3s, box-shadow 0.3s;

    cursor: pointer;

}



.ebook-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 8px 25px rgba(0,0,0,0.15);

}



.ebook-card-cover {

    width: 100%;

    height: 200px;

    overflow: hidden;

    position: relative;

}



.ebook-card-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.ebook-card-no-image {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: #fff;

    font-size: 60px;

}



.ebook-card-body {

    padding: 20px;

}



.ebook-card-title {

    font-size: 18px;

    font-weight: 600;

    margin-bottom: 10px;

    color: #333;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.ebook-card-author {

    font-size: 14px;

    color: #666;

    margin-bottom: 10px;

}



.ebook-card-meta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 13px;

    color: #999;

}



.ebook-card-price {

    color: #ff6b6b;

    font-weight: 600;

}



.ebook-card-free {

    color: #52c41a;

    font-weight: 600;

}



/* 创建诗集按钮 */

.btn-ebook {

    background: #52c41a;

    color: #fff;

    margin-left: 10px;

}



.btn-ebook:hover {

    background: #45b914;

}



/* 诗集详情弹窗 */

.modal-large {

    max-width: 800px;

    width: 90%;

    max-height: 85vh;

}



/* 诗集阅读器 */

.modal-reader {

    max-width: 900px;

    width: 95%;

    height: 90vh;

    display: flex;

    flex-direction: column;

}



/* 诗集阅读器 - 电子墨水风格 */

.reader-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 15px 20px;

    border-bottom: 1px solid #d4c5a9;

    background: linear-gradient(135deg, #8b7355 0%, #a0906e 100%);

}



.reader-header h3 {

    margin: 0;

    font-size: 18px;

    color: #fff;

    font-family: "Georgia", "STSong", "宋体", serif;

}



.reader-body {

    flex: 1;

    overflow-y: auto;

    padding: 30px;

    background: #f5f0e8;

    position: relative; /* 供左右翻页区定位 */

}



/* 左右翻页触摸区域（PC端） */
.reader-body .ebook-tap-prev,
.reader-body .ebook-tap-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 2;
    cursor: pointer;
    background: transparent;
}
.reader-body .ebook-tap-prev { left: 0; }
.reader-body .ebook-tap-next { right: 0; }
.reader-body .ebook-tap-prev:hover { background: rgba(139,115,85,0.04); }
.reader-body .ebook-tap-next:hover { background: rgba(139,115,85,0.04); }
.reader-body .ebook-tap-prev:active,
.reader-body .ebook-tap-next:active { background: rgba(139,115,85,0.08); }
.reader-body .ebook-tap-prev.disabled,
.reader-body .ebook-tap-next.disabled { pointer-events: none; opacity: 0; }



.reader-footer {

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 10px 20px;

    border-top: 1px solid #d4c5a9;

    background: #f5f0e8;

}



#readerContent {

    max-width: 700px;

    margin: 0 auto;

    background: #f5f0e8;

    padding: 50px 40px;

    border-radius: 4px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

    font-family: "Georgia", "STSong", "宋体", serif;

}



.reader-poem-title {

    font-size: 26px;

    font-weight: bold;

    text-align: center;

    margin-bottom: 15px;

    color: #1a1a1a;

    font-family: "Georgia", "STSong", "宋体", serif;

    letter-spacing: 0.15em;

    border-bottom: 1px solid #8b7355;

    padding-bottom: 15px;

}



.reader-poem-author {

    font-size: 15px;

    color: #5a4a3a;

    text-align: right;

    margin-bottom: 40px;

    font-style: italic;

    font-family: "Georgia", "STSong", "宋体", serif;

}



.reader-poem-content {

    font-size: 18px;

    line-height: 2.2;

    color: #1a1a1a;

    white-space: pre-wrap;

    text-align: center;

    font-family: "Georgia", "STSong", "宋体", serif;

    letter-spacing: 0.1em;

}



/* 诗集详情内容 */

.ebook-detail-header {

    display: flex;

    gap: 30px;

    margin-bottom: 30px;

}



.ebook-detail-cover {

    width: 200px;

    height: 280px;

    border-radius: 8px;

    overflow: hidden;

    flex-shrink: 0;

}



.ebook-detail-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.ebook-detail-info {

    flex: 1;

}



.ebook-detail-title {

    font-size: 24px;

    font-weight: 600;

    margin-bottom: 15px;

    color: #333;

}



.ebook-detail-author {

    font-size: 16px;

    color: #666;

    margin-bottom: 15px;

}



.ebook-detail-desc {

    font-size: 14px;

    color: #666;

    line-height: 1.8;

    margin-bottom: 20px;

}



.ebook-detail-actions {

    display: flex;

    gap: 15px;

}



.ebook-detail-btn {

    padding: 10px 25px;

    border-radius: 8px;

    font-size: 14px;

    cursor: pointer;

    border: none;

    transition: opacity 0.3s;

}



.ebook-detail-btn:hover {

    opacity: 0.8;

}



.ebook-detail-btn.primary {

    background: #667eea;

    color: #fff;

}



.ebook-detail-btn.secondary {

    background: #f5f5f5;

    color: #666;

}



/* EPUB下载栏 */

.ebook-download-bar {

    margin-top: 20px;

    padding: 20px 24px;

    background: linear-gradient(135deg, #fef8ff 0%, #f5f3ff 50%, #f0f4ff 100%);

    border: 1px solid #e0d6ff;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    box-shadow: 0 2px 12px rgba(147, 112, 219, 0.1);

    position: relative;

    overflow: hidden;

}



.ebook-download-bar::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);

    animation: shimmer 3s infinite;

}



@keyframes shimmer {

    0% { left: -100%; }

    100% { left: 100%; }

}



.ebook-download-bar .download-icon {

    font-size: 24px;

    margin-right: 5px;

}



.ebook-download-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 12px 28px;

    border-radius: 25px;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    cursor: pointer;

    border: none;

    position: relative;

    overflow: hidden;

}



.ebook-download-btn::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);

    pointer-events: none;

}



.ebook-download-btn.epub {

    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #6366f1 100%);

    color: #fff;

    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;

}



.ebook-download-btn.epub:hover {

    transform: translateY(-3px) scale(1.02);

    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5), 0 0 0 1px rgba(255,255,255,0.2) inset;

}



.ebook-download-btn.epub:active {

    transform: translateY(-1px) scale(1);

}



.ebook-download-btn.epub.offline {

    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);

    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3), 0 0 0 1px rgba(255,255,255,0.1) inset;

}



.ebook-download-btn.epub.offline:hover {

    transform: translateY(-3px);

    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4), 0 0 0 1px rgba(255,255,255,0.2) inset;

}



/* 诗集目录 */

.ebook-toc {

    margin-top: 30px;

    padding-top: 30px;

    border-top: 1px solid #eee;

}



.ebook-toc-title {

    font-size: 18px;

    font-weight: 600;

    margin-bottom: 15px;

    color: #333;

}



.ebook-toc-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.ebook-toc-item {

    padding: 12px 15px;

    background: #f9f9f9;

    border-radius: 8px;

    cursor: pointer;

    transition: background 0.3s;

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.ebook-toc-item:hover {

    background: #f0f0f0;

}



.ebook-toc-item-title {

    font-size: 14px;

    color: #333;

}



.ebook-toc-item-page {

    font-size: 12px;

    color: #999;

}



/* 创建诗集表单样式 */

.ebook-form-grid {

    display: grid;

    grid-template-columns: 1fr 280px;

    gap: 30px;

    margin-bottom: 20px;

}



.ebook-form-left {

    min-width: 0;

}



.ebook-form-right {

    min-width: 0;

}



.ebook-cover-upload {

    text-align: center;

}



.ebook-cover-preview {

    width: 180px;

    height: 240px;

    border: 2px dashed #ddd;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 10px;

    overflow: hidden;

    background: #fafafa;

    transition: border-color 0.3s;

}



.ebook-cover-preview:hover {

    border-color: #667eea;

}



.ebook-cover-preview img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.ebook-cover-preview .cover-placeholder {

    font-size: 40px;

    color: #ccc;

}



/* 诗歌选择器样式 */

.ebook-poetry-selector {

    border: 1px solid #e8e8e8;

    border-radius: 8px;

    padding: 15px;

    background: #fafafa;

}



.ebook-poetry-toolbar {

    margin-bottom: 10px;

    padding-bottom: 10px;

    border-bottom: 1px solid #e8e8e8;

}



.ebook-select-all {

    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 14px;

    color: #333;

    cursor: pointer;

    user-select: none;

}



.ebook-select-all input[type="checkbox"] {

    width: 16px;

    height: 16px;

    cursor: pointer;

}



.ebook-poetry-search {

    display: flex;

    gap: 10px;

    margin-bottom: 15px;

}



.ebook-poetry-search input {

    flex: 1;

    padding: 10px 15px;

    border: 1px solid #ddd;

    border-radius: 6px;

    font-size: 14px;

}



.ebook-poetry-list {

    max-height: 200px;

    overflow-y: auto;

    background: #fff;

    border: 1px solid #e8e8e8;

    border-radius: 6px;

    padding: 10px;

    margin-bottom: 15px;

}



.ebook-poetry-empty {

    text-align: center;

    padding: 30px;

    color: #999;

    font-size: 14px;

}



.ebook-poetry-item {

    display: flex;

    align-items: center;

    padding: 10px;

    border-bottom: 1px solid #f0f0f0;

    cursor: pointer;

    transition: background 0.2s;

}



.ebook-poetry-item:last-child {

    border-bottom: none;

}



.ebook-poetry-item:hover {

    background: #f5f5f5;

}



.ebook-poetry-item input[type="checkbox"] {

    margin-right: 10px;

    width: 18px;

    height: 18px;

    cursor: pointer;

}



.ebook-poetry-item-info {

    flex: 1;

}



.ebook-poetry-item-title {

    font-size: 14px;

    color: #333;

    font-weight: 500;

}



.ebook-poetry-item-author {

    font-size: 12px;

    color: #999;

    margin-top: 2px;

}



.ebook-selected-poetry {

    border-top: 1px solid #e8e8e8;

    padding-top: 15px;

}



.ebook-selected-poetry label {

    display: block;

    margin-bottom: 10px;

    font-weight: 500;

    color: #333;

}



.ebook-selected-list {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    min-height: 40px;

}



.ebook-selected-empty {

    width: 100%;

    text-align: center;

    padding: 15px;

    color: #999;

    font-size: 13px;

}



.ebook-selected-tag {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 6px 12px;

    background: #667eea;

    color: #fff;

    border-radius: 20px;

    font-size: 13px;

}



.ebook-selected-tag .remove {

    cursor: pointer;

    font-weight: bold;

    opacity: 0.8;

}



.ebook-selected-tag .remove:hover {

    opacity: 1;

}



.form-actions {

    margin-top: 20px;

}



/* 响应式 */

@media (max-width: 768px) {

    .nav {

        flex-direction: column;

        height: auto;

        padding: 15px 0;

    }



    .nav-menu {

        margin: 15px 0;

        gap: 6px;

    }



    .poetry-grid {

        grid-template-columns: 1fr;

    }



    .ebook-form-grid {

        grid-template-columns: 1fr;

    }



    .ebook-form-right {

        order: -1;

    }

}



/* 微信登录相关样式 */

.login-tabs {

    display: flex;

    border-bottom: 2px solid #e8e8e8;

    margin-bottom: 25px;

}



.login-tab {

    flex: 1;

    text-align: center;

    padding: 12px 20px;

    font-size: 16px;

    color: #666;

    cursor: pointer;

    transition: all 0.3s;

    position: relative;

}



.login-tab:hover {

    color: #667eea;

}



.login-tab.active {

    color: #667eea;

    font-weight: bold;

}



.login-tab.active::after {

    content: '';

    position: absolute;

    bottom: -2px;

    left: 0;

    width: 100%;

    height: 2px;

    background: #667eea;

}



.login-content {

    display: none;

}



.login-content.active {

    display: block;

}



/* 微信二维码容器 */

.wechat-qrcode-container {

    text-align: center;

    padding: 20px 0;

    min-height: 320px;

}



.wechat-qrcode {

    width: 280px;

    height: 320px;

    margin: 0 auto 20px;

    border: 2px solid #e8e8e8;

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    padding: 20px 15px 15px;

    position: relative;

    background: #fff;

    box-shadow: 0 2px 10px rgba(0,0,0,0.05);

}



.wechat-qrcode img {

    width: 220px;

    height: 220px;

    object-fit: contain;

    display: block;

    border-radius: 8px;

}



.qrcode-placeholder {

    color: #999;

    font-size: 14px;

    text-align: center;

    padding: 40px 20px;

    line-height: 1.8;

}



.qrcode-placeholder .loading-spinner {

    width: 40px;

    height: 40px;

    border: 3px solid #f3f3f3;

    border-top: 3px solid #667eea;

    border-radius: 50%;

    margin: 0 auto 15px;

    animation: spin 1s linear infinite;

}



@keyframes spin {

    0% { transform: rotate(0deg); }

    100% { transform: rotate(360deg); }

}



/* 二维码状态提示 */

.qrcode-status {

    margin-top: 10px;

    color: #666;

    font-size: 14px;

    text-align: center;

}





.qrcode-timer {

    margin-top: 5px;

    color: #999;

    font-size: 13px;

    text-align: center;

}



/* ==================== 通用确认弹窗 ==================== */

.confirm-overlay {

    position: fixed;

    top: 0; left: 0; right: 0; bottom: 0;

    background: rgba(0, 0, 0, 0.48);

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    animation: fadeIn 0.18s ease;

}

@keyframes confirmFadeIn {

    from { opacity: 0; }

    to   { opacity: 1; }

}

.confirm-dialog {

    background: #fff;

    border-radius: 14px;

    width: 360px;

    padding: 30px 28px 22px;

    text-align: center;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

    animation: confirmSlideUp 0.22s cubic-bezier(0.4, 0, 0.2, 1);

}

@keyframes confirmSlideUp {

    from { transform: translateY(20px); opacity: 0; }

    to   { transform: translateY(0); opacity: 1; }

}

.confirm-icon {

    font-size: 40px;

    margin-bottom: 14px;

    line-height: 1;

}

.confirm-title {

    font-size: 18px;

    font-weight: 700;

    color: #222;

    margin-bottom: 10px;

}

.confirm-body {

    font-size: 14px;

    color: #666;

    line-height: 1.7;

    margin-bottom: 24px;

    white-space: pre-wrap;

}

.confirm-actions {

    display: flex;

    gap: 12px;

}

.confirm-cancel-btn {

    flex: 1;

    height: 42px;

    border: 1.5px solid #e0e0e0;

    border-radius: 8px;

    background: #f5f5f5;

    color: #555;

    font-size: 15px;

    font-weight: 500;

    cursor: pointer;

    transition: background 0.15s;

}

.confirm-cancel-btn:hover { background: #ebebeb; }

.confirm-ok-btn {

    flex: 1;

    height: 42px;

    border: none;

    border-radius: 8px;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: #fff;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: opacity 0.15s;

}

.confirm-ok-btn:hover { opacity: 0.9; }


/* ==================== 诗影栏目（PC端） ==================== */

.poetry-video-pc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 4px 0;
}

.poetry-video-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.poetry-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.poetry-video-card-cover {
    position: relative;
    width: 100%;
    padding-top: 133.3%; /* 3:4 竖版比例 */
    overflow: hidden;
    background: #f0f0f0;
}

.poetry-video-card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.poetry-video-card:hover .poetry-video-card-cover img {
    transform: scale(1.05);
}

.poetry-video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.poetry-video-card:hover .poetry-video-card-play {
    opacity: 1;
}

.poetry-video-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.poetry-video-card-info {
    padding: 12px 14px 14px;
}

.poetry-video-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.poetry-video-card-author {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* PC端视频播放弹窗 */
.pc-video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.pc-video-modal-overlay.show,
.pc-video-modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.pc-video-modal-wrap {
    width: 380px;
    max-width: 90vw;
}

/* 响应式：小屏减少列数 */
@media (max-width: 1200px) {
    .poetry-video-pc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .poetry-video-pc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .poetry-video-pc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pc-video-modal-wrap {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
    }
}







.qrcode-refresh {

    margin-top: 8px;

    text-align: center;

}



.qrcode-refresh a {

    font-size: 12px;

    color: #667eea;

    text-decoration: none;

    transition: color 0.3s;

}



.qrcode-refresh a:hover {

    color: #5568d3;

    text-decoration: underline;

}



.wechat-tip {

    color: #666;

    font-size: 14px;

    margin: 0;

}



/* 微信用户信息 */

.wechat-user-info {

    text-align: center;

    margin-bottom: 20px;

    padding: 15px;

    background: #f9f9f9;

    border-radius: 8px;

}



.wechat-user-info img {

    width: 80px;

    height: 80px;

    border-radius: 50%;

    object-fit: cover;

    margin-bottom: 10px;

}



.wechat-user-info div {

    font-size: 16px;

    font-weight: bold;

    color: #333;

}



/* 微信分享弹窗 */

.wechat-share-container {

    text-align: center;

    padding: 20px 0;

}



.wechat-share-qrcode {

    width: 300px;

    height: 300px;

    margin: 0 auto 20px;

    border: 2px solid #e8e8e8;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #f9f9f9;

}



.wechat-share-qrcode img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}



.wechat-share-title {

    font-size: 18px;

    font-weight: bold;

    color: #333;

    margin: 0 0 10px 0;

}



.wechat-share-tip {

    color: #999;

    font-size: 14px;

    margin: 0;

}



/* 微信二维码过期提示 */

.qrcode-expired {

    position: relative;

}



.qrcode-expired::after {

    content: '二维码已过期';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.7);

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    border-radius: 12px;

}



.qrcode-scanned {

    position: relative;

}



.qrcode-scanned::after {

    content: '扫码成功';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(102, 126, 234, 0.9);

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    border-radius: 12px;

}



/* 分享方式选择弹窗 */

.share-options-container {

    padding: 10px 0;

}



.share-preview-card {

    background: #f9f9f9;

    border-radius: 12px;

    padding: 15px;

    margin-bottom: 20px;

    display: flex;

    gap: 15px;

    border: 1px solid #e8e8e8;

}



.share-preview-cover {

    width: 80px;

    height: 80px;

    border-radius: 8px;

    overflow: hidden;

    flex-shrink: 0;

    background: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

}



.share-preview-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.share-preview-no-cover {

    color: #999;

    font-size: 12px;

    text-align: center;

}



.share-preview-content {

    flex: 1;

    overflow: hidden;

}



.share-preview-title {

    font-size: 16px;

    font-weight: bold;

    color: #333;

    margin-bottom: 8px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.share-preview-desc {

    font-size: 13px;

    color: #666;

    overflow: hidden;

    text-overflow: ellipsis;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    line-height: 1.5;

}



.share-options {

    display: flex;

    justify-content: space-around;

    padding: 10px 0;

}



.share-option-item {

    display: flex;

    flex-direction: column;

    align-items: center;

    cursor: pointer;

    padding: 15px 20px;

    border-radius: 12px;

    transition: background-color 0.3s;

}



.share-option-item:hover {

    background-color: #f5f5f5;

}



.share-option-icon {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

    margin-bottom: 8px;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

}



.share-option-icon.wechat-icon {

    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);

}



.share-option-icon.poster-icon {

    background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);

}



.share-option-icon.link-icon {

    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);

}



.share-option-item span {

    font-size: 13px;

    color: #666;

}



/* 分享链接弹窗 */

.share-link-container {

    padding: 20px 0;

}



.share-link-tip {

    color: #666;

    font-size: 14px;

    margin-bottom: 15px;

}



.share-link-input-group {

    display: flex;

    gap: 10px;

    margin-bottom: 15px;

}



.share-link-input {

    flex: 1;

    padding: 12px 15px;

    border: 1px solid #ddd;

    border-radius: 8px;

    font-size: 14px;

    background: #f9f9f9;

    color: #333;

}



.share-link-input:focus {

    outline: none;

    border-color: #667eea;

}



.btn-copy {

    padding: 12px 20px;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: #fff;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;

    transition: opacity 0.3s;

}



.btn-copy:hover {

    opacity: 0.9;

}



.share-link-success {

    color: #52c41a;

    font-size: 14px;

    text-align: center;

    padding: 10px;

    background: #f6ffed;

    border-radius: 8px;

    border: 1px solid #b7eb8f;

}



/* ==================== 我的诗集卡片样式 ==================== */



.my-ebook-card {

    background: #fff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    transition: transform 0.3s, box-shadow 0.3s;

    display: flex;

    flex-direction: column;

}



.my-ebook-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 8px 25px rgba(0,0,0,0.15);

}



.my-ebook-card-cover {

    width: 100%;

    height: 160px;

    overflow: hidden;

    position: relative;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

}



.my-ebook-card-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.my-ebook-card-no-cover {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 48px;

}



.my-ebook-card-body {

    padding: 16px;

    flex: 1;

    display: flex;

    flex-direction: column;

}



.my-ebook-card-top {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 8px;

    gap: 10px;

}



.my-ebook-card-title {

    font-size: 16px;

    font-weight: 600;

    color: #333;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    flex: 1;

}



/* 诗集状态徽章 */

.ebook-status-badge {

    padding: 4px 10px;

    border-radius: 12px;

    font-size: 12px;

    font-weight: 500;

    white-space: nowrap;

    flex-shrink: 0;

}



.status-draft {

    background: #f0f0f0;

    color: #666;

}



.status-pending {

    background: #fff7e6;

    color: #fa8c16;

}



.status-published {

    background: #f6ffed;

    color: #52c41a;

}



.status-rejected {

    background: #fff2f0;

    color: #ff4d4f;

}



.my-ebook-card-author {

    font-size: 13px;

    color: #666;

    margin-bottom: 10px;

}



.my-ebook-card-meta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 12px;

    color: #999;

    margin-bottom: 12px;

    flex-wrap: wrap;

    gap: 5px;

}



.my-ebook-reject-reason {

    font-size: 12px;

    color: #ff4d4f;

    background: #fff2f0;

    padding: 8px 10px;

    border-radius: 6px;

    margin-bottom: 10px;

    line-height: 1.5;

}



.my-ebook-card-actions {

    display: flex;

    gap: 8px;

    margin-top: auto;

    flex-wrap: wrap;

}



.my-ebook-card-actions button {

    flex: 1;

    min-width: 0;

    height: 32px;

    border: none;

    border-radius: 6px;

    font-size: 13px;

    cursor: pointer;

    transition: opacity 0.2s;

}



.my-ebook-card-actions button:hover {

    opacity: 0.8;

}



.my-ebook-btn-view {

    background: #667eea;

    color: #fff;

}



.my-ebook-btn-edit {

    background: #f0f4ff;

    color: #667eea;

}



.my-ebook-btn-delete {

    background: #fff0f0;

    color: #f44336;

}



/* ==================== 征文选稿样式 ==================== */



/* Quill 富文本编辑器适配 */

#essayContentEditor {

    background: #fff;

    border-radius: 0 0 6px 6px;

    font-size: 15px;

}



#essayContentEditor .ql-editor {

    min-height: 160px;

    max-height: 400px;

    overflow-y: auto;

    font-size: 15px;

    line-height: 1.8;

    color: #333;

    padding: 12px 16px;

}



#essayContentEditor .ql-editor img {

    max-width: 100%;

    height: auto;

    border-radius: 4px;

    margin: 6px 0;

}



.ql-toolbar.ql-snow {

    border-radius: 6px 6px 0 0;

    border-color: #ddd !important;

    background: #fafafa;

}



.ql-container.ql-snow {

    border-color: #ddd !important;

    border-radius: 0 0 6px 6px;

}



/* 详情页富文本内容渲染 */

.essay-richtext-content {

    font-size: 15px;

    color: #444;

    line-height: 1.8;

    word-break: break-word;

}



.essay-richtext-content img {

    max-width: 100%;

    height: auto;

    border-radius: 6px;

    margin: 8px 0;

    display: block;

}



.essay-richtext-content p {

    margin: 0 0 8px 0;

}



.essay-richtext-content h1,

.essay-richtext-content h2,

.essay-richtext-content h3 {

    margin: 12px 0 6px;

    color: #333;

    font-weight: 600;

}



.essay-richtext-content ul,

.essay-richtext-content ol {

    padding-left: 20px;

    margin: 6px 0;

}



.essay-richtext-content blockquote {

    border-left: 4px solid #667eea;

    margin: 8px 0;

    padding: 4px 12px;

    color: #666;

    background: #f8f6ff;

    border-radius: 0 4px 4px 0;

}



/* 活动详情弹窗 */

#essayDetailModal .modal-content {

    padding: 0;

    overflow: hidden;

}



#essayDetailModal .modal-header {

    padding: 20px 24px 16px 24px;

    border-bottom: 1px solid #f0f0f0;

    display: flex;

    justify-content: space-between;

    align-items: center;

    position: relative;

}



#essayDetailModal .modal-header h2 {

    font-size: 18px;

    color: #333;

    margin: 0;

    font-weight: 600;

}



#essayDetailModal .modal-header .close {

    position: static;

    font-size: 22px;

    color: #999;

    cursor: pointer;

    line-height: 1;

    transition: color 0.2s;

}



#essayDetailModal .modal-header .close:hover {

    color: #333;

}



#essayDetailModal .modal-body {

    max-height: 65vh;

    overflow-y: auto;

    padding: 0;

}



#essayDetailModal .modal-actions {

    padding: 14px 24px;

    border-top: 1px solid #f0f0f0;

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    background: #fafafa;

    border-radius: 0 0 12px 12px;

}



.essay-detail-body {

    padding: 0;

}



.essay-detail-meta {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    padding: 20px 24px;

    background: linear-gradient(135deg, #f8f6ff 0%, #eef2ff 100%);

    border-bottom: 1px solid #e8e0f5;

}



.essay-detail-meta-item {

    display: flex;

    flex-direction: column;

    gap: 4px;

}



.essay-detail-meta-item.full-width {

    grid-column: 1 / -1;

}



.essay-detail-meta-label {

    font-size: 12px;

    color: #9e9e9e;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.essay-detail-meta-value {

    font-size: 14px;

    color: #333;

    font-weight: 500;

}



.essay-detail-meta-value .essay-status-badge {

    font-size: 12px;

    padding: 3px 10px;

}



.essay-detail-content-section {

    padding: 20px 24px;

    border-bottom: 1px solid #f0f0f0;

}



.essay-detail-content-section h4 {

    font-size: 14px;

    color: #667eea;

    font-weight: 600;

    margin: 0 0 10px 0;

    display: flex;

    align-items: center;

    gap: 6px;

}



.essay-detail-content-section h4::before {

    content: '';

    display: inline-block;

    width: 3px;

    height: 14px;

    background: linear-gradient(180deg, #667eea, #764ba2);

    border-radius: 2px;

}



.essay-detail-text {

    font-size: 15px;

    color: #444;

    line-height: 1.8;

    white-space: pre-wrap;

    word-break: break-word;

}



.essay-detail-reject {

    margin: 0 24px 16px 24px;

    padding: 12px 16px;

    background: linear-gradient(135deg, #fff3e0, #fff8e1);

    border-left: 4px solid #ff9800;

    border-radius: 0 8px 8px 0;

    color: #e65100;

    font-size: 14px;

    line-height: 1.6;

}



.essay-detail-reject strong {

    display: block;

    margin-bottom: 4px;

    color: #bf360c;

}



.essay-detail-qr {

    padding: 20px 24px;

    display: flex;

    flex-direction: column;

    align-items: center;

    background: #fafafa;

}



.essay-detail-qr-title {

    font-size: 13px;

    color: #666;

    margin-bottom: 12px;

    font-weight: 500;

}



.essay-detail-qr-wrap {

    padding: 10px;

    background: #fff;

    border-radius: 8px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.08);

    display: inline-block;

}



.essay-detail-qr-wrap img {

    display: block;

    width: 140px;

    height: 140px;

    border-radius: 4px;

}



.essay-detail-qr-hint {

    margin-top: 8px;

    font-size: 12px;

    color: #bbb;

}



/* 征文活动卡片 */

.essay-activity-card {

    background: #fff;

    border-radius: 12px;

    padding: 20px;

    margin-bottom: 20px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.06);

    transition: all 0.3s;

    cursor: pointer;

}



.essay-activity-card:hover {

    box-shadow: 0 4px 16px rgba(102,126,234,0.15);

    transform: translateY(-2px);

}



.essay-activity-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 12px;

}



.essay-activity-header h4 {

    font-size: 18px;

    color: #333;

    margin: 0;

}



.essay-activity-body {

    margin-bottom: 15px;

}



.essay-activity-desc {

    color: #666;

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 10px;

}



.essay-activity-time {

    font-size: 13px;

    color: #999;

    margin-bottom: 8px;

}



.essay-activity-stats {

    font-size: 13px;

    color: #667eea;

    display: flex;

    gap: 20px;

}



.essay-activity-actions {

    display: flex;

    gap: 10px;

}



/* 状态标签 */

.essay-status-badge {

    display: inline-block;

    padding: 4px 12px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 500;

}



.essay-status-badge.status-pending {

    background: #fff7e6;

    color: #fa8c16;

}



.essay-status-badge.status-active {

    background: #e6f7ff;

    color: #1890ff;

}



.essay-status-badge.status-ended {

    background: #f6ffed;

    color: #52c41a;

}



.essay-status-badge.status-rejected {

    background: #fff1f0;

    color: #f5222d;

}



/* 工具栏 */

.essay-toolbar {

    background: #fff;

    padding: 15px 20px;

    border-radius: 12px;

    margin-bottom: 20px;

    display: flex;

    justify-content: flex-start;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.04);

}





.essay-toolbar h3 {

    font-size: 20px;

    color: #333;

    margin: 0;

}



/* ==================== 诗歌评论区样式 ==================== */

.pc-comment-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid #f0eaf8;
}

.pc-comment-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #4a3268;
    margin-bottom: 16px;
}

.pc-comment-icon { font-size: 18px; }

.pc-comment-count {
    font-size: 13px;
    color: #999;
    font-weight: normal;
}

.pc-comment-form {
    background: #faf8fe;
    border: 1px solid #e8dff5;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.pc-comment-notice {
    font-size: 12px;
    color: #b08dd6;
    margin-bottom: 10px;
    line-height: 1.5;
    padding: 8px 12px;
    background: #f3ecff;
    border-radius: 8px;
    border-left: 3px solid #b08dd6;
}

.pc-comment-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 72px;
    line-height: 1.6;
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
}

.pc-comment-textarea:focus {
    border-color: #9b72cf;
    box-shadow: 0 0 0 2px rgba(155, 114, 207, 0.12);
}

.pc-comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.pc-comment-char-count {
    font-size: 12px;
    color: #bbb;
    margin-right: auto;
}

.pc-comment-submit-btn {
    padding: 7px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    font-weight: 500;
}

.pc-comment-submit-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.pc-comment-cancel-btn {
    padding: 7px 14px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.pc-comment-cancel-btn:hover { background: #e0e0e0; }

.pc-comment-item {
    padding: 16px 0;
    border-bottom: 1px solid #f5f0fb;
}

.pc-comment-item:last-child { border-bottom: none; }

.pc-comment-main {
    display: flex;
    gap: 12px;
}

.pc-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pc-comment-avatar-ph {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pc-comment-content { flex: 1; min-width: 0; }

.pc-comment-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.pc-comment-user {
    font-size: 14px;
    font-weight: 600;
    color: #5a3d8a;
}

.pc-comment-time {
    font-size: 12px;
    color: #bbb;
}

.pc-comment-text {
    font-size: 14px;
    color: #444;
    line-height: 1.65;
    word-break: break-all;
    white-space: pre-wrap;
    margin-bottom: 8px;
}

.pc-comment-reply-btn {
    background: none;
    border: none;
    color: #9b72cf;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}

.pc-comment-reply-btn:hover { background: #f3ecff; }

.pc-comment-delete-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 8px;
    margin-left: auto;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.pc-comment-delete-btn:hover { background: #fee; color: #c0392b; }

.pc-comment-delete-btn-sm {
    background: none;
    border: none;
    color: #999;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    margin-left: auto;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.pc-comment-delete-btn-sm:hover { background: #fee; color: #c0392b; }

.pc-comment-replies {
    margin-top: 10px;
    margin-left: 52px;
    background: #f9f6fe;
    border-radius: 8px;
    padding: 10px 14px;
    border-left: 3px solid #d4b8f0;
}

.pc-comment-reply-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #ede6fa;
}

.pc-comment-reply-item:last-child { border-bottom: none; }

.pc-comment-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pc-comment-avatar-ph-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bdb 0%, #7c4fa0 100%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pc-comment-reply-body { flex: 1; min-width: 0; }

.pc-comment-reply-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.pc-reply-to {
    color: #9b72cf;
    font-size: 12px;
}

.pc-reply-form {
    margin-top: 10px;
    padding: 12px;
    background: #f5f0fb;
    border-radius: 8px;
}

.pc-reply-form .pc-comment-textarea {
    min-height: 56px;
    font-size: 13px;
}

.pc-comment-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0 8px;
}

.pc-comment-page-btn {
    padding: 6px 16px;
    background: #f3ecff;
    color: #764ba2;
    border: 1px solid #d4b8f0;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.pc-comment-page-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

/* ======= 后台评论管理样式 ======= */

.comment-admin-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s;
}

.comment-admin-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.comment-admin-check { padding-top: 2px; }

.comment-admin-avatar { flex-shrink: 0; }

.comment-admin-body { flex: 1; min-width: 0; }

.comment-admin-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.comment-admin-user {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.comment-admin-poetry { font-size: 13px; }

.comment-admin-content {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #e0e0e0;
    word-break: break-all;
}

.comment-admin-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.comment-admin-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: bold;
    margin-left: auto;
}








/* 创建活动面板 */

.essay-create-panel {

    background: #fff;

    border-radius: 12px;

    padding: 30px;

    margin-bottom: 30px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.06);

}



.essay-create-panel h2 {

    font-size: 20px;

    color: #333;

    margin-bottom: 20px;

}



/* 投稿管理 */

.essay-submissions-header {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 20px;

}



.essay-submissions-header h3 {

    font-size: 20px;

    color: #333;

    margin: 0;

}



.essay-submissions-toolbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: #fff;

    padding: 15px 20px;

    border-radius: 8px;

    margin-bottom: 20px;

}



.essay-stats {

    display: flex;

    gap: 20px;

    color: #666;

    font-size: 14px;

}



.essay-stats b {

    color: #667eea;

}



.essay-actions {

    display: flex;

    gap: 10px;

}



/* 投稿列表项 */

.submission-item {

    display: flex;

    align-items: center;

    gap: 15px;

    background: #fff;

    padding: 15px 20px;

    margin-bottom: 10px;

    border-radius: 8px;

    box-shadow: 0 1px 4px rgba(0,0,0,0.05);

    transition: all 0.2s;

}



.submission-item:hover {

    box-shadow: 0 2px 8px rgba(102,126,234,0.1);

}



.submission-item.dragging {

    opacity: 0.5;

    background: #f0f4ff;

}



.submission-drag-handle {

    cursor: grab;

    font-size: 20px;

    color: #ccc;

    padding: 5px;

}



.submission-drag-handle:active {

    cursor: grabbing;

}



.submission-checkbox input {

    width: 20px;

    height: 20px;

    cursor: pointer;

}



.submission-info {

    flex: 1;

}



.submission-info h4 {

    font-size: 16px;

    color: #333;

    margin: 0 0 5px 0;

}



.submission-info .author {

    font-size: 14px;

    color: #666;

    margin: 0 0 5px 0;

}



.submission-info .meta {

    font-size: 12px;

    color: #999;

    display: flex;

    gap: 15px;

    margin: 0;

}



.submission-status {

    min-width: 80px;

    text-align: center;

}



.submission-status span {

    display: inline-block;

    padding: 4px 10px;

    border-radius: 4px;

    font-size: 12px;

}



.submission-status .status-pending {

    background: #fff7e6;

    color: #fa8c16;

}



.submission-status .status-selected {

    background: #e6f7ff;

    color: #1890ff;

}



.submission-status .status-rejected {

    background: #fff1f0;

    color: #f5222d;

}



.submission-status .status-returned {

    background: #fff7e6;

    color: #d46b08;

}



.submission-actions {

    display: flex;

    gap: 6px;

    flex-wrap: wrap;

}



.btn-warning { background: #fa8c16; color: #fff; border: none; cursor: pointer; }

.btn-warning:hover { background: #d46b08; }



.btn-danger { background: #ff4d4f; color: #fff; border: none; cursor: pointer; }

.btn-danger:hover { background: #cf1322; }



/* 征稿结果 */

.essay-result-card {

    background: #fff;

    padding: 25px;

    margin-bottom: 20px;

    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.06);

}



.essay-result-card h4 {

    font-size: 18px;

    color: #333;

    margin: 0 0 10px 0;

}



.essay-result-card .author {

    font-size: 14px;

    color: #667eea;

    margin-bottom: 15px;

}



.essay-result-card .poem-content {

    font-size: 15px;

    color: #333;

    line-height: 1.8;

    white-space: pre-wrap;

    margin-bottom: 15px;

}



.essay-result-card .activity-title {

    font-size: 13px;

    color: #999;

    text-align: right;

    margin: 0;

}



/* 征文相关按钮 */

.btn-sm {

    padding: 6px 12px;

    font-size: 13px;

}



.essay-submit-label {

    color: #667eea;

    font-weight: 500;

    font-size: 14px;

}



/* 表单行 */

.form-row {

    display: flex;

    gap: 15px;

}



.form-row .form-group {

    flex: 1;

}



/* 空状态 */

.essay-empty {

    text-align: center;

    padding: 60px;

    color: #999;

}



.essay-empty .empty-icon {

    font-size: 50px;

    margin-bottom: 12px;

}



/* ==================== 我的投稿 ==================== */

.my-sub-group {

    background: #fff;

    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.07);

    margin-bottom: 20px;

    overflow: hidden;

}

.my-sub-group-header {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 14px 18px 8px;

    border-bottom: 1px solid #f0f0f0;

}

.my-sub-group-title {

    font-size: 15px;

    font-weight: 600;

    color: #333;

    flex: 1;

}

.my-sub-group-meta {

    padding: 6px 18px 10px;

    font-size: 12px;

    color: #999;

}

.my-sub-activity-badge {

    font-size: 11px;

    padding: 2px 8px;

    border-radius: 20px;

    font-weight: 500;

    white-space: nowrap;

}

.sub-activity-pending { background: #fff3e0; color: #e65100; }

.sub-activity-active  { background: #e8f5e9; color: #2e7d32; }

.sub-activity-ended   { background: #f5f5f5; color: #757575; }



.my-sub-list {

    padding: 4px 0 8px;

}

.my-sub-poetry-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 10px 18px;

    border-bottom: 1px solid #f7f7f7;

    transition: background 0.15s;

}

.my-sub-poetry-item:last-child { border-bottom: none; }

.my-sub-poetry-item:hover { background: #fafafa; }

.my-sub-poetry-cover {

    width: 44px;

    height: 44px;

    object-fit: cover;

    border-radius: 6px;

    flex-shrink: 0;

}

.my-sub-poetry-info {

    flex: 1;

    min-width: 0;

}

.my-sub-poetry-title {

    font-size: 14px;

    font-weight: 500;

    color: #333;

    margin-bottom: 4px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}

.my-sub-poetry-title:hover { color: #667eea; }

.my-sub-poetry-meta {

    font-size: 12px;

    color: #999;

}

.my-sub-status-badge {

    font-size: 11px;

    padding: 3px 8px;

    border-radius: 20px;

    font-weight: 500;

    white-space: nowrap;

    flex-shrink: 0;

}

.sub-status-pending  { background: #fff3e0; color: #e65100; }

.sub-status-selected { background: #e8f5e9; color: #2e7d32; }

.sub-status-rejected { background: #ffebee; color: #c62828; }

.sub-status-returned { background: #fff7e6; color: #d46b08; }



.my-sub-poetry-actions {

    display: flex;

    gap: 6px;

    margin-top: 6px;

}


/* ==================== 我的收益 ==================== */

.earnings-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: #f8f9fc;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #eef0f5;
}

.earnings-filter-bar label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.earnings-date-input {
    border: 1px solid #dde0e8;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.earnings-date-input:focus {
    border-color: #667eea;
}

.earnings-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.earnings-summary-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
}

.earnings-summary-card.green {
    background: linear-gradient(135deg, #43d584, #27a17a);
}

.earnings-summary-card.orange {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #333;
}

.earnings-card-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.earnings-card-label {
    font-size: 12px;
    opacity: 0.85;
}

.btn-withdraw {
    display: inline-block;
    padding: 8px 22px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.15s;
}

.btn-withdraw:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.earnings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 6px;
}

.earnings-table th {
    background: #f5f6fa;
    color: #888;
    font-weight: 500;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.earnings-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
}

.earnings-table tr:hover td {
    background: #fafbff;
}

.earnings-status-pending {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #fff7e6;
    color: #fa8c16;
    font-size: 12px;
}

.earnings-status-settled {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f6ffed;
    color: #52c41a;
    font-size: 12px;
}

.earnings-status-withdrawn {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f0f2ff;
    color: #667eea;
    font-size: 12px;
}

.btn-page {
    padding: 6px 16px;
    border: 1px solid #dde0e8;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: background 0.15s;
}

.btn-page:hover {
    background: #f0f2ff;
    border-color: #667eea;
    color: #667eea;
}

.withdraw-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.withdraw-history-table th {
    background: #f5f6fa;
    color: #888;
    font-weight: 500;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.withdraw-history-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
}

.withdraw-status-pending  { color: #fa8c16; }
.withdraw-status-approved { color: #1890ff; }
.withdraw-status-paid     { color: #52c41a; }
.withdraw-status-rejected { color: #ff4d4f; }

/* 购买弹窗 */
.modal .modal-dialog {
    background: #fff;
    border-radius: 16px;
    margin: auto;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.modal .modal-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.modal .modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.modal .modal-close:hover {
    color: #555;
}

.modal .modal-body {
    padding: 24px;
}


/* ==================== 视频合成相关 ==================== */

/* 制作视频按钮 */
.action-btn.video-synth-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.action-btn.video-synth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 我的视频 - 筛选栏 */
.vs-filter-bar {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.vs-filter-btn {
    padding: 4px 14px;
    border-radius: 16px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.vs-filter-btn:hover { border-color: #764ba2; color: #764ba2; }
.vs-filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

/* 我的视频 - 卡片列表 */
.vs-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 16px;
}
.vs-card {
    border: 1px solid #e8e4f0;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f7fc);
    box-shadow: 0 4px 12px rgba(102,126,234,0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.vs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102,126,234,0.18);
    border-color: #c4b8e8;
}
.vs-card-cover {
    height: 180px;
    background: linear-gradient(135deg, #f0effe 0%, #e8e4f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #9b8dc7;
    overflow: hidden;
    position: relative;
}
.vs-card-cover::after {
    content: '▶';
    position: absolute;
    font-size: 40px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
}
.vs-card:hover .vs-card-cover::after {
    opacity: 1;
}
.vs-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.vs-card-info { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.vs-card-title {
    font-size: 15px;
    font-weight: bold;
    color: #2d2a3e;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vs-card-title::before {
    content: '📜';
    font-size: 14px;
    flex-shrink: 0;
}
.vs-card-sub {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}
.vs-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #7a7490;
    margin-bottom: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.vs-card-meta span { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.vs-card-status { color: #ff9800; font-weight: 500; }
.vs-card-status.vs-status-2 { color: #4caf50; }
.vs-card-status.vs-status-3 { color: #f44336; }
.vs-card-audit { color: #ff9800; font-weight: 500; }
.vs-card-audit.vs-audit-approved { color: #4caf50; }
.vs-card-audit.vs-audit-rejected { color: #f44336; }
.vs-card-reject {
    font-size: 12px;
    color: #f44336;
    margin-top: 4px;
    padding: 5px 10px;
    background: #fff5f5;
    border-radius: 6px;
    border-left: 3px solid #f44336;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.vs-card-expire {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}
.vs-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    flex-wrap: wrap;
}
.vs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    flex: 0 1 auto;
    white-space: nowrap;
}
.vs-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}
.vs-btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(102,126,234,0.5);
}
.vs-btn-secondary {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    color: #666;
}
.vs-btn-secondary:hover {
    background: linear-gradient(135deg, #e8e8e8, #ddd);
}
.vs-btn-danger {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #f44336;
}
.vs-btn-danger:hover {
    background: linear-gradient(135deg, #ffcdd2, #ffa0a0);
}
.vs-btn-disabled {
    background: linear-gradient(135deg, #f5f5f5, #eee);
    color: #bbb;
    cursor: not-allowed;
}

/* 视频筛选按钮 */
.vs-filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #e0ddf0;
    background: #fff;
    color: #7a7490;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.vs-filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}
.vs-filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}











