/* 页面样式 */ body { background-color: rgb(244, 245, 247); margin: 0; font-family: Arial, sans-serif; } /* 内容限制宽度并居中 */ .container { max-width: 1400px; width: 100%; margin: 0 auto; /* 居中容器 */ display: flex; align-items: center; padding: 50px; } /* 左侧内容 */ .content-left { width: 50%; } /* 标题样式 */ h1 { font-size: 3rem; line-height: 1.3; margin-bottom: 10px; } /* 打字效果 */ .typing-effect { display: inline-block; white-space: nowrap; overflow: hidden; max-width: var(--typing-width, 15ch); border-right: 4px solid; animation: typing 1s steps(4, end) forwards, blink-caret 0.75s step-end infinite; } @keyframes typing { from { max-width: 0; } to { max-width: var(--typing-width, 15ch); } } @keyframes blink-caret { 50% { border-color: transparent; } } /* 下划线样式 */ .underline { position: relative; display: inline-block; color: #000; } .underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 18px; background-color: #DC143C; } /* 副标题 */ .subtitle { font-size: 18px; color: #555; margin: 0 0 60px 0; } /* 按钮样式 */ .buttons { display: flex; gap: 15px; } .buttons a { display: inline-block; } .buttons button { padding: 10px 20px; font-size: 16px; cursor: pointer; border: none; border-radius: 5px; color: white; transition: background-color 0.3s ease; } .btn-grey { background-color: #757575; } .btn-red { background-color: #f44336; } .btn-orange { background-color: #ff5722; } .buttons button:hover { opacity: 0.9; } /* 右侧图片 */ .content-right { width: 50%; display: flex; justify-content: center; align-items: center; } .content-right img { max-width: 100%; height: auto; border-radius: 10px; } .image-slider { position: relative; width: 100%; padding-top: 56.25%; /* 16:9 比例，可以根据图片实际比例调整 */ overflow: hidden; } .slider-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; /* 确保图片填满容器 */ opacity: 0; transition: opacity 1s ease-in-out; } .slider-image.active { opacity: 1; } /* 产品特点板块样式 */ .features { margin-top: 10px; max-width: 1200px; margin: 0 auto; } /* 主标题样式 */ .features h2 { font-size: 1.8rem; line-height: 1.3; margin-bottom: 10px; text-align: center; font-weight: 500; } /* 副标题样式 */ .features .subtitle { font-size: 1rem; color: #777; margin: 10px 0 40px 0; text-align: center; } /* 产品特点项样式 */ .feature-item { text-align: center; flex: 1; } .feature-item p { font-size: 3rem; font-weight: bold; color: #333; margin: 10px 0; } .feature-item span { font-size: 1rem; color: #777; } /* 设置flex布局，使每个产品特点项横向排列 */ .features-content { display: flex; justify-content: space-between; width: 100%; } /* 产品功能介绍样式 */ /* 主标题样式 */ .function h2 { width: 100%; font-size: 1.8rem; line-height: 1.3; text-align: center; font-weight: 500; } .function { max-width: 1200px; /* 容器最大宽度 */ margin: 60px auto; /* 上下间距 60px，左右居中 */ display: flex; flex-wrap: wrap; /* 启用换行 */ justify-content: space-between; /* 每行元素等距分布 */ gap: 20px; /* 元素间距 */ } .function-warpper { width: calc((100% - 40px) / 3); /* 每个功能块占总宽度的 1/3，减去总间距 */ background: #fff; border-radius: 8px; padding: 15px; box-shadow: 0 0 .25rem rgba(73, 80, 87, .05) !important; box-sizing: border-box; /* 包括内边距在宽度内 */ } .function-content { display: flex; /* 使用 Flexbox 布局 */ align-items: center; /* 图标和文字垂直居中 */ gap: 15px; /* 图标和文字之间的间距 */ } /* 设置function-icon的样式 */ .function-icon { width: 50px; height: 50px; background-color: rgba(0, 85, 255, .12); /* 背景色 */ border-radius: .5rem; /* 圆角 */ display: flex; /* 使用Flexbox对齐 */ justify-content: center; /* 水平居中 */ align-items: center; /* 垂直居中 */ padding: 10px; /* 给内部的SVG一些空间 */ } /* 设置SVG图标的样式 */ .function-icon svg { width: 30px; /* 使SVG填满父容器 */ height: 30px; /* 高度自适应 */ object-fit: contain; /* 确保SVG按比例缩放 */ fill: rgba(0, 85, 255, .16); color: #05f; } .function-text { flex: 1; /* 占据剩余空间 */ } .function-title { font-size: 18px; font-weight: bold; margin: 0 0 5px; /* 标题和描述之间的间距 */ color: #333; } .function-description { font-size: 14px; color: #666; line-height: 1.5; margin: 0; /* 描述的外边距 */ } /* 悬浮客服小窗 */ .contact-widget { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); width: 200px; background-color: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); border-radius: 8px; overflow: hidden; border: 1px solid #ddd; z-index: 1000; } /* 头像部分 */ .widget-header { display: flex; align-items: center; padding: 10px; background-color: #f5f5f5; border-bottom: 1px solid #ddd; } .avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 10px; } .status { font-size: 14px; color: #555; } .status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; } .status-dot.online { background-color: #4caf50; } .status-dot.offline { background-color: #f44336; } /* 按钮部分 */ .widget-body { padding: 10px; text-align: center; } .contact-btn { padding: 10px 20px; font-size: 16px; color: #fff; background-color: #007bff; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s ease; } .contact-btn:hover { background-color: #0056b3; }
/* ---- 留言区 / 页脚 / 后台入口（新增） ---- */
.hp { position:absolute!important; left:-9999px!important; width:1px; height:1px; overflow:hidden; }
.guestbook { max-width: 1200px; margin: 40px auto 0; padding: 0 50px; }
.guestbook h2 { font-size: 1.8rem; line-height: 1.3; text-align: center; font-weight: 500; margin-bottom: 24px; }
.gb-form { background:#fff; border-radius:8px; padding:16px; box-shadow:0 0 .25rem rgba(73,80,87,.08); max-width:760px; margin:0 auto; }
.gb-row { display:flex; gap:12px; }
.gb-form input, .gb-form textarea { width:100%; box-sizing:border-box; padding:10px 12px; border:1px solid #ddd; border-radius:6px; font:inherit; font-size:14px; margin-bottom:12px; }
.gb-form textarea { resize:vertical; min-height:90px; }
.gb-foot { display:flex; align-items:center; gap:14px; }
.gb-msg { font-size:14px; color:#555; }
.gb-msg.err { color:#f44336; }
.gb-list { list-style:none; padding:0; margin:22px auto 0; max-width:760px; }
.gb-list li { background:#fff; border-radius:8px; padding:12px 16px; margin-bottom:12px; box-shadow:0 0 .25rem rgba(73,80,87,.06); }
.gb-list .gb-meta { font-size:12px; color:#999; margin-bottom:6px; }
.gb-list .gb-body { font-size:14px; color:#444; line-height:1.6; white-space:pre-wrap; word-break:break-word; }
.gb-empty { text-align:center; color:#999; font-size:14px; }
.site-footer { max-width:1200px; margin:40px auto 30px; padding:0 50px; text-align:center; color:#999; font-size:13px; line-height:1.9; }
.site-footer a { color:#999; text-decoration:none; }
.site-footer .icp:empty { display:none; }
.admin-fab { position:fixed; left:12px; bottom:12px; z-index:1001; font-size:12px; opacity:.35; }
.admin-fab a { color:#666; text-decoration:none; }
.admin-fab:hover { opacity:1; }
@media (max-width: 900px) {
  .container { flex-direction: column; padding: 24px; }
  .content-left, .content-right { width: 100%; }
  .features-content { flex-wrap: wrap; gap: 18px; }
  .feature-item { flex: 1 1 40%; }
  .function-warpper { width: 100%; }
  .gb-row { flex-direction: column; gap: 0; }
  .guestbook, .site-footer { padding: 0 24px; }
}