/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    box-shadow: 0 1px 3px rgba(26, 26, 26, 0.1);
    z-index: 1000;
}

.header .title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #121212;
}

/* 修改头部图标尺寸 */
.menu-icon i {
    font-size: 1.5rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.menu-icon i:hover {
    opacity: 0.8;
}

.home-icon, .top-icon {
    font-size: 1.5rem;
}

/* 底部固定栏样式 */
.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -1px 3px rgba(26, 26, 26, 0.1);
    z-index: 1000;
}

.stats-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    background-color: #deefff;
    color: #444;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
}

.stats-info i {
    font-size: 2rem;
    color: #4a8aee;
}

.stats-info span {
    font-size: 1.1rem;
    line-height: 1.3;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    color: #056de8;
}

/* 添加左右分隔线 */
.stats-info span::before,
.stats-info span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1px;
    height: 60%;  /* 可调整高度 */
    background-color: #ddd;
    transform: translateY(-50%);
}

.stats-info span::before {
    left: 0;
}

.stats-info span::after {
    right: 0;
}

.interaction-icons {
    display: flex;
    gap: 2rem;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.icon-item:hover {
    opacity: 0.8;
}

.icon-item i {
    font-size: 1.8rem;
}

.icon-item span {
    font-size: 0.9rem;
    color: #646464;
}

/* 主要内容区样式 */
.main-content {
    margin: 4.5rem 0 2rem;
    padding: 0.5rem;
}

.article {
    padding: 0 0.8rem;
}

.article-title {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #121212;
}

/* 作者信息样式 */
.author-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.author-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #121212;
}

.author-name img {
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
}

.original-tag {
    background-color: #f6f6f6;
    padding: 0.2rem 0.6rem;
    border-radius: 0.9rem;
    font-size: 0.9rem;
    color: #444;
}

.publish-info {
    font-size: 0.9rem;
    color: #8590a6;
    margin-top: 0.2rem;
}

.follow-btn {
    background-color: #056de8;
    color: #fff;
    padding: 0.4rem 1.8rem;
    border-radius: 0.3rem;
    font-size: 1.2rem;
}

.follow-btn.followed {
    background-color: #8590a6;
}

/* 评论区样式 */
.comments-section {
    margin-top: 2rem;
    border-top: 1px solid #f0f2f5;
    padding-top: 1.5rem;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.comments-header h2 {
    font-size: 1.6rem;
    color: #121212;
}

.likes-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8590a6;
    font-size: 1.2rem;
}

.likes-count img {
    height: 2rem;
}

/* 评论列表样式 */
.comment-item {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f2f5;
}

/* 回复样式 */
.comment-item.reply {
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f6f6f6;
}

/* 最后一个回复不需要底部边框 */
.comment-item.reply:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.comment-avatar img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    object-fit: cover;
}

/* 回复的头像稍小一些 */
.comment-item.reply .comment-avatar img {
    width: 2.4rem;
    height: 2.4rem;
}

.comment-content {
    flex: 1;
}

.comment-user {
    font-size: 1.4rem;
    font-weight: 700;
    color: #8d8d8d;
    margin-bottom: 0.5rem;
}

.comment-text {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #121212;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
}

.comment-date {
    color: #8590a6;
    font-size: 1.2rem;
}

/* 评论区域的操作图标样式 */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-right: 0.8rem;
}

.comment-actions i {
    font-size: 1.6rem;
    color: #8590a6;
    cursor: pointer;
}

.comment-actions i.reply-btn,
.comment-actions i.like-btn {
    margin-right: 0;
}

/* 点赞按钮激活状态 */
.comment-actions i.like-btn.liked {
    color: #ff4d4f;
}

/* 点赞数字激活状态 */
.comment-actions span.liked {
    color: #ff4d4f;
}

.comment-actions span {
    color: #8590a6;
    font-size: 1rem;
    min-width: 2.5rem;
    text-align: left;
    margin-left: -0.5rem;
}

.load-more {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    color: #056de8;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    background-color: #f6f6f6;
    border-radius: 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background-color: #e8f0fe;
}

/* 文章内容样式 */
.article p {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #121212;
    margin-bottom: 1.5rem;
    text-align: justify;
    text-indent: 2em;
}

/* 文章内容区的图片样式 */
.article > img {
    display: block;
    width: 100%;
    border-radius: 0.4rem;
    margin: 1.5rem auto 2rem;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.1);
}

/* 文章中的小节标题 */
.article .section-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #121212;
    margin: 2rem 0 1rem;
    text-indent: 0;
}

/* 标注重点内容 */
.article .highlight-box {
    background-color: #f6f6f6;
    border-left: 3px solid #056de8;
    padding: 1rem 1rem 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.3rem 0.3rem 0;
}

.article .highlight-box p {
    margin-bottom: 0.5rem;
    text-indent: 0;
}

.article .highlight-box p:last-child {
    margin-bottom: 0;
}

/* 数字列表样式 */
.article ol {
    counter-reset: item;
    padding-left: 1em;
    margin-bottom: 1.5rem;
}

.article ol li {
    display: block;
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1.5em;
    font-size: 1.8rem;
}

.article ol li:before {
    content: counter(item) "、";
    counter-increment: item;
    position: absolute;
    left: 0;
    color: #056de8;
    font-weight: bold;
}

/* 加粗文本 */
.article p .bold,
.article p b, 
.article p strong {
    font-weight: bold;
    color: #121212;
}

/* 特殊颜色文本 */
.article p .highlight {
    color: #056de8;
}

/* 文章列表项内的图片样式 */
.article ol li img {
    display: block;
    width: 100%;
    border-radius: 0.4rem;
    margin: 1.5rem auto 2rem;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.1);
}

/* 高亮框内的图片样式 */
.article .highlight-box img {
    display: block;
    width: 100%;
    border-radius: 0.4rem;
    margin: 1.5rem auto 2rem;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.1);
}

/* 产品推广卡片样式 */
.product-card {
    background-color: #fff;
    border-radius: 0.4rem;
    box-shadow: 0 1px 3px rgba(26, 26, 26, 0.1);
    margin: 2rem 0;
    padding: 0;
    overflow: hidden;
    display: block;  /* 改为block以支持整体链接 */
    border: 1px solid #f0f2f5;
    text-decoration: none;  /* 移除链接下划线 */
    transition: all 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.15);
    transform: translateY(-1px);
}

.product-card .product-header {
    background: #f6f6f6;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f2f5;
}

.product-card .product-header .product-tag {
    background-color: #056de8;
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.2rem;
    margin-right: 0.5rem;
}

.product-card .product-header .product-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #121212;
    flex: 1;
}

.product-card .product-content {
    display: flex;
    padding: 1rem;
}

.product-card .product-image {
    width: 35%;
    border-radius: 0.3rem;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.product-card .product-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    box-shadow: none;
    border-radius: 0.3rem;
}

.product-card .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card .product-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: #121212;
    margin-bottom: 0.5rem;
}

.product-card .product-desc {
    font-size: 1rem;
    color: #8590a6;
    margin-bottom: 0.8rem;
    text-indent: 0;
    line-height: 1.4;
}

.product-card .product-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: #f1403c;
    margin-bottom: 0.8rem;
}

.product-card .product-price .original-price {
    font-size: 1rem;
    color: #8590a6;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-card .product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f1403c;
    color: white;
    border: none;
    border-radius: 0.3rem;
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.product-card .product-button.tmall {
    background-color: #ff0036;
}

.product-card .product-button.jd {
    background-color: #e1251b;
}

.product-card .product-button img {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.4rem;
}

.product-buttons {
    display: flex;
    gap: 1rem;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 1rem 1.5rem 8rem;
    color: #8590a6;
    font-size: 0.9rem;
}

/* 关键词标签样式 */
.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 2rem;
    padding: 0 0.5rem;
}

.keyword-tag {
    display: inline-block;
    background-color: #deefff;
    color: #0085ff;
    font-size: 1.1rem;
    padding: 0.3rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    margin-bottom: 0.5rem;
    text-align: center;
}

.keyword-tag:hover {
    background-color: #c8e5ff;
}

/* 响应式适配 */
@media screen and (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .main-content {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 5rem;
        margin-bottom: 9rem; /* 增加底部边距，确保桌面端显示正常 */
    }
} 