/* ============================================
   B2B Nail Tools Factory Website - Stylesheet
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary: #D4AF37;
    --secondary: #B8860B;
    --bg-main: #1A1E28;
    --bg-card: #1E222D;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --accent: #e6a6c7;
    --nav-bg: #12151C;
    --input-bg: #2A2F3C;
    --input-border: #3A3F4B;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing */
    --container-max: 1400px;
    --section-spacing: 80px;
    --section-spacing-mobile: 50px;
    --internal-spacing: 24px;
    
    /* Transitions */
    --transition: 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

/* Rounder strokes for icons */
svg, .icon {
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 36px;
    font-weight: 700;
}

h2 {
    font-size: 28px;
    font-weight: 600;
}

h3 {
    font-size: 22px;
    font-weight: 600;
}

h4 {
    font-size: 18px;
    font-weight: 500;
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--nav-bg);
    z-index: 1000;
    transition: background-color var(--transition);
}

.navbar.scrolled {
    background-color: rgba(18, 21, 28, 0.95);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
}

/* Language Switcher */
.lang-switcher {
    margin-left: 16px;
}

.lang-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: border-color var(--transition);
}

.lang-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

/* ===== Back To Top Button ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #12151C;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: #E8C850;
    transform: translateY(-3px);
}

/* Back to top button (alternative class name for compatibility) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: #1A1E28;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    font-size: 24px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background-color: #E8C850;
    transform: translateY(-3px);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--nav-bg);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #E8C850;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--nav-bg);
}

/* ===== Hero Section ===== */
.hero {
    margin-top: 80px;
    padding: var(--section-spacing) 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--internal-spacing);
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 16px 0 24px;
}

.hero-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== Section Titles ===== */
.section-title {
    text-align: center;
    margin-bottom: 48px;
    font-size: 36px;
    font-weight: 700;
}

/* ===== Advantages Section ===== */
.advantages {
    padding: var(--section-spacing) 0;
}

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

.advantage-card {
    background-color: #12151C;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.advantage-icon {
    width: 48px;
    height: 48px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
    margin-bottom: 20px;
}

.advantage-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.advantage-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Quick Quote Bar ===== */
.quick-quote-bar {
    padding: 80px 0;
    background: linear-gradient(135deg, #1E222D, #2A2F3C);
}

.quick-quote-content {
    text-align: center;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.quick-quote-content h3 {
    font-size: 24px;
    font-weight: 700;
}

.quick-quote-content p {
    color: var(--text-secondary);
}

.quick-quote-form {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 960px;
    margin-top: 8px;
}

.quick-quote-form input,
.quick-quote-form select {
    flex: 1;
    min-width: 0;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    transition: all var(--transition);
}

.quick-quote-form input:focus,
.quick-quote-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.quick-quote-form .btn {
    flex: 0 0 auto;
    padding: 12px 24px;
    white-space: nowrap;
}

.quick-quote-content .form-note {
    font-size: 14px;
    color: var(--text-secondary);
}

.quick-quote-content .form-note a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.quick-quote-content .form-note a:hover {
    color: var(--secondary);
}

/* ===== Products Page ===== */
.product-filter {
    padding: 40px 0;
    background-color: var(--bg-card);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-heading);
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--nav-bg);
    border-color: var(--primary);
}

.products-section {
    padding: var(--section-spacing) 0;
}

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

.product-card {
    background-color: #12151C;
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: var(--input-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 16px;
    background-color: var(--input-bg);
    display: block;
}

.product-name {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-desc {
    font-size: 14px;
    margin-bottom: 16px;
    min-height: 40px;
    color: var(--text-secondary);
    flex: 1;
}

/* ===== About Page ===== */
.about-hero {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-card);
}

.about-hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-text p {
    color: var(--text-secondary);
}

.about-highlight {
    background-color: var(--input-bg);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
}

.factory-gallery {
    padding: var(--section-spacing) 0;
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--input-bg);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.map-section {
    padding: var(--section-spacing) 0;
}

.map-container {
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--input-border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ===== Maps Section ===== */
.maps-section {
    padding: var(--section-spacing) 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.maps-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.map-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--input-border);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

.map-card h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 20px;
    text-align: center;
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    border: 1px solid var(--input-border);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.coordinates {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--input-border);
}

.coordinates p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
}

.coordinates strong {
    color: var(--text-primary);
    margin-right: 8px;
}

.copy-btn {
    margin-left: 12px;
    padding: 6px 16px;
    background-color: var(--primary);
    color: var(--nav-bg);
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.copy-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

/* ===== Team Section ===== */
.team-section {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-card);
}

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

.team-member {
    background-color: var(--bg-main);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--input-border);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
    transition: all var(--transition);
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.team-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: var(--input-bg);
    border: 3px solid var(--primary);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.team-member:hover .team-image img {
    transform: scale(1.05);
}

.team-name {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.team-role {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.team-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.lightbox-overlay.show {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

/* ===== OEM Page ===== */
.oem-intro {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-card);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 12px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    opacity: 0.6;
}

.timeline-step {
    position: relative;
    padding: 20px 20px 20px 56px;
    background: var(--bg-card);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
}

.timeline-step .step-number {
    position: absolute;
    left: 12px;
    top: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #12151C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.timeline-step h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-step p {
    margin: 0;
    color: var(--text-secondary);
}

.customization {
    padding: var(--section-spacing) 0;
}

.custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.custom-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--input-border);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
}

.custom-card h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.custom-card p {
    margin: 0;
    color: var(--text-secondary);
}

/* ===== Contact Page ===== */
.contact-section {
    padding: var(--section-spacing) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--input-border);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
}

.contact-card h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-card p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    font-size: 18px;
    cursor: pointer;
}

.social-icons a:hover {
    background: var(--primary);
    color: #12151C;
    transform: translateY(-2px) scale(1.05);
}

/* Social icon with tooltip */
.social-icon {
    position: relative;
}

/* Custom CSS tooltip using ::after pseudo-element */
.social-icon.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: #12151C;
    color: #E0E0E0;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #D4AF37;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease forwards;
    pointer-events: none;
}

/* Tooltip arrow using ::before pseudo-element */
.social-icon.tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border-width: 5px;
    border-style: solid;
    border-color: #D4AF37 transparent transparent transparent;
    z-index: 1001;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease forwards;
    pointer-events: none;
}

/* Fade in animation for tooltip */
@keyframes tooltipFadeIn {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.qr-section {
    padding: var(--section-spacing) 0;
}

.qr-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 32px;
    color: var(--text-secondary);
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.qr-card {
    background: var(--bg-card);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 16px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.qr-card h4 {
    margin: 0;
    color: var(--text-primary);
}

.qr-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--input-bg);
}

.qr-account {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== Product Categories Section ===== */
.product-categories {
    padding: var(--section-spacing) 0;
}

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

.category-card {
    background-color: #12151C;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.category-image {
    width: 100%;
    height: 60%;
    overflow: hidden;
    background-color: var(--input-bg);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.category-title {
    padding: 20px 20px 8px;
    font-size: 20px;
    margin: 0;
}

.category-desc {
    padding: 0 20px;
    font-size: 14px;
    color: var(--text-secondary);
    flex-grow: 1;
}

.category-card .btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* ===== Factory Strength Section ===== */
.factory-strength {
    padding: var(--section-spacing) 0;
}

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

.factory-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.factory-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.factory-features {
    list-style: none;
    margin-top: 16px;
}

.factory-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.factory-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

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

.factory-img-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: var(--input-bg);
}

.factory-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.factory-img-item:hover img {
    transform: scale(1.05);
}

/* ===== Factory Section ===== */
.factory-section {
    padding: var(--section-spacing) 0;
}

.factory-section .factory-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.factory-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: transform var(--transition);
}

.factory-img:hover {
    transform: scale(1.02);
}

/* ===== About Page Additional Styles ===== */
.about-hero-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.about-factory {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-card);
}

.about-factory .factory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-factory .factory-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.about-team {
    text-align: center;
    margin-bottom: 32px;
}

.team-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.map-img-wrapper {
    margin-top: 32px;
    text-align: center;
}

.map-img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* ===== Contact Page Styles ===== */
.contact-hero {
    margin-top: 80px;
    padding: var(--section-spacing) 0;
    background-color: var(--bg-card);
}

.contact-hero-img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.contact-form-img {
    margin-top: 32px;
    text-align: center;
}

.form-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* ===== OEM Page Styles ===== */
.oem-hero-img {
    margin-top: 32px;
    text-align: center;
}

.oem-img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.custom-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    background-color: var(--input-bg);
}

/* ===== Inquiry Section ===== */
.inquiry {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-card);
}

.inquiry-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.inquiry-form {
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

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

.inquiry-form .btn {
    width: 100%;
    margin-top: 8px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--nav-bg);
    padding: 60px 0 20px;
    margin-top: var(--section-spacing);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary);
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-heading {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: var(--input-bg);
    border-radius: 4px;
    text-align: center;
    line-height: 36px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: all var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--nav-bg);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--input-border);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Lazy Loading ===== */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* ===== Responsive Design ===== */

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .nav-link {
        font-size: 14px;
        padding: 0 8px;
        color: var(--text-secondary);
    }
}

@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        gap: 32px;
    }
    
    .factory-content {
        gap: 32px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-quote-form {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-quote-form .btn {
        width: 100%;
    }

    .about-hero .container {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-step {
        padding: 20px 20px 20px 52px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    /* Navigation */
    .navbar {
        height: 60px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--nav-bg);
        width: 100%;
        text-align: center;
        transition: left var(--transition);
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero */
    .hero {
        margin-top: 60px;
        padding: var(--section-spacing-mobile) 0;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    /* Sections */
    .advantages,
    .product-categories,
    .factory-strength,
    .inquiry {
        padding: var(--section-spacing-mobile) 0;
    }

    .quick-quote-bar {
        padding: 40px 0;
    }

    .products-section,
    .factory-gallery,
    .map-section,
    .maps-section,
    .team-section,
    .oem-intro,
    .customization,
    .contact-section,
    .qr-section {
        padding: var(--section-spacing-mobile) 0;
    }

    .qr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .factory-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .factory-grid {
        grid-template-columns: 1fr;
    }
    
    .maps-container {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coordinates p {
        font-size: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .copy-btn {
        margin-left: 0;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Sourcing Page Styles ===== */
.sourcing-hero {
    margin-top: 80px;
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, #1E222D, #2A2F3C);
    text-align: center;
}

.sourcing-hero .hero-title {
    font-size: 42px;
    margin-bottom: 16px;
}

.sourcing-hero .hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.sourcing-advantages {
    padding: var(--section-spacing) 0;
}

.sourcing-categories {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-card);
}

.sourcing-process {
    padding: var(--section-spacing) 0;
}

.sourcing-form-section {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-card);
}

/* ===== Media Page Styles ===== */
.media-hero {
    margin-top: 80px;
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, #1E222D, #2A2F3C);
    text-align: center;
}

.media-hero .hero-title {
    font-size: 42px;
    margin-bottom: 16px;
}

.media-hero .hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.video-grid-section {
    padding: var(--section-spacing) 0;
}

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

.video-card {
    background-color: #12151C;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--input-border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: var(--input-bg);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    opacity: 0.9;
    transition: all var(--transition);
}

.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.video-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.platform-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.video-date {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    background-color: #12151C;
    border-radius: 8px;
    padding: 20px;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #FFFFFF;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: color var(--transition);
}

.video-modal-close:hover {
    color: var(--primary);
}

.video-thumbnail {
    width: 100%;
    height: 225px;
    object-fit: cover;
}

.platform-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--primary);
    color: #12151C;
    font-size: 12px;
    border-radius: 4px;
    margin: 8px 0;
    font-weight: 500;
}

.video-date {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
}

.video-modal-content iframe {
    width: 100%;
    height: 500px;
    border-radius: 4px;
}

.social-guide-section {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-card);
    text-align: center;
}

.social-icons-large {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.social-icon-large {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--input-bg);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition);
    border: 2px solid var(--input-border);
}

.social-icon-large:hover {
    background-color: var(--primary);
    color: var(--nav-bg);
    transform: translateY(-4px) scale(1.1);
    border-color: var(--primary);
}

.social-icon-large svg {
    width: 32px;
    height: 32px;
}

/* ===== FAQ Page Styles ===== */
.faq-hero {
    margin-top: 80px;
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, #1E222D, #2A2F3C);
    text-align: center;
}

.faq-hero .hero-title {
    font-size: 42px;
    margin-bottom: 16px;
}

.faq-hero .hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.faq-section {
    padding: var(--section-spacing) 0;
}

.faq-category {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin: 32px 0 16px;
}

.faq-category:first-child {
    margin-top: 0;
}

.faq-item {
    background-color: #12151C;
    border-radius: 8px;
    margin: 8px 0;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.rotate-180 {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    font-size: 14px;
    color: #E0E0E0;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 16px;
}

.faq-answer p {
    margin: 0;
}

.faq-cta-section {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-card);
    text-align: center;
}

.faq-cta-section p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Responsive adjustments for new pages */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sourcing-hero .hero-title,
    .media-hero .hero-title,
    .faq-hero .hero-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .sourcing-hero,
    .media-hero,
    .faq-hero {
        margin-top: 60px;
        padding: var(--section-spacing-mobile) 0;
    }
    
    .sourcing-hero .hero-title,
    .media-hero .hero-title,
    .faq-hero .hero-title {
        font-size: 28px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-modal-content {
        padding: 10px;
    }
    
    .video-modal-content iframe {
        height: 300px;
    }
    
    .social-icons-large {
        gap: 16px;
    }
    
    .social-icon-large {
        width: 56px;
        height: 56px;
    }
    
    .social-icon-large svg {
        width: 28px;
        height: 28px;
    }
    
    .faq-category {
        font-size: 20px;
        margin: 32px 0 16px;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 16px;
    }
}

/* ===== Trust Details Highlight ===== */
.highlight-accent {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Form Loading State ===== */
.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Copy Toast Notification ===== */
.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #12151C;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
}

/* ===== Copy Button Cursor ===== */
.copy-btn {
    cursor: pointer;
}

/* ===== Interactive Elements Hover Feedback ===== */
.btn,
.product-card,
.category-card,
.advantage-card,
.video-card,
.faq-question,
.team-member,
.map-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Products页面图片样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}
.product-card {
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
}
.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
}

/* OEM页面图片样式 */
.oem-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Index页面advantage图片样式 */
.advantage-section {
    display: flex;
    gap: 15px;
    padding: 20px;
    flex-wrap: wrap;
}
.advantage-item {
    width: 23%;
    text-align: center;
}
.advantage-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
/* Index页面其他图片样式（修复太大问题） */
.index-factory-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}
.index-product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
/* 视频分类页通用样式 */
.video-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  .video-page h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
  }
  /* Video list pages (youtube/tiktok/instagram) */
  #youtube-video-list,
  #tiktok-video-list,
  #instagram-video-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  @media (max-width: 1024px) {
    #youtube-video-list,
    #tiktok-video-list,
    #instagram-video-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    #youtube-video-list,
    #tiktok-video-list,
    #instagram-video-list {
      grid-template-columns: 1fr;
    }
  }
  
  .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
  }
  .video-item {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: #fff;
  }
  .video-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
  }
  .video-embed {
    width: 100%;
    height: 200px; /* 自适应高度 */
    border: none;
    border-radius: 4px;
  }
  /* 首页视频入口样式 */
  .video-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
    margin: 20px 0;
  }
  .video-link-btn {
    padding: 12px 24px;
    background: #2c8;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
  }
  .video-link-btn:hover {
    background: #2a7;
  }
