/* Theme 17: Professional - 专业风格 */
/* 专业商务、灰色调、正式设计 */

body {
    font-family: 'Lato', -apple-system, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.8;
}

.header {
    background: #ffffff;
    border-bottom: 1px solid #e1e8ed;
    padding: 1.25rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.logo {
    color: #34495e;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.nav a {
    color: #7f8c8d;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.nav a:hover {
    color: #34495e;
}

.nav a::after {
    background: #34495e;
    height: 2px;
}

.main {
    background: #f5f7fa;
    padding: 3rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    will-change: transform, box-shadow;
    overflow: hidden;
}

.post-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    object-fit: cover;
    border-radius: 4px;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.1);
    border-color: #bdc3c7;
}

.post-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.post-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card h3 a:hover {
    color: #34495e;
}

.post-card p {
    color: #7f8c8d;
}

.category {
    background: #ecf0f1;
    color: #34495e;
    border: 1px solid #bdc3c7;
    font-weight: 600;
}

.btn-primary {
    background: #34495e;
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(52, 73, 94, 0.2);
    will-change: transform, box-shadow;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: #2c3e50;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 73, 94, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(52, 73, 94, 0.2);
}

.post-detail {
    background: #ffffff;
    border-radius: 6px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e1e8ed;
}

.post-header {
    border-bottom: 1px solid #e1e8ed;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #34495e;
}

/* Hero区域适配 */
.hero {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.03) 0%, rgba(44, 62, 80, 0.03) 100%);
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

.hero h1 {
    color: #2c3e50;
}

.hero-subtitle {
    color: #7f8c8d;
}

/* 分享按钮适配 */
.share-btn-inline {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    color: #7f8c8d;
}

.share-btn-inline:hover {
    border-color: #34495e;
    color: #34495e;
    background: #f5f7fa;
}

/* 评论表单适配 */
.comment-form {
    background: #f5f7fa;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
}

/* 评论项适配 */
.comment-item {
    background: #ffffff;
    border-left: 3px solid #34495e;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

.comment-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(52, 73, 94, 0.1);
}

/* 标签适配 */
.tag {
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    color: #34495e;
}

.tag:hover {
    background: #bdc3c7;
}

/* 表单输入框适配 */
.form-group input:focus,
.form-group textarea:focus {
    border-color: #34495e;
    box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.1);
}

/* 代码块适配 */
.post-content pre {
    background: #2c3e50;
    border: 1px solid #34495e;
    border-left: 3px solid #34495e;
}

.post-content pre::before {
    background: linear-gradient(90deg, #34495e, #2c3e50);
    height: 3px;
    border-radius: 6px 6px 0 0;
}

.post-content code {
    background: rgba(52, 73, 94, 0.1);
    color: #34495e;
    border: 1px solid rgba(52, 73, 94, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card {
        padding: 1.5rem;
    }
    
    .post-card h3 {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-detail {
        padding: 2rem 1.5rem;
    }
    
    .header {
        padding: 1.25rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .post-card {
        padding: 1.25rem;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
}

