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

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #d9534f;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #d9534f;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

/* 文章区域样式 */
.article {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
    overflow: hidden;
}

.article-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid #eee;
}

.article-header h1 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #222;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f4f8;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.author-name {
    font-weight: bold;
    font-size: 16px;
}

.author-title {
    font-size: 12px;
    background-color: #f0f7ff;
    color: #1e88e5;
    padding: 2px 8px;
    border-radius: 12px;
}

.article-info {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #777;
}

/* 文章内容样式 */
.article-content {
    padding: 40px;
}

.lead {
    font-size: 18px;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.8;
}

h2 {
    font-size: 26px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #222;
}

h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #333;
}

h4 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #444;
}

p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

ul, ol {
    margin: 20px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 10px;
}

.feature-highlight {
    background-color: #f8f9ff;
    border-left: 4px solid #4e73df;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 5px 5px 0;
}

.feature-highlight ul {
    padding-left: 20px;
}

.feature-highlight li {
    margin-bottom: 12px;
}

.tech-stack {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.tech-card {
    flex: 1;
    min-width: 250px;
    background: #f9fafb;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #1e88e5;
    margin-bottom: 20px;
}

blockquote {
    border-left: 4px solid #4e73df;
    padding: 15px 20px 15px 30px;
    margin: 30px 0;
    background-color: #f8f9ff;
    font-style: italic;
    color: #444;
    border-radius: 0 5px 5px 0;
}

cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: bold;
    color: #666;
}

.comparison-table {
    overflow-x: auto;
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

table th, table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #eee;
}

table th {
    background-color: #f8f9fc;
    font-weight: bold;
    color: #333;
}

table tr:nth-child(even) {
    background-color: #fcfdff;
}

table tr:hover {
    background-color: #f5f8ff;
}

.experience {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.pros, .cons {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
}

.pros {
    background-color: #f0f9f0;
    border-left: 4px solid #4caf50;
}

.cons {
    background-color: #fef6f6;
    border-left: 4px solid #f44336;
}

.callout {
    background: linear-gradient(135deg, #f5f7ff 0%, #e3eeff 100%);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid #e0e7ff;
}

.verdict {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.stars {
    font-size: 24px;
    color: #ffc107;
}

/* 文章底部操作 */
.article-footer {
    padding: 20px 40px;
    border-top: 1px solid #eee;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tags a {
    display: inline-block;
    background-color: #f0f4f8;
    color: #4a6cf3;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.tags a:hover {
    background-color: #4a6cf3;
    color: white;
}

.actions {
    display: flex;
    gap: 15px;
}

.like-btn, .share-btn, .comment-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.like-btn:hover {
    background-color: #fff0f0;
    border-color: #ffd0d0;
    color: #f44336;
}

.share-btn:hover {
    background-color: #f0f5ff;
    border-color: #d0e0ff;
    color: #1e88e5;
}

.comment-btn:hover {
    background-color: #f5f9ff;
    border-color: #d0e3ff;
    color: #2196f3;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4a6cf3;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #3a5be0;
    transform: translateY(-5px);
}

/* 网站页脚 */
.site-footer {
    background-color: #333;
    color: #aaa;
    padding: 30px 0;
    margin-top: 50px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-content, .article-header, .article-footer {
        padding: 30px;
    }
    
    .tech-stack {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
    
    .experience {
        flex-direction: column;
    }
    
    .actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .article-content, .article-header, .article-footer {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-footer .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}