/* =====================================
   ECO GLOW HOME PAGE
===================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #f7f7f3;
    color: #1f291d;

    font-family: Arial, Helvetica, sans-serif;
}

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

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}



/* =====================================
   HEADER
===================================== */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;
    height: 104px;

    display: flex;
    align-items: center;

    background: rgba(250, 249, 245, 0.97);
}

.header-container {
    width: min(1440px, calc(100% - 90px));
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Logo */

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-green {
    color: #527a46;
}

.logo-dark {
    color: #272d26;
}

.logo-small {
    margin-top: 3px;

    color: #666;

    font-size: 10px;
    letter-spacing: 0.6px;
}


/* Navigation */

.main-nav {
    display: flex;
    align-items: center;

    gap: 48px;
}

.main-nav a {
    position: relative;

    padding: 15px 4px;

    color: #30372e;

    font-size: 14px;
    font-weight: 600;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 2px;

    width: 0;
    height: 2px;

    background: #668f55;

    transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


/* Account button */

.account-button {
    height: 45px;

    padding: 0 18px;

    display: flex;
    align-items: center;

    gap: 10px;

    border: 1px solid #d8d9d4;
    border-radius: 13px;

    background: transparent;

    color: #293026;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.account-button:hover {
    background: #f2f4ee;
    border-color: #c6ccbf;
}

.account-icon {
    color: #34512f;

    font-size: 15px;
}

.account-arrow {
    font-size: 17px;
}



/* =====================================
   HERO
===================================== */

.hero {
    position: relative;

    width: 100%;
    height: 610px;

    overflow: hidden;

    background: #2f302b;
}


/* Individual slide */

.hero-slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


/* =====================================
   HERO IMAGE
===================================== */

.hero-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
       重点：
       让图片主体往右边显示，
       给左侧文字留出空间
    */
    object-position: 60% center;
}


/* =====================================
   DARK OVERLAY
===================================== */

.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(20, 21, 18, 0.78) 0%,
            rgba(23, 23, 19, 0.68) 18%,
            rgba(26, 25, 21, 0.38) 37%,
            rgba(0, 0, 0, 0.08) 58%,
            rgba(0, 0, 0, 0) 78%
        );
}


/* =====================================
   HERO CONTENT
===================================== */

.hero-content {
    position: relative;

    z-index: 5;

    width: min(1440px, calc(100% - 150px));
    height: 100%;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding-bottom: 10px;

    color: white;
}


/* Hero heading */

.hero-content h1 {
    max-width: 500px;

    margin: 0;

    font-size: clamp(58px, 5vw, 78px);
    font-weight: 700;
    line-height: 0.96;

    letter-spacing: -2px;

    color: #ffffff;
}

.hero-content h1 span {
    color: #9bc882;
}


/* Hero description */

.hero-content p {
    max-width: 440px;

    margin-top: 32px;
    margin-bottom: 0;

    font-size: 17px;
    line-height: 1.65;

    color: rgba(255, 255, 255, 0.95);
}


/* =====================================
   HERO BUTTONS
===================================== */

.hero-buttons {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-top: 32px;
}

.btn {
    min-height: 48px;

    padding: 0 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    border-radius: 25px;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}


/* Green button */

.btn-primary {
    background: #629653;

    color: white;
}

.btn-primary:hover {
    background: #527f46;
}


/* Transparent button */

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.75);

    background: rgba(40, 40, 35, 0.22);

    color: white;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}


/* =====================================
   SLIDER ARROWS
===================================== */

.slider-arrow {
    position: absolute;

    z-index: 20;

    top: 50%;

    width: 54px;
    height: 54px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;

    background: rgba(27, 29, 25, 0.42);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transform: translateY(-50%);

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.slider-prev {
    left: 24px;
}

.slider-next {
    right: 24px;
}

.slider-arrow:hover {
    background: rgba(85, 127, 72, 0.9);

    transform:
        translateY(-50%)
        scale(1.06);
}

.slider-arrow svg {
    width: 26px;
    height: 26px;
}


/* =====================================
   SLIDER DOTS
===================================== */

.slider-dots {
    position: absolute;

    z-index: 20;

    left: 50%;
    bottom: 28px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;

    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.65);

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.slider-dot:hover {
    background: white;

    transform: scale(1.12);
}

.slider-dot.active {
    background: #ffffff;
}



/* =====================================
   COLLECTION
===================================== */

.collection-section {
    max-width: 1440px;

    margin: 0 auto;

    padding: 40px 46px 50px;
}

.section-heading {
    margin-bottom: 35px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 25px;

    text-align: center;
}

.heading-line {
    width: 90px;
    height: 1px;

    background: #b8c8ad;
}

.section-heading h2 {
    margin: 3px 0 8px;

    color: #273523;

    font-size: 24px;
}

.section-heading p {
    margin: 0;

    color: #7b8177;

    font-size: 13px;
}

.leaf {
    color: #92ad83;

    font-size: 8px;
}


/* Collection cards */

.collection-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.collection-card {
    position: relative;

    height: 320px;

    overflow: hidden;

    border-radius: 16px;

    color: white;

    background: #ddd;
}

.collection-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.collection-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.03) 30%,
            rgba(0, 0, 0, 0.82) 100%
        );
}

.collection-content {
    position: absolute;

    left: 20px;
    bottom: 20px;

    z-index: 2;
}

.collection-number {
    display: block;

    margin-bottom: 10px;

    font-size: 16px;
}

.collection-content h3 {
    margin: 0;

    font-size: 19px;
    font-weight: 500;
    line-height: 1.25;
}

.collection-arrow {
    position: absolute;

    right: 20px;
    bottom: 22px;

    z-index: 2;

    font-size: 24px;

    transition: transform 0.25s ease;
}

.collection-card:hover .collection-arrow {
    transform: translateX(4px);
}



/* =====================================
   FEATURES
===================================== */

.features-section {
    max-width: 1350px;

    margin: 0 auto 35px;

    padding: 0 45px;
}

.features-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    overflow: hidden;

    border-radius: 18px;

    background:
        linear-gradient(
            110deg,
            #f0f1ea,
            #f8f8f4
        );
}

.feature-item {
    position: relative;

    min-height: 225px;

    padding: 38px 55px;
}

.feature-item:not(:last-child)::after {
    content: "";

    position: absolute;

    right: 0;
    top: 45px;

    width: 1px;
    height: 140px;

    background: #dedfd8;
}

.feature-icon {
    width: 56px;
    height: 56px;

    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e3ebdb;

    color: #56834a;

    font-size: 28px;
}

.feature-item h3 {
    margin: 0 0 15px;

    font-size: 16px;
}

.feature-item p {
    margin: 0;

    color: #4e554c;

    font-size: 13px;
    line-height: 1.5;
}



/* =====================================
   SUBSCRIBE
===================================== */

.subscribe-section {
    max-width: 1260px;
    min-height: 110px;

    margin: 0 auto 45px;

    padding: 22px 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 17px;

    background:
        linear-gradient(
            100deg,
            #1c311a,
            #31492b
        );

    color: white;
}

.subscribe-info {
    display: flex;
    align-items: center;

    gap: 20px;
}

.mail-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #567b49;

    font-size: 27px;
}

.subscribe-info h3 {
    margin: 0 0 7px;

    font-size: 16px;
}

.subscribe-info p {
    margin: 0;

    color: rgba(255, 255, 255, 0.8);

    font-size: 12px;
    line-height: 1.5;
}


/* Subscribe form */

.subscribe-form {
    width: 520px;

    display: flex;

    gap: 18px;
}

.subscribe-form input {
    flex: 1;

    min-width: 0;
    height: 45px;

    padding: 0 25px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 25px;

    background: rgba(255, 255, 255, 0.02);

    color: white;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.subscribe-form input:focus {
    border-color: rgba(255, 255, 255, 0.45);

    background: rgba(255, 255, 255, 0.05);
}

.subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.subscribe-form button {
    width: 150px;

    border: none;
    border-radius: 25px;

    background: #f6f6f1;

    color: #243020;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.subscribe-form button:hover {
    background: #ffffff;

    transform: translateY(-1px);
}



/* =====================================
   RESPONSIVE - TABLET
===================================== */

@media (max-width: 1000px) {

    /* ---------- 修改开始 / BEGIN CHANGE: US1-TABLET-NAV ----------
     * 中文：平板宽度仍显示导航，并允许标题栏换行。
     * EN: Keep tablet navigation visible and allow the header to wrap.
     */
    .site-header { height: auto; min-height: 120px; padding: 16px 0; }

    .header-container {
        width: calc(100% - 50px);
        flex-wrap: wrap;
        gap: 16px;
    }

    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        order: 3;
        width: 100%;
    }


    /* ---------- 修改结束 / END CHANGE: US1-TABLET-NAV ---------- */
    .hero-content {
        width: calc(100% - 100px);
    }

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

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

    .feature-item::after {
        display: none;
    }

    .subscribe-section {
        flex-direction: column;
        align-items: flex-start;

        gap: 25px;
    }

    .subscribe-form {
        width: 100%;
    }

}



/* =====================================
   RESPONSIVE - MOBILE
===================================== */

@media (max-width: 600px) {

    /* ---------- 修改开始 / BEGIN CHANGE: US1-MOBILE-NAV ----------
     * 中文：移动端标题栏根据内容增长，避免遮挡导航。
     * EN: Allow the mobile header to grow without hiding navigation.
     */
    .site-header {
        height: auto;
        min-height: 120px;
    }


    /* ---------- 修改结束 / END CHANGE: US1-MOBILE-NAV ---------- */
    .header-container {
        width: calc(100% - 30px);
    }

    .logo-main {
        font-size: 23px;
    }

    .account-button {
        padding: 0 13px;
    }


    /* Hero */

    .hero {
        height: 600px;
    }

    .hero-content {
        width: calc(100% - 54px);

        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 48px;

        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }


    /* Arrow buttons */

    .slider-arrow {
        width: 44px;
        height: 44px;
    }

    .slider-prev {
        left: 12px;
    }

    .slider-next {
        right: 12px;
    }

    .slider-arrow svg {
        width: 22px;
        height: 22px;
    }


    /* Dots */

    .slider-dots {
        bottom: 18px;
    }


    /* Collection */

    .collection-section {
        padding:
            35px
            18px
            40px;
    }

    .heading-line {
        width: 45px;
    }

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

    .collection-card {
        height: 360px;
    }


    /* Features */

    .features-section {
        padding: 0 18px;
    }

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

    .feature-item {
        min-height: auto;

        padding: 30px;
    }


    /* Subscribe */

    .subscribe-section {
        margin-left: 18px;
        margin-right: 18px;

        padding: 28px;

        align-items: stretch;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form button {
        width: 100%;
        height: 45px;
    }

}



/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .hero-slide,
    .collection-card img,
    .slider-arrow,
    .slider-dot,
    .btn,
    .collection-arrow,
    .subscribe-form button {
        transition: none;
    }

}
