/* =========================================================
   PackDIY
   Main Stylesheet
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {

    /* 品牌主色 — 按钮 / 标题强调 / active 状态 */
    --green: #315c4a;

    /* 墨绿 — hover / 深色区域 / footer */
    --green-dark: #244637;

    /* 浅绿 — 产品区块 / Feature 区域背景 */
    --green-light: #edf3ef;

    /* 米白 — hero / 大面积氛围背景 */
    --cream: #f7f5f0;

    /* 暗米白 — 微差背景 / 卡片悬浮态 */
    --cream-dark: #efede7;

    /* 白色 — 卡片 / 表单 / 内容区域 */
    --white: #ffffff;

    /* 近黑 — 正文标题 */
    --black: #202522;

    /* 灰色 — 正文文字 */
    --text: #4d5551;

    /* 浅灰 — 次要 / 辅助文字 */
    --muted: #7c827f;

    /* 边框线 */
    --border: #e5e5e1;

    /* 金色点缀 — 编号 / 强调装饰 */
    --gold: #c59a5a;

    /* 布局 & UI 通用 */
    --container: 1180px;

    --radius: 10px;

    --transition: 0.25s ease;
}


/* =========================================================
   2. RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background: var(--white);

    font-size: 16px;

    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   3. CONTAINER
   ========================================================= */

.container {

    width: min(92%, var(--container));

    margin: 0 auto;
}


/* =========================================================
   4. HEADER
   ========================================================= */

.site-header {

    height: 76px;

    background: var(--white);

    border-bottom: 1px solid var(--border);

    position: relative;

    z-index: 10;
}

.header-inner {

    height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--green);

    font-size: 21px;

    font-weight: 700;

    letter-spacing: -0.3px;
}

.logo-mark {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--green);

    color: var(--white);

    border-radius: 7px;

    font-size: 18px;

    font-weight: 700;

}


/* =========================================================
   LOGO IMAGE
   ========================================================= */

.logo-img {

    display: block;

    height: 40px;

    width: auto;

    max-width: 100%;

    object-fit: contain;
}

@media (max-width: 700px) {

    .logo-img {

        height: 32px;
    }
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {

    display: flex;

    align-items: center;

    gap: 34px;
}

.main-nav a {

    position: relative;

    color: #454a47;

    font-size: 14px;

    font-weight: 500;

    transition: color var(--transition);
}

.main-nav a:hover {

    color: var(--green);
}

.main-nav a.active {

    color: var(--green);

    font-weight: 600;
}

.main-nav a.active::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: -9px;

    height: 2px;

    background: var(--green);
}


/* =========================================================
   5. HERO
   ========================================================= */

.hero {

    min-height: 610px;

    display: flex;

    align-items: center;

    position: relative;

    background-image:

        linear-gradient(
            90deg,
            rgba(247,245,240,0.98) 0%,
            rgba(247,245,240,0.94) 25%,
            rgba(247,245,240,0.65) 50%,
            rgba(247,245,240,0.12) 75%
        ),

        url("/images/hero/hero-packing.jpg");

    background-size: cover;

    background-position: center;
}

.hero-content {

    width: 600px;

    padding: 90px 0;
}


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

.hero-label,
.section-label {

    display: block;

    margin-bottom: 16px;

    color: var(--green);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}


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

.hero h1 {

    margin-bottom: 22px;

    color: var(--black);

    font-size: clamp(42px, 5vw, 62px);

    line-height: 1.12;

    letter-spacing: -1.8px;

    font-weight: 700;
}

.hero p {

    max-width: 560px;

    margin-bottom: 32px;

    color: #59605c;

    font-size: 17px;

    line-height: 1.8;
}


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

.hero-buttons {

    display: flex;

    align-items: center;

    gap: 12px;
}


/* =========================================================
   6. BUTTONS
   ========================================================= */

.btn {

    min-height: 48px;

    padding: 0 25px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 6px;

    border: 1px solid transparent;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.btn:hover {

    transform: translateY(-2px);
}


/* Primary */

.btn-primary {

    background: var(--green);

    color: var(--white);
}

.btn-primary:hover {

    background: var(--green-dark);
}


/* Outline */

.btn-outline {

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

    color: var(--green);

    border-color: var(--green);
}

.btn-outline:hover {

    background: var(--green);

    color: var(--white);
}


/* White */

.btn-white {

    background: var(--white);

    color: var(--green);
}

.btn-white:hover {

    background: var(--cream);
}


/* =========================================================
   7. SECTIONS
   ========================================================= */

.section {

    padding: 90px 0;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {

    max-width: 700px;

    margin: 0 auto 48px;

    text-align: center;
}

.section-heading h2 {

    margin-bottom: 14px;

    color: var(--black);

    font-size: clamp(30px, 4vw, 42px);

    line-height: 1.2;

    letter-spacing: -0.8px;
}

.section-heading p {

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   8. PRODUCTS
   ========================================================= */

.products-section {

    background: var(--green-light);
}

.products-grid {

    display: grid;

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

    gap: 24px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {

    overflow: hidden;

    display: block;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.product-card:hover {

    transform: translateY(-5px);

    border-color: #d5dbd7;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.08);
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.product-image {

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: var(--cream);
}

.product-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.product-card:hover .product-image img {

    transform: scale(1.04);
}


/* =========================================================
   PRODUCT CONTENT
   ========================================================= */

.product-content {

    padding: 24px;
}

.product-content h3 {

    margin-bottom: 9px;

    color: var(--black);

    font-size: 19px;

    line-height: 1.35;
}

.product-content p {

    min-height: 72px;

    margin-bottom: 15px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}

.product-link {

    color: var(--green);

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   9. WHY PACKDIY
   ========================================================= */

.why-section {

    background: var(--green-light);
}

.features-grid {

    display: grid;

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

    gap: 20px;
}

.feature-item {

    padding: 30px 25px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius);
}

.feature-number {

    margin-bottom: 22px;

    color: var(--gold);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;
}

.feature-item h3 {

    margin-bottom: 10px;

    color: var(--black);

    font-size: 18px;

    line-height: 1.4;
}

.feature-item p {

    color: var(--muted);

    font-size: 14px;

    line-height: 1.75;
}


/* =========================================================
   10. ABOUT
   ========================================================= */

.about-section {

    background: var(--white);
}

.about-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.about-image {

    overflow: hidden;

    border-radius: var(--radius);
}

.about-image img {

    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;
}

.about-content h2 {

    margin-bottom: 20px;

    color: var(--black);

    font-size: clamp(30px, 4vw, 42px);

    line-height: 1.2;

    letter-spacing: -0.8px;
}

.about-content p {

    margin-bottom: 15px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   TEXT LINK
   ========================================================= */

.text-link {

    display: inline-block;

    margin-top: 10px;

    color: var(--green);

    font-size: 14px;

    font-weight: 600;

    transition: color var(--transition);
}

.text-link:hover {

    color: var(--green-dark);
}


/* =========================================================
   11. CTA
   ========================================================= */

.cta-section {

    padding: 85px 0;

    background: var(--green);

    text-align: center;
}

.section-label-light {

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

.cta-section h2 {

    margin-bottom: 15px;

    color: var(--white);

    font-size: clamp(30px, 4vw, 44px);

    line-height: 1.2;

    letter-spacing: -0.8px;
}

.cta-section p {

    max-width: 650px;

    margin: 0 auto 28px;

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

    font-size: 15px;
}


/* =========================================================
   12. FOOTER
   ========================================================= */

.site-footer {

    padding-top: 55px;

    background: #202b26;

    color: var(--white);
}

.footer-grid {

    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 45px;

    border-bottom: 1px solid rgba(255,255,255,0.12);
}


/* =========================================================
   FOOTER BRAND
   ========================================================= */

.footer-brand .logo {

    margin-bottom: 18px;

    color: var(--white);
}

.footer-brand .logo-mark {

    background: var(--white);

    color: var(--green);
}

.footer-brand p {

    max-width: 350px;

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

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   FOOTER COLUMNS
   ========================================================= */

.footer-column {

    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.footer-column h3 {

    margin-bottom: 17px;

    color: var(--white);

    font-size: 14px;
}

.footer-column a {

    margin-bottom: 9px;

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

    font-size: 14px;

    transition: color var(--transition);
}

.footer-column a:hover {

    color: var(--white);
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {

    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.footer-bottom p {

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

    font-size: 12px;
}


/* =========================================================
   13. RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 950px) {

    .products-grid {

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

    .features-grid {

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

    .about-grid {

        gap: 40px;
    }

    .footer-grid {

        grid-template-columns: 1.5fr 1fr 1fr;

        gap: 30px;
    }
}


/* =========================================================
   14. RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 700px) {


    /* Header */

    .site-header,
    .header-inner {

        height: 68px;
    }

    .main-nav {

        gap: 16px;
    }

    .main-nav a {

        font-size: 13px;
    }


    /* Hero */

    .hero {

        min-height: 570px;

        background-image:

            linear-gradient(
                rgba(247,245,240,0.94),
                rgba(247,245,240,0.82)
            ),

            url("/images/hero/hero-packing.jpg");

        background-position: center;
    }

    .hero-content {

        width: 100%;

        padding: 70px 0;
    }

    .hero h1 {

        font-size: 40px;

        letter-spacing: -1px;
    }

    .hero p {

        font-size: 15px;
    }

    .hero-buttons {

        flex-direction: column;

        align-items: stretch;

        max-width: 260px;
    }

    .hero-buttons .btn {

        width: 100%;
    }


    /* Sections */

    .section {

        padding: 65px 0;
    }

    .section-heading {

        margin-bottom: 35px;
    }


    /* Products */

    .products-grid {

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .product-content p {

        min-height: auto;
    }


    /* Features */

    .features-grid {

        grid-template-columns: 1fr;

        gap: 15px;
    }


    /* About */

    .about-grid {

        grid-template-columns: 1fr;

        gap: 35px;
    }

    .about-content h2 {

        font-size: 32px;
    }


    /* CTA */

    .cta-section {

        padding: 65px 0;
    }


    /* Footer */

    .footer-grid {

        grid-template-columns: 1fr;

        gap: 30px;

        padding-bottom: 35px;
    }

    .footer-bottom {

        min-height: auto;

        padding: 20px 0;

        flex-direction: column;

        align-items: flex-start;

        gap: 5px;
    }
}


/* =========================================================
   15. RESPONSIVE - SMALL PHONE
   ========================================================= */

@media (max-width: 480px) {

    .container {

        width: 90%;
    }

    .main-nav {

        gap: 11px;
    }

    .main-nav a {

        font-size: 12px;
    }

    .hero h1 {

        font-size: 35px;
    }

    .hero-label {

        font-size: 10px;

        letter-spacing: 1.5px;
    }

    .product-content {

        padding: 20px;
    }
}


/* =========================================================
   16. PAGE HERO (subpages)
   ========================================================= */

.page-hero {

    padding: 90px 0 70px;

    background: var(--cream);

    text-align: center;
}

.page-hero h1 {

    margin-bottom: 18px;

    color: var(--black);

    font-size: clamp(36px, 5vw, 56px);

    line-height: 1.15;

    letter-spacing: -1.5px;

    font-weight: 700;
}

.page-hero p {

    max-width: 680px;

    margin: 0 auto;

    color: #59605c;

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   16.1 PAGE HERO — BANNER VARIANT (compact)
   ========================================================= */

.page-hero.banner {

    padding: 50px 0 40px;
}

.page-hero.banner h1 {

    margin-bottom: 10px;

    font-size: clamp(26px, 4vw, 36px);

    letter-spacing: -1px;
}

.page-hero.banner p {

    max-width: 620px;

    font-size: 14px;

    line-height: 1.7;
}

.page-hero.banner .hero-label {

    margin-bottom: 12px;
}

@media (max-width: 700px) {

    .page-hero.banner {

        padding: 38px 0 28px;
    }

    .page-hero.banner h1 {

        font-size: 26px;
    }
}


/* =========================================================
   16.2 BANNER — PRODUCTS PAGE (with background image)
   ========================================================= */

.banner-products {

    background-image:
        linear-gradient(
            rgba(247,245,240,0.33),
            rgba(247,245,240,0.66)
        ),
        url('/images/banners/banner-products.jpg');

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}


/* =========================================================
   17. STATS BAR
   ========================================================= */

.stats-section {

    padding: 70px 0;

    background: var(--green);
}

.stats-grid {

    display: grid;

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

    gap: 30px;

    text-align: center;
}

.stat-number {

    margin-bottom: 8px;

    color: var(--white);

    font-size: clamp(34px, 4vw, 46px);

    font-weight: 700;

    letter-spacing: -1px;

    line-height: 1;
}

.stat-label {

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

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

@media (max-width: 700px) {

    .stats-grid {

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

        gap: 40px 20px;
    }
}


/* =========================================================
   18. CONTACT
   ========================================================= */

.contact-section {

    background: var(--white);
}

.contact-grid {

    display: grid;

    grid-template-columns: 1.6fr 1fr;

    gap: 60px;

    align-items: start;
}

.contact-form {

    padding: 40px;

    background: var(--cream);

    border: 1px solid var(--border);

    border-radius: var(--radius);
}

.form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

    margin-bottom: 18px;
}

.form-field {

    margin-bottom: 18px;
}

.form-field label {

    display: block;

    margin-bottom: 7px;

    color: var(--black);

    font-size: 13px;

    font-weight: 600;
}

.form-field label .required {

    color: var(--green);

    margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {

    width: 100%;

    padding: 12px 14px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 6px;

    color: var(--text);

    font-size: 14px;

    font-family: inherit;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {

    outline: none;

    border-color: var(--green);

    box-shadow: 0 0 0 3px rgba(49,92,74,0.08);
}

.form-field textarea {

    min-height: 140px;

    resize: vertical;
}

.form-submit {

    margin-top: 8px;
}

.contact-info {

    padding: 8px 0;
}

.contact-info h2 {

    margin-bottom: 14px;

    color: var(--black);

    font-size: clamp(24px, 3vw, 30px);

    line-height: 1.25;

    letter-spacing: -0.5px;
}

.contact-info p {

    margin-bottom: 28px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}

.info-item {

    margin-bottom: 22px;

    padding-bottom: 22px;

    border-bottom: 1px solid var(--border);
}

.info-item:last-child {

    margin-bottom: 0;

    padding-bottom: 0;

    border-bottom: none;
}

.info-label {

    display: block;

    margin-bottom: 5px;

    color: var(--green);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.info-value {

    color: var(--text);

    font-size: 15px;

    line-height: 1.6;
}

.info-value a {

    color: var(--text);

    transition: color var(--transition);
}

.info-value a:hover {

    color: var(--green);
}

@media (max-width: 950px) {

    .contact-grid {

        grid-template-columns: 1fr;

        gap: 40px;
    }
}

@media (max-width: 600px) {

    .contact-form {

        padding: 25px;
    }

    .form-row {

        grid-template-columns: 1fr;

        gap: 0;
    }
}


/* =========================================================
   19. PRODUCT DETAIL
   ========================================================= */

.specs-table {

    width: 100%;

    border-collapse: collapse;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;
}

.specs-table tr {

    border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {

    border-bottom: none;
}

.specs-table th,
.specs-table td {

    padding: 16px 22px;

    text-align: left;

    font-size: 14px;

    vertical-align: top;
}

.specs-table th {

    background: var(--cream);

    color: var(--black);

    font-weight: 600;

    width: 35%;
}

.specs-table td {

    color: var(--text);

    line-height: 1.7;
}

@media (max-width: 600px) {

    .specs-table th,
    .specs-table td {

        padding: 13px 16px;

        font-size: 13px;
    }

    .specs-table th {

        width: 40%;
    }
}


/* =========================================================
   20. NAV TOGGLE (MOBILE)
   ========================================================= */

.nav-toggle {

    display: none;

    width: 40px;

    height: 40px;

    background: transparent;

    border: 1px solid var(--border);

    border-radius: 6px;

    cursor: pointer;

    position: relative;

    transition: border-color var(--transition);
}

.nav-toggle:hover {

    border-color: var(--green);
}

.nav-toggle span {

    display: block;

    position: absolute;

    left: 8px;

    right: 8px;

    height: 2px;

    background: var(--green);

    border-radius: 2px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        top 0.25s ease;
}

.nav-toggle span:nth-child(1) { top: 13px; }

.nav-toggle span:nth-child(2) { top: 19px; }

.nav-toggle span:nth-child(3) { top: 25px; }

.nav-toggle.open span:nth-child(1) {

    top: 19px;

    transform: rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {

    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {

    top: 19px;

    transform: rotate(-45deg);
}

@media (max-width: 700px) {

    .nav-toggle {

        display: inline-block;
    }

    .main-nav {

        position: absolute;

        top: 68px;

        left: 0;

        right: 0;

        background: var(--white);

        flex-direction: column;

        gap: 0;

        max-height: 0;

        overflow: hidden;

        border-top: none;

        border-bottom: none;

        transition:
            max-height 0.3s ease,
            border-color 0.3s ease,
            box-shadow 0.3s ease;

        z-index: 5;
    }

    .main-nav.open {

        max-height: 320px;

        border-top: 1px solid var(--border);

        border-bottom: 1px solid var(--border);

        box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    }

    .main-nav a {

        width: 100%;

        padding: 14px 5%;

        font-size: 15px;

        border-bottom: 1px solid var(--border);
    }

    .main-nav a:last-child {

        border-bottom: none;
    }

    .main-nav a.active {

        background: var(--cream);
    }

    .main-nav a.active::after {

        display: none;
    }
}


/* =========================================================
   21. FORM MESSAGES (AJAX 状态反馈)
   ========================================================= */

.form-message {

    margin-top: 20px;

    padding: 16px 20px;

    border-radius: var(--radius);

    font-size: 14px;

    line-height: 1.6;
}

.form-success {

    background: var(--green-light);

    border: 1px solid var(--green);

    color: var(--green-dark);
}

.form-error {

    background: #fde8e8;

    border: 1px solid #e74c3c;

    color: #c0392b;
}