
/* 搜索框样式 */
.search-container {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.search-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 内容区域样式 */
.content-container {
    padding: 24px 0;
    background: #f5f5f500;
    position: relative;
    z-index: 1;
}

.content-box {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 0 20px;*/
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); /* 修改这里 */
    gap: 24px;
    align-items: start; /* 确保子元素从顶部对齐 */
}

/* 句子内容区域样式 */
.sentence-section {
    background: #ffffffcf;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.sentence-header {
    margin-bottom: 24px;
}

.sentence-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.title-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.icon-text {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.tag-title-icon {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.title-icon {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.title-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.title-icon .title-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}
.sentence-title h1 {
    font-size: 24px;
    color: #333;
    font-weight: normal;
    margin: 0;
}

.sentence-subtitle {
    color: #999;
    margin: 0;
    font-size: 14px;
}

.sentence-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item-number {
    color: #4e6ef2;
    font-size: 16px;
    font-weight: bold;
    min-width: 30px;
}

.item-text {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    text-decoration: none;
}
.item-text:hover {
    color: #4e6ef2;  /* 鼠标悬停时改变颜色 */
    text-decoration: none;  /* 确保悬停时也不显示下划线 */
}

/* 推荐标签区域样式 */
.recommend-tags {
    background: #fffffff5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.recommend-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    font-weight: normal;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tag-link {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-link:hover {
    color: #4e6ef2;
}

@media screen and (max-width: 768px) {
    .content-box {
        grid-template-columns: 1fr;
    }
    .icon-text {
        font-size: 20px;
    }
    .title-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .sentence-title h1 {
        font-size: 20px;
    }
}

/* 添加分页样式 */
.pagination {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-item {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.page-item:hover {
    color: #4e6ef2;
    border-color: #4e6ef2;
}

.page-item.active {
    background: #4e6ef2;
    color: #fff;
    border-color: #4e6ef2;
}

.page-ellipsis {
    color: #999;
    font-size: 14px;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    color: #666;
    font-size: 14px;
}

.jump-input {
    width: 50px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.jump-input:focus {
    border-color: #4e6ef2;
    outline: none;
}

.jump-btn {
    padding: 0 12px;
    height: 32px;
    background: #4e6ef2;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.jump-btn:hover {
    background: #4058c9;
}

@media screen and (max-width: 768px) {
    .pagination {
        gap: 4px;
    }

    .page-item {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .page-jump {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
        margin-left: 0;
    }
}
/* 热门推荐样式 */
.hot-recommend {
    position: sticky;
    top: 20px;  /* 距离顶部的距离 */
    /* margin-top: 20px; */
    padding: 16px;
    background: #fffffff5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 10;
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hot-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.hot-item:hover {
    background: #f5f5f5;
}

.hot-rank {
    width: 24px;
    height: 24px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.hot-item:nth-child(2) .hot-rank {
    background: #ff7a45;
}

.hot-item:nth-child(3) .hot-rank {
    background: #ffa940;
}

.hot-item:nth-child(n+4) .hot-rank {
    background: #d9d9d9;
}

.hot-content {
    flex: 1;
}

.hot-title {
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.hot-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 12px;
}

@media screen and (max-width: 768px) {
    .hot-recommend {
        margin-top: 16px;
    }
}

.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}


.search-map {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.map-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 24px;
    font-weight: normal;
}

.keyword-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.keyword-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* 修改 keyword-list 相关样式 */
.keyword-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.keyword-item {
    display: block;
    padding: 8px 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #495057;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    text-align: left;
    line-height: 1.4;
}

.keyword-item:hover {
    color: #4e6ef2;
    /* border-color: #4e6ef2; */
    background: #f8f9fa;
    transform: none;
    box-shadow: none;
}

@media screen and (max-width: 768px) {
    .keyword-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .keyword-item {
        padding: 10px 12px;
    }

    .map-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
}


/* 推荐专辑样式 */
.collections-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.collection-card {
    display: flex;
    gap: 20px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.collection-image {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
}

.collection-info {
    flex: 1;
}

.collection-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: normal;
}

.count {
    color: #999;
    font-size: 14px;
    margin-left: 8px;
}

.collection-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 热门专辑样式 */
.hot-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 80px; /* header高度 + 一些间距 */
    /*  height: calc(100vh - 100px);视窗高度减去header和间距 */
    overflow-y: auto; /* 内容超出时显示滚动条 */
}
/* 美化滚动条 */
.hot-section::-webkit-scrollbar {
    width: 6px;
}

.hot-section::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.hot-section::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.hot-section::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

@media screen and (max-width: 768px) {
    .hot-section {
        position: static;
        height: auto;
        margin-top: 20px;
    }
}
.hot-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.hot-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.hot-item:hover {
    background: #f5f5f5;
}

.hot-item img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.hot-info {
    flex: 1;
}

.hot-info h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    font-weight: normal;
}

.hot-info p {
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    .content-box {
        grid-template-columns: 1fr;
    }

    .collection-card {
        padding: 16px;
    }

    .collection-image {
        width: 100px;
        height: 100px;
    }

    .hot-section {
        margin-top: 20px;
    }
}

.collections-container {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.section-title {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-item {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.page-item:hover {
    color: #4e6ef2;
    border-color: #4e6ef2;
}

.page-item.active {
    background: #4e6ef2;
    color: #fff;
    border-color: #4e6ef2;
}

.page-ellipsis {
    color: #999;
    font-size: 14px;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    color: #666;
    font-size: 14px;
}

.jump-input {
    width: 50px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.jump-input:focus {
    border-color: #4e6ef2;
    outline: none;
}

.jump-btn {
    padding: 0 12px;
    height: 32px;
    background: #4e6ef2;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.jump-btn:hover {
    background: #4058c9;
}

@media screen and (max-width: 768px) {
    .collections-container {
        padding: 16px;
    }

    .pagination {
        gap: 4px;
    }

    .page-item {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .page-jump {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
        margin-left: 0;
    }
}

/* 分类导航样式 */
.category-nav {
    display: flex;
    padding: 20px 0 0 0;
    background: #fff;
    margin-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 60px;
    z-index: 100;
}

.category-tab {
    padding: 16px 20px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    position: relative;
    transition: all 0.3s;
    white-space: nowrap;
}

.category-tab:hover {
    color: #4e6ef2;
}

.category-tab.active {
    color: #4e6ef2;
    font-weight: 500;
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: #4e6ef2;
    border-radius: 1px;
}

/* 美化滚动条 */
.category-nav::-webkit-scrollbar {
    height: 0;
    width: 0;
    background: transparent;
}

@media screen and (max-width: 768px) {
    .category-nav {
        top: 50px;
        padding: 0 12px;
    }
    
    .category-tab {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .category-tab.active::after {
        left: 16px;
        right: 16px;
    }
}

/* 文章列表样式 */
.article-list {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.article-item {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}
.article-item:hover {
    background: #f8f9fa;
}
.article-item:last-child {
    border-bottom: none;
}
.article-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.article-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.article-title {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    word-wrap: break-word;
}
.article-source {
    color: #666;
    font-size: 14px;
    font-style: italic;
}
.article-meta {
    display: flex;
    gap: 16px;
    color: #999;
    font-size: 13px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
/* 响应式布局 */
@media screen and (max-width: 768px) {
    .content-box {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .right-sidebar {
        width: 100%;
    }
    .category-nav {
        padding: 15px;
    }
    
    .article-item {
        padding: 12px;
    }
    
    .article-link {
        margin-right: 0;
    }
    .article-title {
        font-size: 15px;
    }
    
    .article-source {
        font-size: 13px;
    }
    
    .article-meta {
        font-size: 12px;
        gap: 12px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .page-item {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

.sentence-author {
    font-style: italic;
    margin-right: auto; /* 将作者推到左侧 */
}

.sentence-likes, .sentence-share {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.sentence-actions {
    display: flex;
        align-items: center;
        gap: 15px;
        color: #777;
        margin-top: 10px;
}

.sentence-likes:hover, .sentence-share:hover {
    color: #3498db;
}

.like-icon, .share-icon {
    margin-right: 5px;
    font-style: normal;
}

.like-icon {
    color: #e74c3c;
}

/* 句子列表样式优化 */
.topic-sentence-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sentence-item {
    position: relative;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    transition: all 0.3s ease;
}

.sentence-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sentence-content {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 4px;
    position: relative;
    padding: 0 15px;
}

.sentence-link {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-decoration: none;
}

.sentence-link:hover {
    color: #4e6ef2;
}

.sentence-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
}

.sentence-author {
    font-style: italic;
    margin-right: auto;
}

.sentence-likes, .sentence-share, .sentence-copy {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 14px;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sentence-likes:hover, .sentence-share:hover, .sentence-copy:hover {
    background-color: #f5f5f5;
    color: #333;
}

.copy-icon, .share-icon {
    font-style: normal;
}

/* 分享面板样式 */
.share-panel {
    position: absolute;
    bottom: 100%;
    right: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 10;
    margin-bottom: 10px;
}

.share-options {
    display: flex;
    gap: 15px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.share-option:hover {
    background-color: #f5f5f5;
}

.close-share {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
}

/* 标签样式 */
.sentence-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.sentence-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f0f7ff;
    color: #4e6ef2;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sentence-tag:hover {
    background-color: #e0f0ff;
    color: #3a56c5;
}

/* 复制成功提示 */
.copy-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* 点赞动画 */
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.like-icon.liked {
    animation: heartBeat 0.5s ease;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .sentence-item {
        padding: 15px;
    }

    .sentence-link {
        font-size: 15px;
    }

    .sentence-actions {
        gap: 10px;
    }

    .sentence-likes, .sentence-share, .sentence-copy {
        font-size: 13px;
        padding: 4px 6px;
    }

    .share-panel {
        right: 10px;
        padding: 10px;
    }

    .share-options {
        gap: 10px;
    }
}