
/* --- Reset & Variables --- */
:root {
    --primary-color: #0845A9;
    --primary-dark: #052d72;
    --secondary-color: #00a8ff;
    --text-dark: #333;
    --text-gray: #666;
    --bg-light: #f4f8fb;
    --white: #fff;
    --transition: all 0.4s ease;
    --card-shadow: 0 10px 30px rgba(8, 69, 169, 0.08);
    --card-hover-shadow: 0 15px 40px rgba(8, 69, 169, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
body { line-height: 1.6; color: var(--text-dark); background-color: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Utility Classes --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }

.section-title {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    font-weight: 700;
}
.section-title::after {
    content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px; background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.btn {
    display: inline-block; padding: 12px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white); border-radius: 30px; font-size: 16px; font-weight: bold;
    box-shadow: 0 5px 15px rgba(8, 69, 169, 0.3);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(8, 69, 169, 0.4); }

/* --- Header --- */
header { background: var(--white); box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo img { height: 42px; width: auto; }

.nav-menu { display: flex; gap: 40px; }
.nav-link { font-size: 16px; font-weight: 500; color: var(--text-dark); padding: 10px 0; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary-color); transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.hamburger { display: none; cursor: pointer; font-size: 24px; color: var(--primary-color); }

/* --- Common Banner (Inner Pages) --- */
.page-banner {
    background: url('../images/banner.jpg') no-repeat center center/cover;
    height: 400px; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative;
}
.page-banner::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(8, 40, 100, 0.7);
}
.banner-content { position: relative; z-index: 2; color: #fff; }
.banner-content h1 { font-size: 48px; margin-bottom: 20px; letter-spacing: 2px; }

/* --- Home: Hero Slider --- */
.hero-slider { height: 650px; position: relative; overflow: hidden; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
}
.slide.active { opacity: 1; }
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(8,69,169,0.8), rgba(0,0,0,0.2)); }

.slide-content { 
    position: relative; 
    z-index: 2; 
    color: #fff; 
    max-width: 800px; 
    text-align: center;
    margin: 0;
}

.slide-content h2 { font-size: 56px; margin-bottom: 20px; line-height: 1.2; animation: fadeInUp 0.8s ease forwards; }
.slide-content p { font-size: 20px; margin-bottom: 40px; opacity: 0.9; animation: fadeInUp 1s ease forwards; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* --- Home: Intro Section --- */
.intro-section { display: flex; align-items: center; gap: 50px; }
.intro-text { flex: 1; }
.intro-text h3 { font-size: 28px; color: var(--primary-color); margin-bottom: 20px; }
.intro-text p { color: var(--text-gray); margin-bottom: 15px; text-align: justify; }
.intro-img { flex: 1; position: relative; }
.intro-img img { border-radius: 10px; box-shadow: var(--card-shadow); }
.intro-img::before {
    content: ''; position: absolute; top: -20px; right: -20px; width: 100px; height: 100px;
    border-top: 5px solid var(--secondary-color); border-right: 5px solid var(--secondary-color);
    z-index: -1;
}

/* --- Home: Solutions (Image BG Style) --- */
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sol-card {
    height: 350px; position: relative; overflow: hidden; border-radius: 8px;
    background-size: cover; background-position: center; cursor: pointer;
    box-shadow: var(--card-shadow);
}
.sol-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(8, 69, 169, 0.9));
    transition: var(--transition);
}
.sol-card:hover::before { background: linear-gradient(to bottom, rgba(8, 69, 169, 0.4), rgba(8, 69, 169, 1)); }
.sol-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px;
    color: var(--white); transform: translateY(0); transition: var(--transition);
}
.sol-card:hover .sol-content { transform: translateY(-10px); }
.sol-content h3 { font-size: 20px; margin-bottom: 10px; font-weight: 700; border-bottom: 2px solid var(--secondary-color); display: inline-block; padding-bottom: 5px; }
.sol-content p { font-size: 14px; opacity: 0.9; line-height: 1.5; }

/* --- Home: Application Areas (2 Rows 3 Cols) --- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.app-card {
    position: relative; height: 250px; border-radius: 8px; overflow: hidden;
    background-size: cover; background-position: center;
}
.app-overlay {
    position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 20px; transition: var(--transition);
}
.app-card:hover .app-overlay { background: rgba(8, 69, 169, 0.85); }
.app-card i { font-size: 40px; color: var(--white); margin-bottom: 15px; opacity: 0.8; }
.app-card h3 { color: var(--white); font-size: 22px; margin-bottom: 10px; }
.app-card p { color: #eee; font-size: 14px; opacity: 0; transform: translateY(20px); transition: var(--transition); }
.app-card:hover p { opacity: 1; transform: translateY(0); }

/* --- Home: Product Center (Large Cards) --- */
.prod-home-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.prod-home-card {
    height: 300px; background-size: cover; background-position: center;
    border-radius: 10px; position: relative; overflow: hidden;
    box-shadow: var(--card-shadow);
}
.prod-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px; color: white;
}
.prod-overlay h3 { font-size: 24px; margin-bottom: 5px; }
.prod-overlay span { font-size: 14px; background: var(--secondary-color); padding: 2px 8px; border-radius: 4px; }

/* --- Home: Partners (Logos) --- */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner-logo {
    background: var(--white); border: 1px solid #eee; padding: 20px;
    height: 80px; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); border-radius: 4px;
}
.partner-logo img { max-height: 65px; opacity: 0.8; transition: var(--transition); }
.partner-logo:hover { border-color: var(--primary-color); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.partner-logo:hover img { opacity: 1; filter: grayscale(0%); }

/* --- Home: Slogan --- */
.slogan-section {
    background: linear-gradient(rgba(8, 69, 169, 0.9), rgba(8, 69, 169, 0.9)), url('http://www.mupay.cn/thtp.jpg') fixed center;
    background-size: cover;
    padding: 100px 0;
    color: var(--white);
}

.slogan-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}
.btn-white:hover {
    background: transparent;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* --- About Page --- */
.culture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.culture-card { display: flex; background: #fff; box-shadow: var(--card-shadow); border-radius: 8px; overflow: hidden; }
.culture-img { flex: 1; background-size: cover; background-position: center; min-height: 200px; }
.culture-text { flex: 1.2; padding: 30px; display: flex; flex-direction: column; justify-content: center; }

/* --- Contact Page --- */
.contact-container { display: flex; gap: 40px; }
.contact-info { flex: 1; background: var(--white); padding: 40px; border-radius: 8px; box-shadow: var(--card-shadow); }
.contact-map { flex: 1; border-radius: 8px; overflow: hidden; min-height: 400px; }
.contact-item { display: flex; align-items: start; margin-bottom: 30px; }
.contact-item i { width: 50px; height: 50px; background: var(--bg-light); color: var(--primary-color); text-align: center; line-height: 50px; border-radius: 50%; margin-right: 20px; font-size: 20px; flex-shrink: 0; }

/* --- Footer --- */
footer { background: #111; color: #ccc; padding: 60px 0 20px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 25px; font-size: 18px; border-left: 3px solid var(--secondary-color); padding-left: 10px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--secondary-color); padding-left: 5px; }
.qr-code { background: #fff; padding: 5px; width: 120px; }
.copyright { border-top: 1px solid #333; padding-top: 20px; text-align: center; color: #777; }

/* ============================================================
   RESPONSIVE — 平板 (≤992px)
   ============================================================ */
@media (max-width: 992px) {
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-grid  { grid-template-columns: repeat(4, 1fr); }
    .prod-home-grid { grid-template-columns: repeat(2, 1fr); }
    .app-grid       { grid-template-columns: repeat(2, 1fr); }
    .intro-section, .contact-container { flex-direction: column; }
    .culture-grid   { grid-template-columns: repeat(2, 1fr); }
    .slide-content  { margin-left: 0; text-align: center; padding: 20px; }
    .footer-top     { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — 手机 (≤768px)
   ============================================================ */
@media (max-width: 768px) {

    /* —— 通用间距收窄 —— */
    .section-padding { padding: 50px 0; }
    .container { padding: 0 15px; }

    /* —— 标题缩小 —— */
    .section-title { font-size: 24px; margin-bottom: 35px; }

    /* —— Header —— */
    .navbar { height: 70px; }
    .logo img { height: 34px; }
    .hamburger { display: block; }
    .nav-menu {
        display: none; position: absolute; top: 70px; left: 0; width: 100%;
        background: var(--white); flex-direction: column; padding: 15px 20px; gap: 12px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 999;
    }
    .nav-menu.active { display: flex; }

    /* —— Banner —— */
    .page-banner { height: 220px; }
    .banner-content h1 { font-size: 28px; margin-bottom: 10px; letter-spacing: 1px; }
    .banner-content p { font-size: 14px; }

    /* —— Hero Slider —— */
    .hero-slider { height: 320px; }
    .slide-content h2 { font-size: 26px; margin-bottom: 12px; line-height: 1.3; }
    .slide-content p  { font-size: 14px; margin-bottom: 24px; }
    .btn { padding: 10px 26px; font-size: 14px; }

    /* —— 首页 Intro —— */
    .intro-section { flex-direction: column; gap: 24px; }
    .intro-text h3 { font-size: 22px; }
    .intro-img::before { display: none; }

    /* —— 核心解决方案：2列 —— */
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .sol-card { height: 200px; }
    .sol-content { padding: 16px; }
    .sol-content h3 { font-size: 15px; }
    .sol-content p  { font-size: 12px; }

    /* —— 应用领域：2列 —— */
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .app-card { height: 160px; border-radius: 8px; }
    .app-card i   { font-size: 28px; margin-bottom: 8px; }
    .app-card h3  { font-size: 16px; margin-bottom: 4px; }
    /* 移动端始终显示描述文字 */
    .app-card p   { opacity: 1; transform: translateY(0); font-size: 11px; }

    /* —— 产品中心：2列，高度降低 —— */
    .prod-home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .prod-home-card { height: 180px; border-radius: 8px; }
    .prod-overlay { padding: 16px; }
    .prod-overlay h3 { font-size: 15px; margin-bottom: 4px; }
    .prod-overlay p  { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* —— 合作伙伴：2列 —— */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .partner-logo { height: 64px; padding: 12px; border-radius: 6px; }
    .partner-logo img { max-height: 40px; }

    /* —— 企业文化：上下堆叠，图片高度压缩 —— */
    .culture-grid { grid-template-columns: 1fr; gap: 16px; }
    .culture-card { flex-direction: column; }
    .culture-img  { min-height: 160px; }
    .culture-text { padding: 20px; }

    /* —— Slogan —— */
    .slogan-section { padding: 60px 0; }
    .slogan-title { font-size: 20px; line-height: 1.5; margin-bottom: 20px; }

    /* —— 联系页 —— */
    .contact-container { flex-direction: column; gap: 20px; }
    .contact-info { padding: 24px; }
    .contact-map  { min-height: 260px; }

    /* —— Footer —— */
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    footer { padding: 40px 0 16px; }
    .footer-col h4 { font-size: 16px; margin-bottom: 16px; }
    .copyright { font-size: 12px; line-height: 1.8; }
}

/* ============================================================
   RESPONSIVE — 小屏手机 (≤480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero-slider { height: 280px; }
    .slide-content h2 { font-size: 22px; }
    .sol-card { height: 170px; }
    .app-card { height: 140px; }
    .prod-home-card { height: 150px; }
    .page-banner { height: 180px; }
    .banner-content h1 { font-size: 24px; }
}
