* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #0099ff;
    --accent-color: #00a8e8;
    --dark-color: #003366;
    --light-color: #f0f7ff;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 102, 204, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: var(--white);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    transition: var(--transition);
    font-size: 0.95rem;
}

nav a:hover,
nav a.active {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.profile-section {
    background: var(--white);
    padding: 2rem 0;
    margin-top: -1.5rem;
}

.profile-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar span {
    font-size: 3rem;
    color: var(--white);
    font-weight: bold;
}

.profile-info h2 {
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    font-size: 1.5rem;
}

.profile-info .title {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.profile-info .detail {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
}

.profile-info .detail span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.section {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.15);
}

.blog-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 1.2rem;
    color: var(--white);
}

.blog-card-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.blog-card-header .date {
    font-size: 0.8rem;
    opacity: 0.9;
}

.blog-card-body {
    padding: 1.2rem;
}

.blog-card-body p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.blog-card-footer {
    padding: 0.8rem 1.2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--accent-color);
}

.sub-nav {
    background: var(--white);
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.05);
    margin-bottom: 1.5rem;
}

.sub-nav ul {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    list-style: none;
    flex-wrap: wrap;
}

.sub-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.sub-nav a:hover,
.sub-nav a.active {
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.content-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.2rem;
}

.content-card ul {
    list-style: none;
}

.content-card li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.content-card li:last-child {
    border-bottom: none;
}

.content-card .item-title {
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
}

.content-card .item-meta {
    color: var(--text-light);
    font-size: 0.85rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
}

.contact-card .icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: var(--white);
}

.contact-card h4 {
    color: var(--dark-color);
    margin-bottom: 0.4rem;
}

.contact-card p {
    color: var(--text-light);
}

.contact-form {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.contact-form h3 {
    margin-bottom: 1.2rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.stat-item {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
}

.stat-item .number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.stat-item .label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.page-intro {
    background: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.page-intro h1 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.page-intro p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.empty-state .hint {
    font-size: 0.9rem;
    color: #999;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.8rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }

    nav a {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }

    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-info .detail {
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .sub-nav ul {
        gap: 0.4rem;
    }

    .sub-nav a {
        padding: 0.3rem 0.7rem;
        font-size: 0.85rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}
