* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: inherit;
}
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}
header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
header p {
    font-size: 1.1rem;
    opacity: 0.9;
}
nav {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
}
nav ul li {
    margin: 0 20px;
}
nav ul li a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}
nav ul li a:hover, nav ul li a.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 40px 0;
}
.posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.post-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.post-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}
.post-card h2 a:hover {
    color: #667eea;
}
.post-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}
.post-meta span {
    margin-right: 15px;
}
.post-excerpt {
    color: #666;
    margin-bottom: 15px;
}
.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}
.read-more:hover {
    opacity: 0.9;
}
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.widget h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}
.about-content {
    text-align: center;
}
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}
.about-content p {
    color: #666;
    font-size: 0.95rem;
}
.category-list {
    list-style: none;
}
.category-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.category-list li:last-child {
    border-bottom: none;
}
.category-list a {
    color: #666;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
}
.category-list a:hover {
    color: #667eea;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    transition: background 0.3s;
}
.tag:hover {
    background: #667eea;
    color: white;
}
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}
footer p {
    opacity: 0.8;
    margin-bottom: 10px;
}
footer .icp {
    font-size: 0.85rem;
}
footer .icp a {
    color: #667eea;
}
.article-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 30px 0;
}
.article-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}
.article-content .article-meta {
    color: #999;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444;
}
.article-content h2 {
    margin: 30px 0 15px;
    color: #333;
}
.article-content pre {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}
.article-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}
.article-content pre code {
    background: none;
    padding: 0;
}
.contact-form {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}
.submit-btn:hover {
    opacity: 0.9;
}
.about-page {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.about-page h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.about-page p {
    margin-bottom: 15px;
    line-height: 1.8;
}
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.skill-tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    header h1 {
        font-size: 2rem;
    }
    nav ul li {
        margin: 0 10px;
    }
    .article-content {
        padding: 20px;
    }
}