/* ============================================
   辛选供应链 · Xinxuan Supply Chain Website
   ============================================ */

/* ---- Reset & Variables ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --pink:        #D4437C;
    --pink-light:  #F2A0C0;
    --pink-dark:   #A83266;
    --pink-glow:   rgba(212, 67, 124, 0.25);
    --green:       #2D5016;
    --green-mid:   #3D6B20;
    --green-light: #4A7C22;
    --cream:       #FDF7F3;
    --dark:        #1A1A1A;
    --gray:        #5A5A5A;
    --gray-light:  #8A8A8A;
    --border:      rgba(0, 0, 0, 0.08);
    --white:       #FFFFFF;
    --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
    --shadow:      0 4px 24px rgba(0,0,0,0.09);
    --shadow-lg:   0 12px 48px rgba(0,0,0,0.14);
    --radius:      12px;
    --radius-lg:   20px;
    --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
}

/* ---- Typography helpers ---- */
.cn { font-family: 'Noto Serif SC', 'STSong', serif; }
.en { font-family: 'Playfair Display', Georgia, serif; }

h1, h2, h3 { line-height: 1.2; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

.section { padding: 130px 0; }

.section-label {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 20px;
}

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

.section-header h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.section-header h2 .cn {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-header h2 .en {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-style: italic;
    font-weight: 400;
    color: var(--gray-light);
}

.section-desc {
    margin-top: 20px;
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 34px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--pink-glow);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.65);
    color: white;
}

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

.btn-sm { padding: 10px 24px; font-size: 13px; }
.btn-full { width: 100%; }

/* ---- Real Images ---- */
.about-img-main {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius-lg);
    display: block;
    transition: transform 0.7s ease;
}

.img-main:hover .about-img-main { transform: scale(1.03); }

.product-photo {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-photo { transform: scale(1.06); }

/* ==============================
   NAVBAR
   ============================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Nav text: white on transparent, dark on scrolled */
.navbar .logo-cn { color: white; transition: color 0.4s ease; }
.navbar .logo-en { color: rgba(255,255,255,0.65); transition: color 0.4s ease; }
.navbar .logo-divider { color: rgba(255,255,255,0.25); transition: color 0.4s ease; }
.navbar .link-cn { color: white !important; transition: color 0.4s ease; }
.navbar .nav-links a small { color: rgba(255,255,255,0.5) !important; transition: color 0.4s ease; }
.navbar .nav-links a:hover { background: rgba(255,255,255,0.1); }

.navbar.scrolled .logo-cn { color: var(--pink); }
.navbar.scrolled .logo-en { color: var(--gray); }
.navbar.scrolled .logo-divider { color: #ddd; }
.navbar.scrolled .link-cn { color: var(--dark) !important; }
.navbar.scrolled .nav-links a small { color: var(--gray-light) !important; }
.navbar.scrolled .nav-links a:hover { background: var(--cream); }
.navbar.scrolled .nav-links a:hover .link-cn { color: var(--pink) !important; }

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-cn {
    font-family: 'Noto Serif SC', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--pink);
    letter-spacing: 0.5px;
}

.logo-divider { color: #ddd; font-weight: 300; }

.logo-en {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: var(--gray);
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    gap: 1px;
}

.nav-links a .link-cn {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.nav-links a small {
    font-size: 10px;
    color: var(--gray-light);
    font-weight: 400;
}

.nav-links a:hover {
    background: var(--cream);
}

.nav-links a:hover .link-cn { color: var(--pink); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==============================
   HERO
   ============================== */
.hero {
    height: 100vh;
    min-height: 680px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.04);
    transition: transform 8s ease;
}

.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 2, 8, 0.45) 0%,
        rgba(10, 2, 8, 0.25) 45%,
        rgba(10, 2, 8, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 860px;
    padding: 0 28px;
}

.hero-badge {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    padding: 9px 28px;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 36px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.85);
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.hero-title .cn {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(64px, 12vw, 108px);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8C0D8 50%, #FFB0CF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    filter: drop-shadow(0 2px 16px rgba(0,0,0,0.4));
}

.hero-title .en {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 5vw, 46px);
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.5px;
}

.hero-subtitle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 52px;
}

.hero-subtitle .cn {
    font-family: 'Noto Serif SC', serif;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-subtitle .en {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    margin: 0 auto;
    animation: scrollDown 1.8s ease infinite;
}

@keyframes scrollDown {
    0%   { opacity: 0; transform: scaleY(0.3) translateY(-10px); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: scaleY(1)   translateY(20px); }
}

/* ==============================
   STATEMENT
   ============================== */
.statement {
    background: var(--white);
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
}

.statement-text {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.statement-text .cn {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(20px, 2.8vw, 30px);
    font-weight: 400;
    color: var(--dark);
    line-height: 1.7;
    letter-spacing: 0.5px;
}

.statement-text .en {
    font-family: 'Playfair Display', serif;
    font-size: clamp(14px, 1.6vw, 18px);
    font-style: italic;
    color: var(--gray-light);
    line-height: 1.8;
}

/* ==============================
   ABOUT
   ============================== */
.about { background: var(--cream); }

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

.about-images { position: relative; }

.img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-text .section-label { margin-bottom: 12px; }

.about-text h2 {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 28px;
}

.about-text h2 .cn {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about-text h2 .en {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 2.5vw, 30px);
    font-style: italic;
    font-weight: 400;
    color: var(--gray-light);
}

.about-text p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 14px;
}

.stats {
    display: flex;
    gap: 36px;
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.stat { text-align: center; flex: 1; }
.stat-num { display: block; font-size: 44px; font-weight: 700; color: var(--pink); line-height: 1; letter-spacing: -1px; }
.stat-cn  { display: block; font-family: 'Noto Serif SC', serif; font-size: 12px; color: var(--dark); margin-top: 6px; }
.stat-en  { display: block; font-size: 11px; color: var(--gray-light); margin-top: 2px; }

/* ==============================
   PRODUCTS
   ============================== */
.products { background: var(--white); }

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

.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

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

.product-img {
    position: relative;
    overflow: hidden;
}


.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 5, 18, 0.75) 0%,
        rgba(26, 5, 18, 0.35) 50%,
        rgba(26, 5, 18, 0.1) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(1px);
}

.product-card:hover .product-overlay { opacity: 1; }

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

.product-info h3 {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 14px;
}

.product-info h3 .cn {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.product-info h3 .en {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-style: italic;
    color: var(--gray-light);
    font-weight: 400;
}

.product-info p {
    font-size: 13.5px;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 4px;
}

/* ==============================
   VARIETIES BANNER
   ============================== */
.varieties-banner {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 36px 0;
    overflow: hidden;
}

.varieties-inner {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.variety-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 20px;
    border-radius: 50px;
    background: white;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: default;
}

.variety-tag span {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
}

.variety-tag small {
    font-family: 'Playfair Display', serif;
    font-size: 11px;
    font-style: italic;
    color: var(--gray-light);
}

.variety-tag:hover {
    background: var(--pink);
    border-color: var(--pink);
}

.variety-tag:hover span,
.variety-tag:hover small { color: white; }

/* ==============================
   WHY US
   ============================== */
.why-us {
    background: linear-gradient(148deg, var(--green) 0%, var(--green-mid) 60%, #4E8A28 100%);
    color: white;
}

.why-us .section-label { color: var(--pink-light); }
.why-us .section-header h2 .cn { color: white; }
.why-us .section-header h2 .en { color: rgba(255,255,255,0.5); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature {
    text-align: left;
    padding: 52px 36px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.feature:hover { background: rgba(255, 255, 255, 0.1); }

.feature-num {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 400;
    font-style: italic;
    color: rgba(255,255,255,0.18);
    line-height: 1;
    margin-bottom: 28px;
}

.feature h3 { margin-bottom: 16px; }
.feature h3 .cn { display: block; font-family: 'Noto Serif SC', serif; font-size: 20px; font-weight: 700; color: white; }
.feature h3 .en { display: block; font-family: 'Playfair Display', serif; font-size: 12px; font-style: italic; color: rgba(255,255,255,0.45); margin-top: 5px; letter-spacing: 1px; }

.feature p { font-size: 13.5px; color: rgba(255, 255, 255, 0.62); line-height: 1.8; }

/* ==============================
   CONTACT
   ============================== */
.contact { background: var(--cream); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon { font-size: 22px; flex-shrink: 0; padding-top: 2px; }

.contact-item h4 {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pink);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.75;
}

.contact-item em {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    color: var(--gray-light);
}

.contact-item a {
    color: var(--pink);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover { text-decoration: underline; }

/* Form */
.contact-form-wrap {
    background: white;
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 7px;
    letter-spacing: 0.3px;
}

.required { color: var(--pink); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
    background: var(--cream);
    transition: var(--transition);
    outline: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--pink);
    background: white;
    box-shadow: 0 0 0 3px var(--pink-glow);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

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

/* ==============================
   FOOTER
   ============================== */
.footer {
    background: #111111;
    color: rgba(255, 255, 255, 0.6);
    padding: 72px 0 36px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 52px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo .logo-cn { color: var(--pink-light); }
.footer-logo .logo-en { color: rgba(255,255,255,0.5); }
.footer-logo .logo-divider { color: rgba(255,255,255,0.2); }

.footer-tagline {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.4);
}

.footer-tagline .cn { font-family: 'Noto Serif SC', serif; }
.footer-tagline .en { font-family: 'Playfair Display', serif; font-style: italic; }

.footer-nav h5,
.footer-contact-quick h5 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 20px;
}

.footer-nav ul { list-style: none; }

.footer-nav ul li { margin-bottom: 10px; }

.footer-nav ul a,
.footer-contact-quick a {
    text-decoration: none;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
}

.footer-nav ul a:hover,
.footer-contact-quick a:hover { color: var(--pink-light); }

.footer-contact-quick p {
    font-size: 13px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.55);
}

.footer-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }

.footer-bottom a {
    text-decoration: none;
    color: rgba(255,255,255,0.3);
    transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--pink-light); }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .about-images { max-width: 540px; margin: 0 auto; }
    .img-accent { right: 0; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 32px; }

    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .section { padding: 90px 0; }
    .container { padding: 0 24px; }

    /* Nav mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 12px 16px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        gap: 2px;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 16px;
        border-radius: var(--radius);
    }

    .nav-links a small { margin-top: 0; }

    .nav-toggle { display: flex; }

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

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }

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

    .form-row { grid-template-columns: 1fr; }

    /* Stats */
    .stats { gap: 20px; }
    .stat-num { font-size: 30px; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 540px) {
    .features-grid { grid-template-columns: 1fr; }
    .feature { padding: 36px 28px; }

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

    .varieties-inner { gap: 8px; }
    .variety-tag { padding: 8px 14px; }
}
