/* WaveEcho Website Styles - Enhanced Version */
/* Engineering-focused, minimal, professional design with refined details */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333;
    --accent-color: #e31e24;
    --accent-hover: #c01a1f;
    --accent-light: rgba(227, 30, 36, 0.1);
    --text-color: #222;
    --text-light: #666;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #ddd;
    --max-width: 1200px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--background);
}

img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

a {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}

/* Text Selection */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

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

/* Navigation */
.navbar {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

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

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 1px solid transparent;
}

.lang-btn .lang-name {
    font-size: 0.85rem;
    display: inline;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

/* Flag Icons */
.flag {
    display: inline-block;
    width: 20px;
    height: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0,0,0,0.3);
}

.flag-en {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCA0MCI+PHBhdGggZmlsbD0iIzAxMjE2OSIgZD0iTTAgMGg2MHY0MEgweiIvPjxwYXRoIGQ9Ik0wIDBoNjB2NGgtNjB6bTAgOGg2MHY0aC02MHptMCA4aDYwdjRoLTYwem0wIDhoNjB2NGgtNjB6bTAgOGg2MHY0aC02MHoiIGZpbGw9IiNmZmYiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDI4djI0SDB6Ii8+PHBhdGggZD0iTTI4IDBoLTR2MjRoNHptLTggMGgtNHYyNGg0em0tOCAwaC00djI0aDR6bS04IDBoLTR2MjRoNHoiIGZpbGw9IiNjODEwMmUiLz48cGF0aCBkPSJNMCAyMGgyOHY0SDB6bTAgOGgyOHY0SDB6bTAgOGgyOHY0SDB6IiBmaWxsPSIjYzgxMDJlIi8+PC9zdmc+');
}

.flag-zh {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5MCA2MCI+PHBhdGggZmlsbD0iI2RlMjkxMCIgZD0iTTAgMGg5MHY2MEgweiIvPjxwYXRoIGZpbGw9IiNmZmRlMDAiIGQ9Ik0xNSAxMGw0LjMzIDEzLjMzTDYuNSAxNS40bDEwLjgzIDcuOTNMNi41IDMxLjI2bDEyLjgzLTguMDZ6Ii8+PHBhdGggZmlsbD0iI2ZmZGUwMCIgZD0iTTMyIDZsMS40IDQuMy00LjEtMi45IDQuMSAyLjktMS40LTQuM3ptNS43IDEwbDEuNCA0LjMtNC4xLTIuOSA0LjEgMi45LTEuNC00LjN6bS0yLjcgMTNsMS40IDQuMy00LjEtMi45IDQuMSAyLjktMS40LTQuM3ptLTggNWwxLjQgNC4zLTQuMS0yLjkgNC4xIDIuOS0xLjQtNC4zeiIvPjwvc3ZnPg==');
}

.menu-toggle {
    display: none;
}

/* Logo Styles */
.nav-brand .logo {
    height: 40px;
    width: auto;
    display: block;
    filter: brightness(1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.nav-brand .logo:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.hero-logo {
    margin-bottom: 2rem;
    text-align: center;
}

.hero-logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../images/bg_hero.png') center/cover no-repeat;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.hero-headline {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subheadline {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sections */
.section {
    padding: 4rem 0;
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section.bg-light {
    background: var(--background-light);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.section-conclusion,
.section-statement,
.section-summary {
    font-size: 1.05rem;
    margin: 1rem 0;
    color: var(--text-color);
}

.section-description {
    margin: 1rem 0;
}

/* Challenge Section */
.challenge-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.challenge-point {
    padding: 1rem;
    background: var(--background-light);
    border-left: 3px solid var(--accent-color);
    border-radius: 0 4px 4px 0;
}

/* Tri-Spectrum */
.tri-spectrum {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.spectrum-item {
    padding: 2rem;
    background: white;
    border-top: 3px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spectrum-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.spectrum-item h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Lists */
.feature-list,
.application-list,
.principle-list,
.point-list,
.principles-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li,
.application-list li,
.principle-list li,
.point-list li,
.principles-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before,
.application-list li:before,
.principle-list li:before,
.point-list li:before,
.principles-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2em;
    font-weight: bold;
}

/* Product Platforms */
.product-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.platform {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.platform:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.platform h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.platform-subtitle,
.platform-application,
.platform-conclusion {
    color: var(--text-light);
    margin: 1rem 0;
}

.platform-features {
    list-style: none;
    margin: 1.5rem 0;
}

.platform-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.platform-features li:before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Service Grid */
.service-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-item,
.service-card {
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-item:hover,
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-item h3,
.service-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.service-conclusion {
    margin-top: 2rem;
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.solution-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--accent-light);
}

.solution-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.solution-note {
    margin-top: 2rem;
}

/* Closing Section */
.closing-values,
.values {
    margin: 2rem 0;
}

.closing-values .value,
.value-item {
    font-size: 1.2rem;
    margin: 1rem 0;
    font-weight: 500;
    color: var(--primary-color);
}

/* Page Header */
.page-header {
    background: var(--background-light);
    padding: 3rem 0;
    border-bottom: 3px solid var(--accent-color);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.page-intro {
    font-size: 1.15rem;
    color: var(--text-light);
}

/* Blockquote */
blockquote.principle {
    font-size: 1.2rem;
    font-style: italic;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 2rem 0;
    border-left: 5px solid var(--accent-color);
    background: linear-gradient(to right, var(--accent-light), transparent);
    border-radius: 0 8px 8px 0;
    position: relative;
}

blockquote.principle::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Content */
.content {
    max-width: 900px;
}

.intro {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.statement {
    margin: 1rem 0;
    font-size: 1.05rem;
}

/* System Types */
.system-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.type-item {
    padding: 1rem;
    background: var(--background-light);
    text-align: center;
    border-radius: 6px;
    font-weight: 500;
}

/* Product Detail */
.product-detail {
    max-width: 900px;
    margin: 0 auto;
}

.subtitle {
    color: var(--text-light);
    margin: 1rem 0;
}

.application-note,
.conclusion-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--accent-light);
    border-left: 3px solid var(--accent-color);
    border-radius: 0 4px 4px 0;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
    position: relative;
    display: inline-block;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: left;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .language-switcher {
        margin-top: 1rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        position: absolute;
        right: 20px;
        top: 1rem;
    }
    
    .nav-brand .logo {
        height: 32px;
    }
    
    .hero-logo-img {
        height: 60px;
    }
    
    .lang-btn .lang-name {
        display: none;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-subheadline {
        font-size: 1rem;
    }
    
    .product-platforms,
    .tri-spectrum {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .product-platforms {
        grid-template-columns: 1fr;
    }
}

/* Desktop - hide menu toggle */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}