/* ========================================
   YXWLED V5 CMS - Main Stylesheet (修复版)
   ======================================== */

/* CSS Variables */
:root {
    --color-bg-primary: #0A0A0A;
    --color-bg-card: #141414;
    --color-bg-light: #F7F9FC;
    --color-accent: #0066FF;
    --color-accent-hover: #FF6B00;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #A0A0A0;
    --color-border: #2A2A2A;
    --color-dark-text: #1A1A1A;
    --header-gradient: linear-gradient(135deg, #0a1628 0%, #1a2744 100%);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1440px;
    --content-width: 1200px;
    --border-radius: 20px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

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

.yxw-container-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.yxw-header {
    background: var(--header-gradient);
    border-bottom: 1px solid rgba(0, 102, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
}

.yxw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.yxw-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.yxw-logo-white {
    color: #FFFFFF;
}

.yxw-logo-blue {
    color: var(--color-accent);
}

/* Navigation */
.yxw-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.yxw-nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.yxw-nav-menu li {
    position: relative;
}

.yxw-nav-menu a {
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease;
}

.yxw-nav-menu a:hover {
    color: var(--color-accent);
}

/* Dropdown */
.yxw-nav-menu li:hover .yxw-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yxw-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
}

.yxw-dropdown li {
    padding: 0;
}

.yxw-dropdown a {
    padding: 10px 20px;
    font-size: 13px;
}

/* CTA Button */
.yxw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.yxw-btn-primary:hover {
    background-color: var(--color-accent-hover);
}

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

.yxw-btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Mobile Menu Toggle */
.yxw-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.yxw-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all 0.3s ease;
}

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

.yxw-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

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

.yxw-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.yxw-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.6);
    z-index: 1;
}

.yxw-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.yxw-hero-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.yxw-hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.yxw-hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.yxw-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.yxw-scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-secondary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */
.yxw-section {
    padding: 100px 0;
}

.yxw-section-dark {
    background-color: var(--color-bg-primary);
}

.yxw-section-light {
    background-color: var(--color-bg-light);
    color: var(--color-dark-text);
}

.yxw-section-white {
    background-color: #FFFFFF;
    color: var(--color-dark-text);
}

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

.yxw-section-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.yxw-section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.yxw-section-subtitle {
    font-size: 16px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.yxw-section-light .yxw-section-subtitle,
.yxw-section-white .yxw-section-subtitle {
    color: #666;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.yxw-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.yxw-about-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.yxw-about-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.yxw-about-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.yxw-about-card-text {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.yxw-about-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.yxw-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.yxw-product-card {
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yxw-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.yxw-product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-dark-text);
}

.yxw-product-specs {
    list-style: none;
    margin-bottom: 20px;
}

.yxw-product-specs li {
    font-size: 13px;
    color: #666;
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
}

.yxw-product-specs li:last-child {
    border-bottom: none;
}

.yxw-product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    transition: gap 0.3s ease;
}

.yxw-product-link:hover {
    gap: 12px;
}

.yxw-products-cta {
    text-align: center;
}

/* ========================================
   CASE STUDIES SECTION
   ======================================== */
.yxw-cases-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.yxw-case-tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-dark-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.yxw-case-tab:hover,
.yxw-case-tab.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
}

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

.yxw-case-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.yxw-case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.yxw-case-card:hover .yxw-case-image {
    transform: scale(1.05);
}

.yxw-case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.yxw-case-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.yxw-case-location {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.yxw-cases-cta {
    text-align: center;
    margin-top: 40px;
}

.yxw-cases-panel {
    display: none;
}

.yxw-cases-panel.active {
    display: block;
}

/* ========================================
   WHY YXWLED SECTION
   ======================================== */
.yxw-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.yxw-why-item {
    text-align: center;
    padding: 30px;
}

.yxw-why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border-radius: 12px;
    font-size: 24px;
}

.yxw-why-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* Workflow */
.yxw-workflow {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 60px;
}

.yxw-workflow-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 50px;
}

.yxw-workflow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.yxw-workflow-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.yxw-workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.yxw-workflow-circle {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.yxw-workflow-label {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    max-width: 120px;
}

.yxw-workflow-cta {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   CLIENTS SECTION
   ======================================== */
.yxw-clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.yxw-client-card {
    padding: 20px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.yxw-client-card:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ========================================
   BLOG SECTION
   ======================================== */
.yxw-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.yxw-blog-card {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.yxw-blog-card:hover {
    transform: translateY(-5px);
}

.yxw-blog-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.yxw-blog-content {
    padding: 24px;
}

.yxw-blog-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yxw-blog-excerpt {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.yxw-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.yxw-contact-form-wrapper {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
}

.yxw-form-group {
    margin-bottom: 20px;
}

.yxw-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

.yxw-form-input,
.yxw-form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.yxw-form-input:focus,
.yxw-form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

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

.yxw-contact-info-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.yxw-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.yxw-contact-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.yxw-contact-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.yxw-contact-details p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ========================================
   FOOTER
   ======================================== */
.yxw-footer {
    background: var(--color-bg-card);
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border);
}

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

.yxw-footer-brand {
    max-width: 300px;
}

.yxw-footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.yxw-footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.yxw-footer-links a {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

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

.yxw-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.yxw-footer-copyright {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* ========================================
   RESPONSIVE - MOBILE FIXES
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .yxw-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--header-gradient);
        flex-direction: column;
        padding: 40px 24px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .yxw-nav.active {
        transform: translateX(0);
    }
    
    .yxw-nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .yxw-nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .yxw-nav-menu a {
        padding: 16px 0;
        font-size: 18px;
    }
    
    .yxw-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding-left: 20px;
    }
    
    .yxw-mobile-toggle {
        display: flex;
    }
    
    .yxw-about-grid,
    .yxw-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .yxw-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .yxw-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .yxw-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .yxw-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .yxw-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .yxw-section {
        padding: 60px 0;
    }
    
    .yxw-hero {
        min-height: 500px;
        height: auto;
        padding: 120px 0 80px;
    }
    
    .yxw-hero-title {
        font-size: 32px;
    }
    
    .yxw-about-grid,
    .yxw-products-grid,
    .yxw-cases-grid,
    .yxw-blog-grid,
    .yxw-why-grid {
        grid-template-columns: 1fr;
    }
    
    .yxw-cases-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .yxw-case-tab {
        width: 100%;
        max-width: 300px;
    }
    
    .yxw-workflow {
        padding: 40px 24px;
    }
    
    .yxw-workflow-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .yxw-workflow-steps::before {
        display: none;
    }
    
    .yxw-clients-grid {
        gap: 12px;
    }
    
    .yxw-client-card {
        padding: 16px 24px;
        font-size: 12px;
    }
    
    .yxw-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .yxw-footer-brand {
        max-width: 100%;
    }
    
    .yxw-footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .yxw-contact-form-wrapper {
        padding: 30px 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .yxw-container {
        padding: 0 16px;
    }
    
    .yxw-hero-title {
        font-size: 28px;
    }
    
    .yxw-hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .yxw-hero-buttons .yxw-btn {
        width: 100%;
    }
    
    .yxw-about-card,
    .yxw-product-card {
        padding: 30px 20px;
    }
    
    .yxw-case-card {
        aspect-ratio: 16/10;
    }
}
