/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    background: #f5f5f5;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: #11998e;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ========== Header ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.logo-icon {
    font-size: 28px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-list li a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #555;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-list li a:hover,
.nav-list li.active a {
    color: #11998e;
    background: rgba(17,153,142,0.08);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* ========== Banner ========== */
.banner {
    position: relative;
    overflow: hidden;
}

.banner-slider {
    position: relative;
}

.banner-slide {
    display: none;
    padding: 80px 0 100px;
    min-height: 320px;
    align-items: center;
}

.banner-slide.active {
    display: block;
}

.banner-content {
    text-align: center;
    color: #fff;
}

.banner-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 10px;
    opacity: 0.95;
}

.banner-sub {
    font-size: 14px;
    opacity: 0.8;
}

.banner-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
}

.banner-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

.wave-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 5;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 40px;
}

/* ========== Main Layout ========== */
.main-wrap {
    padding: 30px 0;
}

.main-layout {
    display: flex;
    gap: 30px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ========== Section Title ========== */
.section-title {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.section-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.title-icon {
    margin-right: 6px;
}

/* ========== Article List ========== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    position: relative;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.article-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    font-size: 12px;
    color: #fff;
    background: #11998e;
    border-radius: 4px;
    z-index: 2;
}

.article-thumb {
    width: 220px;
    min-height: 160px;
    flex-shrink: 0;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    padding: 10px;
    text-align: center;
}

.thumb-placeholder.lg {
    min-height: 180px;
}

.article-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-info p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

.date {
    font-size: 13px;
    color: #aaa;
}

/* ========== Card Grid ========== */
.card-grid {
    display: grid;
    gap: 20px;
}

.card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.card-img {
    overflow: hidden;
}

.card-body {
    padding: 16px;
}

.card-tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    color: #fff;
    background: #11998e;
}

.tag-green { background: #00b894; }
.tag-blue { background: #0984e3; }
.tag-orange { background: #e17055; }

.card-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.card-body p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* ========== Sidebar Widget ========== */
.widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.widget-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.wave-line {
    color: #11998e;
    margin-bottom: 16px;
}

.wave-line svg {
    display: block;
    width: 100%;
    height: 12px;
}

/* Recommend List */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommend-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.recommend-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recommend-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.recommend-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.recommend-info .date {
    font-size: 12px;
    color: #aaa;
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    font-size: 14px;
    color: #555;
}

.category-list li a:hover {
    color: #11998e;
    padding-left: 8px;
}

.category-list li a span {
    color: #aaa;
    font-size: 13px;
}

/* Tags */
.tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    background: #f5f6fa;
    color: #555;
    border-radius: 20px;
    transition: all 0.3s;
}

.tag:hover {
    background: #11998e;
    color: #fff;
}

.tag-hot {
    background: #fff0f0;
    color: #e74c3c;
}

.tag-hot:hover {
    background: #e74c3c;
    color: #fff;
}

/* Search */
.search-box {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #11998e;
}

.search-btn {
    padding: 10px 20px;
    background: #11998e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #0e8377;
}

/* ========== About Section ========== */
.about-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.about-title {
    text-align: center;
    margin-bottom: 40px;
}

.about-title h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-title p {
    font-size: 16px;
    opacity: 0.85;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.about-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.12);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.about-item:hover {
    transform: translateY(-4px);
}

.about-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.about-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.about-item p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
}

/* ========== Contact Section ========== */
.contact-section {
    padding: 60px 0;
    background: #fff;
}

.contact-title {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.contact-title p {
    font-size: 16px;
    color: #888;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    text-align: center;
    padding: 30px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: #11998e;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(17,153,142,0.15);
}

.contact-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.contact-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
}

/* ========== Footer ========== */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 40px 0 20px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.footer .logo {
    color: #fff;
}

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

.footer-nav a {
    color: #aaa;
    font-size: 14px;
}

.footer-nav a:hover {
    color: #11998e;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #666;
}

.footer-bottom a {
    color: #888;
}

.footer-bottom a:hover {
    color: #11998e;
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #11998e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(17,153,142,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0e8377;
    transform: translateY(-2px);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
    }
}

@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

    .nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li a {
        padding: 12px 20px;
        border-radius: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .banner-content h1 {
        font-size: 28px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .banner-slide {
        padding: 50px 0 70px;
        min-height: 220px;
    }

    .card-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .article-item {
        flex-direction: column;
    }

    .article-thumb {
        width: 100%;
        min-height: 160px;
    }

    .article-tag {
        top: 10px;
        left: 10px;
    }

    .footer-top {
        flex-direction: column;
        gap: 16px;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 22px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
