/* ========================================
   Ray-Sensor Visual IP Upgrade Stylesheet
   视觉IP化升级样式表
   ======================================== */

/* ========================================
   1. CSS Variables - Brand Color System
   ======================================== */
:root {
    /* Brand Colors */
    --ip-navy: #0A1F44;
    --ip-deep-navy: #07152E;
    --ip-signal-cyan: #00E5FF;
    --ip-tech-green: #00C48C;
    --ip-soft-white: #F6F8FC;
    --ip-border-gray: #DCE4F2;
    --ip-text-dark: #14233D;
    --ip-text-light: rgba(255, 255, 255, 0.84);
    
    /* Extended Colors */
    --ip-cyan-light: #7FEFFF;
    --ip-cyan-glow: rgba(0, 229, 255, 0.18);
    --ip-navy-overlay: rgba(10, 31, 68, 0.05);
    
    /* Shadows */
    --ip-shadow-card: 0 12px 28px rgba(11, 31, 68, 0.06);
    --ip-shadow-card-hover: 0 20px 40px rgba(11, 31, 68, 0.12);
    --ip-shadow-table: 0 14px 36px rgba(10, 31, 68, 0.05);
    --ip-shadow-button: 0 10px 30px rgba(0, 229, 255, 0.18);
    
    /* Borders */
    --ip-border-radius-card: 12px;
    --ip-border-radius-button: 8px;
    --ip-border-radius-tag: 999px;
}

/* ========================================
   2. Global Reset & Base Styles
   ======================================== */
body {
    color: var(--ip-text-dark);
}

/* ========================================
   3. Hero Section - IP Style
   ======================================== */
.hero-section,
.page-hero,
.case-hero {
    background: linear-gradient(135deg, var(--ip-navy) 0%, #163D73 100%);
    min-height: 560px;
    position: relative;
    overflow: hidden;
}

/* Fiber Wave Background */
.hero-section::before,
.page-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url('../assets/visual-ip/fiber-wave.svg');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    opacity: 0.6;
    animation: fiberWave 6s infinite ease-in-out;
    pointer-events: none;
}

/* Bragg Stripe Overlay */
.hero-section::after,
.page-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 200px;
    background-image: url('../assets/visual-ip/bragg-stripe.svg');
    background-repeat: repeat-x;
    background-position: center;
    transform: translateY(-50%);
    opacity: 0.15;
    pointer-events: none;
}

@keyframes fiberWave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(15px); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.hero-section h1,
.page-hero h1,
.case-hero h1 {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section .hero-subtitle,
.page-hero p,
.case-hero .case-title-cn {
    color: rgba(255, 255, 255, 0.86);
}

/* Hero Tag/Badge */
.hero-tag,
.case-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.45);
    border-radius: var(--ip-border-radius-tag);
    color: var(--ip-cyan-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Section Divider */
.hero-section + section::before,
.page-hero + section::before {
    content: '';
    display: block;
    height: 3px;
    background-image: url('../assets/visual-ip/section-divider.svg');
    background-repeat: repeat-x;
    background-position: center;
}

/* ========================================
   4. Button System - IP Style
   ======================================== */

/* Primary Button */
.btn-primary,
.button-primary,
.hero-section .btn-primary,
.case-cta .btn-case-primary {
    background: linear-gradient(135deg, #00D7FF 0%, #00B8FF 100%);
    color: var(--ip-deep-navy);
    border: none;
    border-radius: var(--ip-border-radius-button);
    padding: 14px 28px;
    font-weight: 600;
    box-shadow: var(--ip-shadow-button);
    transition: all 0.3s ease;
}

.btn-primary:hover,
.button-primary:hover,
.hero-section .btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 14px 36px rgba(0, 229, 255, 0.25);
}

/* Secondary Button */
.btn-secondary,
.button-secondary,
.hero-section .btn-secondary,
.case-cta .btn-case-secondary {
    background: transparent;
    color: #EAFBFF;
    border: 1px solid rgba(0, 229, 255, 0.7);
    border-radius: var(--ip-border-radius-button);
    padding: 14px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
.button-secondary:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: var(--ip-signal-cyan);
    color: var(--ip-signal-cyan);
}

/* ========================================
   5. Product Cards - IP Style
   ======================================== */
.product-card,
.model-card,
.feature-card {
    background: #fff;
    border: 1px solid var(--ip-border-gray);
    border-radius: var(--ip-border-radius-card);
    box-shadow: var(--ip-shadow-card);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

/* Card Top Line */
.product-card::before,
.model-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ip-signal-cyan), var(--ip-tech-green));
    z-index: 1;
}

.product-card:hover,
.model-card:hover,
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ip-shadow-card-hover);
}

.product-card:hover::before,
.model-card:hover::before,
.feature-card:hover::before {
    filter: brightness(1.2);
}

/* Card Title */
.product-card h3,
.model-card h3,
.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ip-navy);
}

/* Parameter Labels */
.product-card .param-label,
.model-card .spec-label,
.feature-card .feature-label {
    color: #1178D1;
    font-weight: 600;
    font-size: 13px;
}

.product-card .param-value,
.model-card .spec-value {
    color: #31415F;
}

/* ========================================
   6. Technical Specifications - IP Style
   ======================================== */
.specifications-section,
.tech-specs-section {
    background: #F7F9FC;
    padding: 60px 0;
}

.spec-table-container,
.table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--ip-shadow-table);
    overflow: hidden;
}

/* Tab Buttons */
.spec-tabs .tab-button,
.model-tabs .tab-btn {
    background: #E8ECF2;
    color: var(--ip-navy);
    border: none;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.spec-tabs .tab-button.active,
.model-tabs .tab-btn.active,
.spec-tabs .tab-button:hover,
.model-tabs .tab-btn:hover {
    background: var(--ip-signal-cyan);
    color: var(--ip-deep-navy);
}

/* Table Header */
.spec-table thead,
.data-table thead {
    background: #F0F5FD;
}

.spec-table th,
.data-table th {
    font-weight: 600;
    color: var(--ip-navy);
    padding: 16px;
}

/* Table Rows */
.spec-table td,
.data-table td {
    padding: 14px 16px;
    color: #31415F;
}

.spec-table tbody tr:hover,
.data-table tbody tr:hover {
    background: rgba(0, 229, 255, 0.035);
}

/* ========================================
   7. Applications Section - IP Style
   ======================================== */
.applications-section,
.use-cases-section {
    background: var(--ip-soft-white);
}

.app-card,
.application-card {
    background: #fff;
    border: 1px solid var(--ip-border-gray);
    border-radius: var(--ip-border-radius-card);
    box-shadow: 0 8px 20px rgba(11, 31, 68, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-card::before,
.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ip-signal-cyan), var(--ip-tech-green));
}

/* Sensing Node Icon */
.app-card::after,
.application-card::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background-image: url('../assets/visual-ip/sensing-node.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    animation: nodePulse 2.8s infinite;
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.app-card h3,
.application-card h3 {
    color: var(--ip-navy);
    font-weight: 600;
}

.app-card p,
.application-card p {
    color: #5A6783;
}

/* Application Icons - IP Blue */
.app-icon,
.application-icon {
    color: #00BFEF;
}

.app-icon svg,
.application-icon svg {
    stroke: #00BFEF;
}

/* Remove Red/Orange Icons */
.app-card .icon-red,
.application-card .icon-orange,
.app-card .text-red,
.application-card .text-orange {
    color: #00BFEF !important;
    fill: #00BFEF !important;
    stroke: #00BFEF !important;
}

/* ========================================
   8. Footer - IP Style
   ======================================== */
.site-footer,
.footer-section {
    background: linear-gradient(180deg, var(--ip-navy) 0%, var(--ip-deep-navy) 100%);
    position: relative;
    overflow: hidden;
}

/* Structure Grid Overlay */
.site-footer::before,
.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/visual-ip/structure-grid.svg');
    background-repeat: repeat;
    background-size: 60px 60px;
    opacity: 0.08;
    pointer-events: none;
}

/* Footer Content */
.site-footer .footer-content,
.footer-section .footer-inner {
    position: relative;
    z-index: 1;
}

/* Footer Column Titles */
.site-footer h4,
.site-footer .footer-title,
.footer-section h4 {
    color: #EAF6FF;
    font-weight: 600;
}

/* Footer Links */
.site-footer a,
.footer-section a {
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s ease;
}

.site-footer a:hover,
.footer-section a:hover {
    color: var(--ip-signal-cyan);
}

/* Footer Logo Tagline */
.site-footer .footer-brand p,
.footer-section .brand-tagline {
    color: rgba(255, 255, 255, 0.72);
    font-style: italic;
}

/* ========================================
   9. Navigation - IP Style Enhancement
   ======================================== */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ip-border-gray);
}

.primary-menu > li > a {
    color: var(--ip-text-dark);
    font-weight: 600;
}

.primary-menu > li:hover > a {
    color: var(--ip-signal-cyan);
}

/* Dropdown Menu */
.primary-menu .sub-menu {
    background: #fff;
    border: 1px solid var(--ip-border-gray);
    border-radius: var(--ip-border-radius-card);
    box-shadow: var(--ip-shadow-card);
}

.primary-menu .sub-menu a {
    color: var(--ip-text-dark);
}

.primary-menu .sub-menu a:hover {
    color: var(--ip-signal-cyan);
    background: rgba(0, 229, 255, 0.06);
}

/* ========================================
   10. Section Titles - IP Style
   ======================================== */
.section-title,
.page-title {
    color: var(--ip-navy);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after,
.page-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--ip-signal-cyan), var(--ip-tech-green));
    border-radius: 2px;
}

.section-subtitle {
    color: #5A6783;
}

/* ========================================
   11. CTA Section - IP Style
   ======================================== */
.case-cta {
    background: linear-gradient(135deg, #F0F7FF 0%, #E8F4FF 100%);
    position: relative;
    overflow: hidden;
}

.case-cta::before {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background-image: url('../assets/visual-ip/sensing-node.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
}

/* ========================================
   12. Case Study Cards - IP Style
   ======================================== */
.case-card,
.study-card {
    background: #fff;
    border: 1px solid var(--ip-border-gray);
    border-radius: var(--ip-border-radius-card);
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-card:hover,
.study-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ip-shadow-card-hover);
}

.case-card .case-image,
.study-card .study-image {
    position: relative;
    overflow: hidden;
}

.case-card .case-image::after,
.study-card .study-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ip-signal-cyan), var(--ip-tech-green));
}

/* ========================================
   13. Highlight Cards - IP Style
   ======================================== */
.highlight-card {
    background: #fff;
    border: 1px solid var(--ip-border-gray);
    border-radius: var(--ip-border-radius-card);
    position: relative;
    transition: all 0.3s ease;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ip-signal-cyan), var(--ip-tech-green));
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ip-shadow-card-hover);
}

.highlight-icon {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(0, 196, 140, 0.08));
    color: var(--ip-signal-cyan);
}

.highlight-card h3 {
    color: var(--ip-navy);
}

.highlight-card p {
    color: #5A6783;
}

/* ========================================
   14. Meta Tags & Badges - IP Style
   ======================================== */
.meta-tag,
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.45);
    border-radius: var(--ip-border-radius-tag);
    color: var(--ip-cyan-light);
    font-size: 12px;
    font-weight: 600;
}

/* ========================================
   15. Mobile Responsive
   ======================================== */
@media screen and (max-width: 767px) {
    /* Hero Adjustments */
    .hero-section,
    .page-hero {
        min-height: 480px;
    }
    
    .hero-section::before,
    .page-hero::before {
        width: 100%;
        opacity: 0.3;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    /* Button Stack */
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    /* Cards Grid */
    .product-grid,
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    /* Table Scroll */
    .spec-table-container,
    .table-container {
        overflow-x: auto;
    }
    
    /* Footer */
    .site-footer .footer-grid,
    .footer-section .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 480px) {
    .site-footer .footer-grid,
    .footer-section .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   16. Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before,
    .page-hero::before,
    .app-card::after,
    .application-card::after {
        animation: none;
    }
    
    .product-card,
    .model-card,
    .app-card,
    .case-card,
    .highlight-card {
        transition: none;
    }
}

/* ========================================
   17. Loading Animation
   ======================================== */
.ip-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ip-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.ip-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.ip-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 229, 255, 0.2);
    border-top-color: var(--ip-signal-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
