<?php
// 数据库配置
$servername = "localhost";
$username = "admin";
$password = "qwer123456..";
$dbname = "aliyun";
$table = "articles";

// 创建数据库连接
$conn = new mysqli($servername, $username, $password, $dbname);

// 检查连接
if ($conn->connect_error) {
    die("数据库连接失败: " . $conn->connect_error);
}

// 获取当前页码
$page = isset($_GET['page']) ? (int)$_GET['page'] : 1;
$page = max($page, 1); // 确保页码不小于1

// 分页设置
$perPage = 10; // 每页显示10篇文章
$offset = ($page - 1) * $perPage;

// 获取文章总数 - 仅阿里云数据库
$sqlCount = "SELECT COUNT(*) as total FROM $table WHERE category = '阿里云存储'";
$countResult = $conn->query($sqlCount);
$totalArticles = $countResult->fetch_assoc()['total'];
$totalPages = ceil($totalArticles / $perPage);

// 获取当前页的文章数据 - 仅阿里云数据库
$sql = "SELECT id, title, author, excerpt, content, cover_path, created_at 
        FROM $table 
        WHERE category = '阿里云存储'
        ORDER BY created_at DESC 
        LIMIT $offset, $perPage";
$result = $conn->query($sql);
?>

<!DOCTYPE html>
<html lang="zh-CN">
<head>



<meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0">
    <title>阿里云代理博客 | 第<?php echo $page; ?>页 | 全云在线</title>
    <link rel="canonical" href="https://www.allcloudonline.com/">

    <!-- 百度验证与站长平台集成 -->
    <meta name="baidu-site-verification" content="codeva-u8h41mnzYg">
    
    <!-- 百度特色标记 -->
    <meta name="cosc-source" content="阿里云核心代理商">
    <meta name="location" content="province=广东;city=广州">
    <meta name="applicable-device" content="pc,mobile">
    
    <!-- 百度搜索优化描述 -->
    <meta name="description" content="【2025阿里云官方授权核心代理商】企业云服务咨询：400-930-9830。阿里云官方授权核心伙伴，提供企业级云计算解决方案与专业技术服务，全云在线助力客户加速数字化转型进程，共享云端生态价值。">
    <meta itemprop="name" content="阿里云代理商|全云在线 - 广东企业上云首选服务商">
    
    <!-- 百度结构化数据 -->
    <script type="application/ld+json">
    {
        "@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld",
        "@id": "https://www.allcloudonline.com/",
        "title": "阿里云代理商 | 全云在线",
        "images": ["https://www.allcloudonline.com/baidu-og.jpg"],
        "description": "2025阿里云官方授权核心合作伙伴，为企业提供全方位云服务解决方案",
        "pubDate": "2025-09-01T10:00:00+08:00",
        "author": {
            "@type": "Organization",
            "name": "全云在线"
        },
        "provider": {
            "@type": "Organization",
            "name": "阿里云",
            "service": "云计算服务"
        },
        "seller": {
            "@type": "Organization",
            "name": "全云在线",
            "contact": "400-930-9830"
        },
        "serviceArea": {
            "@type": "City",
            "name": "广东省广州市"
        }
    }
    </script>

    <!-- 开放图谱与社交媒体优化 -->
    <meta property="og:title" content="阿里云代理商 | 全云在线">
    <meta property="og:description" content="阿里云官方授权核心伙伴，提供云服务解决方案与专业技术支持，已服务超200家大湾区企业">
    <meta property="og:image" content="https://www.allcloudonline.com/social-banner.png">
    <meta property="og:url" content="https://www.allcloudonline.com/">
    <meta property="og:type" content="website">
    <meta property="og:site_name" content="全云在线">
    <meta name="twitter:site" content="@AllCloudOnline">
    
    <!-- 百度阅读样式适配 -->
    <meta name="baidu-appinfo" content="version=1.0">
    <meta name="baidu-spam" content="human">
    
    <!-- 百度移动适配设置 -->
    <meta name="mobile-agent" content="format=html5; url=https://m.allcloudonline.com/">
    
    <!-- 图标与网站身份 -->

    <link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">





    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f9fc, #e6f0ff);
            color: #1e3a6d;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* 导航栏样式 */
        header {
            background-color: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
            font-size: 22px;
            font-weight: bold;
        }
        
        .logo span:first-child {
            color: #FF6A00;
        }
        
        .logo span:last-child {
            color: #0070c0;
            margin-left: 5px;
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-left: 30px;
            position: relative;
        }
        
        .nav-links a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            transition: color 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .nav-links a:hover, .nav-links a.active {
            color: #FF6A00;
        }
        
        /* 下拉菜单样式 */
        .dropdown {
            position: relative;
        }
        
        .dropdown-content {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            border-radius: 8px;
            width: 220px;
            padding: 15px 0;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
        }
        
        .dropdown:hover .dropdown-content {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .dropdown-content a {
            padding: 12px 20px;
            display: block;
            color: #555;
            transition: all 0.3s;
            font-size: 15px;
            position: relative;
        }
        
        .dropdown-content a:hover {
            color: #0070c0;
            background: #f8fbff;
        }
        
        .dropdown-content a:hover::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: #0070c0;
        }
        
        .dropdown-content a i {
            width: 25px;
            color: #0070c0;
            font-size: 16px;
        }
        
        /* 页面标题 */
        .page-header {
            background: linear-gradient(120deg, #0070c0, #FF6A00);
            color: white;
            padding: 100px 0;
            text-align: center;
            margin-bottom: 50px;
            border-radius: 0 0 10px 10px;
            position: relative;
            overflow: hidden;
        }
        
        .page-header::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }
        
        .page-header h1 {
            font-size: 2.8rem;
            margin-bottom: 20px;
            position: relative;
            z-index: 2;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        .page-header p {
            font-size: 1.25rem;
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.92;
            position: relative;
            z-index: 2;
        }
        
        /* 分类标题样式 */
        .category-header {
            text-align: center;
            margin-bottom: 60px;
            padding: 30px;
            background: white;
            border-radius: 18px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
            max-width: 900px;
            margin: -30px auto 60px;
        }
        
        .category-title {
            font-size: 2.3rem;
            color: #1e3a6d;
            margin-bottom: 15px;
            font-weight: 700;
        }
        
        .category-info {
            margin-top: 25px;
            font-size: 1.2rem;
            color: #FF6A00;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 106, 0, 0.1);
            padding: 8px 20px;
            border-radius: 30px;
        }
        
        /* 文章列表样式 */
        .articles-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 35px;
            margin-bottom: 60px;
        }
        
        @media (max-width: 768px) {
            .articles-container {
                grid-template-columns: 1fr;
            }
        }
        
        .article-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
            display: flex;
            flex-direction: column;
            height: 100%;
            border: 1px solid rgba(0, 112, 192, 0.1);
        }
        
        .article-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 45px rgba(0, 112, 192, 0.25);
        }
        
        .article-image {
            height: 220px;
            position: relative;
            overflow: hidden;
            border-bottom: 3px solid #0070c0;
        }
        
        .article-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.6s ease;
        }
        
        .article-card:hover .article-image img {
            transform: scale(1.08);
        }
        
        .article-tag {
            position: absolute;
            top: 15px;
            right: 0;
            background: linear-gradient(90deg, #ff6a00, #ff8c3f);
            color: white;
            padding: 6px 20px;
            font-weight: bold;
            border-radius: 30px 0 0 30px;
            font-size: 0.9rem;
            box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
        }
        
        .article-content {
            padding: 32px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .article-title {
            font-size: 1.8rem;
            margin-bottom: 20px;
            color: #0070c0;
            line-height: 1.3;
        }
        
        .article-title a {
            color: inherit;
            text-decoration: none;
            transition: color 0.3s;
            display: block;
        }
        
        .article-title a:hover {
            color: #FF6A00;
            text-decoration: underline;
            text-decoration-thickness: 2px;
            text-underline-offset: 5px;
        }
        
        .article-meta {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            margin-bottom: 20px;
            color: #5a7bab;
            font-size: 0.95rem;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(0, 112, 192, 0.15);
        }
        
        .article-meta span {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .article-meta i {
            color: #0070c0;
            min-width: 20px;
            text-align: center;
        }
        
        .article-excerpt {
            color: #4a6fa5;
            margin-bottom: 28px;
            line-height: 1.8;
            flex-grow: 1;
            font-size: 1.05rem;
        }
        
        .read-more {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 600;
            text-decoration: none;
            gap: 8px;
            transition: all 0.3s;
            padding: 14px 26px;
            border-radius: 12px;
            background: linear-gradient(90deg, #0070c0, #2b96e6);
            width: fit-content;
            transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
            box-shadow: 0 4px 15px rgba(0, 112, 192, 0.25);
        }
        
        .read-more:hover {
            background: linear-gradient(90deg, #ff6a00, #ff8c3f);
            transform: translateY(-3px);
            box-shadow: 0 7px 20px rgba(255, 106, 0, 0.35);
            gap: 12px;
        }
        
        /* 分页样式 */
        .pagination {
            display: flex;
            justify-content: center;
            margin: 60px 0 80px;
            gap: 10px;
        }
        
        .page-item {
            display: inline-block;
        }
        
        .page-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            background: white;
            border: 2px solid #d0e2f5;
            color: #1e3a6d;
            text-decoration: none;
            font-weight: 700;
            border-radius: 12px;
            transition: all 0.3s;
            font-size: 1.1rem;
            box-shadow: 0 4px 15px rgba(0, 112, 192, 0.08);
        }
        
        .page-link:hover, .page-item.active .page-link {
            background: linear-gradient(120deg, #0070c0, #ff6a00);
            color: white;
            border-color: transparent;
            transform: translateY(-3px);
            box-shadow: 0 7px 20px rgba(0, 112, 192, 0.25);
        }
        
        .page-link.prev, .page-link.next {
            padding: 0 28px;
            width: auto;
        }
        
        .page-link.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none !important;
        }
        
        /* 浮动咨询窗口 */
        .floating-window {
            position: fixed;
            right: 35px;
            top: 50%;
            transform: translateY(-50%);
            width: 260px;
            background: white;
            border-radius: 18px;
            box-shadow: 0 12px 40px rgba(0, 76, 142, 0.2);
            padding: 25px;
            text-align: center;
            z-index: 99;
            transition: all 0.4s ease;
            border: 1px solid rgba(0, 112, 192, 0.2);
        }
        
        .floating-window:hover {
            box-shadow: 0 15px 50px rgba(0, 76, 142, 0.3);
            transform: translateY(-50%) scale(1.02);
        }
        
        .qrcode {
            width: 200px;
            height: 200px;
            background: linear-gradient(135deg, #f0f7ff, #e0eeff);
            margin: 0 auto 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            border: 1px solid rgba(0, 112, 192, 0.2);
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 112, 极光壁纸192, 0.15);
        }
        
        .qrcode img {
            width: 90%;
            height: 90%;
            object-fit: contain;
            border-radius: 8px;
        }
        
        .scan-text {
            color: #ff6a00;
            font-weight: bold;
            margin-bottom: 22px;
            font-size: 18px;
            text-shadow: 0 2px 4px rgba(255, 106, 0, 0.15);
        }
        
        .contact-info {
            border-top: 1px solid rgba(0, 112, 192, 0.15);
            padding-top: 22px;
        }
        
        .contact-item {
            margin-bottom: 18px;
            font-size: 16px;
            text-align: left;
        }
        
        .contact-item:last-child {
            margin-bottom: 0;
        }
        
        .contact-title {
            color: #0070c0;
            font-weight: bold;
            margin-bottom: 6px;
            font-size: 17px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .contact-title i {
            font-size: 18px;
        }
        
        .contact-detail {
            color: #1e3a6d;
            font-size: 16px;
            padding-left: 26px;
        }
        
        /* 关闭按钮 */
        .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 28px;
            height: 28px;
            cursor: pointer;
            color: #5a7bab;
            font-size: 20px;
            line-height: 28px;
            text-align: center;
            border-radius: 50%;
            transition: all 0.3s;
            background: rgba(0, 112, 192, 0.1);
        }
        
        .close-btn:hover {
            background: rgba(255, 106, 0, 0.2);
            color: #ff6a00;
            transform: rotate(90deg);
        }
        
        /* 页脚 */
        footer {
            background: linear-gradient(120deg, #1a2a42, #0d1a2d);
            color: white;
            padding: 50px 0 30px;
            text-align: center;
        }
        
        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .footer-logo {
            margin-bottom: 25px;
            font-size: 1.8rem;
            font-weight: bold;
        }
        
        .footer-logo span:first-child {
            color: #FF6A00;
        }
        
        .footer-logo span:last-child {
            color: #4aa8ff;
        }
        
        .contact-info-footer {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
            justify-content: center;
            margin: 20px 0;
        }
        
        .contact-info-footer div {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .copyright {
            margin-top: 30px;
            color: #aaa;
            font-size: 0.95rem;
            padding-top: 20px;
            border-top: 1px solid #3c5065;
            width: 100%;
            max-width: 800px;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .articles-container {
                grid-template-columns: 1fr;
                gap: 30px;
            }
        }
        
        @media (max-width: 768px) {
            .navbar {
                flex-direction: column;
                padding: 15px 0;
            }
            
            .nav-links {
                flex-wrap: wrap;
                justify-content: center;
                margin-top: 20px;
                gap: 10px;
            }
            
            .nav-links li {
                margin-left: 18px;
                margin-right: 18px;
            }
            
            .page-header {
                padding: 110px 20px 80px;
            }
            
            .page-header h1 {
                font-size: 2.6rem;
            }
            
            .category-title {
                font-size: 2rem;
            }
            
            .floating-window {
                display: none;
            }
            
            .pagination {
                flex-wrap: wrap;
            }
        }
        
        @media (max-width: 480px) {
            .page-header {
                padding: 90px 15px 70px;
            }
            
            .page-header h1 {
                font-size: 2.2rem;
            }
            
            .nav-links li {
                margin-left: 12px;
                margin-right: 12px;
            }
            
            .nav-links a {
                font-size: 15px;
                padding: 8px 10px;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <header>
        <div class="container">
            <nav class="navbar">
                <div class="logo">
                    <span>阿里云代理商</span><span>|全云在线</span>
                </div>
                <ul class="nav-links">
                    <li><a href="index.php"><i class="fas fa-home"></i>首页</a></li>
                    <li><a href="youshi.php"><i class="fas fa-star"></i>优势</a></li>
                    <li><a href="chanpin.php"><i class="fas fa-fire"></i>热门产品</a></li>
                    <li><a href="youhuiliucheng.php"><i class="fas fa-tags"></i>优惠流程</a></li>
                    <li><a href="anli.php"><i class="fas fa-folder-open"></i>案例</a></li>
                    
                    <!-- 阿里云代理下拉菜单 -->
                    <li class="dropdown">
                        <a href="aliyundaili.php"><i class="fas fa-cloud"></i>阿里云代理 <i class="fas fa-chevron-down"></i></a>
                        <div class="dropdown-content">
                            <a href="aliyundailishan.php"><i class="fas fa-layer-group"></i>阿里云代理商</a>
                            <a href="aliyunfandian.php"><i class="fas fa-percentage"></i>阿里云返点</a>
                            <a href="aliyunfuwuqi.php"><i class="fas fa-server"></i>阿里云服务器</a>
                            <a href="aliyunshujuku.php"><i class="fas fa-database"></i>阿里云数据库</a>
                            <a href="aliyunCDN.php"><i class="fas fa-network-wired"></i>阿里云CDN</a>
                            <a href="aliyuncunchu.php"><i class="fas fa-hdd"></i>阿里云存储</a>
                        </div>
                    </li>
                    
                    <li><a href="guanyuwomen.php"><i class="fas fa-users"></i>关于我们</a></li>
					<li><a href="biaodan.php"><i class="fas fa-shopping-cart"></i>联系我们</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <!-- 页面标题 -->
    <section class="page-header">
        <div class="container">
            <h1>阿里云代理技术资源库</h1>
            <p>专业云计算知识与行业动态，助力企业数字化转型</p>
        </div>
    </section>

    <!-- 分类标题 -->
    <div class="container">
        <div class="category-header">
            <h2 class="category-title">阿里云存储</h2>
            <div class="category-info">
                <i class="fas fa-file-alt"></i> 共 <?php echo $totalArticles; ?> 篇文章 第 <?php echo $page; ?> 页/共 <?php echo $totalPages; ?> 页
            </div>
        </div>
    </div>

    <!-- 文章列表 -->
    <div class="container">
        <div class="articles-container">
            <?php if ($result->num_rows > 0): ?>
                <?php while($article = $result->fetch_assoc()): ?>
                    <div class="article-card">
                        <div class="article-image">
                            <?php if ($article['cover_path']): ?>
                                <img src="<?php echo htmlspecialchars($article['cover_path']); ?>" alt="<?php echo htmlspecialchars($article['title']); ?>">
                            <?php else: ?>
                                <img src="https://img.alicdn.com/tfs/TB1nPppcFGw3KVjSZFwXXXQ2FXa-1024-575.jpg" alt="默认文章封面">
                            <?php endif; ?>
                            <div class="article-tag">云计算技术</div>
                        </div>
                        <div class="article-content">
                            <h3 class="article-title">
                                <a href="aliyundaili1.php?id=<?php echo $article['id']; ?>" >
                                    <?php echo htmlspecialchars($article['title']); ?>
                                </a>
                            </h3>
                            <div class="article-meta">
                                <span class="user"><i class="fas fa-user"></i> <?php echo htmlspecialchars($article['author']); ?></span>
                                <span class="date"><i class="fas fa-calendar"></i> <?php echo date('Y-m-d', strtotime($article['created_at'])); ?></span>
                            </div>
                            <div class="article-excerpt">
                                <?php 
                                    if (!empty($article['excerpt'])) {
                                        echo htmlspecialchars($article['excerpt']);
                                    } else {
                                        $excerpt = mb_substr(strip_tags($article['content']), 0, 150, 'UTF-8');
                                        echo htmlspecialchars($excerpt) . "...";
                                    }
                                ?>
                            </div>
                            <a href="aliyundaili1.php?id=<?php echo $article['id']; ?>" class="read-more">
                                阅读全文 <i class="fas fa-arrow-right"></i>
                            </a>
                        </div>
                    </div>
                <?php endwhile; ?>
            <?php else: ?>
                <div style="grid-column: 1/-1; text-align: center; padding: 80px 30px; background: white; border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 112, 192, 0.1);">
                    <i class="fas fa-file-alt" style="font-size: 80px; color: #0070c0; margin-bottom: 30px;"></i>
                    <h3 style="margin-bottom: 20px; color: #1e3a6d; font-size: 2rem;">
                        没有找到文章
                    </h3>
                    <p style="color: #5a7bab; margin-bottom: 30px; font-size: 1.2rem;">
                        请尝试其他分类或稍后再来查看
                    </p>
                </div>
            <?php endif; ?>
        </div>
        
        <!-- 分页导航 -->
        <?php if ($totalPages > 1): ?>
        <div class="pagination">
            <?php
            // 上一页按钮
            if ($page > 1) {
                $prevPage = $page - 1;
                echo '<div class="page-item">
                        <a href="?page=' . $prevPage . '" class="page-link prev">
                            <i class="fas fa-arrow-left"></i> <span>上一页</span>
                        </a>
                      </div>';
            } else {
                echo '<div class="page-item">
                        <a class="page-link prev disabled">
                            <i class="fas fa-arrow-left"></i> <span>上一页</span>
                        </a>
                      </div>';
            }
            
            // 页码按钮
            $startPage = max(1, $page - 2);
            $endPage = min($totalPages, $page + 2);
            
            if ($startPage > 1) {
                echo '<div class="page-item">
                        <a href="?page=1" class="page-link">1</a>
                      </div>';
                if ($startPage > 2) {
                    echo '<div class="page-item">
                            <span class="page-link" style="pointer-events: none;">...</span>
                          </div>';
                }
            }
            
            for ($i = $startPage; $i <= $endPage; $i++) {
                $activeClass = ($i == $page) ? 'active' : '';
                echo '<div class="page-item ' . $activeClass . '">
                        <a href="?page=' . $i . '" class="page-link">' . $i . '</a>
                      </div>';
            }
            
            if ($endPage < $totalPages) {
                if ($endPage < $totalPages - 1) {
                    echo '<div class="page-item">
                            <span class="page-link" style="pointer-events: none;">...</span>
                          </div>';
                }
                echo '<div class="page-item">
                        <a href="?page=' . $totalPages . '" class="page-link">' . $totalPages . '</a>
                      </div>';
            }
            
            // 下一页按钮
            if ($page < $totalPages) {
                $nextPage = $page + 1;
                echo '<div class="page-item">
                        <a href="?page=' . $nextPage . '" class="page-link next">
                            <span>下一页</span> <i class="fas fa-arrow-right"></i>
                        </a>
                      </div>';
            } else {
                echo '<div class="page-item">
                        <a class="page-link next disabled">
                            <span>下一页</span> <i class="fas fa-arrow-right"></i>
                        </a>
                      </div>';
            }
            ?>
        </div>
        <?php endif; ?>
    </div>
    
    <!-- 浮动咨询窗口 -->
    <div class="floating-window">
        <div class="close-btn" id="closeWindow">×</div>
        <div class="qrcode">
            <img src="https://www.invcloud.cn/static/ytd/img/ys_WeChat.png" alt="微信二维码">
        </div>
        <div class="scan-text">扫码立即咨询</div>
        <div class="contact-info">
            <div class="contact-item">
                <div class="contact-title"><i class="fas fa-phone"></i>咨询电话</div>
                <div class="contact-detail">400-930-9830</div>
            </div>
            <div class="contact-item">
                <div class="contact-title"><i class="fas fa-user-tie"></i>客户经理</div>
                <div class="contact-detail">185-8888-9999</div>
            </div>
            <div class="contact-item">
                <div class="contact-title"><i class="fas fa-envelope"></i>企业邮箱</div>
                <div class="contact-detail">info@allcloud.online</div>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="footer-logo">
                    <span>阿里云代理商</span><span>|全云在线</span>
                </div>
                <p>专业、可靠、高效的云服务解决方案提供商</p>
                <div class="contact-info-footer">
                    <div><i class="fas fa-phone"></i> 400-930-9830</div>
                    <div><i class="fas fa-envelope"></i> info@invcloud.cn</div>
                    <div><i class="fas fa-map-marker-alt"></i> 广东省广州市越秀区东风东路华宫大厦15楼创云科技</div>
                </div>
                <p class="copyright">© 2015-2035 全云在线 版权所有 | 粤ICP备16009659号 | 阿里云增值服务中心</p>
            </div>
        </div>
    </footer>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 关闭浮动窗口
            const closeBtn = document.getElementById('closeWindow');
            const floatingWindow = document.querySelector('.floating-window');
            
            closeBtn.addEventListener('click', function() {
                floatingWindow.style.display = 'none';
            });
            
            // 为文章卡片添加悬停效果
            const articleCards = document.querySelectorAll('.article-card');
            articleCards.forEach(card => {
                card.addEventListener('mouseenter', function() {
                    const readMore = this.querySelector('.read-more');
                    if (readMore) {
                        readMore.style.background = 'linear-gradient(90deg, #ff6a00, #ff8c3f)';
                        readMore.style.transform = 'translateY(-3px)';
                        readMore.style.boxShadow = '0 7px 20px rgba(255, 106, 0, 0.35)';
                        readMore.style.gap = '12px';
                    }
                    this.style.boxShadow = '0 15px 45px rgba(0, 112, 192, 0.3)';
                });
                
                card.addEventListener('mouseleave', function() {
                    const readMore = this.querySelector('.read-more');
                    if (readMore) {
                        readMore.style.background = 'linear-gradient(90deg, #0070c0, #2b96e6)';
                        readMore.style.transform = 'translateY(0)';
                        readMore.style.boxShadow = '0 4px 15px rgba(0, 112, 192, 0.25)';
                        readMore.style.gap = '8px';
                    }
                    this.style.boxShadow = '0 12px 40px rgba(0, 0, 0, 0.08)';
                });
            });
        });
    </script>
</body>
</html>
<?php
// 关闭数据库连接
$conn->close();
?>
