:root {
    --green: #16834a;
    --green-dark: #086536;
    --green-light: #eaf7ef;
    --orange: #f39a36;
    --text: #26352c;
    --muted: #89958d;
    --border: #edf1ed;
    --bg: #f6f8f5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

.topbar {
    height: 76px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--green-dark);
    font-size: 25px;
    font-weight: 800;
    white-space: nowrap;
}

.logo span {
    color: #f0a13e;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    font-size: 15px;
    color: #536158;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green);
    font-weight: 700;
}

.nav-login {
    padding: 10px 22px;
    border-radius: 22px;
    color: white !important;
    background: var(--green);
}

.hero {
    margin-top: 25px;
    min-height: 270px;
    padding: 48px 60px;
    border-radius: 16px;
    color: white;
    background: linear-gradient(120deg, #08733d, #36a765);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: 34px;
}

.hero p {
    margin: 0 0 30px;
    font-size: 16px;
    color: #e2f5e8;
}

.search-box {
    display: flex;
    width: 620px;
    max-width: 100%;
    height: 54px;
    padding: 5px;
    background: white;
    border-radius: 8px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 0 15px;
    font-size: 15px;
}

.search-box button {
    width: 105px;
    border: 0;
    border-radius: 6px;
    color: white;
    background: var(--orange);
    font-size: 16px;
    cursor: pointer;
}

.hero-decoration {
    position: absolute;
    right: 65px;
    bottom: 20px;
    font-size: 125px;
    opacity: .18;
}

.quick-entry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 22px 0 35px;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 23px 28px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .025);
}

.quick-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 25px;
    background: var(--green-light);
}

.quick-card:nth-child(2) .quick-icon {
    background: #fff3e5;
}

.quick-card:nth-child(3) .quick-icon {
    background: #edf1ff;
}

.quick-card h3 {
    margin: 0 0 7px;
    font-size: 17px;
}

.quick-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.section {
    margin: 30px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 750;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 21px;
    margin-right: 11px;
    vertical-align: -3px;
    border-radius: 4px;
    background: var(--green);
}

.more-link {
    color: var(--green);
    font-size: 14px;
}

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

.product-card {
    overflow: hidden;
    background: white;
    border-radius: 12px;
    transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
}

.product-image {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
    background: #edf3ed;
}

.product-info {
    padding: 15px;
}

.product-name {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
}

.product-price {
    color: #e77e25;
    font-size: 20px;
    font-weight: 800;
}

.product-price small {
    font-size: 12px;
    font-weight: 400;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.info-card {
    padding: 20px;
    background: white;
    border-radius: 12px;
}

.info-card h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.info-card p {
    margin: 0;
    color: #78847c;
    font-size: 14px;
    line-height: 1.8;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 45px 20px;
    text-align: center;
    color: var(--muted);
    background: white;
    border-radius: 12px;
}

.footer {
    margin-top: 55px;
    padding: 35px 0;
    text-align: center;
    color: #87938a;
    background: white;
    font-size: 13px;
    line-height: 2;
}

@media (max-width: 900px) {
    .nav-links {
        gap: 15px;
    }

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

    .hero-decoration {
        right: 15px;
        font-size: 80px;
    }
}

@media (max-width: 600px) {
    .topbar {
        height: auto;
        padding: 15px 0;
    }

    .nav-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 5px;
    }

    .nav-links a {
        white-space: nowrap;
        font-size: 13px;
    }

    .hero {
        padding: 32px 22px;
        min-height: 235px;
    }

    .hero h1 {
        font-size: 25px;
    }

    .hero-decoration {
        display: none;
    }

    .quick-entry {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-image {
        height: 125px;
    }

    .product-info {
        padding: 11px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 17px;
    }

    .product-meta {
        flex-direction: column;
        gap: 5px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 19px;
    }
}
