/* ========================================
   金华市三同涂装设备有限公司官网 - 全局样式
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #0066FF;
    --color-primary-gradient: linear-gradient(135deg, #0066FF 0%, #00CCFF 100%);
    --color-secondary: #C0C8D4;
    --color-secondary-gradient: linear-gradient(135deg, #C0C8D4 0%, #E8ECF0 100%);
    --color-accent: #00CCFF;
    --color-bg: #FFFFFF;
    --color-surface: #F7F8FA;
    --color-surface-dark: #EEF0F4;
    --color-text: #1A1D23;
    --color-muted: #6B7280;
    --color-border: #E5E7EB;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    
    --font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    
    --container-max: 1400px;
    --section-padding: 100px;
    --section-padding-mobile: 60px;
    
    --radius-card: 12px;
    --radius-button: 8px;
    --radius-input: 8px;
    
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 32px rgba(0, 102, 255, 0.12);
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease-out;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Typography */
.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 20px;
}

.section-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-muted);
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.gradient-text {
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 14px 28px;
    border-radius: var(--radius-button);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary-gradient);
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: #FFFFFF;
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
    background: transparent;
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #FFFFFF;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 80px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    grid-column: 1;
    justify-self: start;
}

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

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    grid-column: 2;
}

.nav-link {
    font-size: 17px;
    font-weight: 500;
    color: var(--color-muted);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-gradient);
    border-radius: 1px;
    transition: width var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    grid-column: 3;
    justify-self: end;
}

[ctype="languages"] {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    max-width: min(100%, 1350px);
    overflow: visible;
    margin-right: 135px;
}

[ctype="languages"] > * {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    max-width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    grid-column: 3;
    justify-self: end;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all var(--transition-base);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    z-index: 1001;
    padding: 80px 24px 24px;
    transition: right var(--transition-base);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

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

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Hero Section
   ======================================== */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 30, 80, 0.85) 0%, rgba(0, 60, 120, 0.7) 50%, rgba(0, 100, 160, 0.6) 100%);
}

.hero-content {
    padding: 140px 0 100px;
    max-width: 720px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 560px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   About Brief Section
   ======================================== */
.section-about-brief {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

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

.about-brief-content .section-title {
    text-align: left;
}

.about-brief-content .section-text {
    margin-bottom: 20px;
}

.about-brief-content .btn {
    margin-top: 12px;
}

.about-brief-image {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.about-brief-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-card);
}

.about-brief-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 16px 24px;
    border-radius: var(--radius-button);
    box-shadow: var(--shadow-card);
}

.badge-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-text {
    font-size: 14px;
    color: var(--color-muted);
}

/* ========================================
   Services Section
   ======================================== */
.section-services {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
}

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

.service-card {
    background: var(--color-bg);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

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

.service-card-image {
    height: 180px;
    overflow: hidden;
}

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

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

.service-card-content {
    padding: 24px;
}

.service-card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.service-card-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-muted);
    margin-bottom: 16px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    transition: gap var(--transition-fast);
}

.service-card-link:hover {
    gap: 10px;
}

/* ========================================
   Advantages Section - 电路板连线风格
   ======================================== */
.section-advantages {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.section-advantages::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.circuit-board {
    position: relative;
    z-index: 1;
}

.circuit-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    height: auto;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.advantages-circuit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.circuit-advantage-card {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 16px;
    padding: 40px 24px 32px;
    text-align: center;
    transition: all var(--transition-base);
}

.circuit-advantage-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 102, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.12);
}

.circuit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 204, 255, 0.08) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.circuit-advantage-card:hover .circuit-icon {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.12) 0%, rgba(0, 204, 255, 0.12) 100%);
    transform: scale(1.05);
}

.circuit-advantage-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.circuit-advantage-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-muted);
}

/* ========================================
   Workshop Section
   ======================================== */
.section-workshop {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
}

.workshop-text {
    max-width: 560px;
    margin: 0 auto 48px;
    text-align: center;
}

.workshop-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 40px;
}

.workshop-item {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.workshop-item-large {
    grid-column: 1 / -1;
}

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

.workshop-item-large img {
    aspect-ratio: 21/9;
}

.workshop-item:not(.workshop-item-large) img {
    aspect-ratio: 16/9;
}

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

.workshop-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
}

.workshop-cta {
    text-align: center;
}

/* ========================================
   Final CTA Section
   ======================================== */
.section-final-cta {
    padding: 100px 0;
    background: var(--color-primary-gradient);
    position: relative;
    overflow: hidden;
}

.section-final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.section-final-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.footer h4 {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-nav ul,
.footer-contact-info ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a,
.footer-contact-info li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: #FFFFFF;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-info svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }
    
    .header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 16px;
    }
    
    .nav {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    [ctype="languages"] {
        grid-column: 2;
        justify-self: center;
        margin-right: 0;
    }
    
    .hamburger {
        display: flex;
        grid-column: 3;
        justify-self: end;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .about-brief-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-brief-content .section-title {
        text-align: center;
    }
    
    .about-brief-content {
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-circuit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .hero-content {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-circuit-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .circuit-lines {
        display: none;
    }
    
    .circuit-advantage-card {
        padding: 32px 20px 28px;
    }
    
    .workshop-gallery {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 26px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
