/* =================================== 企业官网样式 - 移动端优先 =================================== */ /* --- 导航栏样式 --- */ .glass-nav { background: rgba(5, 10, 20, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); } /* 菜单按钮 */ #menu-btn { transition: transform 0.3s ease; } #menu-btn:active { transform: scale(0.95); } /* 移动端全屏菜单 */ #mobile-menu { will-change: transform; } /* 菜单链接动画 */ .menu-link { position: relative; display: inline-block; transition: color 0.3s ease; } .menu-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: #38bdf8; transition: width 0.3s ease; } .menu-link:hover::after { width: 100%; } /* 发光文字效果 */ .glow-text { text-shadow: 0 0 10px rgba(56, 189, 248, 0.5), 0 0 20px rgba(56, 189, 248, 0.3); } /* --- 官网容器布局 --- */ #website-container { scroll-behavior: smooth; } /* 页面内边距 */ .page-section { min-height: calc(100vh - 4rem); padding-bottom: 2rem; } /* 标题样式 */ .section-title { font-size: 1.5rem; font-weight: 800; color: white; border-left: 4px solid #38bdf8; padding-left: 12px; margin-bottom: 20px; display: flex; align-items: baseline; } /* --- 空状态占位 --- */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; padding: 3rem 1rem; border: 1px dashed rgba(255, 255, 255, 0.1); border-radius: 12px; } .empty-state i { opacity: 0.3; } /* --- 玻璃卡片效果 --- */ .glass-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); } /* --- 轮播图样式 --- */ .carousel-container { background: #000; position: relative; overflow: hidden; } #carousel-track { display: flex; transition: transform 0.5s ease-out; } /* 轮播项容器 */ .carousel-item { width: 100%; height: 100%; flex-shrink: 0; position: relative; overflow: hidden; } .carousel-img { width: 100%; height: 100%; object-fit: cover; } /* 标题覆盖层 */ .carousel-title-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 60%, transparent 100%); color: white; padding: 2rem 1.5rem 1rem; font-size: 1rem; font-weight: 600; line-height: 1.4; pointer-events: none; } @media (min-width: 768px) { .carousel-title-overlay { font-size: 1.25rem; padding: 3rem 2rem 1.5rem; } } /* 视频播放图标 */ .video-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background: rgba(56, 189, 248, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white; pointer-events: none; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(56, 189, 248, 0.5); } .carousel-item:hover .video-play-icon { transform: translate(-50%, -50%) scale(1.1); background: rgba(56, 189, 248, 1); } /* 轮播图指示点 */ #carousel-dots { display: flex; gap: 8px; z-index: 10; } .dot { width: 8px; height: 8px; background: rgba(255, 255, 255, 0.3); border-radius: 50%; transition: all 0.3s ease; cursor: pointer; } .dot.active { background: #38bdf8; width: 24px; border-radius: 4px; } /* --- 新闻列表卡片 --- */ .news-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; } .news-card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(56, 189, 248, 0.3); transform: translateX(4px); } .news-date { color: #38bdf8; font-size: 0.75rem; margin-bottom: 0.25rem; } .news-title { color: white; font-weight: bold; } /* --- 视频播放模态窗口 --- */ .video-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; } .video-modal.active { opacity: 1; } .video-modal-content { width: 90%; max-width: 900px; background: rgba(5, 10, 20, 0.95); border-radius: 12px; border: 1px solid rgba(56, 189, 248, 0.3); overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); } .video-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background: rgba(56, 189, 248, 0.1); border-bottom: 1px solid rgba(56, 189, 248, 0.2); } .video-modal-header h3 { color: white; font-size: 1.125rem; margin: 0; flex: 1; } .video-modal-close { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 6px; transition: all 0.3s ease; } .video-modal-close:hover { background: rgba(255, 255, 255, 0.1); color: #38bdf8; } .video-modal-body { padding: 0; } .video-modal-body video { display: block; background: #000; } /* --- 响应式设计 --- */ /* 平板及以上 */ @media (min-width: 768px) { .section-title { font-size: 2rem; } .carousel-container { border-radius: 16px; } /* 保持汉堡菜单在所有设备上可见 */ } /* 桌面端 */ @media (min-width: 1024px) { .page-section { padding-left: 2rem; padding-right: 2rem; } } /* 超大屏幕 */ @media (min-width: 1280px) { #website-container { max-width: 1280px; margin: 0 auto; } } /* --- 动画性能优化 --- */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } /* --- 深色主题变量(可选,方便后续扩展) --- */ :root { --nav-bg: rgba(5, 10, 20, 0.8); --primary-color: #38bdf8; --text-primary: #ffffff; --text-secondary: #94a3b8; --border-color: rgba(255, 255, 255, 0.1); }