body {
    margin: 0;
    font-family: fangsong;
    background-color: #f7f7fa;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
}

.site-header {
    background-color: #111827;
    color: #f9fafb;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-weight: 600;
    font-size: 1.1rem;
}

.nav a {
    margin-left: 1rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.nav a.active,
.nav a:hover {
    background-color: #374151;
    color: #f9fafb;
}

.hero {
    padding: 2rem 0;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

.site-footer {
    margin-top: 3rem;
    padding: 1rem 0;
    font-size: 0.85rem;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

.cv-download {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.6rem 1rem;
    background-color: #111827;
    color: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.cv-download:hover {
    background-color: #374151;
}

.project-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    padding: 1rem 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background-color: #ffffff;
}

.project-card h2 {
    margin: 0 0 0.5rem 0;
}

.project-card a {
    color: #2563eb;
    text-decoration: none;
}

.project-card a:hover {
    text-decoration: underline;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    text-decoration: underline;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.blog-card {
    display: block;
    padding: 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-card-category {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #4b5563;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.blog-card-date {
    font-size: 0.8rem;
    color: #9ca3af;
}

.post-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1rem 0;
}

.tag-pill {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #e5e7eb;
    font-size: 0.8rem;
    margin-right: 0.3rem;
}
