<?php
    // [1] 获取并规范化域名
    $currentDomain = strtolower($_SERVER['HTTP_HOST']);
    $currentDomain = parse_url('http://' . $currentDomain, PHP_URL_HOST);

    // [2] 关键步骤：提取主域名（强制匹配 m32.cn）
    $domainParts = explode('.', $currentDomain);
    if (count($domainParts) >= 2) {
        $mainDomain = $domainParts[count($domainParts)-2] . '.' . end($domainParts); // 提取 m32.cn
    } else {
        $mainDomain = $currentDomain; // 异常情况处理
    }


    // 所有域名的配置信息（集中管理）
    $domainConfigs = [
        // 案例1：ETC官方网站
        'shifansheng.com' => [
            'beianhao' => '渝ICP备19015497号-2',
            'company' => '重庆万川互动科技有限公司',
            'jiancheng' => '万川互动',
            ],
        'etc122.com' => [
            'beianhao' => '渝ICP备2023002334号-1',
            'company' => '重庆时代互动科技有限公司',
            'jiancheng' => '时代互动',
            'gonganbeian' => '<a style="color: #435f8b;" href="https://beian.mps.gov.cn/#/query/webSearch?code=50010302504697" rel="noreferrer" target="_blank"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAFQklEQVRYw+3Wa1BUdRjH8SOpMeg4WhZGpDIxiaaTeUFgWrxE4AVRQJGlRRAVIV1JkbgMgQLi5AVBQSVLSp0xlEAUKBEEFZCrCstll8UV2AV2YbmoGCrYv31+R95UL5pmmtamZ+bz6rz5nvOc/5zDcX9jGLs/iTxuyvIlWYkRFeTHA2HVRFtzfhthTG5KuH96/vUgNlC4mMgyw1NJit/aAXLKazYje9xtIMZ/OZz50gW+9hcNkvoLEemEPbnrSP47QYwxQ5Ifv54RqzcXwFFvSyjaOhfavN8F7Y5ZcC/HH9JOB4LNa9Zw5YA76OZV8vIGMdZtSp7cDrtOnOavYiQhTAiPwi1AMtIQaqyngsxpBtw2GAGDKfaQmpUAa6xc4Vfp4UtEdzAMycsT9JQ1Tyctl/2eEkuTlYysF/rCUNxMqDEzgTqzSXBnpgnIHCzgjvEEuD52DLBr3rA1MAaWmNtB582wdtIljZ9G9D+IPU6aTxIPBjHCcXvg3CEh9K2fDLWvjIH6D6fwTIyheuwEqLUyhzLOALq8pkN+bgRw3HY4FBsMzxojZxP9DequLjAlQwVrbpIjhyIY4UYGQ/buhdBqPxlk3Gion2IMDQIz3kJe/ZS34I7uHkmD7VSQVgYDNyIAwsNCgfXGXoOBPjP9DKrOCAogA2etGTmTHAMcFwFZye7wS5QlVHGjoEw4A2qPCUBZ6AzNcQ5Q/YYRdO+YB1U3dsDwypLio4FJ3ECryIzWz6Cm3NgTRHN8HiPF6eHAGSbAdh8feFZkB7krzaHE9h2o85sDsiAbkIsXQMN+e2CtGyF0kzdwXCgU5++D/ouLQFV4OEU/g2Q/iNuIPNaKkQflAWBqexxGjhLDVUcL6IwSQN3SGVChe6FJg9dckCx6D1QBliDZLIAxo7eA8eyv4KE0BJqTrHkZvnL9DJKn+Twmt0NsGGHZy2Dn3kQYfsQ53Hh4/r4RNGz8AIpdzKEuaAF0RC2E57MmQgE3ATjuM/CPiANW7AqSfQJQ5vk362eQKmd3JrmXsoSRocpNIMnbB9zbceDIWUPmuHFQNMkISqa9DpUvNK6YDpW2s8DfwBK48WFQnhMCgzUBoLy0BrRVe5P0NWjPLdKUsJiR1tR1wGp8IeZwMgx/SrgRvjxuAziNcwLvyathLOcJHLflhRDYGRYFrNET2rJ5yvPLoas0tOj/oL8UpC4JHyTSU+6MNCS4gvKoAB5WiKG+MAQSg0WwLXQ/ZJ3xhao0FxB5hYCbUwAEfhEF3Td8QP2dAOQnPwFlxgrolUVq9TPoaX+ZB2nLc2Gk6awj1MU78HZZwJMid2Byb550JQwVO0NfxlJgdz14vWKeRAiK6DlQF28PLZdcoLNcBIO92bb6GTQ8Q/13RURT6tlH2gvXMlITLYD6uI+gp2ozdF0VQXumM6ivCqGvahM8kPiDItkeGo8tB025GFQ3xFrSr06zI3/4yde7oN7m0sWk5eKWDqK5JWJQvAHac9ygq3Adr9gTNNc3QG85rzPfHe5/7wDtPwuhp/Zz6CjyhaZzwi6ivfetHdH/oP77+3PJQOsuRnqkQdCa4wWqyx6gyecpL64GTaEX7ycXUJz4GJp1B4O0X/Hg0Xp1tFV+8Ei1k6c5coHofxBrrzQinbKYo0SVJ+wn6iurGHlY5gY911aDJnMFaHXXiDp9GQyvtKfUA9QFTtBZ7gPdit0tpFd9OpwwFmlA9D/o9yNLDpxIKmI8PMnNSNtviCLVpYTITzrXEGWaq4qos0WgOPdpCenIF+eRrurjB4k0PXopYZG6gMg/D/gNBUxhAbSAmKMAAAAASUVORK5CYII=" width="16" height="16"> 渝公网安备50010302504697</a>',
            ],
       
        'm32.cn' => [
            'beianhao' => '渝ICP备19015497号-1',
            'company' => '重庆万川互动科技有限公司',
            'jiancheng' => '万川互动',
                   
            ],
        'fydnc.com' => [
            'beianhao' => '粤ICP备13064058号-1',
            'company' => '个人网站',
            'jiancheng' => '个人网站',
                   
            ],
        'nyzdx.cn' => [
            'beianhao' => '闽ICP备2023006137号-2',
            'company' => '三明泓领机械贸易有限公司',
            'jiancheng' => '三明泓领机械贸易有限公司',
        ],
        // 默认配置（必须放在最后）
        'default' => [
            'template'  => 'index_default',
            'beianhao'  => '',
            'company'   => '个人网站',
            'jiancheng' => '个人网站',
            'gonganbeian' => '<a style="color: #435f8b;" href="https://beian.mps.gov.cn/...">渝公网安备500</a>',
        ]
    ];


    // [4] 域名匹配逻辑
    $config = $domainConfigs['default'];
    if (isset($domainConfigs[$mainDomain])) {
        $config = array_merge($config, $domainConfigs[$mainDomain]);
    } else {
        // 备选匹配逻辑（保留原智能匹配）
        $domainParts = explode('.', $currentDomain);
        for ($i = 1; $i <= count($domainParts); $i++) {
            $checkDomain = implode('.', array_slice($domainParts, -$i));
            if (isset($domainConfigs[$checkDomain])) {
                $config = array_merge($config, $domainConfigs[$checkDomain]);
                break;
            }
        }
    }

    // 安全过滤输出
    function safeOutput($value) {
        return htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
    }

?>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?= safeOutput($config['jiancheng']) ?> - ETC申请，ETC注销，深耕移动互联网</title>
    <!-- 关键词 -->
    <meta name="keywords" content="ETC在线申请,ETC注销,ETC异地注销,ETC办理,ETC解绑,全国ETC服务,ETC网点查询,<?= safeOutput($config['jiancheng']) ?>">
    <!-- 描述 -->
    <meta name="description" content="<?= safeOutput($config['jiancheng']) ?>提供全国ETC在线申请、ETC注销，一站式解决ETC办理、注销，疑难问题解决等。万川车服,智汇未来 深耕移动互联网,以自主知识产权技术,为您提供创新的技术解决方案与运营服务。我们专注于ETC技术方案、网络小说投放与运营以及各类APP定制开发与运营服务">
    <link rel="stylesheet" href="static/fontawesome-free-6.6.0-web/css/all.min.css">
    <style>
        /* 基础样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8f9fa;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* 顶部导航栏 */
        header {
            background-color: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo h1 {
            font-size: 1.8rem;
            font-weight: 700;
            color: #1a365d;
            margin-left: 10px;
        }
        
        .logo-icon {
            color: #3a86ff;
            font-size: 2rem;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav li {
            margin-left: 30px;
        }
        
        nav a {
            text-decoration: none;
            color: #4a5568;
            font-weight: 500;
            font-size: 1.05rem;
            transition: color 0.3s;
            padding: 5px 0;
            position: relative;
        }
        
        nav a:hover {
            color: #3a86ff;
        }
        
        nav a.active {
            color: #3a86ff;
        }
        
        nav a.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #3a86ff;
        }
        
        .mobile-menu-btn {
            display: none;
            font-size: 1.5rem;
            background: none;
            border: none;
            cursor: pointer;
            color: #4a5568;
        }
        
        /* 主视觉区域 */
        .hero {
            background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
            color: white;
            padding: 160px 0 100px;
            margin-top: 70px;
            text-align: center;
        }
        
        .hero h2 {
            font-size: 3rem;
            margin-bottom: 20px;
            font-weight: 700;
        }
        
        .hero p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 40px;
            opacity: 0.9;
        }
        
        .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        .btn {
            display: inline-block;
            padding: 14px 32px;
            border-radius: 4px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 1rem;
            cursor: pointer;
            border: none;
        }
        
        .btn-primary {
            background-color: #3a86ff;
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #2667d6;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
        }
        
        .btn-secondary {
            background-color: transparent;
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }
        
        .btn-secondary:hover {
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }
        
        /* 业务板块 */
        .section-title {
            text-align: center;
            margin-bottom: 60px;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            color: #1a365d;
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }
        
        .section-title h2::after {
            content: '';
            position: absolute;
            width: 70px;
            height: 3px;
            background-color: #3a86ff;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .section-title p {
            color: #718096;
            max-width: 700px;
            margin: 0 auto;
            font-size: 1.1rem;
        }
        
        .services {
            padding: 50px 0;
            background-color: white;
        }
        
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
        }
        
        .service-card {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 40px 30px;
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid #e2e8f0;
        }
        
        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
        }
        
        .service-icon {
            font-size: 3rem;
            color: #3a86ff;
            margin-bottom: 25px;
        }
        
        .service-card h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: #1a365d;
        }
        
        .service-card p {
            color: #718096;
            margin-bottom: 25px;
        }
        
        .keywords {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
        }
        
        .keyword {
            background-color: #e2e8f0;
            color: #4a5568;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        /* 公司优势 */
        /* 公司优势 */
        .advantages {
            padding: 100px 0;
            background-color: white;
        }
        
        .advantages-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }
        
        .advantage-item {
            background-color: white;
            border-radius: 8px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
        }
        
        .advantage-icon {
            font-size: 2.5rem;
            color: #3a86ff;
            margin-bottom: 20px;
        }
        
        .advantage-item h3 {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: #1a365d;
        }
        
        .advantage-item p {
            color: #718096;
        }
        

         /* 新闻/文章模块 - 新布局 */
        .news {
            padding: 100px 0;
            background-color: #f8f9fa;
        }
        
        /* 主新闻大图布局 */
        .main-news-container {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 30px;
            margin-bottom: 50px;
        }
        
        .main-news-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
        }
        
        .main-news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }
        
        .main-news-image {
            height: 350px;
            width: 100%;
            overflow: hidden;
        }
        
        .main-news-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .main-news-card:hover .main-news-image img {
            transform: scale(1.05);
        }
        
        .main-news-content {
            padding: 30px;
        }
        
        .main-news-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            font-size: 0.9rem;
            color: #718096;
        }
        
        .main-news-category {
            background-color: #e2e8f0;
            color: #4a5568;
            padding: 6px 15px;
            border-radius: 20px;
            font-weight: 600;
        }
        
        .main-news-date {
            display: flex;
            align-items: center;
        }
        
        .main-news-date i {
            margin-right: 5px;
        }
        
        .main-news-content h3 {
            font-size: 1.8rem;
            margin-bottom: 20px;
            color: #1a365d;
            line-height: 1.3;
        }
        
        .main-news-content p {
            color: #718096;
            margin-bottom: 25px;
            font-size: 1.1rem;
            line-height: 1.7;
        }
        
        .main-news-link {
            color: #3a86ff;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            display: inline-flex;
            align-items: center;
            transition: color 0.3s;
        }
        
        .main-news-link:hover {
            color: #2667d6;
        }
        
        .main-news-link i {
            margin-left: 8px;
            transition: transform 0.3s;
        }
        
        .main-news-link:hover i {
            transform: translateX(5px);
        }
        
        /* 小新闻列表布局 */
        .small-news-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .small-news-item {
            background-color: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .small-news-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        }
        
        .small-news-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            font-size: 0.8rem;
            color: #718096;
        }
        
        .small-news-category {
            background-color: #e2e8f0;
            color: #4a5568;
            padding: 3px 10px;
            border-radius: 20px;
            font-weight: 500;
        }
        
        .small-news-date {
            display: flex;
            align-items: center;
        }
        
        .small-news-date i {
            margin-right: 5px;
            font-size: 0.8rem;
        }
        
        .small-news-item h4 {
            font-size: 1.1rem;
            margin-bottom: 12px;
            color: #1a365d;
            line-height: 1.4;
            flex-grow: 1;
        }
        
        .small-news-link {
            color: #3a86ff;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            display: inline-flex;
            align-items: center;
            transition: color 0.3s;
        }
        
        .small-news-link:hover {
            color: #2667d6;
        }
        
        .small-news-link i {
            margin-left: 5px;
            font-size: 0.8rem;
            transition: transform 0.3s;
        }
        
        .small-news-link:hover i {
            transform: translateX(3px);
        }
        
        /* 更多新闻网格布局 */
        .more-news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }
        
        .more-news-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .more-news-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }
        
        .more-news-image {
            height: 200px;
            width: 100%;
            overflow: hidden;
        }
        
        .more-news-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .more-news-card:hover .more-news-image img {
            transform: scale(1.05);
        }
        
        .more-news-content {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .more-news-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            font-size: 0.85rem;
            color: #718096;
        }
        
        .more-news-category {
            background-color: #e2e8f0;
            color: #4a5568;
            padding: 4px 12px;
            border-radius: 20px;
            font-weight: 500;
        }
        
        .more-news-date {
            display: flex;
            align-items: center;
        }
        
        .more-news-date i {
            margin-right: 5px;
        }
        
        .more-news-content h3 {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: #1a365d;
            line-height: 1.4;
        }
        
        .more-news-content p {
            color: #718096;
            margin-bottom: 20px;
            flex-grow: 1;
        }
        
        .more-news-link {
            color: #3a86ff;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            transition: color 0.3s;
        }
        
        .more-news-link:hover {
            color: #2667d6;
        }
        
        .more-news-link i {
            margin-left: 8px;
            transition: transform 0.3s;
        }
        
        .more-news-link:hover i {
            transform: translateX(5px);
        }
        
        .news-btn-container {
            text-align: center;
        }
        
        .btn-outline {
            background-color: transparent;
            color: #3a86ff;
            border: 2px solid #3a86ff;
            padding: 12px 30px;
        }
        
        .btn-outline:hover {
            background-color: #3a86ff;
            color: white;
        }
        
        
        /* 页脚 */
        footer {
            background-color: #1a365d;
            color: white;
            padding: 70px 0 30px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 50px;
        }
        
        .footer-column h3 {
            font-size: 1.3rem;
            margin-bottom: 25px;
            color: #fff;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-column h3::after {
            content: '';
            position: absolute;
            width: 40px;
            height: 2px;
            background-color: #3a86ff;
            bottom: 0;
            left: 0;
        }
        
        .footer-column p {
            color: #cbd5e0;
            margin-bottom: 20px;
            line-height: 1.8;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 12px;
        }
        
        .footer-links a {
            color: #cbd5e0;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: #3a86ff;
        }
        
        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #a0aec0;
            font-size: 0.9rem;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .hero h2 {
                font-size: 2.5rem;
            }
            
            .services-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }
            
            nav ul {
                position: fixed;
                top: 70px;
                left: 0;
                width: 100%;
                background-color: white;
                flex-direction: column;
                align-items: center;
                padding: 20px 0;
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
                transform: translateY(-150%);
                transition: transform 0.4s ease;
                z-index: 999;
            }
            
            nav ul.active {
                transform: translateY(0);
            }
            
            nav li {
                margin: 15px 0;
            }
            
            .hero {
                padding: 140px 0 80px;
            }
            
            .hero h2 {
                font-size: 2rem;
            }
            
            .services-grid {
                grid-template-columns: 1fr;
            }
            
            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .btn {
                width: 100%;
                max-width: 300px;
                text-align: center;
            }
        }
        
        @media (max-width: 480px) {
            .hero h2 {
                font-size: 1.8rem;
            }
            
            .section-title h2 {
                font-size: 2rem;
            }
            
            .service-card {
                padding: 30px 20px;
            }
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <header>
        <div class="container header-container">
            <div class="logo">
                <i class="fas fa-laptop-code logo-icon"></i>

                <h1><?= safeOutput($config['jiancheng']) ?></h1>
            </div>
            
            <button class="mobile-menu-btn" id="mobileMenuBtn">
                <i class="fas fa-bars"></i>
            </button>
            
            <nav>
                <ul id="navMenu">
                    <li><a href="#home" class="active">首页</a></li>
                    <li><a href="#services">产品与服务</a></li>
                    <li><a href="#advantages">核心优势</a></li>
                    <li><a href="#contact">联系我们</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <!-- 主视觉区域 -->
    <section class="hero" id="home">
        <div class="container">
            <h2><?= safeOutput($config['jiancheng']) ?>，智汇未来</h2>
            <p>深耕移动互联网，以自主知识产权技术，为您提供创新的技术解决方案与运营服务。我们专注于ETC技术方案、网络小说投放与运营以及各类APP定制开发与运营服务。</p>
            <div class="cta-buttons">
                <a href="#services" class="btn btn-primary">查看我们的解决方案</a>
                <a href="#contact" class="btn btn-secondary">联系我们</a>
            </div>
        </div>
    </section>

    <!-- 业务板块 -->
    <section class="services" id="services">
        <div class="container">
            <div class="section-title">
                <h2>产品与服务</h2>
                <p>我们提供全方位的移动互联网解决方案，涵盖技术开发、运营服务和行业合作</p>
            </div>
            
            <div class="services-grid">
                <!-- 技术服务 -->
                <div class="service-card">
                    <div class="service-icon">
                        <i class="fas fa-laptop-code"></i>
                    </div>
                    <h3>定制化技术解决方案</h3>
                    <p>我们多年耕耘移动互联网领域，拥有多项自主知识产权，能承接并交付各类复杂的技术解决方案，助力企业数字化转型。</p>
                    <div class="keywords">
                        <span class="keyword">移动互联网</span>
                        <span class="keyword">自主知识产权</span>
                        <span class="keyword">技术开发</span>
                        <span class="keyword">系统架构</span>
                    </div>
                </div>
                
                <!-- ETC业务线 -->
                <div class="service-card">
                    <div class="service-icon">
                        <i class="fas fa-car"></i>
                    </div>
                    <h3>ETC技术与运营合作</h3>
                    <p>与全国多个省份的ETC发行方建立深度合作。我们诚邀有意深耕ETC行业的开发者或公司，共同开拓市场，提供技术赋能与运营支持。</p>
                    <div class="keywords">
                        <span class="keyword">ETC发行合作</span>
                        <span class="keyword">行业解决方案</span>
                        <span class="keyword">技术赋能</span>
                        <span class="keyword">运营支持</span>
                    </div>
                </div>
                
                <!-- 其他业务 -->
                <div class="service-card">
                    <div class="service-icon">
                        <i class="fas fa-chart-line"></i>
                    </div>
                    <h3>多元化运营服务</h3>
                    <p>涵盖网络小说投放与运营、各类APP的运营与服务，提供全方位的数字产品生命周期支持，帮助客户实现业务增长与价值最大化。</p>
                    <div class="keywords">
                        <span class="keyword">内容运营</span>
                        <span class="keyword">APP运营</span>
                        <span class="keyword">数字服务</span>
                        <span class="keyword">业务增长</span>
                    </div>
                </div>
            </div>
        </div>
    </section>


    


    <!-- 公司优势 -->
    <section class="advantages" id="advantages">
        <div class="container">
            <div class="section-title">
                <h2>核心优势</h2>
                <p>我们凭借丰富的行业经验和技术实力，为客户提供可靠、高效的解决方案</p>
            </div>
            
            <div class="advantages-grid">
                <div class="advantage-item">
                    <div class="advantage-icon">
                        <i class="fas fa-history"></i>
                    </div>
                    <h3>经验丰富</h3>
                    <p>在移动互联网领域多年深耕，积累了丰富的项目经验和行业洞察力。</p>
                </div>
                
                <div class="advantage-item">
                    <div class="advantage-icon">
                        <i class="fas fa-cogs"></i>
                    </div>
                    <h3>技术自主</h3>
                    <p>拥有多项自主知识产权，技术可靠，能够根据客户需求进行灵活定制。</p>
                </div>
                
                <div class="advantage-item">
                    <div class="advantage-icon">
                        <i class="fas fa-handshake"></i>
                    </div>
                    <h3>深度合作</h3>
                    <p>与行业关键机构建有稳固的合作网络，能够为客户提供更全面的资源支持。</p>
                </div>
                
                <div class="advantage-item">
                    <div class="advantage-icon">
                        <i class="fas fa-layer-group"></i>
                    </div>
                    <h3>服务全面</h3>
                    <p>从技术开发到运营推广，提供一站式服务，降低客户项目管理成本。</p>
                </div>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer id="contact">
        <div class="container">
            <div class="footer-content">
                <div class="footer-column">
                    <h3><?= safeOutput($config['company']) ?></h3>
                    <p>我们致力于通过创新的技术解决方案和专业的运营服务，帮助客户在数字化时代取得成功。</p>
                    <p>深耕移动互联网，智汇未来。</p>
                </div>
                
                <div class="footer-column">
                    <h3>业务范围</h3>
                    <ul class="footer-links">
                        <li><a href="#services">技术解决方案</a></li>
                        <li><a href="#services">ETC业务合作</a></li>
                        <li><a href="#services">网络小说运营</a></li>
                        <li><a href="#services">APP运营服务</a></li>
                    </ul>
                </div>
                
                <div class="footer-column">
                    <h3>联系我们</h3>
                    <p><i class="fas fa-map-marker-alt" style="margin-right: 10px;"></i> 重庆市渝中区石油路1号</p>
                    <p><i class="fas fa-phone" style="margin-right: 10px;"></i> 联系电话:4006-110-122</p>
                    <p><i class="fas fa-envelope" style="margin-right: 10px;"></i> sunmeng#126.com</p>

                    <p><i class="fas fa-envelope" style="margin-right: 10px;"></i> <a href='https://work.weixin.qq.com/kfid/kfcbcadc53853de2dcf' style="color: #ffffff;">在线客服</a></p>

                </div>
            </div>
            
            <div class="copyright">
                <p>&copy; 2023 <?= safeOutput($config['company']) ?> 版权所有</p>
                <p><a href="http://beian.miit.gov.cn" style="color: #435f8b;">备案号：<?= safeOutput($config['beianhao']) ?></a> 
                            <?= $config['gonganbeian'] ?? '' ?><!-- 公安备案直接输出HTML --></p>
            </div>
        </div>
    </footer>

    <script>
        // 移动端菜单切换
        document.getElementById('mobileMenuBtn').addEventListener('click', function() {
            const navMenu = document.getElementById('navMenu');
            navMenu.classList.toggle('active');
            
            // 切换菜单图标
            const icon = this.querySelector('i');
            if (navMenu.classList.contains('active')) {
                icon.classList.remove('fa-bars');
                icon.classList.add('fa-times');
            } else {
                icon.classList.remove('fa-times');
                icon.classList.add('fa-bars');
            }
        });
        
        // 点击导航链接后关闭移动菜单
        const navLinks = document.querySelectorAll('nav a');
        navLinks.forEach(link => {
            link.addEventListener('click', function() {
                const navMenu = document.getElementById('navMenu');
                if (navMenu.classList.contains('active')) {
                    navMenu.classList.remove('active');
                    
                    // 恢复菜单图标
                    const menuBtnIcon = document.querySelector('#mobileMenuBtn i');
                    menuBtnIcon.classList.remove('fa-times');
                    menuBtnIcon.classList.add('fa-bars');
                }
            });
        });
        
        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function(e) {
                e.preventDefault();
                
                const targetId = this.getAttribute('href');
                if (targetId === '#') return;
                
                const targetElement = document.querySelector(targetId);
                if (targetElement) {
                    window.scrollTo({
                        top: targetElement.offsetTop - 70,
                        behavior: 'smooth'
                    });
                }
            });
        });
        
        // 导航栏高亮
        window.addEventListener('scroll', function() {
            const sections = document.querySelectorAll('section[id]');
            const navLinks = document.querySelectorAll('nav a');
            
            let currentSectionId = '';
            
            sections.forEach(section => {
                const sectionTop = section.offsetTop - 100;
                const sectionHeight = section.clientHeight;
                
                if (window.scrollY >= sectionTop && window.scrollY < sectionTop + sectionHeight) {
                    currentSectionId = section.getAttribute('id');
                }
            });
            
            navLinks.forEach(link => {
                link.classList.remove('active');
                if (link.getAttribute('href') === `#${currentSectionId}`) {
                    link.classList.add('active');
                }
            });
        });
    </script>
</body>
</html>