* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    background-color: #fff;
    color: #222;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

.article-container {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    padding: 60px 16px 40px;
}

/* Header */
.article-header {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.back-home {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
}

.back-home:hover {
    color: #ff4d4f;
}

.logo {
    display: none;
}

.site-name {
    flex: 1;
    margin-left: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.open-app-btn {
    background: #ff4d4f;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

/* Article Title */
.article-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    padding: 24px 16px 16px;
    color: #333;
    line-height: 1.5;
}

/* Author Info */
.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.author-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.follow-btn {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.publish-time {
    font-size: 13px;
    color: #999;
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

/* Listen Bar */
.listen-bar {
    background: #f8f8f8;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 16px 24px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.listen-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.listen-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.listen-icon {
    font-size: 18px;
}

.listen-text {
    flex: 1;
    font-size: 13px;
    color: #666;
}

.listen-link {
    font-size: 13px;
    color: #999;
}

.listen-time {
    font-size: 13px;
    color: #999;
    display: none;
}

/* Article Subtitle */
.article-subtitle {
    font-size: 18px;
    text-align: center;
    padding: 0 16px 24px;
    color: #333;
    line-height: 1.6;
    font-weight: 600;
}

/* Quote Block */
.quote-block {
    margin: 20px 24px;
    padding: 16px 20px;
    border-left: 3px solid #e0e0e0;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    background: #fafafa;
}

/* Article Content */
.article-content {
    padding: 24px 16px;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 16px;
    color: #222;
    line-height: 1.5;
}

.article-content h3:first-child {
    margin-top: 0;
}

.article-content h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 24px 0 12px;
    color: #222;
}

.article-content p {
    font-size: 16px;
    line-height: 1.75;
    color: #222;
    margin: 14px 0;
    text-align: justify;
    word-break: break-word;
}

/* 对话样式 - 模仿头条 */
.dialogue {
    margin: 16px 0;
    padding-left: 12px;
    border-left: 2px solid #e0e0e0;
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.dialogue p {
    margin: 6px 0;
    color: #666;
}

/* 列表样式优化 */
.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 20px;
}

.article-content li {
    font-size: 15px;
    line-height: 1.8;
    color: #222;
    margin: 6px 0;
}

/* 重点文字加粗 */
.article-content strong {
    font-weight: bold;
    color: #222;
}

/* 引用样式 - 模仿头条 */
.blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    background: #fafafa;
    border-left: none;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.blockquote p {
    margin: 10px 0;
    color: #555;
}

/* 步骤样式 */
.step {
    margin: 16px 0;
    padding: 14px 18px;
    background: #fafafa;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.step p {
    margin: 8px 0;
    color: #555;
}

/* Action Box */
.action-box {
    background: #fff8e1;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.action-box p {
    margin: 12px 0;
    font-size: 16px;
}

.action-box ol {
    margin: 16px 0;
    padding-left: 24px;
}

.action-box li {
    margin: 12px 0;
    line-height: 1.8;
    font-size: 16px;
}

/* Warning Box */
.warning-box {
    background: #ff4d4f;
    color: white;
    padding: 24px;
    border-radius: 8px;
    margin-top: 32px;
    text-align: center;
}

.warning-box p {
    color: white;
    font-size: 16px;
    margin: 12px 0;
    line-height: 1.8;
}

/* Article Actions */
.article-actions {
    display: flex;
    justify-content: space-around;
    padding: 20px 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: 32px;
}

.action-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    color: #ff4d4f;
}

/* Read More Button */
.read-more-btn {
    background: #ff4d4f;
    color: white;
    padding: 16px;
    text-align: center;
    margin: 24px 16px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toutiao-icon {
    background: white;
    color: #ff4d4f;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 16px;
    background: #f8f8f8;
    color: #999;
    font-size: 13px;
    margin-top: 24px;
}

/* Article Images */
.article-image {
    text-align: center;
    margin: 24px 0;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 表格样式 - 模仿头条 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 15px;
}

.comparison-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
}

.comparison-table td {
    padding: 10px 12px;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
    line-height: 1.6;
}

/* Load More */
.load-more-container {
    text-align: center;
    padding: 32px 0;
}

.load-more-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #333;
    padding: 12px 48px;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

/* Quotes Section */
.quotes-section {
    margin: 0 16px;
}

/* Article List */
.article-list-container {
    padding: 20px 0;
}

.list-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #222;
    border-left: 4px solid #ff4d4f;
    padding-left: 12px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    border-color: #ff4d4f;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.1);
    transform: translateY(-2px);
}

.article-card-content {
    flex: 1;
    margin-right: 12px;
}

.article-card-title {
    font-size: 17px;
    font-weight: bold;
    margin: 0 0 8px;
    color: #222;
    line-height: 1.4;
}

.article-card-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-link {
    font-size: 13px;
    color: #ff4d4f;
}

.article-card-thumb {
    width: 100px;
    height: 70px;
    background: #f8f8f8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-icon {
    font-size: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .article-title {
        font-size: 20px;
    }
    
    .article-subtitle {
        font-size: 16px;
    }
    
    .quote-block {
        margin: 16px 12px;
        font-size: 15px;
    }
    
    .article-content {
        padding: 20px 12px;
    }
    
    .article-content h3 {
        font-size: 17px;
    }
    
    .article-content p,
    .article-content li {
        font-size: 15px;
    }
}
