/* ============================================
   style2.css – MikaTech
   Main stylesheet
   ============================================ */

/* ---------- reset & base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- navigation ---------- */
.navbar {
    background: #0b1120;
    color: #f1f5f9;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border-bottom: 2px solid #2d4a7c;
}
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #38bdf8;
}
.logo-icon { font-size: 1.8rem; color: #38bdf8; }
.logo-text {
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
}
.nav-item { position: relative; }
.nav-link {
    display: block;
    padding: 0.6rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    color: #cbd5e1;
}
.nav-link:hover {
    background: rgba(56,189,248,0.15);
    color: #fff;
}
.nav-link .fa-chevron-down { font-size: 0.7rem; margin-left: 0.3rem; }

/* dropdowns */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #1e293b;
    border-radius: 12px;
    padding: 0.5rem 0;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
    border: 1px solid #334155;
    z-index: 999;
    max-height: 60vh;
    overflow-y: auto;
}
.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1.2rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.dropdown-menu li a:hover { background: #2d4a7c; color: #fff; }
.mcu-menu { min-width: 220px; column-count: 2; column-gap: 0; }
.mcu-menu li { break-inside: avoid; }
.mcu-menu li a { padding: 0.3rem 1rem; font-size: 0.85rem; }
.pcb-menu { min-width: 200px; }

/* language */
.nav-lang { margin-left: 0.5rem; }
.lang-dropdown { position: relative; }
.lang-toggle {
    background: transparent;
    border: 1px solid #475569;
    border-radius: 30px;
    padding: 0.3rem 0.8rem 0.3rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.lang-toggle:hover { background: #1e293b; }
.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #475569;
}
.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #1e293b;
    border-radius: 12px;
    min-width: 160px;
    padding: 0.4rem 0;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
    border: 1px solid #334155;
    z-index: 1001;
}
.lang-menu li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.lang-menu li a:hover { background: #2d4a7c; }
.lang-menu .flag-icon { width: 20px; height: 15px; }

/* hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.3rem;
}
.nav-hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #f1f5f9;
    border-radius: 4px;
    transition: 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* ---------- HERO (满屏垂直居中) ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0b1120 0%, #1a2a4a 100%);
    min-height: 100vh;               /* 满屏高度 */
    display: flex;
    align-items: center;             /* 垂直居中 */
    padding: 4rem 1.5rem;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(56,189,248,0.08), transparent 70%);
    pointer-events: none;
}
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
}
.hero-text {
    flex: 1 1 50%;
    color: #f1f5f9;
}
.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 550px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-image {
    flex: 1 1 40%;
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
    transition: transform 0.3s, box-shadow 0.3s;
}
.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px -16px rgba(56,189,248,0.3);
}
.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4.5rem;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: color 0.3s, transform 0.3s;
    pointer-events: none;
}
.hero-image:hover .play-icon-overlay {
    color: #38bdf8;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-primary {
    background: #38bdf8;
    color: #0b1120;
    box-shadow: 0 8px 24px rgba(56,189,248,0.3);
}
.btn-primary:hover {
    background: #7dd3fc;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(56,189,248,0.4);
}
.btn-secondary {
    background: transparent;
    color: #f1f5f9;
    border: 2px solid #64748b;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: #94a3b8;
    transform: translateY(-3px);
}

/* ---------- video modal ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: #0b1120;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    position: relative;
    padding: 0.5rem;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
    border: 1px solid #2d4a7c;
}
.modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 300;
    color: #f1f5f9;
    cursor: pointer;
    border: 2px solid #475569;
    transition: background 0.2s;
    z-index: 10;
}
.modal-close:hover { background: #dc2626; border-color: #dc2626; }
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 16px;
    overflow: hidden;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ---------- sections common ---------- */
section { padding: 5rem 0; }
.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.8rem;
    color: #0b1120;
}
.section-subtitle {
    text-align: center;
    color: #64748b;
    max-width: 650px;
    margin: 0 auto 3.5rem;
    font-size: 1.1rem;
}

/* ---------- services ---------- */
.services { background: #ffffff; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 2rem;
}
.service-card {
    background: #f8fafc;
    padding: 2.2rem 1.8rem;
    border-radius: 24px;
    border: 1px solid #e9edf2;
    transition: transform 0.25s, box-shadow 0.25s;
    text-align: center;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15);
}
.service-icon { font-size: 2.8rem; color: #38bdf8; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; color: #0b1120; }
.service-card p { color: #475569; font-size: 0.95rem; margin-bottom: 1.2rem; }
.service-link { font-weight: 600; color: #38bdf8; transition: color 0.2s; }
.service-link:hover { color: #0284c7; }

/* ---------- brands ---------- */
.brands { background: #f1f5f9; }
.brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.brand-tag a {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: #fff;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    border: 1px solid #d1d9e6;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.brand-tag a:hover {
    background: #38bdf8;
    color: #fff;
    border-color: #38bdf8;
    transform: scale(1.04);
}

/* ---------- why us ---------- */
.why-us { background: #ffffff; }
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.why-item { padding: 1.5rem 1rem; }
.why-icon { font-size: 2.6rem; color: #38bdf8; margin-bottom: 0.8rem; }
.why-item h3 { font-size: 1.2rem; margin-bottom: 0.4rem; color: #0b1120; }
.why-item p { color: #475569; font-size: 0.95rem; }

/* ---------- process (黑色背景) ---------- */
.process-section {
    background: #0b1120;
    color: #f1f5f9;
    padding: 5rem 0;
}
.section-label {
    display: inline-block;
    background: #2d4a7c;
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 1rem;
}
.process-section .section-title {
    color: #ffffff;
}
.process-section .section-title .highlight {
    color: #38bdf8;
}
.process-section .section-sub {
    color: #94a3b8;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.step {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    border: 1px solid #1e293b;
    transition: background 0.3s, border-color 0.3s;
}
.step:hover {
    background: rgba(56,189,248,0.05);
    border-color: #2d4a7c;
}
.step .num {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: #38bdf8;
    opacity: 0.6;
    margin-bottom: 0.3rem;
}
.step h4 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: #f1f5f9;
}
.step p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* ---------- mcu range (黑色背景) ---------- */
.mcu-range-section {
    background: #0b1120;
    color: #f1f5f9;
    padding: 5rem 0;
}
.mcu-range-section .section-title {
    color: #ffffff;
}
.mcu-range-section .section-title .highlight {
    color: #38bdf8;
}
.mcu-range-section .section-sub {
    color: #94a3b8;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.faq-item {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    border: 1px solid #1e293b;
    transition: border-color 0.3s;
}
.faq-item:hover {
    border-color: #2d4a7c;
}
.faq-item h3 {
    font-size: 1.3rem;
    color: #38bdf8;
    margin-bottom: 0.6rem;
}
.faq-item p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line;  /* 保留换行 */
}

/* ---------- case studies ---------- */
.case-studies {
    background: #f8fafc;
    padding: 4rem 0 3rem;
}
.case-title {
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #0b1120;
}
.case-subtitle {
    text-align: center;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 1.8rem;
}
.case-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    border: 1px solid #e9edf2;
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -8px rgba(0,0,0,0.12);
    border-color: #38bdf8;
}
.case-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #38bdf8;
    opacity: 0.5;
    margin-bottom: 0.3rem;
    line-height: 1;
}
.case-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0b1120;
    margin-bottom: 0.6rem;
}
.case-tag {
    display: inline-block;
    background: #e9edf2;
    color: #1e293b;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 0.3rem;
    margin-bottom: 0.4rem;
    transition: background 0.2s;
}
.case-card:hover .case-tag {
    background: #dbeafe;
    color: #1e4a7a;
}
.case-desc {
    margin-top: 0.6rem;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.5;
    flex: 1;
}
.case-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* ---------- footer ---------- */
.footer {
    background: #0b1120;
    color: #cbd5e1;
    padding: 3.5rem 1.5rem 1.5rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 2.5rem;
}
.footer-col h3, .footer-col h4 { color: #f1f5f9; margin-bottom: 1rem; }
.footer-col h3 {
    font-size: 1.5rem;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-col p { font-size: 0.9rem; line-height: 1.7; color: #94a3b8; }
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
}
.footer-social a { color: #94a3b8; font-size: 1.2rem; transition: color 0.2s; }
.footer-social a:hover { color: #38bdf8; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #94a3b8; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}
.footer-contact li i { width: 1.2rem; color: #38bdf8; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* ---------- responsive ---------- */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0b1120;
        padding: 1rem 0;
        border-top: 1px solid #1e293b;
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav-menu.active { display: flex; }
    .nav-item { width: 100%; }
    .nav-link { width: 100%; padding: 0.7rem 1.5rem; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #1a2332;
        padding: 0;
        max-height: none;
        overflow-y: visible;
        column-count: 1;
        width: 100%;
    }
    .dropdown-menu li a { padding: 0.5rem 1.5rem 0.5rem 2.5rem; }
    .mcu-menu { column-count: 1; }
    .nav-hamburger { display: flex; }
    .nav-lang { margin-left: 0; margin-top: 0.5rem; width: 100%; justify-content: flex-start; }
    .lang-toggle { padding: 0.3rem 1rem; }
    .lang-menu { right: auto; left: 0; }

    .hero { min-height: 100vh; padding: 2rem 1.5rem; }
    .hero-container { flex-direction: column; text-align: center; gap: 2.5rem; }
    .hero-text p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-image { max-width: 500px; width: 100%; }
}
@media (max-width: 600px) {
    .hero-text h1 { font-size: 2rem; }
    .play-icon-overlay { font-size: 3rem; }
    .modal-content { padding: 0.3rem; }
    .modal-close { top: -10px; right: -10px; width: 32px; height: 32px; font-size: 1.4rem; }
    .section-title { font-size: 2rem; }
    .service-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .brand-tag a { font-size: 0.8rem; padding: 0.3rem 0.8rem; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .case-title { font-size: 2rem; }
    .case-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .case-card { padding: 1.2rem; }
    .faq-item { padding: 1.2rem; }
}

/* ============================================
   SERVICES2 (浅灰色背景)
   ============================================ */
.services2-section {
    background: #f1f5f9;   /* 浅灰色 */
    padding: 5rem 0;
}

.services2-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem;
}

.services2-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 0.2rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 0.8rem;
}

.services2-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #0b1120;
    margin: 0.5rem 0 0.8rem;
}

.services2-subtitle {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
}

.services2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.services2-card {
    background: #0b1120;   /* 深色卡片 */
    padding: 2rem 1.8rem;
    border-radius: 16px;
    border: 1px solid #1e293b;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    color: #f1f5f9;
}

.services2-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
    border-color: #2d4a7c;
}

.services2-card i {
    font-size: 2.6rem;
    color: #38bdf8;
    margin-bottom: 1rem;
    display: inline-block;
}

.services2-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.services2-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 响应式微调 */
@media (max-width: 600px) {
    .services2-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .services2-card {
        padding: 1.5rem;
    }
}

