/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333333;
    background-color: #f7f7f7;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* 顶部进度条 */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease;
}

/* 文章头部：大视觉 */
.article-header {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background: #111;
}

.header-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.header-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 24px 32px;
}

.category {
    align-self: flex-start;
    background: #ff4b2b;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.meta-info {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.70);
    font-size: 13px;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid rgba(255,255,255,0.5);
}

.author {
    font-weight: 500;
    margin-right: 12px;
    color: #fff;
}

/* 文章主体内容 */
.article-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 20px;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    position: relative;
    margin-top: -20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

/* 作者简介卡片样式 - 已微调间距以配合顶部排版 */
.author-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px; /* 调整为底部留白，推开导语 */
    display: flex;
    align-items: flex-start;
    position: relative;
}

.card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    flex-shrink: 0;
}

.card-info {
    flex-grow: 1;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.card-tag {
    font-size: 11px;
    color: #ff4b2b;
    background: rgba(255, 75, 43, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 500;
}

.follow-btn {
    background: #111;
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-btn.following {
    background: #eee;
    color: #666;
}

.card-bio {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #ff4b2b;
}

/* 导语段落 */
.summary {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    padding-left: 16px;
    border-left: 4px solid #ff4b2b;
    margin-bottom: 32px;
    font-style: italic;
}

/* 正文排版 */
p {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 24px;
    text-align: justify;
}

h2 {
    font-size: 20px;
    color: #111111;
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 600;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: #ff4b2b;
    margin-top: 6px;
}

/* 图片样式 */
.content-image-wrapper {
    margin: 32px -20px;
    position: relative;
}

@media (min-width: 680px) {
    .content-image-wrapper {
        margin: 32px 0;
        border-radius: 8px;
        overflow: hidden;
    }
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    padding: 0 20px;
}

/* 引用样式 */
blockquote {
    background: #f8f9fa;
    padding: 20px;
    margin: 32px 0;
    border-radius: 8px;
    text-align: center;
}

blockquote p {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 0;
}

blockquote span {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 8px;
}

/* 底部区域 */
.article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px dashed #eee;
    text-align: center;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ff4b2b;
    color: #ff4b2b;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 75, 43, 0.1);
}

.like-btn.liked {
    background: #ff4b2b;
    color: #fff;
}

.copyright {
    margin-top: 32px;
    font-size: 12px;
    color: #bbb;
}
.copyright a {
    color: inherit; 
    text-decoration: none;
}
