/* 全局样式 */
:root {
    --primary-color: #42b983;
    --text-color: #2c3e50;
    --border-color: #eaeaea;
    --bg-color: #f8f9fa;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* 全局图片样式 */
img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* 支付弹窗样式 */
body .pay-class {
    border-radius: 8px;
    overflow: hidden;
}

body .pay-class .layui-layer-title {
    background: var(--bg-color);
    color: var(--text-color);
    border: none;
    padding: 15px 20px;
    font-size: 16px;
}

body .pay-class .layui-layer-btn a {
    background: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 4px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

body .pay-class .layui-layer-btn a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 文章容器布局 */
.article-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.article-main {
    flex: 0 0 80%;
    min-width: 0;
    display: flex;
    gap: 30px;
}

.article-content {
    flex: 0 0 100%;
    background: #fff;
    border-radius: 12px;
    padding: 2px 30px 30px 30px;
    box-shadow: var(--shadow);
}

.article-sidebar {
    flex: 0 0 25%;
    min-width: 280px;
    align-self: flex-start;
    position: sticky;
    top: 2px;
    margin-left: 30px;
}

/* 侧边栏样式 */
.sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.sidebar-section:hover {
    transform: translateY(-2px);
}

.sidebar-section h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.sidebar-section h3:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.recommend-list {
    list-style: none;
    padding: 0;
}

.recommend-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.recommend-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recommend-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    display: block;
    padding: 8px 0 8px 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.recommend-list a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.recommend-list a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 文章内容样式优化 */
#article_content {
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    width: 100%;
    padding: 0;
    letter-spacing: 0.5px;
}

/* 导航样式 */
.intitle {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.intitle a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.intitle a:hover {
    color: var(--text-color);
}

/* 文章图片样式 */
#article_content img {
    display: block;
    margin: 2em auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

#article_content img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 评论标题样式 */
.comment-title {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 12px;
    opacity: 0.8;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .article-container {
        padding: 15px;
        margin: 15px auto;
    }

    .article-main {
        /*flex-direction: column;*/
        flex: 0 0 100%;
        min-width: 0;
        display: flex;
        gap: 30px;
    }

    .article-content {
        padding: 20px 0 20px 0;
    }

    .article-sidebar {
        display: none;
        /*width: 100%;
        position: static;
        margin-top: 2px;*/
    }

    .sidebar-section {
        padding: 20px;
    }
}
.thumbs_content {
    width: 320px;
    margin: 40px auto;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.thumbs_button,
.reward_button {
    flex: 1;
    height: 48px;
    line-height: 48px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.thumbs_button {
    background: linear-gradient(135deg, #42b983, #3aa876);
}

.reward_button {
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
}

.thumbs_button:hover,
.reward_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.thumbs_button:active,
.reward_button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.thumbs_button .fa,
.reward_button .fa {
    margin-right: 8px;
}
.clear{
    clear:both;
}
.infos {border-bottom:1px solid #ccc;padding-bottom: 8px;margin-bottom: 8px;}
article{padding-top: 0px;}

.article-header {
    margin: 2em 0;
    text-align: center;
}
.article-title {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 0.8em;
    line-height: 1.4;
}
.article-meta {
    color: #7f8c8d;
    font-size: 0.9em;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5em;
    margin: 1em 0;
    padding: 0.5em 0;
    border-bottom: 1px solid var(--border-color);
}
.article-meta span {
    /*display: inline-flex;*/
    align-items: center;
    padding: 0.3em 0.8em;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/*.article-meta span:hover {
    background: var(--bg-color);
}*/
.article-meta .fa {
    margin-right: 0.4em;
}
.share-btn {
    cursor: pointer;
    transition: color 0.3s;
}
.share-btn:hover {
    color: #42b983;
}

.article-tags {
    margin: 1.5em 0;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8em;
}
.article-tags a {
    display: inline-flex;
    align-items: center;
    padding: 0.5em 1em;
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}
.article-tags a:hover {
    background: #e1e4e8;
    color: #333;
}
.article-excerpt {
    margin: 1.5em auto;
    padding: 1em;
    background: #f8f9fa;
    border-left: 4px solid #42b983;
    border-radius: 0 4px 4px 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    max-width: 800px;
}
.article-excerpt strong {
    color: #2c3e50;
    margin-right: 0.5em;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .article-title {
        font-size: 1.5em;
        padding: 0 10px;
    }
    .article-meta {
        font-size: 0.85em;
        padding: 0.3em 0;
        gap: 1em;
    }
    .article-meta span {
        padding: 0.2em 0.5em;
    }
    .article-tags {
        padding: 0 10px;
        margin: 1em 0;
    }
    .article-tags a {
        padding: 0.3em 0.8em;
        font-size: 0.85em;
    }
    .article-excerpt {
        margin: 1em 15px;
        font-size: 0.9em;
    }
    #article_content {
        font-size: 15px;
    }
}