* {
    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: #444;
    background-color: #fdfbf7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.25);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.logo i {
    font-size: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #8b5cf6;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    padding: 10px;
}

.banner {
    margin-top: 72px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.96) 0%, rgba(236, 72, 153, 0.92) 50%, rgba(249, 115, 22, 0.9) 100%),
        url('../images/banner-home.jpg') center/cover no-repeat;
    padding: 120px 0 100px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% { transform: translate(-30%, -30%); }
    100% { transform: translate(30%, 30%); }
}

.banner h1 {
    position: relative;
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.banner p {
    position: relative;
    font-size: 20px;
    max-width: 750px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.9;
    font-weight: 300;
}

.inner-banner {
    margin-top: 72px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(236, 72, 153, 0.9) 50%, rgba(249, 115, 22, 0.88) 100%),
        url('../images/banner-inner.jpg') center/cover no-repeat;
    padding: 55px 0;
    text-align: center;
    color: #fff;
}

.inner-banner h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 2px;
}

.breadcrumb {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid #f0e6ff;
    font-size: 14px;
}

.breadcrumb a {
    color: #8b5cf6;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #ec4899;
}

.breadcrumb span {
    color: #b8a9c9;
    margin: 0 8px;
}

.section {
    padding: 70px 0;
}

.section-title-box {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    color: #1e1b4b;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-subtitle {
    color: #9f8fbf;
    font-size: 15px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.categories {
    background: linear-gradient(180deg, #fff 0%, #fef7ff 100%);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 2px solid transparent;
}

.category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

.category-item i {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-item h3 {
    font-size: 17px;
    margin-bottom: 6px;
    color: #1e1b4b;
    font-weight: 700;
}

.category-item p {
    font-size: 13px;
    color: #a78bfa;
}

.featured-articles {
    background: #fff;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f3e8ff;
}

.article-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 60px rgba(139, 92, 246, 0.18);
}

.article-thumb {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.article-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 27, 75, 0.6) 0%, transparent 50%);
}

.article-content {
    padding: 26px;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7 0%, #fbcfe8 100%);
    color: #92400e;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 14px;
    font-weight: 600;
}

.article-title {
    font-size: 19px;
    color: #1e1b4b;
    margin-bottom: 12px;
    display: block;
    line-height: 1.5;
    font-weight: 700;
}

.article-title:hover {
    color: #8b5cf6;
}

.article-excerpt {
    color: #8b7bb3;
    font-size: 14px;
    margin-bottom: 18px;
    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: 13px;
    color: #a899c4;
    padding-top: 16px;
    border-top: 1px dashed #e9d5ff;
}

.article-meta i {
    margin-right: 5px;
}

.health-tips {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    color: #fff;
}

.health-tips .section-title {
    color: #fff;
}

.health-tips .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.tip-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.tip-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
}

.tip-card i {
    font-size: 40px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fbbf24 0%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tip-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.tip-card p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.7;
}

.simple-articles {
    background: linear-gradient(180deg, #fef7ff 0%, #fff 100%);
}

.simple-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.simple-card {
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.06);
    transition: all 0.3s ease;
    border-left: 5px solid;
    border-image: linear-gradient(135deg, #8b5cf6, #ec4899) 1;
}

.simple-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
}

.simple-card h3 {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
}

.simple-card a {
    color: #1e1b4b;
}

.simple-card a:hover {
    color: #8b5cf6;
}

.simple-card p {
    color: #8b7bb3;
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.contact-form {
    background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 50%, #ede9fe 100%);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.12);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 16px 20px;
    border: 2px solid #f3e8ff;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
    transition: all 0.3s ease;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form button {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(139, 92, 246, 0.45);
}

.links {
    background: #fff;
    padding: 50px 0;
}

.links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.links a {
    color: #6b5b99;
    padding: 10px 24px;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9d5ff;
}

.links a:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
}

footer {
    background: linear-gradient(135deg, #0f0a1f 0%, #1e1b4b 100%);
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 22px;
    color: #fbbf24;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.9;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #f472b6;
    padding-left: 8px;
}

.footer-section .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 14px;
}

.footer-section .contact-item i {
    color: #f472b6;
    width: 18px;
    margin-top: 2px;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
}

.list-page {
    padding: 50px 0;
    background: #fff;
}

.list-main {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.list-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.list-item {
    background: #fff;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.06);
    display: flex;
    gap: 24px;
    transition: all 0.3s ease;
    border: 1px solid #f3e8ff;
}

.list-item:hover {
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12);
    transform: translateY(-4px);
}

.list-thumb {
    width: 220px;
    min-width: 220px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
}

.list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
}

.list-info a {
    color: #1e1b4b;
}

.list-info a:hover {
    color: #8b5cf6;
}

.list-info p {
    color: #8b7bb3;
    font-size: 14px;
    margin-bottom: 14px;
    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: 44px;
    gap: 8px;
}

.pagination a {
    padding: 12px 20px;
    border: 2px solid #e9d5ff;
    color: #6b5b99;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.article-page {
    padding: 50px 0;
    background: #fff;
}

.article-main {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.article-content-full {
    background: #fff;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(139, 92, 246, 0.08);
}

.article-content-full h1 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #1e1b4b;
    line-height: 1.4;
    font-weight: 800;
}

.article-meta-full {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 32px;
    color: #9f8fbf;
    font-size: 14px;
    padding-bottom: 24px;
    border-bottom: 2px dashed #e9d5ff;
}

.article-meta-full i {
    margin-right: 6px;
    color: #ec4899;
}

.article-body {
    line-height: 2.1;
    color: #4c4166;
    font-size: 16px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    color: #1e1b4b;
    margin: 36px 0 16px;
    font-size: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #8b5cf6, #ec4899) 1;
    font-weight: 700;
}

.article-body ul {
    margin: 18px 0 22px 24px;
    list-style: none;
}

.article-body ul li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 50%;
}
.article-body table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 20px 0 !important;
  padding: 0 !important;
  background-color: #fff !important;
  table-layout: fixed !important;
  word-break: normal !important;
  border: none !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #333 !important;
}
.article-body th,
.article-body td {
  padding: 12px 15px !important;
  text-align: left !important;
  border: 1px solid #e5e7eb !important;
  vertical-align: middle !important;
  background: transparent !important;
}
.article-body th {
  background-color: #f9fafb !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
}
.article-body tr:nth-child(even) {
  background-color: #fafafa !important;
}
.article-body tr:hover {
  background-color: #f5f7ff !important;
}
@media (max-width: 768px) {
  .article-body {
    overflow-x: auto !important;
  }
  .article-body table {
    width: auto !important;
    min-width: 100% !important;
  }
  .article-body th,
  .article-body td {
    padding: 8px 10px !important;
    white-space: nowrap !important;
  }
}



.prev-next {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 24px 0;
    border-top: 2px solid #f3e8ff;
    border-bottom: 2px solid #f3e8ff;
    gap: 24px;
}

.prev-next a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b5b99;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 16px 24px;
    background: #faf5ff;
    border-radius: 14px;
    font-weight: 500;
}

.prev-next a:hover {
    color: #8b5cf6;
    background: #f3e8ff;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-section {
    background: #fff;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.06);
    border: 1px solid #f3e8ff;
}

.sidebar-section h3 {
    margin-bottom: 22px;
    color: #1e1b4b;
    padding-bottom: 14px;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #8b5cf6, #ec4899) 1;
    font-size: 18px;
    font-weight: 700;
}

.sidebar-articles li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e9d5ff;
}

.sidebar-articles li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-articles a {
    color: #4c4166;
    font-size: 14px;
    line-height: 1.7;
    display: block;
    transition: color 0.3s ease;
    font-weight: 500;
}

.sidebar-articles a:hover {
    color: #8b5cf6;
}

.sidebar-section p {
    color: #8b7bb3;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.8;
}

@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: 1fr;
    }

    .tips-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .article-main,
    .list-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
        padding: 20px 24px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 14px 20px;
        border-radius: 12px;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .banner {
        padding: 80px 0 60px;
    }

    .banner h1 {
        font-size: 34px;
    }

    .banner p {
        font-size: 16px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-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: 200px;
    }

    .article-content-full {
        padding: 32px;
    }

    .article-content-full h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .form-container {
        padding: 32px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-item {
        padding: 24px 16px;
    }

    .category-item i {
        font-size: 36px;
    }

    .tips-container {
        grid-template-columns: 1fr;
    }

    .banner h1 {
        font-size: 28px;
    }

    .inner-banner h2 {
        font-size: 24px;
    }

    .article-content-full {
        padding: 24px;
    }
}
