<?php
if (!defined('ROOT_PATH')) { exit('Access Denied'); }
require_once __DIR__ . '/_functions.php';
global $site, $seoTitle, $seoKeywords, $seoDescription;
$tplNavKey = isset($tplNavKey) ? $tplNavKey : 'home';
$pageTitle = trim((string) (isset($seoTitle) ? $seoTitle : ''));
$pageTitle = $pageTitle !== '' ? $pageTitle : tpl_config('site_title', tpl_site_name());
$pageKeywords = trim((string) (isset($seoKeywords) ? $seoKeywords : tpl_config('site_keywords', '')));
$pageDescription = trim((string) (isset($seoDescription) ? $seoDescription : tpl_config('site_description', '')));
$navItems = tpl_nav_items();
?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="applicable-device" content="pc,mobile">
<title><?php echo tpl_e($pageTitle); ?></title>
<meta name="keywords" content="<?php echo tpl_e($pageKeywords); ?>">
<meta name="description" content="<?php echo tpl_e($pageDescription); ?>">
<link rel="icon" href="<?php echo tpl_e(tpl_logo()); ?>">
<link rel="stylesheet" href="<?php echo tpl_e(tpl_asset('skin/css/common.css')); ?>">
<link rel="stylesheet" href="<?php echo tpl_e(tpl_asset('skin/css/abstyle.css')); ?>">
<link rel="stylesheet" href="<?php echo tpl_e(tpl_asset('skin/css/swiper.min.css')); ?>">
<link rel="stylesheet" href="<?php echo tpl_e($site['template_dir']); ?>skin/css/k620-cms.css?v=20260722-1">
<script src="<?php echo tpl_e(tpl_asset('skin/js/jquery-3.6.0.min.js')); ?>"></script>
<script src="<?php echo tpl_e(tpl_asset('skin/js/swiper.min.js')); ?>"></script>
</head>
<body class="<?php echo tpl_e(isset($bodyClass) ? $bodyClass : ''); ?>" data-k620-template="default">
<div class="ab_top">
    <div class="w1400">
        <div class="ab_logo"><a href="<?php echo tpl_e(getUrl('home')); ?>"><img src="<?php echo tpl_e(tpl_logo()); ?>" alt="<?php echo tpl_e(tpl_site_name()); ?>"></a></div>
        <div class="ab_tel"><span>咨询热线</span><p><?php echo tpl_e(tpl_phone()); ?></p></div>
        <div class="clear"></div>
    </div>
    <div class="abTop_Main w1400">
        <div class="abTop_Search">
            <form action="<?php echo tpl_e(getUrl('search')); ?>" method="get">
                <div class="scIpt"><input type="text" name="keyword" placeholder="请输入您要查询的产品" maxlength="50" aria-label="搜索产品"></div>
                <div class="scBtn"><input type="submit" value="" aria-label="搜索"></div><div class="clear"></div>
            </form>
        </div>
        <div class="ab_Nav">
            <button class="nav_menu" type="button" aria-label="打开导航"><span></span><span></span><span></span></button>
            <div class="nav_list"><ul>
                <?php foreach ($navItems as $nav): ?><li class="<?php echo $tplNavKey === $nav['key'] ? 'active' : ''; ?>"><a href="<?php echo tpl_e($nav['url']); ?>"><?php if ($nav['key'] === 'home'): ?><img src="<?php echo tpl_e(tpl_asset('skin/images/home.png')); ?>" alt=""><?php endif; ?><?php echo tpl_e($nav['name']); ?></a><?php if ($nav['key'] !== 'home'): ?><em></em><?php endif; ?></li><?php endforeach; ?>
            </ul><div class="nav_mask"></div></div>
        </div>
        <div class="clear"></div>
    </div>
