/* ========================================
   广东靛棉纺织有限公司 — 官网样式
   靛蓝为魂 · 棉纺为本
   ======================================== */

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

:root {
    /* 🟦 原牛色调 - Raw Denim Premium Palette */
    --denim-950: #0a0f1c;
    --denim-900: #0e1628;
    --denim-800: #141f3a;
    --denim-700: #1a2d50;
    --denim-600: #23406b;
    --denim-500: #2d5488;
    --denim-400: #3d6aa3;
    --denim-300: #5a85b8;
    --denim-100: #cddcec;
    --denim-50:  #e4edf6;
    /* 黄铜 accent — 呼应牛仔铆钉铜扣 */
    --brass:    #c49a3c;
    --brass-soft: #d4b06a;
    --brass-dark: #9e7a2e;
    --brass-light: #ead9b0;
    /* 牛仔橙线 */
    --orange-thread: #d4782b;
    /* 基础色 */
    --text-primary: #1a1a2e;
    --text-body: #3d3d50;
    --text-muted: #767688;
    --bg-light: #f4f5f8;
    --bg-card: #fafbfc;
    --bg-white: #ffffff;
    --border: #dce0e8;
    --border-light: #ebeef3;
    --shadow: 0 2px 16px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.10);
    --radius: 12px;
    --radius-sm: 6px;
    --transition: 0.3s ease;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --container: 1120px;
    --header-h: 72px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--denim-700);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--brass);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 8px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--denim-900);
    border-color: var(--denim-900);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20,31,58,0.4);
}

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

.btn-outline:hover {
    background: white;
    color: var(--denim-800);
}

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

.btn-accent:hover {
    background: var(--brass-dark);
    border-color: var(--brass-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196,154,60,0.3);
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    transition: var(--transition);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.logo-img {
    display: block;
    height: 45px;
    width: auto;
    flex-shrink: 0;
    border-radius: 4px;
}

.logo-text {
    font-size: 1rem;
    color: var(--denim-700);
    letter-spacing: 0.5px;
    font-weight: 700;
    line-height: 1.3;
}

.logo-text small {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.nav ul {
    display: flex;
    gap: 4px;
}

.nav a {
    display: block;
    padding: 8px 16px;
    font-size: 0.92rem;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.nav a:hover {
    color: var(--denim-700);
    background: var(--denim-50);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--denim-700);
    padding: 4px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #070b14 0%, var(--denim-950) 30%, var(--denim-800) 60%, var(--denim-700) 100%);
    overflow: hidden;
    padding: 0 24px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59,95,160,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(184,115,51,0.08) 0%, transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(255,255,255,0.02) 0%, transparent 40%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.015) 2px,
            rgba(255,255,255,0.015) 4px
        );
    pointer-events: none;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.hero-logo img {
    height: 110px;
    width: auto;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 720px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1rem;
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-highlights span {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
}

.hero-highlights span em {
    font-style: normal;
    color: var(--brass-soft);
}

.hero-content .btn + .btn {
    margin-left: 12px;
}

@media (max-width: 768px) {
    .hero-highlights {
        gap: 10px;
    }
    .hero-highlights span {
        font-size: 0.82rem;
        padding: 6px 14px;
    }
}

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

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

.about-text p {
    color: var(--text-body);
    margin-bottom: 16px;
    font-size: 0.98rem;
}

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

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--denim-700);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}



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

.product-family {
    margin-bottom: 40px;
}

.product-family:last-child {
    margin-bottom: 0;
}

.family-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--denim-700);
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--brass);
}

.spec-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.spec-table th {
    text-align: left;
    padding: 5px 4px;
    border-bottom: 1px solid var(--border);
    color: var(--denim-500);
    font-weight: 600;
    font-size: 0.78rem;
}

.spec-table td {
    padding: 4px 4px;
    border-bottom: 1px solid var(--border);
    color: var(--text-body);
}

.spec-table tr:last-child td {
    border-bottom: none;
}
.products { background: var(--bg-white); }

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

.product-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brass);
}

.product-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--denim-700);
    margin-bottom: 6px;
}

.product-spec {
    font-size: 0.85rem;
    color: var(--brass);
    font-weight: 600;
    margin-bottom: 12px;
}

.product-card p {
    color: var(--text-body);
    font-size: 0.92rem;
    line-height: 1.6;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.product-tags span {
    display: inline-block;
    padding: 3px 12px;
    background: var(--denim-50);
    color: var(--denim-500);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========================================
   BRANDS
   ======================================== */

.brands {
    background: var(--bg-white);
}

.brands-intro {
    text-align: center;
    color: var(--text-body);
    font-size: 0.98rem;
    max-width: 600px;
    margin: -24px auto 36px;
}

.brands-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.brand-item {
    flex: 0 0 140px;
}

.brand-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    min-height: 100px;
}

.brand-logo-placeholder:hover {
    border-color: var(--denim-400);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.brand-icon {
    font-size: 2rem;
}

.brand-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
}

.brands-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 28px;
}

@media (max-width: 600px) {
    .brand-item {
        flex: 0 0 100px;
    }
    .brand-logo-placeholder {
        padding: 16px 12px;
        min-height: 80px;
    }
}

/* ========================================
   PRODUCTION
   ======================================== */
.production {
    background: var(--bg-white);
}

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

.prod-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 28px 24px;
    border-left: 4px solid var(--denim-500);
}

.prod-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--denim-700);
    margin-bottom: 14px;
}

.prod-item ul li {
    color: var(--text-body);
    font-size: 0.92rem;
    padding: 5px 0;
    padding-left: 14px;
    position: relative;
}

.prod-item ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--brass);
}

/* ========================================
   GALLERY (about + factory)
   ======================================== */

/* About section images */
.about-image {
    width: 100%;
}

.about-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
    min-height: 360px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.about-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.about-img-main {
    grid-row: 1 / -1;
}

/* Factory gallery section */
.gallery {
    background: var(--bg-light);
}

.gallery .section-header h2 {
    color: var(--denim-700);
}

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

.gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-gallery {
        min-height: 280px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .about-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        min-height: auto;
    }
    .about-img-main {
        grid-row: auto;
    }
}

/* ========================================
   QUALITY
   ======================================== */
.quality {
    background: linear-gradient(135deg, var(--denim-950) 0%, var(--denim-700) 100%);
    color: white;
}

.quality .section-header h2 {
    color: white;
}

.quality .section-subtitle {
    color: rgba(255,255,255,0.6);
}

.quality-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.quality-item {
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 28px 24px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}

.quality-item:hover {
    border-color: var(--brass);
    transform: translateY(-2px);
}

.quality-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--brass-soft);
}

.quality-item p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

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

.contact .section-header h2 {
    color: var(--denim-700);
}

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

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-form {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-form h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--denim-700);
    margin-bottom: 20px;
}

.contact-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.contact-delivery h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--denim-700);
    margin-bottom: 14px;
}

.delivery-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

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

.delivery-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.delivery-value {
    font-size: 0.92rem;
    color: var(--text-primary);
}

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

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--denim-500);
    box-shadow: 0 0 0 3px var(--denim-50);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--denim-950);
    color: rgba(255,255,255,0.45);
    padding: 48px 0 32px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-logo img:hover {
    opacity: 0.9;
}

.footer-inner p {
    font-size: 0.85rem;
}

.footer-tagline {
    color: var(--brass);
    font-weight: 500;
    margin-top: 8px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .prod-grid { grid-template-columns: repeat(2, 1fr); }
    .quality-content { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-image { order: -1; }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 1.6rem; }

    .hero-content h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .hero-content .btn { display: block; width: 100%; }
    .hero-content .btn + .btn { margin-left: 0; margin-top: 12px; }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav.open { display: block; }

    .nav ul { flex-direction: column; padding: 8px; gap: 0; }

    .nav a {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }

    .nav-toggle { display: block; }

    .products-grid { grid-template-columns: 1fr; }
    .prod-grid { grid-template-columns: 1fr; }
    .quality-content { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .about-stats { gap: 16px; flex-wrap: wrap; }
    .stat { flex: 1; min-width: 80px; }
    .stat-num { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-content h1 { font-size: 1.6rem; }
    .logo-text { font-size: 0.9rem; }
}
