@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #ffffff;
    padding: 16px 0;
    position: sticky;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    top: 0;
    z-index: 100;
}

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

.header .logo h1 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.header .logo h1 a {
    color: #333;
    text-decoration: none;
}

.header .logo h1 span {
    color: #3CB371;
}

.header .nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.header .nav ul li a {
    color: #333;
    font-size: 15px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.header .nav ul li a:hover,
.header .nav ul li a.active {
    background: #3CB371;
    color: #fff;
}

.header .mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    color: #333;
    font-size: 20px;
    cursor: pointer;
}

.header .mobile-nav {
    display: none;
    background: #ffffff;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.header .mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header .mobile-nav ul li a {
    color: #333;
    font-size: 16px;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    display: block;
    transition: all 0.2s ease;
}

.header .mobile-nav ul li a:hover,
.header .mobile-nav ul li a.active {
    background: #3CB371;
    color: #fff;
}

.sidebar-module.search-module {
    padding: 16px;
}

.sidebar-module.search-module .search-box {
    display: flex;
    gap: 0;
}

.sidebar-module.search-module .search-box input {
    flex: 1;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

.sidebar-module.search-module .search-box button {
    height: 36px;
    width: 60px;
    background: #3CB371;
    border: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

/* Hero Banner - Carousel */
.hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.carousel-overlay h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 16px;
}

.carousel-overlay p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
}

.carousel-overlay .btn {
    display: inline-block;
    padding: 12px 32px;
    background: #3CB371;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.carousel-overlay .btn:hover {
    background: #2ecc71;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    width: 30px;
    border-radius: 6px;
    background: #3CB371;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.carousel-control {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Content */
.content {
    padding: 40px 0;
}

.mobile-search {
    display: none;
}

.content .container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* Article List */
.main-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 4px solid #3CB371;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    display: flex;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    gap: 20px;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.article-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-card .thumb {
    width: 200px;
    height: 130px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card .content {
    flex: 1;
    padding: 0;
}

.article-card .title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
    line-height: 1.4;
}

.article-card .title a {
    color: #333;
    text-decoration: none;
}

.article-card .title a:hover {
    color: #3CB371;
}

.article-card .excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-module {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eee;
}

.sidebar-module h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3CB371;
    color: #333;
}

.sidebar-module ul {
    list-style: none;
}

.sidebar-module ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.sidebar-module ul li:last-child {
    border-bottom: none;
}

.sidebar-module ul li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-module ul li a:hover {
    color: #3CB371;
}

.sidebar-module ul li span {
    color: #999;
    font-size: 12px;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    padding: 6px 14px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tag-cloud a:hover {
    background: #3CB371;
    color: #fff;
}

/* Health Tips */
.health-tips {
    background: #fafafa;
    padding: 16px;
    margin-top: 16px;
    border-left: 4px solid #3CB371;
    border-radius: 0 4px 4px 0;
}

.health-tips p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Newsletter */
.newsletter {
    background: #fafafa;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
}

.newsletter h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 12px;
}

.newsletter p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.newsletter input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.newsletter button {
    width: 100%;
    padding: 10px;
    background: #3CB371;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter button:hover {
    background: #2E8B57;
}

/* Widget Content */
.widget-content {
    margin-top: 0;
}

/* Newsletter Content */
.newsletter-content {
    background: #fafafa;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.newsletter-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.newsletter-content input[type="email"] {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    outline: none;
}

.newsletter-content button {
    width: 100%;
    height: 40px;
    background: #3CB371;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Module Specific Styles */
.sidebar-module.aside_hotview ul,
.sidebar-module.aside_newarticle ul,
.sidebar-module.aside_newcomment ul {
    padding-left: 0;
}

.sidebar-module.aside_tags .tag-cloud {
    margin-top: 0;
}

.sidebar-module.aside_healthtip .health-tips {
    margin-top: 0;
}

.sidebar-module.aside_newsletter {
    background: #ffffff;
    padding: 20px;
}

.newsletter button {
    width: 100%;
    height: 40px;
    background: #3CB371;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #1a1a1a;
    padding: 50px 0 30px;
    margin-top: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

.footer-brand {
    width: 60%;
}

.footer-brand h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
}

.footer-brand h2 span {
    color: #3CB371;
}

.footer-brand p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
    max-width: 600px;
}

.footer-links h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links ul li {
    padding: 0;
}

.footer-links ul li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: #3CB371;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 13px;
}

.footer-custom-links {
    display: flex;
    gap: 20px;
}

.footer-custom-links a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
}

.footer-custom-links a:hover {
    color: #3CB371;
}

.footer-copyright p {
    margin: 0;
}

.footer-copyright a {
    color: #3CB371;
    text-decoration: none;
}

/* Single Post */
.single-post {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid #eee;
}

.single-post .post-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-post .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-post .post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-post .post-meta a {
    color: #3CB371;
    text-decoration: none;
}

.single-post .post-meta a:hover {
    text-decoration: underline;
}

.single-post .post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
}

.single-post .post-content p {
    margin-bottom: 16px;
}

.single-post .post-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #3CB371;
}

.single-post .post-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px;
}

.single-post .post-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 16px 0 8px;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.single-post .post-content li {
    margin-bottom: 8px;
}

.single-post .post-content blockquote {
    border-left: 4px solid #3CB371;
    background: #fafafa;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    color: #666;
    font-style: italic;
}

.single-post .post-content a {
    color: #3CB371;
    text-decoration: underline;
}

.single-post .post-content a:hover {
    color: #2ecc71;
}

.single-post .post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 24px;
}

.single-post .post-tags span {
    font-size: 14px;
    color: #666;
}

.single-post .post-tags a {
    padding: 6px 14px;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.single-post .post-tags a:hover {
    background: #3CB371;
    color: #fff;
    border-color: #3CB371;
}

.single-post .post-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 24px;
}

.single-post .post-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single-post .post-nav a:hover {
    color: #3CB371;
}

.single-post .post-nav .prev {
    justify-content: flex-start;
}

.single-post .post-nav .next {
    justify-content: flex-end;
}

/* Pagebar */
.pagebar {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.pagebar a,
.pagebar span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 14px;
}

.pagebar a:hover,
.pagebar a.active {
    background: #3CB371;
    color: #fff;
    border-color: #3CB371;
}

.pagebar span {
    color: #999;
    background: #f5f5f5;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .hero {
        height: 350px;
    }
    
    .carousel-overlay h1 {
        font-size: 36px;
    }
    
    .carousel-overlay p {
        font-size: 18px;
    }
    
    .content .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar-module {
        padding: 16px;
    }
    
    .article-card .thumb {
        width: 160px;
        height: 110px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    
    .header .logo h1 {
        font-size: 20px;
    }
    
    .header .nav {
        display: none;
    }
    
    .header .mobile-menu-btn {
        display: block;
    }
    
    .header .mobile-nav.active {
        display: block;
    }
    
    .hero {
        height: 280px;
    }
    
    .carousel-overlay h1 {
        font-size: 26px;
    }
    
    .carousel-overlay p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .carousel-overlay .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .carousel-control {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .content {
        padding: 20px 0;
    }

    .mobile-search {
        display: block;
        margin-bottom: 20px;
    }

    .sidebar .search-module {
        display: none;
    }

    .content .container {
        display: flex;
        flex-direction: column;
    }

    .main-content {
        order: 1;
        width: 100%;
    }

    .sidebar {
        order: 2;
        width: 100%;
    }

    .main-content h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .article-list {
        gap: 15px;
    }
    
    .article-card {
        padding: 16px;
    }
    
    .article-card .thumb {
        width: 120px;
        height: 80px;
    }
    
    .article-card .title {
        font-size: 16px;
    }
    
    .article-card .excerpt {
        font-size: 13px;
    }
    
    .footer {
        padding: 30px 0;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-brand {
        width: 100%;
    }
    
    .footer-brand p {
        font-size: 13px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 220px;
    }
    
    .carousel-overlay h1 {
        font-size: 22px;
    }
    
    .carousel-overlay p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .carousel-overlay .btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    .carousel-indicator.active {
        width: 24px;
    }
    
    .article-card {
        padding: 12px;
    }
    
    .article-card .thumb {
        width: 100px;
        height: 70px;
    }
    
    .article-card .meta {
        flex-direction: column;
        gap: 6px;
        font-size: 12px;
    }
    
    .tag-cloud a {
        padding: 5px 12px;
        font-size: 12px;
    }
}