/* ============================================
   千百億精密實業有限公司 - 響應式網站樣式
   ============================================ */

:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --primary-dark: #0d1f33;
    --accent: #e63946;
    --accent-light: #ff6b6b;
    --warm: #f4a261;
    --warm-light: #f4c89a;
    --success: #2a9d8f;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-dark: #1a1a2e;
    --text: #2d3436;
    --text-light: #636e72;
    --text-muted: #b2bec3;
    --border: #dfe6e9;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(230,242,255,0.88) 50%, rgba(210,232,255,0.85) 100%);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid rgba(180,210,240,0.3);
    transition: var(--transition);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #4a90d9, var(--accent), #4a90d9, var(--primary));
    background-size: 200% 100%;
    animation: headerGlow 4s linear infinite;
}

@keyframes headerGlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.header.scrolled {
    background: linear-gradient(135deg, rgba(255,255,255,0.97) 0%, rgba(235,245,255,0.95) 50%, rgba(220,238,255,0.93) 100%);
    border-bottom-color: rgba(160,200,240,0.4);
    box-shadow: 0 4px 24px rgba(74,144,217,0.1), 0 1px 3px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img-wrap {
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(74,144,217,0.15);
    border: 1px solid rgba(180,210,240,0.4);
    transition: var(--transition);
}

.logo:hover .logo-img-wrap {
    box-shadow: 0 4px 16px rgba(74,144,217,0.25);
    border-color: rgba(74,144,217,0.5);
}

.logo-img-wrap::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(74,144,217,0.08), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    background: #fff;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-zh {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.logo-en {
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(26,58,92,0.06);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    margin-left: 8px;
}

.nav-link-cta:hover {
    background: var(--accent-light) !important;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, #1a3a5c 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(230,57,70,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(244,162,97,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(42,157,143,0.1) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.text-accent { color: var(--accent-light); }
.text-primary { color: #7ec8e3; }
.text-warm { color: var(--warm); }

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 32px;
    letter-spacing: 4px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.hero-tags span {
    padding: 6px 18px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 14px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.hero-tags span:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230,57,70,0.4);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.5);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ============================================
   Section Common
   ============================================ */
.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(26,58,92,0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--warm));
    border-radius: 2px;
    margin: 16px auto 0;
}

.section-desc {
    font-size: 17px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    color: var(--accent);
    font-weight: 700;
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 64px;
}

.about-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.about-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.about-card:nth-child(2) .about-card-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.about-card:nth-child(3) .about-card-icon {
    background: linear-gradient(135deg, var(--success), #3dd6c8);
}

.about-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.about-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    color: #fff;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--warm-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(26,58,92,0.06);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(26,58,92,0.06);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

/* ============================================
   Inspection Showcase Section
   ============================================ */

/* AOI Hero */
.inspection-hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0;
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 32px;
    transition: var(--transition);
}

.inspection-hero:hover {
    box-shadow: var(--shadow-hover);
}

.inspection-hero-image {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    background: #1a1a2e;
}

.inspection-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.inspection-hero:hover .inspection-hero-image img {
    transform: scale(1.03);
}

.inspection-hero-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(26,58,92,0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.inspection-hero-badge i {
    color: var(--accent);
}

.inspection-hero-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inspection-hero-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.inspection-hero-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.inspection-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inspection-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(26,58,92,0.06);
    padding: 6px 14px;
    border-radius: 50px;
}

.inspection-features li i {
    color: var(--success);
    font-size: 13px;
}

/* Parts Cards */
.inspection-parts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.parts-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.parts-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.parts-image {
    height: 220px;
    overflow: hidden;
    background: #2a2a3e;
}

.parts-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.parts-card:hover .parts-image img {
    transform: scale(1.05);
}

.parts-info {
    padding: 20px;
}

.parts-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.parts-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Machine Grid (射出成形設備) */
.machine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.machine-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.machine-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.machine-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.machine-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.machine-card:hover .machine-image img {
    transform: scale(1.05);
}

.machine-info {
    padding: 20px;
}

.machine-info h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.machine-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.machine-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .machine-grid {
        grid-template-columns: 1fr;
    }
}

/* Equipment Section */
.equipment-section {
    padding-top: 40px;
}

.equipment-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.equipment-title i {
    color: var(--accent);
    font-size: 20px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.equipment-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.equipment-image {
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.equipment-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.08);
}

.equipment-info {
    padding: 16px;
}

.equipment-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.equipment-model {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(199,134,58,0.1);
    padding: 2px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.equipment-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .inspection-hero {
        grid-template-columns: 1fr;
    }

    .inspection-hero-image {
        min-height: 260px;
    }

    .inspection-hero-content {
        padding: 24px;
    }

    .inspection-parts {
        grid-template-columns: 1fr;
    }

    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Products Section
   ============================================ */
.products-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-card.hidden {
    display: none;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Product Visual Cards */
.product-visual {
    position: relative;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pv-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        radial-gradient(circle at 20% 80%, currentColor 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, currentColor 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, currentColor 1.5px, transparent 1.5px);
    background-size: 30px 30px, 40px 40px, 50px 50px;
    transition: transform 0.6s ease;
}

.product-card:hover .pv-pattern {
    transform: scale(1.15) rotate(3deg);
}

.pv-icon {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.product-card:hover .pv-icon {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Card gradient themes */
.pv-card {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 40%, #2a5f9e 100%);
    color: #4a90d9;
}
.pv-card2 {
    background: linear-gradient(135deg, #5b9bd5 0%, #4187c4 40%, #3070a8 100%);
    color: #5b9bd5;
}
.pv-electronic {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 40%, #a93226 100%);
    color: #e74c3c;
}
.pv-electronic2 {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 40%, #ba4a00 100%);
    color: #e67e22;
}
.pv-optical {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 40%, #1e8449 100%);
    color: #2ecc71;
}
.pv-optical2 {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 40%, #0e6655 100%);
    color: #1abc9c;
}
.pv-engineering {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 40%, #6c3483 100%);
    color: #8e44ad;
}
.pv-engineering2 {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 40%, #0d1117 100%);
    color: #546e7a;
}

/* Decorative shapes per category */
.pv-card::before,
.pv-card2::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -30px;
    right: -30px;
}

.pv-card::after,
.pv-card2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    bottom: -20px;
    left: -20px;
}

.pv-electronic::before,
.pv-electronic2::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -60px;
    left: -60px;
}

.pv-optical::before,
.pv-optical2::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.05);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -40px;
    right: -40px;
    animation: morphBlob 6s ease-in-out infinite;
}

@keyframes morphBlob {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.pv-engineering::before,
.pv-engineering2::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.03) 20px,
        rgba(255,255,255,0.03) 22px
    );
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.product-info p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.product-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(26,58,92,0.06);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

/* ============================================
   Partners Section
   ============================================ */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.partner-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.partner-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(26,58,92,0.06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    transition: var(--transition);
}

.partner-card:hover .partner-icon {
    background: var(--primary);
    color: #fff;
}

.partner-card span {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ============================================
   History / Timeline Section
   ============================================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), var(--warm));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 48px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 8px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border: 4px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
}

.timeline-content {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.timeline-year {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 15px;
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-map {
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-img-wrap {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.2);
}

.footer-logo .logo-zh {
    color: #fff;
    font-size: 15px;
}

.footer-logo .logo-en {
    color: rgba(255,255,255,0.5);
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links ul li,
.footer-services ul li,
.footer-contact ul li {
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-links ul li a:hover {
    color: var(--warm);
    padding-left: 4px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact ul li i {
    margin-top: 4px;
    color: var(--accent);
    width: 16px;
    flex-shrink: 0;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26,58,92,0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.4);
}

/* ============================================
   Animations
   ============================================ */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg);
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 24px 24px;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        display: block;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    .nav-link-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 8px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        height: 300px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 52px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 11px;
        right: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section {
        padding: 72px 0;
    }

    .hero-content {
        padding: 100px 0 60px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        padding: 32px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .hero-tags span {
        font-size: 12px;
        padding: 4px 12px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .partner-card {
        padding: 24px 16px;
    }
}

/* ============================================
   Mobile Nav Overlay
   ============================================ */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Particle Styles
   ============================================ */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header, .hero-scroll, .back-to-top, .hamburger {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .section {
        padding: 30px 0;
    }
}

/* SEO Hidden Content */
.seo-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
