* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f0f4f8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #0e4d6e;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: #5ec4d4;
    font-size: 26px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
}

.banner {
    margin-top: 64px;
    background: linear-gradient(135deg, rgba(14, 77, 110, 0.92), rgba(8, 48, 72, 0.95)),
        url('../images/banner-home.jpg') center/cover no-repeat;
    padding: 90px 0 80px;
    text-align: center;
    color: #fff;
}

.banner h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.banner p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
}

.inner-banner {
    margin-top: 64px;
    background: linear-gradient(135deg, rgba(14, 77, 110, 0.9), rgba(8, 48, 72, 0.92)),
        url('../images/banner-inner.jpg') center/cover no-repeat;
    padding: 45px 0;
    text-align: center;
    color: #fff;
}

.inner-banner h2 {
    font-size: 30px;
    font-weight: 600;
}

.breadcrumb {
    background: #fff;
    padding: 14px 0;
    border-bottom: 1px solid #e8ecf0;
    font-size: 14px;
}

.breadcrumb a {
    color: #0e4d6e;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #999;
    margin: 0 6px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: #0e4d6e;
    margin-bottom: 40px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #5ec4d4;
    border-radius: 2px;
}

.categories {
    padding: 50px 0;
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px;
    background: #f0f4f8;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.category-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(14, 77, 110, 0.15);
    background: #0e4d6e;
    color: #fff;
}

.category-item i {
    font-size: 40px;
    margin-bottom: 12px;
    color: #0e4d6e;
    transition: color 0.3s ease;
}

.category-item:hover i {
    color: #5ec4d4;
}

.category-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.category-item p {
    font-size: 13px;
    color: #888;
}

.category-item:hover p {
    color: rgba(255, 255, 255, 0.7);
}

.featured-articles {
    padding: 50px 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.article-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.article-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.05));
}

.article-content {
    padding: 22px;
}

.article-category {
    display: inline-block;
    background: #e8f6fa;
    color: #0e4d6e;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 500;
}

.article-title {
    font-size: 18px;
    color: #222;
    margin-bottom: 10px;
    display: block;
    line-height: 1.5;
    font-weight: 600;
}

.article-title:hover {
    color: #0e4d6e;
}

.article-excerpt {
    color: #777;
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
}

.health-tips {
    padding: 50px 0;
    background: linear-gradient(135deg, #0e4d6e, #083048);
    color: #fff;
}

.health-tips .section-title {
    color: #fff;
}

.health-tips .section-title::after {
    background: #5ec4d4;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tip-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 28px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tip-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
}

.tip-card i {
    font-size: 34px;
    margin-bottom: 14px;
    color: #5ec4d4;
}

.tip-card h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.tip-card p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

.simple-articles {
    padding: 50px 0;
    background: #fff;
}

.simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.simple-card {
    padding: 22px;
    border-left: 4px solid #5ec4d4;
    background: #f0f4f8;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.simple-card:hover {
    background: #e8f6fa;
    padding-left: 28px;
}

.simple-card h3 {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.5;
}

.simple-card a {
    color: #222;
}

.simple-card a:hover {
    color: #0e4d6e;
}

.simple-card p {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-form {
    padding: 50px 0;
    background: #f0f4f8;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.3s ease;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #5ec4d4;
    box-shadow: 0 0 0 3px rgba(94, 196, 212, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form button {
    background: linear-gradient(135deg, #0e4d6e, #083048);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(14, 77, 110, 0.3);
}

.links {
    padding: 40px 0;
    background: #fff;
}

.links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.links a {
    color: #666;
    padding: 8px 20px;
    background: #f0f4f8;
    border-radius: 24px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.links a:hover {
    background: #0e4d6e;
    color: #fff;
}

footer {
    background: #083048;
    color: #fff;
    padding: 45px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 18px;
    color: #5ec4d4;
    font-size: 17px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #5ec4d4;
}

.footer-section .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-section .contact-item i {
    color: #5ec4d4;
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.list-page {
    padding: 40px 0;
}

.list-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
}

.list-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.list-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.list-thumb {
    width: 200px;
    min-width: 200px;
    height: 130px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-info h3 {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.5;
}

.list-info a {
    color: #222;
}

.list-info a:hover {
    color: #0e4d6e;
}

.list-info p {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 36px;
    gap: 6px;
}

.pagination a {
    padding: 10px 18px;
    border: 1px solid #d8e0e8;
    color: #555;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background: #0e4d6e;
    color: #fff;
    border-color: #0e4d6e;
}

.article-page {
    padding: 40px 0;
}

.article-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
}

.article-content-full {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.article-content-full h1 {
    font-size: 28px;
    margin-bottom: 18px;
    color: #0e4d6e;
    line-height: 1.4;
}

.article-meta-full {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 28px;
    color: #999;
    font-size: 13px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-meta-full i {
    margin-right: 4px;
    color: #5ec4d4;
}

.article-body {
    line-height: 2;
    color: #444;
    font-size: 16px;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body h2 {
    color: #0e4d6e;
    margin: 32px 0 14px;
    font-size: 22px;
    padding-left: 14px;
    border-left: 4px solid #5ec4d4;
}

.article-body ul {
    margin: 14px 0 18px 20px;
    list-style: disc;
}

.article-body ul li {
    margin-bottom: 8px;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    margin-top: 36px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

.prev-next a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
    transition: color 0.3s ease;
}

.prev-next a:hover {
    color: #0e4d6e;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-section {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    margin-bottom: 18px;
    color: #0e4d6e;
    padding-bottom: 12px;
    border-bottom: 2px solid #5ec4d4;
    font-size: 17px;
}

.sidebar-articles li {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-articles li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-articles a {
    color: #444;
    font-size: 14px;
    line-height: 1.6;
    display: block;
    transition: color 0.3s ease;
}

.sidebar-articles a:hover {
    color: #0e4d6e;
}

.sidebar-section p {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .simple-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tips-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-main,
    .list-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: #083048;
        padding: 16px 20px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        border-radius: 6px;
    }

    .menu-toggle {
        display: block;
    }

    .banner {
        padding: 60px 0 50px;
    }

    .banner h1 {
        font-size: 30px;
    }

    .banner p {
        font-size: 15px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .simple-grid {
        grid-template-columns: 1fr;
    }

    .tips-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section .contact-item {
        justify-content: center;
    }

    .prev-next {
        flex-direction: column;
    }

    .list-item {
        flex-direction: column;
    }

    .list-thumb {
        width: 100%;
        min-width: auto;
        height: 180px;
    }

    .article-content-full {
        padding: 24px;
    }

    .article-content-full h1 {
        font-size: 22px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-item {
        padding: 20px 10px;
    }

    .category-item i {
        font-size: 30px;
    }

    .tips-container {
        grid-template-columns: 1fr;
    }

    .banner h1 {
        font-size: 24px;
    }

    .inner-banner h2 {
        font-size: 22px;
    }
}
