/* ============================================
   Hightek Group - style.css
   Brand Red: #E60819
   ============================================ */

:root {
    --red: #E60819;
    --red-dark: #B80016;
    --dark: #1A1A1A;
    --grey-bg: #F6F6F6;
    --grey-mid: #666666;
    --grey-light: #CCCCCC;
    --white: #FFFFFF;
    --nav-h: 72px;
    --font-zh: 'Noto Sans TC', sans-serif;
    --font-en: 'Inter', sans-serif;
    --transition: 0.3s ease;
    --shadow: 0 4px 24px rgba(0,0,0,0.10);
    --radius: 6px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-zh); color: var(--dark); background: var(--white); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(26,26,26,0.96);
    backdrop-filter: blur(8px);
    transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
    background: rgba(26,26,26,1);
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}
.nav-brand {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.80);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--red); }

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 16px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}
.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    padding: 2px 0;
    transition: color var(--transition);
    font-family: var(--font-zh);
}
.lang-btn:hover,
.lang-btn.active { color: var(--red); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #0D0D0D 0%, #2A0005 50%, #1A0A00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(230,8,25,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(230,8,25,0.10) 0%, transparent 50%);
}
.hero-overlay { position: absolute; inset: 0; }
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 0 24px;
}
.hero-label {
    font-family: var(--font-en);
    font-size: 0.80rem;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--red);
    margin-bottom: 20px;
    text-transform: uppercase;
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 4px;
    margin-bottom: 24px;
    line-height: 1.2;
}
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}
.btn-hero {
    display: inline-block;
    padding: 14px 40px;
    background: var(--red);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
}
.btn-hero:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ============================================
   STATS
   ============================================ */
.stats {
    background: var(--red);
    padding: 40px 0;
}
.stats .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.stat-item {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 16px 24px;
}
.stat-number {
    font-family: var(--font-en);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}
.stat-number span {
    font-size: 1.1rem;
    font-weight: 400;
}
.stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.80);
    margin-top: 6px;
    letter-spacing: 1px;
}
.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

/* ============================================
   SECTIONS (共用)
   ============================================ */
.section { padding: 96px 0; }
.section-grey { background: var(--grey-bg); }

.section-label {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 48px;
    letter-spacing: 1px;
    line-height: 1.3;
}
.center { text-align: center; }

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.about-text p {
    color: var(--grey-mid);
    margin-bottom: 20px;
    font-size: 0.97rem;
}
.btn-outline {
    display: inline-block;
    margin-top: 8px;
    padding: 11px 32px;
    border: 2px solid var(--red);
    color: var(--red);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius);
    letter-spacing: 1px;
    transition: all var(--transition);
}
.btn-outline:hover { background: var(--red); color: var(--white); }

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.pillar {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.pillar-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.pillar h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.pillar p {
    font-size: 0.88rem;
    color: var(--grey-mid);
    line-height: 1.6;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 3px solid transparent;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.13);
    border-top-color: var(--red);
}
.product-icon {
    font-size: 1.8rem;
    color: var(--red);
    margin-bottom: 16px;
}
.product-card h3 {
    font-size: 0.97rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.product-card p {
    font-size: 0.84rem;
    color: var(--grey-mid);
    line-height: 1.65;
}

/* ============================================
   GLOBAL / FACTORIES
   ============================================ */
.factories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.factory-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--grey-light);
    transition: border-color var(--transition), transform var(--transition);
}
.factory-card:hover {
    border-left-color: var(--red);
    transform: translateY(-3px);
}
.factory-card.hq {
    border-left-color: var(--red);
    background: #fff9f9;
}
.factory-flag { font-size: 1.8rem; margin-bottom: 10px; }
.factory-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.factory-role {
    font-size: 0.78rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 12px;
}
.factory-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.factory-meta span {
    font-size: 0.80rem;
    color: var(--grey-mid);
}
.factory-meta i {
    width: 14px;
    color: var(--grey-mid);
    margin-right: 4px;
}

/* ============================================
   CUSTOMERS
   ============================================ */
.customers-group { margin-bottom: 40px; }
.customer-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--grey-mid);
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
}
.customers-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.customers-list span {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all var(--transition);
}
.customers-list span:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--grey-light);
}
.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 36px;
    position: relative;
}
.timeline-year {
    flex-shrink: 0;
    width: 80px;
    text-align: right;
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 700;
    color: var(--red);
    padding-top: 2px;
    position: relative;
}
.timeline-year::after {
    content: '';
    position: absolute;
    right: -9px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
    z-index: 1;
}
.timeline-content {
    padding-left: 16px;
    padding-top: 2px;
}
.timeline-content p {
    font-size: 0.92rem;
    color: var(--grey-mid);
    line-height: 1.65;
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.cert-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.cert-card:hover { transform: translateY(-4px); }
.cert-icon {
    font-size: 2.2rem;
    color: var(--red);
    margin-bottom: 16px;
}
.cert-name {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.cert-desc {
    font-size: 0.82rem;
    color: var(--grey-mid);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}
.contact-item i {
    font-size: 1.2rem;
    color: var(--red);
    margin-top: 2px;
    width: 20px;
}
.contact-item strong { display: block; font-weight: 700; margin-bottom: 2px; }
.contact-item p { font-size: 0.9rem; color: var(--grey-mid); }

.contact-cta-box {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 48px 40px;
    color: var(--white);
}
.contact-cta-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}
.contact-cta-box p {
    font-size: 0.90rem;
    color: rgba(255,255,255,0.70);
    margin-bottom: 28px;
    line-height: 1.7;
}
.btn-red {
    display: inline-block;
    padding: 12px 32px;
    background: var(--red);
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius);
    letter-spacing: 1px;
    transition: background var(--transition), transform var(--transition);
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #111111;
    color: rgba(255,255,255,0.6);
    padding: 40px 0 24px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand img {
    height: 28px;
    filter: brightness(0) invert(1) opacity(0.5);
}
.footer-brand span {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--red); }
.footer-copy {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .factories-grid { grid-template-columns: repeat(2, 1fr); }
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: #1A1A1A;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 0 24px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        width: 100%;
        padding: 12px 24px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .lang-switcher {
        margin: 16px 24px 0;
        padding-left: 0;
        border-left: none;
    }

    .section { padding: 64px 0; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .stats .container { gap: 0; }
    .stat-item { min-width: 120px; padding: 12px 16px; }
    .stat-divider { height: 36px; }
    .stat-number { font-size: 1.8rem; }

    .products-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .factories-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .certs-grid { grid-template-columns: 1fr 1fr; }

    .contact-grid { grid-template-columns: 1fr; }

    .timeline::before { left: 60px; }
    .timeline-year { width: 60px; font-size: 0.88rem; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .factories-grid { grid-template-columns: 1fr; }
    .certs-grid { grid-template-columns: 1fr 1fr; }
    .stat-divider { display: none; }
    .stats .container { justify-content: center; }
    .contact-cta-box { padding: 32px 24px; }
}
