/* =============== YwxApp Frontend 自定义组件样式 =============== */ /* 基于 layuiNetCompany-v1.1.0 模板扩展,覆盖旧业务页面 */ /* 主体容器 */ .main-wrapper { min-height: 60vh; } .layui-container { max-width: 1200px; } /* 顶部公告条 */ .site-notice-bar { background: linear-gradient(90deg, #1E9FFF 0%, #16b8a6 100%); color: #fff; font-size: 13px; line-height: 40px; position: fixed; left: 0; top: 0; width: 100%; z-index: 1001; overflow: hidden; } .site-notice-bar .notice-item { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; align-items: center; } .site-notice-bar .notice-badge { display: inline-block; background: rgba(255,255,255,.25); border-radius: 3px; padding: 0 8px; margin-right: 10px; font-size: 12px; line-height: 22px; } .site-notice-bar .notice-title { color: #fff; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .site-notice-bar .notice-link { color: #fff; opacity: .85; margin-left: 10px; } /* 公告轮播(layui-carousel)适配 */ .site-notice-bar .layui-carousel { background: transparent; } .site-notice-bar .layui-carousel [carousel-item] > * { line-height: 40px; height: 40px; background: transparent; text-align: center; } .site-notice-bar .layui-carousel-arrow, .site-notice-bar .layui-carousel-ind { display: none; } .site-notice-bar a:hover { text-decoration: underline; } /* 通用内页头部 */ .page-header { background: linear-gradient(120deg, #1E9FFF 0%, #16b8a6 100%); padding: 50px 0; color: #fff; text-align: center; margin-bottom: 40px; margin-top: 80px; } .site-notice-bar + .nav + .main-wrapper .page-header { margin-top: 120px; } .page-header h2 { font-size: 30px; font-weight: bold; margin-bottom: 10px; } .page-header p { opacity: .9; font-size: 15px; } .page-header .layui-breadcrumb a { color: #fff !important; } /* 区块标题 */ .section { padding: 50px 0; } .section-title { text-align: center; margin-bottom: 40px; } .section-title h3 { font-size: 26px; color: #333; font-weight: bold; position: relative; display: inline-block; padding-bottom: 12px; } .section-title h3:after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 60px; height: 3px; background: #1E9FFF; border-radius: 2px; } .section-title p { color: #999; margin-top: 12px; font-size: 14px; } /* 新闻列表 */ .news-list { display: flex; flex-direction: column; gap: 20px; } .news-card { display: flex; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: all .3s; } .news-card:hover { box-shadow: 0 6px 20px rgba(30,159,255,.18); transform: translateY(-2px); } .news-card .news-thumb { width: 220px; flex-shrink: 0; overflow: hidden; } .news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 150px; } .news-card .news-body { padding: 18px 22px; flex: 1; } .news-card .news-body h4 { font-size: 17px; margin-bottom: 8px; } .news-card .news-body h4 a { color: #333; } .news-card .news-body h4 a:hover { color: #1E9FFF; } .news-card .news-meta { color: #999; font-size: 13px; margin-bottom: 10px; } .news-card .news-summary { color: #666; font-size: 14px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* 新闻详情 */ .news-detail { background: #fff; border-radius: 8px; padding: 40px; box-shadow: 0 2px 12px rgba(0,0,0,.06); } .news-detail .detail-title { font-size: 26px; color: #333; text-align: center; margin-bottom: 16px; font-weight: bold; } .news-detail .detail-meta { text-align: center; color: #999; font-size: 13px; padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 24px; } .news-detail .detail-content { font-size: 15px; line-height: 2; color: #444; } .news-detail .detail-content img { max-width: 100%; margin: 10px 0; } /* 关于我们 / 通用图文 */ .about-section { display: flex; gap: 40px; align-items: center; } .about-section .about-img { flex: 1; border-radius: 8px; overflow: hidden; } .about-section .about-img img { width: 100%; } .about-section .about-text { flex: 1; } .about-section .about-text h3 { font-size: 24px; margin-bottom: 16px; color: #333; } .about-section .about-text p { color: #666; line-height: 2; margin-bottom: 12px; } .about-stats { display: flex; gap: 30px; margin-top: 24px; } .about-stats .stat { text-align: center; } .about-stats .stat .num { font-size: 32px; font-weight: bold; color: #1E9FFF; } .about-stats .stat .label { color: #999; font-size: 14px; } /* 联系我们 */ .contact-wrap { display: flex; gap: 40px; } .contact-info { flex: 1; } .contact-info .info-item { display: flex; align-items: flex-start; margin-bottom: 24px; } .contact-info .info-item .icon { width: 46px; height: 46px; border-radius: 50%; background: #e8f4ff; color: #1E9FFF; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-right: 16px; flex-shrink: 0; } .contact-info .info-item .text h4 { font-size: 15px; color: #333; margin-bottom: 4px; } .contact-info .info-item .text p { color: #666; font-size: 14px; } .contact-form { flex: 1; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.06); } /* 卡片网格 */ .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; } .feature-card, .product-card, .case-card { background: #fff; border-radius: 8px; padding: 30px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: all .3s; } .feature-card:hover, .product-card:hover, .case-card:hover { box-shadow: 0 6px 20px rgba(30,159,255,.18); transform: translateY(-4px); } .feature-card .icon, .product-card .icon { font-size: 40px; color: #1E9FFF; margin-bottom: 16px; } .feature-card h4, .product-card h4, .case-card h4 { font-size: 18px; margin-bottom: 12px; color: #333; } .feature-card p, .product-card p, .case-card p { color: #666; font-size: 14px; line-height: 1.8; } /* 帮助/公告列表 */ .doc-list { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); } .doc-list .doc-item { display: flex; align-items: center; padding: 16px 22px; border-bottom: 1px solid #f2f2f2; transition: background .2s; } .doc-list .doc-item:hover { background: #f7fbff; } .doc-list .doc-item .doc-tag { background: #e8f4ff; color: #1E9FFF; font-size: 12px; padding: 2px 8px; border-radius: 3px; margin-right: 12px; } .doc-list .doc-item .doc-title { flex: 1; color: #333; } .doc-list .doc-item .doc-time { color: #999; font-size: 13px; } .doc-list .doc-item .doc-arrow { color: #ccc; margin-left: 12px; } /* 首页轮播与 Banner */ .home-carousel { margin-top: 0; } .home-carousel .layui-carousel { margin-bottom: 0; } .banner-item { position: relative; height: 480px; display: flex; align-items: center; justify-content: center; } .banner-inner { text-align: center; color: #fff; padding: 0 20px; max-width: 760px; } .banner-inner h2 { font-size: 42px; font-weight: bold; margin-bottom: 18px; text-shadow: 0 2px 8px rgba(0,0,0,.2); } .banner-inner p { font-size: 18px; opacity: .95; margin-bottom: 28px; text-shadow: 0 1px 4px rgba(0,0,0,.2); } .banner-btn { display: inline-block; padding: 12px 36px; background: #fff; color: #1E9FFF; border-radius: 30px; font-size: 16px; font-weight: bold; transition: all .3s; box-shadow: 0 4px 14px rgba(0,0,0,.15); } .banner-btn:hover { background: #f2f8ff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.2); } /* 首页底部 CTA */ .home-cta { background: linear-gradient(120deg, #1E9FFF 0%, #16b8a6 100%); color: #fff; text-align: center; padding: 60px 0; margin-top: 10px; } .home-cta h3 { font-size: 28px; font-weight: bold; margin-bottom: 12px; } .home-cta p { font-size: 16px; opacity: .9; margin-bottom: 26px; } .home-cta .banner-btn { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.6); } .home-cta .banner-btn:hover { background: #fff; color: #1E9FFF; } /* 特性要点列表 / 代码块 */ .feature-points { margin: 14px 0; padding: 0; list-style: none; } .feature-points li { padding: 6px 0; color: #555; font-size: 14px; line-height: 1.6; } .feature-points li .layui-icon { color: #1E9FFF; margin-right: 8px; } .code-block { background: #2d2d2d; color: #f8f8f2; padding: 18px; border-radius: 8px; font-family: Consolas, Monaco, monospace; font-size: 13px; line-height: 1.7; overflow: auto; max-height: 320px; white-space: pre-wrap; word-break: break-all; } /* 返回顶部 / 广告位 */ .go-top { position: fixed; right: 24px; bottom: 60px; width: 44px; height: 44px; line-height: 44px; text-align: center; background: #1E9FFF; color: #fff; border-radius: 6px; cursor: pointer; display: none; z-index: 999; box-shadow: 0 2px 10px rgba(30,159,255,.4); } .go-top:hover { background: #0d8de9; } .ad-popup-mask { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 1999; display: flex; align-items: center; justify-content: center; } .ad-popup { position: relative; max-width: 90%; } .ad-popup img { max-width: 100%; border-radius: 8px; } .ad-popup .ad-close { position: absolute; right: -12px; top: -12px; width: 32px; height: 32px; line-height: 32px; text-align: center; background: #fff; color: #999; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); } .ad-float { position: fixed; right: 16px; bottom: 120px; width: 120px; z-index: 998; cursor: pointer; } .ad-float img { width: 100%; border-radius: 8px; } .ad-float .ad-close { position: absolute; right: -8px; top: -8px; width: 22px; height: 22px; line-height: 22px; text-align: center; background: #fff; color: #999; border-radius: 50%; cursor: pointer; font-size: 12px; } /* 空状态 */ .empty-tip { text-align: center; padding: 60px 0; color: #999; } .empty-tip .layui-icon { font-size: 48px; display: block; margin-bottom: 12px; color: #ddd; } /* 分页 */ .list-pager { text-align: center; margin-top: 40px; } /* 响应式 */ @media (max-width: 768px) { .card-grid { grid-template-columns: 1fr; } .about-section, .contact-wrap { flex-direction: column; } .news-card { flex-direction: column; } .news-card .news-thumb { width: 100%; height: 180px; } .page-header { padding: 30px 0; } .page-header h2 { font-size: 22px; } .banner-inner h2 { font-size: 26px; } .banner-inner p { font-size: 15px; } .banner-item { height: 320px; } .home-cta h3 { font-size: 22px; } .about-stats { gap: 20px !important; flex-wrap: wrap; } } /* 公告条固定顶部,导航固定在其下方,主体补偿公告条高度(40px) */ .nav { top: 40px; } .main-wrapper { padding-top: 40px; } /* 移动端导航切换按钮(.nav-list button),桌面隐藏 */ .nav .nav-list { display: none; } .nav .nav-list button { position: relative; top: 0; right: 0; } .nav .nav-list button span { transition: .3s; } .nav .nav-list button.open span:nth-child(1) { transform: rotate(45deg) translate(6px,5px); } .nav .nav-list button.open span:nth-child(2) { opacity: 0; } .nav .nav-list button.open span:nth-child(3) { transform: rotate(-45deg) translate(6px,-5px); } @media (max-width: 992px) { .site-notice-bar { display: none; } .nav { top: 0; } .main-wrapper { padding-top: 0; } .nav .nav-list { display: block; position: absolute; top: 25px; right: 15px; } .nav .layui-nav { position: absolute; left: 0; right: 0; top: 80px; background: #fff; flex-direction: column; display: none; padding: 6px 0; box-shadow: 0 6px 16px rgba(0,0,0,.12); border-top: 1px solid #f0f0f0; } .nav .layui-nav.open { display: block; } .nav .layui-nav .layui-nav-item { display: block; line-height: 50px; text-align: center; } .nav .layui-nav .layui-nav-item a { color: #333 !important; padding: 0 !important; } .nav .layui-nav .layui-this a { color: #2db5a3 !important; } .nav .nav-logo { left: 15px; } } /* 底部(覆盖 index.css 深色 .footer,采用浅色现代风格) */ .footer { background: #1f2d3d; padding: 0; } .footer-top { padding: 50px 0 30px; } .footer .footer-column { margin-bottom: 24px; } .footer .footer-column h3 { color: #fff; font-size: 16px; margin-bottom: 16px; position: relative; padding-bottom: 10px; } .footer .footer-column h3:after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: #2db5a3; } .footer .footer-desc { color: #aeb9c4; font-size: 13px; line-height: 1.9; margin-bottom: 16px; } .footer .footer-contact p { color: #aeb9c4; font-size: 13px; line-height: 2; } .footer .footer-contact .layui-icon { color: #2db5a3; margin-right: 6px; } .footer .footer-links { list-style: none; } .footer .footer-links li { line-height: 2.2; } .footer .footer-links a { color: #aeb9c4; font-size: 13px; transition: .2s; } .footer .footer-links a:hover { color: #fff; padding-left: 4px; } .footer .footer-qrcode { text-align: center; } .footer .footer-qrcode img { width: 110px; height: 110px; border-radius: 6px; background: #fff; padding: 6px; } .footer .footer-qrcode p { color: #aeb9c4; font-size: 12px; margin-top: 10px; line-height: 1.6; } .footer-bottom { background: #18232f; text-align: center; padding: 16px 0; color: #7a8694; font-size: 13px; line-height: 1.8; } .footer-bottom .beian { font-size: 12px; }