/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f8f9fa;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ========== Navbar ========== */
.navbar {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
}
.logo-icon { font-size: 28px; }
.logo-text {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    gap: 28px;
}
.nav-links a {
    font-size: 15px;
    color: #555;
    padding: 6px 0;
    transition: color .2s;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: #2e7d32;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #4caf50;
    border-radius: 1px;
}
.nav-actions {
    display: flex;
    gap: 10px;
}
.btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    border: none;
    display: inline-block;
}
.btn-outline {
    border: 1px solid #4caf50;
    color: #4caf50;
    background: transparent;
}
.btn-outline:hover {
    background: #e8f5e9;
}
.btn-primary {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: #fff;
    box-shadow: 0 2px 8px rgba(76,175,80,.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76,175,80,.4);
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 30%, #388e3c 60%, #4caf50 100%);
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 0;
}
.hero h1 {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}
.hero .highlight {
    background: linear-gradient(90deg, #a5d6a7, #c8e6c9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,.85);
    max-width: 600px;
    margin: 0 auto 36px;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.btn-hero-primary {
    padding: 14px 36px;
    background: #fff;
    color: #2e7d32;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all .2s;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.btn-hero-secondary {
    padding: 14px 36px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all .2s;
}
.btn-hero-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,.1);
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
}
.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}
.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,.7);
    margin-top: 4px;
    display: block;
}

/* ========== Categories ========== */
.categories {
    padding: 70px 0 50px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: all .3s;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    border-color: #4caf50;
}
.cat-icon { font-size: 36px; }
.cat-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}
.cat-count {
    font-size: 13px;
    color: #999;
}

/* ========== Listings ========== */
.listings {
    padding: 50px 0 70px;
    background: #fff;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}
.section-header .section-title::after {
    margin-left: 0;
}
.view-all {
    color: #4caf50;
    font-size: 15px;
    font-weight: 500;
}
.view-all:hover { text-decoration: underline; }
.listing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.listing-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all .3s;
    border: 1px solid #eaeaea;
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
    border-color: #4caf50;
}
.listing-img {
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.listing-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b35;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.listing-body {
    padding: 16px;
}
.listing-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.listing-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}
.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.listing-price {
    color: #e53935;
    font-size: 20px;
    font-weight: 700;
}
.listing-price small {
    font-size: 13px;
    font-weight: 400;
    color: #888;
}
.listing-date {
    font-size: 12px;
    color: #aaa;
}

/* ========== Features ========== */
.features {
    padding: 70px 0;
    background: linear-gradient(135deg, #f1f8e9, #e8f5e9);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 24px;
    text-align: center;
    transition: all .3s;
    border: 1px solid #eaeaea;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}
.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}
.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ========== Footer ========== */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,.8);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 12px;
}
.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
}
.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,.65);
    margin-bottom: 10px;
    transition: color .2s;
}
.footer-links a:hover { color: #4caf50; }
.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,.4);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,.1);
    }
    .nav-links.show { display: flex; }
    .nav-actions { display: none; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 30px; }
    .hero-stats { gap: 24px; }
    .category-grid,
    .listing-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
@media (max-width: 480px) {
    .category-grid,
    .listing-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}
