/* =============================================================
   嘉兴雅靓汇服饰有限公司 — YALIANGHUI GARMENT
   品牌色系：大地棕 #8B7355 / 米白 #F5F0EB / 深灰 #2C2C2C
   ============================================================= */

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

:root {
    --primary: #8B7355;
    --primary-dark: #6B5A42;
    --primary-light: #C4A882;
    --bg-warm: #F5F0EB;
    --bg-light: #FCFAF7;
    --text-dark: #2C2C2C;
    --text-mid: #666;
    --text-light: #999;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-lg: 20px;
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --transition: .35s cubic-bezier(.4,0,.2,1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: .5px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139,115,85,.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 24px;
    color: var(--primary);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    text-decoration: none;
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(139,115,85,.08);
}

.lang-switcher {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.lang-current {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(139,115,85,.1);
    border-radius: 8px;
    cursor: pointer;
    display: block;
    transition: var(--transition);
}

.lang-current:hover {
    background: rgba(139,115,85,.2);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 120px;
    padding: 6px;
    margin-top: 6px;
    z-index: 100;
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text-mid);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: var(--transition);
}

.lang-dropdown a:hover {
    background: rgba(139,115,85,.08);
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

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

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44,44,44,.75) 0%, rgba(44,44,44,.35) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 20px;
    opacity: .9;
}

.hero-desc {
    font-size: clamp(.9rem, 1.8vw, 1.1rem);
    opacity: .8;
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 5px;
}

/* ========== SECTIONS ========== */

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-warm);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-desc {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ========== ABOUT ========== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

.about-content h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.about-content p {
    color: var(--text-mid);
    margin-bottom: 14px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.stat {
    text-align: center;
    padding: 20px 12px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ========== PRODUCTS ========== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: default;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    height: 260px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-info {
    padding: 20px 24px 24px;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info p {
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 12px;
}

.product-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary);
    color: var(--white);
    letter-spacing: 1px;
}

/* ========== ADVANTAGES ========== */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.adv-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.advantage-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.advantage-card p {
    color: var(--text-mid);
    font-size: .92rem;
    line-height: 1.7;
}

/* ========== CONTACT ========== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-mid);
    font-size: .92rem;
}

.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e8e4e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--bg-light);
    color: var(--text-dark);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139,115,85,.15);
    background: var(--white);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

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

.footer {
    background: var(--text-dark);
    color: rgba(255,255,255,.85);
    padding: 64px 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: 1.2rem;
    margin-bottom: 6px;
}

.footer-brand p {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
}

.footer-desc {
    margin-top: 12px;
    line-height: 1.7;
    color: rgba(255,255,255,.5) !important;
}

.footer-links h4,
.footer-contact h4 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .9rem;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact p {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    padding: 4px 0;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: .85rem;
    color: rgba(255,255,255,.4);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

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

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

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

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,.1);
        gap: 4px;
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 16px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: 500px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 60px 0;
    }

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

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

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat {
        padding: 14px 8px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 8px;
    }

    .contact-form {
        padding: 24px;
    }
}

/* ========== ANIMATIONS ========== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
