/* 页面基础样式 */
body {
    background-color: #141428;
    color: #fff;
    padding-top: 50px;
    padding-bottom: 60px;
}

/* 顶部导航 */
.article-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 100;
}

.back-btn, .action-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* 文章容器 */
.article-container {
    padding: 15px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* 标题区域 */
.article-title-section {
    margin-bottom: 20px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    object-fit: cover;
}

.author-name {
    font-size: 16px;
    margin-bottom: 4px;
}

.post-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.follow-btn {
    background: #ff4757;
    border: none;
    border-radius: 20px;
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
}

.follow-btn.following {
    background: rgba(255, 255, 255, 0.1);
}

/* 文章主图 */
.article-cover {
    margin: 0 -15px 20px;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章内容 */
.article-content {
    line-height: 1.8;
    font-size: 16px;
}

.article-content h2 {
    font-size: 20px;
    margin: 25px 0 15px;
}

.article-content p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.article-content img {
    width: 100%;
    border-radius: 12px;
    margin: 15px 0;
}

/* 互动区域 */
.interaction-section {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats {
    display: flex;
    gap: 20px;
}

.stats span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 评论区 */
.comments-section {
    margin-top: 30px;
}

.comments-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.commenter-avatar {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.commenter-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.comment-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-actions span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* 底部评论输入框样式 */
.comment-input-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e1f45;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.comment-input-section form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.comment-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #9370db;
    border-radius: 20px;
    background-color: #232453;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.comment-input:focus {
    border-color: #40ffff;
    box-shadow: 0 0 10px rgba(64, 255, 255, 0.2);
}

.send-btn {
    background: #40ffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e1f45;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: #9370db;
    color: #ffffff;
    transform: scale(1.05);
}

/* 适配刘海屏 */
@supports (padding-top: env(safe-area-inset-top)) {
    .article-header {
        padding-top: env(safe-area-inset-top);
        height: calc(50px + env(safe-area-inset-top));
    }
    
    body {
        padding-top: calc(50px + env(safe-area-inset-top));
    }
    
    .comment-input-section {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
}

/* 为底部输入框留出空间 */
.article-container {
    padding-bottom: 80px;
}

/* 适配iPhone底部安全区域 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .comment-input-section {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
} 