346 lines
		
	
	
		
			8.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			346 lines
		
	
	
		
			8.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
| 
 | |
| <head>
 | |
|     <meta charset="utf-8">
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | |
|     <title>{$config['web_title']}</title>
 | |
|     <link rel="stylesheet" href="__LAYUI__/css/layui.css">
 | |
|     <link rel="stylesheet" href="__CSS__/style.css">
 | |
|     <link rel="stylesheet" href="__CSS__/bootstrap.min.css">
 | |
|     <link rel="stylesheet" href="__CSS__/fontawesome.css">
 | |
| 
 | |
|     <script src="__LAYUI__/layui.js" charset="utf-8"></script>
 | |
|     <script src="__JS__/bootstrap.bundle.js"></script>
 | |
|     <script charset="UTF-8" id="LA_COLLECT" src="//www.yunzer.cn/plugins/js-sdk-pro.min.js"></script>
 | |
|     <script>LA.init({ id: "KoyzaWWEcLvPzkQn", ck: "KoyzaWWEcLvPzkQn", autoTrack: true, prefix: 'event' })</script>
 | |
|     <script src="__JS__/banner.js"></script>
 | |
|     <style>
 | |
|         /* 用户头像样式 */
 | |
|         #userAvatar {
 | |
|             width: 40px;
 | |
|             height: 40px;
 | |
|             cursor: pointer;
 | |
|             transition: all 0.3s ease;
 | |
|         }
 | |
| 
 | |
|         #userAvatar:hover {
 | |
|             transform: scale(1.05);
 | |
|             box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 | |
|         }
 | |
| 
 | |
|         /* 下拉菜单容器 */
 | |
|         .user-dropdown {
 | |
|             position: absolute;
 | |
|             top: 50px;
 | |
|             right: 0;
 | |
|             width: 160px;
 | |
|             background: #fff;
 | |
|             border-radius: 4px;
 | |
|             box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
 | |
|             opacity: 0;
 | |
|             visibility: hidden;
 | |
|             transform: translateY(-10px);
 | |
|             transition: all 0.3s ease;
 | |
|             z-index: 9999;
 | |
|         }
 | |
| 
 | |
|         .user-dropdown.show {
 | |
|             opacity: 1;
 | |
|             visibility: visible;
 | |
|             transform: translateY(0);
 | |
|         }
 | |
| 
 | |
|         /* 下拉菜单列表 */
 | |
|         .user-dropdown ul {
 | |
|             margin: 0;
 | |
|             padding: 5px 0;
 | |
|             list-style: none;
 | |
|         }
 | |
| 
 | |
|         /* 下拉菜单项 */
 | |
|         .user-dropdown li {
 | |
|             margin: 0;
 | |
|             padding: 0;
 | |
|         }
 | |
| 
 | |
|         /* 下拉菜单链接 */
 | |
|         .user-dropdown li a {
 | |
|             display: flex;
 | |
|             align-items: center;
 | |
|             padding: 10px 15px;
 | |
|             color: #333;
 | |
|             text-decoration: none;
 | |
|             transition: all 0.3s ease;
 | |
|         }
 | |
| 
 | |
|         /* 下拉菜单图标 */
 | |
|         .user-dropdown li a i {
 | |
|             margin-right: 10px;
 | |
|             font-size: 16px;
 | |
|             color: #666;
 | |
|         }
 | |
| 
 | |
|         /* 下拉菜单文字 */
 | |
|         .user-dropdown li a span {
 | |
|             font-size: 14px;
 | |
|         }
 | |
| 
 | |
|         /* 下拉菜单悬停效果 */
 | |
|         .user-dropdown li a:hover {
 | |
|             background: #f5f5f5;
 | |
|             color: #1E9FFF;
 | |
|         }
 | |
| 
 | |
|         .user-dropdown li a:hover i {
 | |
|             color: #1E9FFF;
 | |
|         }
 | |
| 
 | |
|         /* 分隔线 */
 | |
|         .user-dropdown li:not(:last-child) {
 | |
|             border-bottom: 1px solid #f0f0f0;
 | |
|         }
 | |
| 
 | |
|         #userDropdownSticky a {
 | |
|             color: #0d6efd !important;
 | |
|         }
 | |
| 
 | |
|         .main-menu__right {
 | |
|             display: flex;
 | |
|             align-items: center;
 | |
|         }
 | |
| 
 | |
|         .username {
 | |
|             display: flex;
 | |
|             align-items: center;
 | |
|         }
 | |
| 
 | |
|         .search-icon {
 | |
|             font-size: 20px;
 | |
|             cursor: pointer;
 | |
|             color: #333;
 | |
|             transition: color 0.3s ease;
 | |
|         }
 | |
| 
 | |
|         .search-icon:hover {
 | |
|             color: #1e9fff;
 | |
|         }
 | |
| 
 | |
|         .search-mask {
 | |
|             position: fixed;
 | |
|             top: 0;
 | |
|             left: 0;
 | |
|             width: 100%;
 | |
|             height: 100%;
 | |
|             background: rgba(0, 0, 0, 0.7);
 | |
|             z-index: 9999;
 | |
|             display: none;
 | |
|             opacity: 0;
 | |
|             transition: opacity 0.3s ease;
 | |
|             justify-content: center;
 | |
|             align-items: center;
 | |
|         }
 | |
| 
 | |
|         .search-mask.show {
 | |
|             display: flex;
 | |
|             opacity: 1;
 | |
|         }
 | |
| 
 | |
|         .search-container {
 | |
|             position: relative;
 | |
|             width: 80%;
 | |
|             padding: 20px;
 | |
|             background: #fff;
 | |
|             border-radius: 8px;
 | |
|             box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 | |
|             transform: translateY(-20px);
 | |
|             transition: transform 0.3s ease;
 | |
|         }
 | |
| 
 | |
|         .search-mask.show .search-container {
 | |
|             transform: translateY(0);
 | |
|         }
 | |
| 
 | |
|         .search-box {
 | |
|             display: flex;
 | |
|             align-items: center;
 | |
|             height: 60px;
 | |
|             background: #fff;
 | |
|             border-radius: 30px;
 | |
|             box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 | |
|             overflow: hidden;
 | |
|         }
 | |
| 
 | |
|         .search-box input {
 | |
|             flex: 1;
 | |
|             height: 100%;
 | |
|             padding: 0 20px;
 | |
|             border: none;
 | |
|             outline: none;
 | |
|             font-size: 16px;
 | |
|         }
 | |
| 
 | |
|         .search-box button {
 | |
|             height: 100%;
 | |
|             padding: 0 30px;
 | |
|             border: none;
 | |
|             background: #1E9FFF;
 | |
|             color: #fff;
 | |
|             font-size: 16px;
 | |
|             cursor: pointer;
 | |
|             transition: background-color 0.3s;
 | |
|         }
 | |
| 
 | |
|         .search-box button:hover {
 | |
|             background: #1a8fe6;
 | |
|         }
 | |
| 
 | |
|         .search-type {
 | |
|             height: 100%;
 | |
|             padding: 0 15px;
 | |
|             border: none;
 | |
|             border-right: 1px solid #eee;
 | |
|             background: #f8f8f8;
 | |
|             color: #666;
 | |
|             font-size: 14px;
 | |
|             cursor: pointer;
 | |
|             outline: none;
 | |
|             appearance: none;
 | |
|             -webkit-appearance: none;
 | |
|             -moz-appearance: none;
 | |
|             background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
 | |
|             background-repeat: no-repeat;
 | |
|             background-position: right 10px center;
 | |
|             background-size: 12px;
 | |
|             padding-right: 30px;
 | |
|         }
 | |
| 
 | |
|         .search-type:hover {
 | |
|             background-color: #f0f0f0;
 | |
|         }
 | |
| 
 | |
|         .search-type:focus {
 | |
|             background-color: #fff;
 | |
|             box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
 | |
|         }
 | |
|     </style>
 | |
| 
 | |
| 
 | |
|     <style>
 | |
|         /* Banner样式 */
 | |
|         .banner-content {
 | |
|             position: relative;
 | |
|             width: 100%;
 | |
|             height: 100%;
 | |
|             overflow: hidden;
 | |
|         }
 | |
| 
 | |
|         .banner-image {
 | |
|             position: absolute;
 | |
|             top: 0;
 | |
|             left: 0;
 | |
|             width: 100%;
 | |
|             height: 100%;
 | |
|         }
 | |
| 
 | |
|         .banner-image img {
 | |
|             width: 100%;
 | |
|             height: 100%;
 | |
|             object-fit: cover;
 | |
|             object-position: center;
 | |
|         }
 | |
| 
 | |
|         .banner-text {
 | |
|             position: absolute;
 | |
|             top: 40%;
 | |
|             left: 10%;
 | |
|             z-index: 1;
 | |
|             display: flex;
 | |
|             flex-direction: column;
 | |
|             align-items: flex-start;
 | |
|             color: #fff;
 | |
|         }
 | |
| 
 | |
|         .banner-text a {
 | |
|             text-decoration: none;
 | |
|             margin-top: 30px;
 | |
|         }
 | |
| 
 | |
|         .banner-title {
 | |
|             font-size: 4em;
 | |
|             font-weight: 600;
 | |
|             margin-bottom: 10px;
 | |
|             text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
 | |
|         }
 | |
| 
 | |
|         .banner-desc {
 | |
|             font-size: 2em;
 | |
|             font-weight: 400;
 | |
|             max-width: 800px;
 | |
|             text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
 | |
|         }
 | |
| 
 | |
|         .banner-btn {
 | |
|             background: #fff;
 | |
|             color: #000;
 | |
|             padding: 10px 20px;
 | |
|             border-radius: 5px;
 | |
|             cursor: pointer;
 | |
|             transition: all 0.3s ease;
 | |
|         }
 | |
| 
 | |
|         .banner-btn:hover {
 | |
|             background: #000;
 | |
|             color: #fff;
 | |
|         }
 | |
| 
 | |
|         .banner-slider {
 | |
|             width: 100%;
 | |
|             height: 86vh;
 | |
|             overflow: hidden;
 | |
|             position: relative;
 | |
|         }
 | |
| 
 | |
|         .banner-container {
 | |
|             width: 100%;
 | |
|             height: 100%;
 | |
|         }
 | |
| 
 | |
|         .banner-slide {
 | |
|             display: block;
 | |
|             width: 100%;
 | |
|             height: 100%;
 | |
|         }
 | |
| 
 | |
|         .banner-slide img {
 | |
|             width: 100%;
 | |
|             height: 100%;
 | |
|             object-fit: cover;
 | |
|             /* 关键:等比缩放并铺满 */
 | |
|             display: block;
 | |
|         }
 | |
| 
 | |
|         .layui-carousel {
 | |
|             background: #f8f8f8;
 | |
|             margin: 0;
 | |
|             padding: 0;
 | |
|         }
 | |
| 
 | |
|         /* 确保轮播容器和项目的高度正确 */
 | |
|         #test10,
 | |
|         #test10 [carousel-item],
 | |
|         #test10 [carousel-item]>* {
 | |
|             height: 86vh !important;
 | |
|         }
 | |
| 
 | |
|         #test10 [carousel-item]>* {
 | |
|             background: none !important;
 | |
|         }
 | |
| 
 | |
|         .main-content {
 | |
|             min-height: 23vh;
 | |
|         }
 | |
|     </style>
 | |
| </head>
 | |
| 
 | |
| <body> |