/* ==================== CSS Variables ==================== */
:root {
    --primary: #0066CC;
    --primary-dark: #004999;
    --primary-light: #3385D6;
    --primary-50: #E8EEF6;
    --accent: #00A8E8;
    --accent-dark: #0086B8;
    --white: #FCFBF9;
    --gray-50: #F5F3F0;
    --gray-100: #EFECE8;
    --gray-200: #E4E0DA;
    --gray-300: #D4CFC8;
    --gray-400: #A0998F;
    --gray-500: #6B6560;
    --gray-600: #4D4845;
    --gray-700: #383532;
    --gray-800: #252220;
    --gray-900: #161412;
    --success: #10B981;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px rgba(0,0,0,0.25);
    --section-padding: 5rem 2rem;
    --container-max: 1200px;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 16px; }

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: linear-gradient(180deg, #FCFBF9 0%, #F8F6F3 30%, #F5F3F0 60%, #F8F6F3 100%);
    background-attachment: fixed;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--container-max); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
    display: inline-block; padding: 0.35rem 1.2rem; background: var(--primary-50);
    color: var(--primary); font-size: 0.85rem; font-weight: 600;
    border-radius: var(--radius-full); letter-spacing: 0.05em; margin-bottom: 0.8rem;
}
.section-title { margin-bottom: 0.8rem; color: var(--gray-900); }
.section-subtitle { font-size: 1.05rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; }

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(252,251,249,0.92); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }
.nav-container {
    max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; font-weight: 800; color: var(--gray-900); }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a { color: var(--gray-600); font-weight: 500; font-size: 0.9rem; position: relative; padding: 0.2rem 0; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
    display: flex; align-items: center; gap: 0.4rem; background: var(--primary);
    color: #fff !important; padding: 0.55rem 1.4rem !important; border-radius: var(--radius-full);
    font-weight: 600 !important; transition: var(--transition) !important;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,102,204,0.3); }
.nav-cta::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 26px; height: 2.5px; background: var(--gray-800); 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(5px, -5px); }

/* ==================== HERO ==================== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    justify-content: center; background: linear-gradient(135deg, #1A2436 0%, #243550 35%, #1E4060 65%, #1A5A8A 100%);
    overflow: hidden; padding-top: 72px;
}
.hero-bg-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(0,168,232,0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
                      radial-gradient(circle at 50% 80%, rgba(0,102,204,0.2) 0%, transparent 50%);
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem; max-width: 900px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2); padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full); color: rgba(255,255,255,0.9);
    font-size: 0.9rem; font-weight: 500; margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-badge .dot { width: 8px; height: 8px; background: #10B981; border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.3)} }
.hero h1 { color: var(--white); margin-bottom: 1.2rem; animation: fadeInUp 0.6s ease 0.3s both; }
.hero h1 .highlight { background: linear-gradient(135deg, #4DC9F0, #00A8E8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 650px; margin: 0 auto 2.5rem; animation: fadeInUp 0.6s ease 0.4s both; }
.hero-cta-group { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; animation: fadeInUp 0.6s ease 0.5s both; }
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem;
    border-radius: var(--radius-full); font-weight: 600; font-size: 1rem; transition: var(--transition);
    cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 20px rgba(0,168,232,0.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,168,232,0.45); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); transform: translateY(-2px); }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 3.5rem; animation: fadeInUp 0.6s ease 0.6s both; }
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2.2rem; font-weight: 800; color: #fff; display: block; }
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.6); font-weight: 500; }
.hero-divider { width: 1px; background: rgba(255,255,255,0.2); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ==================== ABOUT ==================== */
.about { padding: var(--section-padding); background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about-image-wrapper { position: relative; text-align: center; }
.about-image { width: 100%; max-width: 500px; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); }
.about-experience-badge {
    position: absolute; bottom: -15px; right: 10%; background: var(--primary);
    color: #fff; padding: 1.2rem; border-radius: var(--radius-lg);
    text-align: center; box-shadow: var(--shadow-xl);
}
.about-experience-badge .years { font-size: 2.2rem; font-weight: 900; display: block; line-height: 1; }
.about-experience-badge .text { font-size: 0.8rem; font-weight: 500; opacity: 0.9; }
.about-text p { color: var(--gray-600); margin-bottom: 1rem; font-size: 1rem; line-height: 1.8; }
.about-text pre { font-family: inherit; white-space: pre-wrap; color: var(--gray-600); font-size: 1rem; line-height: 1.8; }
.about-text pre a { font-weight: 600; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.5rem; }
.about-feature {
    display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.9rem;
    background: var(--gray-50); border-radius: var(--radius); transition: var(--transition); text-decoration: none; color: inherit;
}
.about-feature:hover { background: var(--primary-50); transform: translateY(-2px); }
.about-feature .icon { font-size: 1.3rem; flex-shrink: 0; }
.about-feature h4 { font-size: 0.9rem; margin-bottom: 0.1rem; }
.about-feature p { font-size: 0.8rem; color: var(--gray-500); margin: 0; }

/* ==================== SERVICES BENTO ==================== */
.services { padding: var(--section-padding); background: var(--gray-50); }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.bento-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 1.8rem;
    border: 1px solid var(--gray-200); transition: var(--transition);
    text-decoration: none; color: inherit; display: block;
    position: relative; overflow: hidden;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--primary-light); }
.bento-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transition: transform 0.3s ease; }
.bento-card:hover::before { transform: scaleX(1); }
.bento-card.large { grid-column: span 2; grid-row: span 2; }
.bento-card.wide { grid-column: span 2; }
.bento-card .card-img { width: 100%; border-radius: var(--radius); margin-bottom: 1rem; object-fit: cover; }
.bento-card .card-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.bento-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--gray-900); }
.bento-card p { color: var(--gray-500); font-size: 0.88rem; line-height: 1.6; }
.bento-card.large { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; }
.bento-card.large h3 { color: #fff; font-size: 1.4rem; }
.bento-card.large p { color: rgba(255,255,255,0.85); }
.card-services-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 1rem; list-style: none; }
.card-services-list li { font-size: 0.85rem; display: flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.9); }
.card-services-list li::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: rgba(255,255,255,0.25); border-radius: 50%; font-size: 0.65rem; flex-shrink: 0; }

/* ==================== SERVICE DETAIL SECTIONS ==================== */
.service-detail { padding: 3rem 2rem; background: var(--white); }
.service-detail.alt { background: var(--gray-50); }
.service-detail h2 { margin-bottom: 1.5rem; }
.service-detail h2 a { color: var(--gray-900); }
.service-detail h2 a:hover { color: var(--primary); }
.service-types { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.service-type-tag {
    display: inline-block; padding: 0.6rem 1.2rem; background: var(--white);
    border: 1px solid var(--gray-200); border-radius: var(--radius-full);
    font-size: 0.9rem; color: var(--gray-700); transition: var(--transition); text-decoration: none;
}
.service-type-tag:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.service-detail.alt .service-type-tag { background: var(--gray-50); }
.service-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.service-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); transition: var(--transition); cursor: pointer; }
.service-gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }

/* ==================== TECH SECTION ==================== */
.tech { padding: var(--section-padding); background: var(--white); }
.tech.alt { background: var(--gray-50); }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tech-card {
    background: var(--gray-50); border-radius: var(--radius-lg); padding: 0;
    border: 1px solid var(--gray-200); transition: var(--transition); text-align: center;
    text-decoration: none; color: inherit; display: block; overflow: hidden;
}
.tech-card:hover { background: var(--white); box-shadow: var(--shadow-lg); border-color: var(--primary-light); transform: translateY(-3px); }
.tech-card .tech-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.tech-card .tech-body { padding: 1.5rem; }
.tech-card .tech-number { font-size: 2.2rem; font-weight: 900; color: var(--primary-50); line-height: 1; margin-bottom: 0.5rem; }
.tech-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.tech-card p { color: var(--gray-500); font-size: 0.85rem; }

/* ==================== CLIENTS ==================== */
.clients { padding: var(--section-padding); background: var(--gray-50); }
.client-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; padding: 1.5rem; }
.client-tag {
    background: var(--white); padding: 0.7rem 1.5rem; border-radius: var(--radius-full);
    font-weight: 600; color: var(--gray-700); font-size: 0.9rem;
    box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--gray-200);
    text-decoration: none; display: inline-block;
}
.client-tag:hover { box-shadow: var(--shadow-lg); color: var(--primary); border-color: var(--primary-light); transform: translateY(-2px); }

/* ==================== CERTIFICATES ==================== */
.certificates { padding: var(--section-padding); background: var(--white); }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.cert-card { background: var(--gray-50); border-radius: var(--radius-lg); padding: 1.5rem; transition: var(--transition); }
.cert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cert-card img { width: 100%; max-width: 280px; border-radius: var(--radius); margin-bottom: 0.8rem; }
.cert-card h4 { font-size: 0.95rem; color: var(--gray-700); }

/* ==================== CONTACT ==================== */
.contact { padding: var(--section-padding); background: var(--gray-50); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; padding: 2rem; border-radius: var(--radius-lg); text-align: center; text-decoration: none; display: block; transition: var(--transition);
}
.contact-highlight:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.contact-highlight .phone-big { font-size: 2.5rem; font-weight: 900; }
.contact-highlight p { color: rgba(255,255,255,0.85); margin-top: 0.3rem; }
.contact-card {
    display: flex; align-items: flex-start; gap: 1rem; padding: 1.3rem;
    background: var(--white); border-radius: var(--radius); transition: var(--transition);
    border: 1px solid transparent; text-decoration: none; color: inherit;
}
.contact-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-card .contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-card h4 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-card p { font-size: 0.9rem; color: var(--gray-600); }
.wechat-qr { text-align: center; padding: 1.5rem; background: var(--white); border-radius: var(--radius-lg); }
.wechat-qr img { width: 150px; height: 150px; border-radius: var(--radius); margin-bottom: 0.5rem; }
.wechat-qr p { color: var(--gray-500); font-size: 0.9rem; }
.service-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.service-method {
    display: flex; align-items: center; gap: 0.6rem; padding: 1rem;
    background: var(--white); border-radius: var(--radius); transition: var(--transition); text-decoration: none; color: inherit;
}
.service-method:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-method .icon { font-size: 1.5rem; }
.service-method h4 { font-size: 0.9rem; margin-bottom: 0.1rem; }
.service-method p { font-size: 0.8rem; color: var(--gray-500); }

/* ==================== MAP ==================== */
.map-section { padding: var(--section-padding); background: var(--white); }
.map-wrapper {
    position: relative; max-width: var(--container-max); margin: 0 auto;
    border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-xl); border: 1px solid var(--gray-200);
}
#baiduMap { width: 100%; height: 400px; }
.map-overlay {
    position: absolute; bottom: 20px; left: 20px; z-index: 10;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.3rem; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); font-size: 0.9rem; max-width: 280px;
}
.map-overlay h4 { font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--gray-900); }
.map-overlay p { color: var(--gray-600); font-size: 0.82rem; line-height: 1.5; }
.map-overlay a { color: var(--primary); font-weight: 600; }
.BMap_mask { display: none !important; }

/* ==================== FOOTER ==================== */
.footer { background: #1E252E; color: rgba(255,255,255,0.7); padding: 4rem 2rem 2rem; }
.footer-grid { max-width: var(--container-max); margin: 0 auto 3rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer p, .footer a { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 2; }
.footer a:hover { color: var(--accent); }
.footer-bottom { max-width: var(--container-max); margin: 0 auto; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.85rem; }

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; width: 46px; height: 46px;
    background: #3B82C4; color: #fff; border: none; border-radius: 50%;
    cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition);
    z-index: 999; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; box-shadow: var(--shadow-lg);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ==================== FLOATING CONTACT WIDGET ==================== */
.floating-contact { position: fixed; bottom: 5.5rem; right: 2rem; z-index: 998; }
.floating-contact .fc-trigger {
    width: 52px; height: 52px; border-radius: 50%; background: var(--primary);
    color: #fff; border: none; cursor: pointer; font-size: 1.4rem;
    box-shadow: var(--shadow-xl); transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
    animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
    0%,100% { box-shadow: 0 0 0 0 rgba(0,102,204,0.5); }
    50% { box-shadow: 0 0 0 16px rgba(0,102,204,0); }
}
.floating-contact .fc-trigger:hover { background: var(--primary-dark); transform: scale(1.08); }
.floating-contact .fc-panel {
    position: absolute; bottom: 64px; right: 0; width: 300px;
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl); border: 1px solid var(--gray-200);
    overflow: hidden; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: var(--transition);
}
.floating-contact .fc-panel.show { opacity: 1; visibility: visible; transform: translateY(0); }
.fc-panel-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; padding: 1.2rem 1.5rem; text-align: center;
}
.fc-panel-header h4 { font-size: 1rem; margin-bottom: 0.15rem; }
.fc-panel-header p { font-size: 0.8rem; opacity: 0.85; }
.fc-panel-body { padding: 1.2rem 1.5rem; }
.fc-item {
    display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0;
    border-bottom: 1px solid var(--gray-100); text-decoration: none; color: inherit;
    transition: var(--transition);
}
.fc-item:hover { color: var(--primary); }
.fc-item .fc-icon { font-size: 1.3rem; flex-shrink: 0; }
.fc-item h5 { font-size: 0.85rem; margin-bottom: 0.05rem; }
.fc-item p { font-size: 0.78rem; color: var(--gray-500); }
.fc-wechat { text-align: center; padding: 0.8rem 0; border-bottom: 1px solid var(--gray-100); }
.fc-wechat img { width: 120px; height: 120px; border-radius: var(--radius); margin-bottom: 0.3rem; }
.fc-wechat p { font-size: 0.78rem; color: var(--gray-500); }
.fc-close {
    position: absolute; top: 8px; right: 12px; background: none; border: none;
    color: rgba(255,255,255,0.8); font-size: 1.3rem; cursor: pointer; padding: 4px;
}
.fc-close:hover { color: #fff; }

/* ==================== CAROUSEL ==================== */
.carousel-wrap { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-track.dragging { transition: none; cursor: grab; }
.carousel-item { flex: 0 0 100%; min-width: 0; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.9);
    border: 1px solid var(--gray-200); cursor: pointer; font-size: 1.1rem;
    box-shadow: var(--shadow-md); transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.8rem; }
.carousel-dots .dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300);
    border: none; cursor: pointer; transition: var(--transition); padding: 0;
}
.carousel-dots .dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* ==================== PAGE HEADER (inner pages) ==================== */
.page-hero {
    position: relative; padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #1A2436 0%, #243550 35%, #1E4060 65%, #1A5A8A 100%);
    text-align: center; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(0,168,232,0.12) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(0,102,204,0.15) 0%, transparent 50%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 0.8rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.page-hero .breadcrumb { margin-bottom: 1.5rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.45); margin: 0 0.5rem; }
.page-hero .breadcrumb .current { color: rgba(255,255,255,0.9); }

/* ==================== CONTENT SECTION (inner pages) ==================== */
.content-section { padding: var(--section-padding); }
.content-section.alt { background: var(--gray-50); }

/* ==================== ANIMATIONS ==================== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==================== SWIPER CAROUSEL (reference style) ==================== */
.swiper { width: 100%; overflow: hidden; }
.swiper-wrapper { display: flex; transition-timing-function: ease; }
.swiper-slide { flex-shrink: 0; width: 100%; position: relative; }
.swiper-pagination { text-align: center; margin-top: 1rem; }
.swiper-pagination-bullet { width: 10px; height: 10px; display: inline-block; border-radius: 50%; background: var(--gray-300); margin: 0 4px; cursor: pointer; border: none; }
.swiper-pagination-bullet-active { background: var(--primary); width: 28px; border-radius: 5px; }
.swiper-button-prev, .swiper-button-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.9); border: 1px solid var(--gray-200); cursor: pointer; font-size: 1.1rem; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; transition: var(--transition); color: var(--gray-700); }
.swiper-button-prev:hover, .swiper-button-next:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.swiper-button-prev { left: 12px; }
.swiper-button-next { right: 12px; }
.swiper-button-prev::after { content: '‹'; font-size: 1.5rem; font-weight: 700; }
.swiper-button-next::after { content: '›'; font-size: 1.5rem; font-weight: 700; }

/* ==================== SERVICE IMAGE GALLERY ==================== */
.service-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item { text-align: center; }
.gallery-item .img-frame {
    display: block; border-radius: var(--radius); overflow: hidden;
    background: var(--gray-100); margin-bottom: 0.5rem;
}
.gallery-item .img-frame img { width: 100%; height: 200px; object-fit: cover; display: block; transition: var(--transition); }
.gallery-item .img-frame:hover img { transform: scale(1.05); }
.gallery-item .gallery-label { font-size: 0.8rem; color: var(--gray-600); text-align: center; }
@media (max-width: 768px) { .service-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ==================== TYPE TAG ROW (reference column layout) ==================== */
.type-tag-row { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 1.5rem; }
.type-tag-col { flex: 1; min-width: 100px; text-align: center; padding: 0.6rem 0.5rem; font-size: 0.9rem; color: var(--gray-700); border-right: 1px solid var(--gray-200); }
.type-tag-col:last-child { border-right: none; }
.type-tag-col a { color: var(--primary); font-weight: 500; text-decoration: none; }
.type-tag-col a:hover { text-decoration: underline; }
@media (max-width: 768px) { .type-tag-col { flex: 1 1 33%; border-right: none; border-bottom: 1px solid var(--gray-100); } }

/* ==================== FLIP BOX (reference cases style) ==================== */
.flip-box-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.flip-box {
    background: transparent; -webkit-perspective: 1000px; perspective: 1000px; height: 280px; cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.flip-box-inner {
    position: relative; width: 100%; height: 100%;
    transition: -webkit-transform 0.6s ease; transition: transform 0.6s ease;
    -webkit-transform-style: preserve-3d; transform-style: preserve-3d;
}
.flip-box:hover .flip-box-inner { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); }
.flip-box-front, .flip-box-back {
    position: absolute; width: 100%; height: 100%;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    border-radius: var(--radius-lg); overflow: hidden; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
    padding: 2rem; text-align: center;
}
.flip-box-front { background: linear-gradient(135deg, #1E4060, #1A5A8A); color: #fff; z-index: 2; }
.flip-box-front .flip-icon { font-size: 3rem; margin-bottom: 1rem; }
.flip-box-front h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.5rem; }
.flip-box-front p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.flip-box-back { background: var(--primary); color: #fff; -webkit-transform: rotateY(180deg); transform: rotateY(180deg); }
.flip-box-back h4 { color: #fff; margin-bottom: 0.8rem; }
.flip-box-back p { color: rgba(255,255,255,0.85); font-size: 0.85rem; line-height: 1.7; }
@media (max-width: 768px) { .flip-box-grid { grid-template-columns: 1fr; } .flip-box { height: 240px; } }

/* ==================== SERVICE HEADING LINK ==================== */
.service-heading { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; color: var(--gray-900); }
.service-heading a { color: var(--primary); text-decoration: none; }
.service-heading a:hover { text-decoration: underline; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-card.large, .bento-card.wide { grid-column: span 2; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .service-gallery { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --section-padding: 3rem 1.2rem; }
    #baiduMap { height: 280px; }
    .map-overlay { bottom: 10px; left: 10px; right: 10px; max-width: none; padding: 0.8rem 1rem; }
    .map-overlay h4 { font-size: 0.85rem; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: #FCFBF9; flex-direction: column; padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-2xl); transition: right 0.4s ease; gap: 0;
    }
    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 0.7rem 0; }
    .hamburger { display: flex; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.large, .bento-card.wide { grid-column: span 1; grid-row: span 1; }
    .tech-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.2rem; }
    .hero-stat .number { font-size: 1.6rem; }
    .service-gallery { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-features { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .contact-info-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .service-methods { grid-template-columns: repeat(2, 1fr) !important; }
    .page-hero { padding: 6rem 1.2rem 3rem; }
}
