/* ===================================
   宇達光學官網主樣式表
   =================================== */

/* ===================================
   1. CSS Variables & Reset
   =================================== */
:root {
    /* Colors */
    --primary-blue: #00A3E0;
    --secondary-blue: #1E90FF;
    --dark-blue: #003D82;
    --light-blue: #E6F7FF;
    --white: #FFFFFF;
    --dark-gray: #333333;
    --gray: #666666;
    --light-gray: #F5F5F5;
    --accent-red: #FF4444;

    /* Fonts */
    --font-zh: 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif;
    --font-en: 'Segoe UI', 'Roboto', 'Arial', sans-serif;

    /* Spacing */
    --section-padding: 80px;
    --content-padding: 40px;
    --element-margin: 20px;

    /* Container */
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-zh);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   2. Typography
   =================================== */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-blue);
}

/* ===================================
   3. Layout Utilities
   =================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-blue);
    font-size: 2.5rem;
}

.section-title .title-sub {
    display: block;
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 400;
    margin-top: 10px;
}

.subsection-title {
    color: var(--dark-blue);
    margin-bottom: 30px;
    margin-top: 50px;
    font-size: 1.8rem;
}

/* ===================================
   4. Navigation Bar
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switch {
    background: none;
    border: 2px solid var(--primary-blue);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.lang-switch:hover {
    background: var(--light-blue);
}

.lang-option {
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-separator {
    margin: 0 5px;
    color: var(--gray);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-blue);
    transition: var(--transition-normal);
    border-radius: 2px;
}

/* ===================================
   5. Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 163, 224, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 40px 20px;
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

.hero-title {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    animation: fadeInUp 1s ease 0.4s both;
}

/* ===================================
   6. About Section
   =================================== */
.about-section {
    background: var(--white);
}

.company-info {
    margin-bottom: 50px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.info-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 163, 224, 0.1);
    transition: var(--transition-normal);
    text-align: center;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 163, 224, 0.2);
}

.info-item h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.info-item p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 0;
}

.company-intro {
    background: var(--light-blue);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-blue);
}

.company-intro p {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.core-values {
    margin-top: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.value-item {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 163, 224, 0.2);
}

.value-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 163, 224, 0.3);
}

/* Team Section */
.team-section {
    margin-top: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition-normal);
    border-top: 4px solid var(--primary-blue);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.team-member h4 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.team-role {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.team-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   7. Products Overview
   =================================== */
.products-overview {
    background: var(--light-gray);
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.category-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--dark-gray);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 163, 224, 0.2);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.category-card h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.category-card p {
    color: var(--gray);
    font-size: 1.1rem;
    margin: 0;
}

/* ===================================
   8. Product Introduction Sections
   =================================== */
.product-intro {
    background: var(--white);
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.product-showcase.reverse {
    direction: rtl;
}

.product-showcase.reverse>* {
    direction: ltr;
}

.product-image {
    text-align: center;
}

.product-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 163, 224, 0.2));
    transition: var(--transition-normal);
}

.product-image img:hover {
    transform: scale(1.05) translateY(-10px);
    filter: drop-shadow(0 15px 40px rgba(0, 163, 224, 0.35));
}

.product-details h3 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.product-details p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.product-highlights {
    list-style: none;
    padding: 0;
}

.product-highlights li {
    padding: 10px 0;
    font-size: 1.05rem;
    color: var(--gray);
}

.customize-note {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 30px;
    background: var(--light-blue);
    border-radius: 10px;
    margin-top: 40px;
}

/* ===================================
   9. Specifications Sections
   =================================== */
.specs-section {
    background: var(--light-gray);
}

.specs-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.95rem;
}

.specs-table th,
.specs-table td {
    padding: 18px 15px;
    text-align: center;
    border: 1px solid var(--light-gray);
}

.specs-table thead {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.specs-table thead th {
    font-weight: 600;
    font-size: 1.1rem;
}

.specs-table tbody tr {
    transition: var(--transition-fast);
}

.specs-table tbody tr:hover {
    background: var(--light-blue);
}

.specs-table tbody tr:nth-child(even) {
    background: rgba(0, 163, 224, 0.02);
}

.specs-table tbody tr:nth-child(even):hover {
    background: var(--light-blue);
}

.specs-table .highlight {
    color: var(--accent-red);
    font-weight: 700;
}

.specs-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
    padding: 20px;
}

/* ===================================
   10. Contact Section
   =================================== */
.contact-section {
    background: var(--white);
}

.contact-info {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    /* max-width: 1000px; */
    margin: 0 auto;
}

.contact-item {
    background: var(--light-blue);
    padding: 40px 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-blue);
    transition: var(--transition-normal);
    text-align: center;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 163, 224, 0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-item h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-item p {
    color: var(--dark-gray);
    font-size: 1.05rem;
    margin: 0;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.contact-item a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

/* ===================================
   11. Footer
   =================================== */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================
   12. Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   13. Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

/* ===================================
   14. Smooth Scrolling Enhancement
   =================================== */
section {
    scroll-margin-top: 80px;
}