/* 修改基础配色 */ :root { --primary-blue: #00c2ff; --primary-green: #00d87b; --light-bg: #ffffff; --light-secondary: #f8f9fa; --text-dark: #333333; --text-secondary: #666666; --border-color: rgba(0, 194, 255, 0.2); } /* 将index.html中的所有样式内容移动到这里 */ body { margin: 0; font-family: '微软雅黑', 'Microsoft YaHei', sans-serif; background: var(--light-bg); color: var(--text-dark); } /* 修改头部样式 */ .header-wrap { border-bottom: 1px solid var(--border-color); background: var(--light-bg); box-shadow: 0 2px 10px rgba(0, 194, 255, 0.1); } .header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; } .header-inner span { color: var(--text-dark) !important; } /* 修改banner样式 */ .banner-wrap { background: linear-gradient(45deg, rgba(0, 194, 255, 0.05), rgba(0, 255, 157, 0.05)), url('../images/banner-6yKP_oUz.png') no-repeat center center; background-size: cover; position: relative; height: 400px; } .banner-wrap::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, rgba(255, 255, 255, 0.9), transparent); } .banner-wrap h3 { color: #1e3d59; text-shadow: 0 0 20px rgba(30, 61, 89, 0.2); font-size: 70px; font-family: Avenir, Helvetica, Arial, sans-serif; margin: 0 0 20px 0; font-weight: 700; line-height: 70px; padding-left: 0; } .banner-wrap p { color: var(--text-dark); font-size: 20px; margin: 0; max-width: 800px; } .banner-wrap .width1600 { padding-left: 20px; padding-top: 80px; } .banner-wrap .width1600 > div { margin-left: 0; padding-left: 0; } /* 通用样式 */ .width1600 { max-width: 1600px; margin: 0 auto; padding: 0 20px; } .s-flex { display: flex; } .ai-ct { align-items: center; } .jc-bt { justify-content: space-between; } /* 功能模块样式 */ .function-module { background: var(--light-secondary); padding: 60px 0; } .public-title { text-align: center; margin-bottom: 40px; } .public-title h4 { color: var(--text-dark); position: relative; display: inline-block; font-size: 36px; margin: 0 0 15px 0; } .public-title h4::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: linear-gradient(90deg, var(--primary-blue), var(--primary-green)); } .public-title p { color: var(--text-secondary); font-size: 18px; margin: 0; } .function-module-list { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; padding: 20px 0; } .function-item { background: var(--light-bg); border: 1px solid var(--border-color); box-shadow: 0 4px 20px rgba(0, 194, 255, 0.1); padding: 40px; border-radius: 8px; width: 280px; text-align: center; transition: all 0.3s ease; } .function-item:hover { border-color: var(--primary-blue); box-shadow: 0 8px 30px rgba(0, 194, 255, 0.2); animation: glow 2s infinite; } .function-item img { width: 120px; height: 120px; margin-bottom: 30px; transition: transform 0.3s ease; } .function-item:hover img { transform: scale(1.05); } .function-item h5 { color: var(--text-dark); font-size: 22px; margin: 0 0 15px 0; } .function-item p { color: var(--text-secondary); margin: 0 0 25px 0; line-height: 1.6; } .function-item .btn { display: inline-block; padding: 12px 40px; background: linear-gradient(45deg, var(--primary-blue), var(--primary-green)); color: white; border-radius: 4px; text-decoration: none; font-size: 16px; transition: background-color 0.3s ease; border: none; } .function-item .btn:hover { background: linear-gradient(45deg, var(--primary-green), var(--primary-blue)); opacity: 0.95; } /* 核心技术样式 */ .core-tech { background: var(--light-bg); padding: 60px 0; } .tech-tabs { display: flex; justify-content: center; margin-bottom: 40px; gap: 60px; border-bottom: 1px solid var(--border-color); position: relative; z-index: 1; margin-top: 20px; } .tech-tab { color: var(--text-secondary); padding: 15px 30px; font-size: 18px; cursor: pointer; position: relative; transition: all 0.3s ease; } .tech-tab.active { color: var(--primary-green); } .tech-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--primary-green); } .tech-content { background: var(--light-secondary); display: flex; align-items: flex-start; gap: 60px; padding: 40px; border-radius: 8px; } .tech-image { flex: 0 0 45%; max-width: 600px; position: relative; transition: all 0.3s ease; cursor: pointer; } .tech-image:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); } .tech-image img { width: 100%; height: auto; border-radius: 8px; display: block; transition: all 0.3s ease; } .tech-image-value { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95)); padding: 30px 20px 20px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; } .tech-image:hover .tech-image-value { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.95)); } .tech-image-value h5 { color: var(--text-dark); font-size: 20px; margin: 0 0 10px 0; font-weight: bold; } .tech-image-value p { color: var(--text-dark); margin: 0; line-height: 1.5; font-size: 16px; } .tech-info { flex: 1; } .tech-value { margin-bottom: 30px; } .tech-value h5 { color: var(--text-dark); font-size: 20px; margin: 0 0 15px 0; } .tech-value p { color: var(--text-secondary); line-height: 1.6; margin: 0; } .tech-intro { margin-bottom: 30px; } .tech-advantages li { color: var(--text-secondary); margin-bottom: 10px; line-height: 1.6; } .core-tech-frame { width: 100%; height: 100%; border-radius: 8px; } /* 应用场景样式 */ .application { background: linear-gradient(45deg, var(--primary-blue), var(--primary-green)); padding: 60px 0; } .application .public-title h4, .application .public-title p { color: white; } .application-list { display: flex; justify-content: center; gap: 30px; margin-top: 40px; } .application-item { background: var(--light-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 40px; width: 300px; text-align: center; transition: all 0.3s ease; } .application-item:hover { box-shadow: 0 8px 30px rgba(0, 216, 123, 0.2); border-color: var(--primary-green); animation: glow 2s infinite; } .application-item img { width: 80px; height: 80px; margin-bottom: 20px; } .application-item h5 { color: var(--text-dark); font-size: 22px; margin: 0 0 15px 0; } .application-item p { color: var(--text-secondary); margin: 0 0 20px 0; line-height: 1.6; } .application-item .features { color: var(--text-secondary); text-align: left; } .application-item .features li { margin-bottom: 8px; display: flex; align-items: center; } .application-item .features li::before { content: "✓"; color: var(--primary-green); margin-right: 8px; font-weight: bold; } .application-item .btn { display: inline-block; padding: 12px 40px; background: linear-gradient(45deg, var(--primary-blue), var(--primary-green)); color: white; border-radius: 4px; text-decoration: none; font-size: 16px; margin-top: 20px; transition: background-color 0.3s ease; } .application-item .btn:hover { background: linear-gradient(45deg, var(--primary-green), var(--primary-blue)); opacity: 0.95; } /* 页脚样式 */ .footer { background: var(--text-dark); padding: 20px 0; text-align: center; } .footer p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 14px; } /* 浮窗样式 */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 1000; } .modal-content { background: var(--light-bg); box-shadow: 0 0 30px rgba(0, 194, 255, 0.2); border-radius: 8px; position: relative; width: 90%; max-width: 1200px; height: 80vh; } .modal-close { position: absolute; right: -40px; top: 0; color: white; font-size: 30px; cursor: pointer; padding: 10px; } .modal-iframe { width: 100%; height: 100%; border: none; border-radius: 8px; } /* 动画效果 */ @keyframes glow { 0% { box-shadow: 0 0 5px rgba(0, 194, 255, 0.2); } 50% { box-shadow: 0 0 20px rgba(0, 194, 255, 0.4); } 100% { box-shadow: 0 0 5px rgba(0, 194, 255, 0.2); } } /* 修改案例样式 */ .case-section { background: var(--light-secondary); padding: 60px 0; } .case-tabs { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; } .case-tab { color: var(--text-secondary); font-size: 18px; cursor: pointer; padding: 10px 20px; border-radius: 20px; transition: all 0.3s ease; position: relative; overflow: hidden; } .case-tab::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, var(--primary-blue), var(--primary-green)); opacity: 0; transition: opacity 0.3s ease; z-index: -1; border-radius: 20px; } .case-tab:hover::before { opacity: 0.1; } .case-tab.active::before { opacity: 1; } .case-tab.active { color: white; background: linear-gradient(45deg, var(--primary-blue), var(--primary-green)); } .case-item { background: white; border: 1px solid var(--border-color); border-radius: 8px; padding: 30px; margin-top: 40px; box-shadow: 0 4px 20px rgba(0, 194, 255, 0.1); transition: all 0.3s ease; } .case-item .case-header { display: block; margin-bottom: 20px; } .case-item .case-image { flex: 0 0 40%; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); } .case-item .case-content { width: 100%; } .case-item h5 { color: var(--text-dark); font-size: 24px; margin: 0 0 15px 0; } .case-item .case-desc { color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; max-width: 800px; } .case-item .case-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; } .case-item .stat-item { background: var(--light-secondary); padding: 15px; border-radius: 6px; text-align: center; transition: all 0.3s ease; } .case-item .stat-item:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0, 194, 255, 0.15); } .case-item .stat-value { font-size: 24px; font-weight: bold; color: var(--primary-blue); margin-bottom: 5px; } .case-item .stat-label { color: var(--text-secondary); font-size: 14px; } /* 添加文档图标和下拉菜单样式 */ .doc-dropdown { position: relative; margin-left: auto; } .doc-icon { cursor: pointer; padding: 10px; display: flex; align-items: center; color: var(--text-dark); font-size: 16px; transition: all 0.3s ease; } .doc-icon i { margin-right: 8px; font-size: 20px; } .doc-icon:hover { color: var(--primary-blue); } .dropdown-menu { position: absolute; top: 100%; right: 0; background: white; border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 194, 255, 0.1); min-width: 320px; display: none; z-index: 1000; padding: 8px 0; } .dropdown-menu.show { display: block; } .dropdown-menu a { display: block; padding: 10px 20px; color: var(--text-dark); text-decoration: none; transition: all 0.3s ease; } .dropdown-menu a:hover { background: var(--light-secondary); color: var(--primary-blue); } /* 添加文档项样式 */ .doc-item { padding: 15px 20px; border-bottom: 1px solid var(--border-color); } .doc-item:last-child { border-bottom: none; } .doc-item .doc-link { display: block; color: var(--text-dark); text-decoration: none; margin-bottom: 8px; transition: all 0.3s ease; } .doc-item .doc-link:hover { color: var(--primary-blue); } .doc-item .copy-btn { display: inline-flex; align-items: center; padding: 4px 12px; font-size: 12px; color: var(--text-secondary); background: var(--light-secondary); border: none; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; } .doc-item .copy-btn i { margin-right: 4px; font-size: 12px; } .doc-item .copy-btn:hover { background: var(--primary-blue); color: white; } /* 修改复制成功提示样式 */ .copy-tooltip { position: fixed; /* 改为fixed定位,确保在视窗中居中 */ left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, 0.8); color: white; padding: 15px 30px; border-radius: 8px; font-size: 14px; pointer-events: none; opacity: 0; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); z-index: 2000; } .copy-tooltip i { color: #52c41a; /* 成功图标的颜色 */ font-size: 16px; } .copy-tooltip.show { opacity: 1; transform: translate(-50%, -50%) scale(1); } .copy-tooltip.hide { opacity: 0; transform: translate(-50%, -50%) scale(0.8); } /* 添加展示类型切换标签样式 */ .display-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; } .display-tab { padding: 8px 20px; border-radius: 20px; cursor: pointer; color: var(--text-secondary); transition: all 0.3s ease; font-size: 16px; background: transparent; border: 1px solid var(--border-color); } .display-tab.active { background: linear-gradient(45deg, var(--primary-blue), var(--primary-green)); color: white; border: none; } .display-tab:hover:not(.active) { border-color: var(--primary-blue); color: var(--primary-blue); } .display-content { position: relative; height: 500px; margin-bottom: 60px; } .display-content > div { position: absolute; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .display-content > div.active { opacity: 1; visibility: visible; } .demo-3d { width: 100%; height: 100%; } .arch-image { display: flex; justify-content: center; align-items: center; background: var(--light-secondary); border-radius: 8px; padding: 20px; height: 100%; cursor: pointer; transition: all 0.3s ease; } .arch-image:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0, 194, 255, 0.1); } .arch-image img { max-width: 100%; max-height: 100%; object-fit: contain; transition: all 0.3s ease; } /* 添加图片放大模态框样式 */ .image-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.9); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 40px; } .image-modal.show { display: flex; } .image-modal img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; animation: zoomIn 0.3s ease; } .image-modal-close { position: absolute; top: 20px; right: 20px; color: white; font-size: 30px; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: all 0.3s ease; } .image-modal-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); } @keyframes zoomIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }