Files
haiguji-website-export/css/style.css
T
Claude f347a99dd9 首页英雄区改为深海岩层暗色背景,新增右下角跟随鼠标粒子效果与Hyper-seq风格排版
- 替换 hero 渐变背景为深海军蓝岩层质感(多层径向渐变 + SVG噪点纹理)
- 新增 js/particles.js:右下角粒子网络,随鼠标移动产生吸引连线效果
- 首页主标语改为「突破极限 / 生命从此被计算」,引入 Orbitron + Noto Sans SC 粗体字体
- 新增极低成本/高效/灵活/高通量徽标行,呼应参考宣传册排版
2026-07-14 06:23:00 +00:00

566 lines
11 KiB
CSS

/* 全局样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-blue: #1e3c72;
--primary-purple: #6a2c91;
--secondary-blue: #2a5298;
--accent-color: #00d4ff;
--hero-overlay-color: rgba(127, 255, 212, 0.32);
--light-bg: #f5f7fa;
--dark-text: #333;
--light-text: #666;
/* 深海岩层配色(参考 Hyper-seq 宣传册) */
--rock-navy-0: #05070c;
--rock-navy-1: #0a1120;
--rock-navy-2: #121d34;
--rock-navy-3: #1b2c4a;
--ice-blue: #cfe8ff;
--ice-blue-dim: #9cc6ec;
--electric-blue: #38bdf8;
--coral-accent: #ff8a5c;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: var(--dark-text);
line-height: 1.6;
background-color: #fff;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* 英雄部分 —— 深海岩层背景 */
.hero {
position: relative;
height: 62vh;
min-height: 460px;
max-height: 680px;
overflow: hidden;
background:
radial-gradient(ellipse 60% 45% at 18% 15%, rgba(148, 163, 184, 0.16), transparent 60%),
radial-gradient(ellipse 55% 40% at 78% 10%, rgba(110, 130, 170, 0.14), transparent 60%),
radial-gradient(ellipse 70% 55% at 82% 88%, rgba(56, 189, 248, 0.10), transparent 65%),
linear-gradient(160deg, var(--rock-navy-0) 0%, var(--rock-navy-1) 40%, var(--rock-navy-2) 72%, var(--rock-navy-3) 100%);
}
/* 岩石颗粒质感叠加层 */
.hero::before {
content: "";
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
opacity: 0.5;
mix-blend-mode: overlay;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
background-size: 240px 240px;
}
/* 岩壁棱线光影 */
.hero::after {
content: "";
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
background:
linear-gradient(105deg, transparent 30%, rgba(180, 196, 220, 0.05) 42%, transparent 54%),
linear-gradient(72deg, transparent 55%, rgba(180, 196, 220, 0.04) 63%, transparent 74%);
}
/* 右下角跟随鼠标的粒子网络 */
.hero-particles {
position: absolute;
right: 0;
bottom: 0;
width: 60%;
height: 75%;
z-index: 1;
pointer-events: none;
}
.hero-carousel {
position: relative;
width: 100%;
height: 100%;
}
.hero-slide {
display: none;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.hero-slide.active {
display: flex;
align-items: center;
animation: slideIn 0.5s ease-in;
}
.hero-brand-slide.active {
justify-content: center;
}
@keyframes slideIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.hero-slide > img {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.16;
z-index: 0;
filter: grayscale(0.3) brightness(0.7);
}
.hero-brand-slide::before {
content: "";
position: absolute;
inset: 0;
z-index: 1;
background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(28, 45, 74, 0.35), rgba(5, 7, 12, 0.55) 80%);
}
.hero-brand-slide > img {
opacity: 0.1;
}
.hero-content {
position: relative;
z-index: 2;
color: white;
padding-left: 60px;
max-width: 600px;
}
.hero-content h1 {
font-family: 'Orbitron', 'Noto Sans SC', 'Segoe UI', sans-serif;
font-size: 2.45rem;
font-weight: 700;
letter-spacing: 0.03em;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-content p {
font-size: 1.3rem;
margin-bottom: 30px;
opacity: 0.95;
}
.hero-brand-content {
max-width: 960px;
padding: 0 20px;
margin: 0 auto;
}
.hero-brand-heading {
display: flex;
align-items: center;
gap: 34px;
}
.hero-brand-copy {
min-width: 0;
}
.hero-brand-logo {
height: 8.5rem;
width: auto;
flex: 0 0 auto;
filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}
.hero-kicker {
display: inline-block;
font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
font-size: 0.95rem;
font-weight: 700;
letter-spacing: 0.35em;
text-transform: uppercase;
color: var(--ice-blue-dim);
margin-bottom: 14px;
}
.hero-brand-heading h1 {
color: var(--ice-blue);
margin-bottom: 0;
text-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
font-weight: 900;
letter-spacing: 0.02em;
}
.hero-line-1 {
display: block;
line-height: 1.35;
font-size: 3.1rem;
}
.hero-line-2 {
display: block;
line-height: 1.6;
font-size: 1.4rem;
font-weight: 700;
color: rgba(207, 232, 255, 0.75);
letter-spacing: 0.15em;
margin-left: 0.2rem;
}
.hero-badge-row {
display: flex;
flex-wrap: wrap;
gap: 14px;
margin-top: 26px;
}
.hero-badge {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 8px 20px;
border: 1px solid rgba(156, 198, 236, 0.5);
border-radius: 999px;
font-size: 0.85rem;
font-weight: 600;
letter-spacing: 0.05em;
color: var(--ice-blue);
background: rgba(56, 189, 248, 0.06);
backdrop-filter: blur(2px);
}
.hero-brand-btn {
display: block;
margin-top: 12px;
}
/* 按钮样式 */
.btn-primary {
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--accent-color) 0%, #00a8cc 100%);
color: white;
border: none;
padding: 12px 30px;
font-size: 1rem;
border-radius: 5px;
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s;
text-decoration: none;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(0, 212, 255, 0.3);
}
/* 轮播控件 */
.carousel-controls {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
z-index: 3;
display: flex;
gap: 10px;
}
.carousel-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
border: none;
cursor: pointer;
transition: all 0.3s;
}
.carousel-dot.active {
background: white;
width: 30px;
border-radius: 6px;
}
/* 产品预览部分 */
.products-preview {
padding: 80px 0;
background-color: var(--light-bg);
}
.products-preview h2 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 50px;
color: var(--primary-blue);
}
.preview-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.preview-card {
background: white;
padding: 22px;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
transition: all 0.3s;
border-top: 4px solid var(--primary-purple);
}
.preview-image {
width: 100%;
height: 150px;
object-fit: contain;
background: #f7f9fc;
border-radius: 8px;
margin-bottom: 18px;
}
.preview-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.preview-card h3 {
font-size: 1.5rem;
margin-bottom: 15px;
color: var(--primary-blue);
}
.preview-card p {
color: var(--light-text);
margin-bottom: 20px;
font-size: 0.95rem;
}
.card-link {
color: var(--accent-color);
text-decoration: none;
font-weight: 600;
transition: color 0.3s;
}
.card-link:hover {
color: #00a8cc;
}
/* 学术与动态部分 */
.academic-news {
padding: 80px 0;
background: white;
}
.section-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 50px;
}
.section-col h2 {
font-size: 2rem;
margin-bottom: 30px;
color: var(--primary-purple);
border-bottom: 3px solid var(--accent-color);
padding-bottom: 15px;
}
.news-list {
display: flex;
flex-direction: column;
gap: 25px;
}
.news-item {
padding: 20px;
border-left: 4px solid var(--primary-blue);
background: var(--light-bg);
border-radius: 5px;
transition: all 0.3s;
}
.news-item:hover {
background: #e8f1ff;
transform: translateX(10px);
}
.news-item h4 {
margin-bottom: 8px;
color: var(--primary-blue);
}
.news-item p {
font-size: 0.9rem;
color: var(--light-text);
margin-bottom: 10px;
}
.read-more {
color: var(--accent-color);
text-decoration: none;
font-size: 0.9rem;
transition: color 0.3s;
}
.read-more:hover {
color: #00a8cc;
}
/* 响应式设计 */
@media (max-width: 768px) {
.hero-brand-heading {
gap: 20px;
flex-direction: column;
text-align: center;
}
.hero-brand-logo {
height: 6.8rem;
}
.hero-brand-btn {
margin-top: 12px;
}
.hero-content h1 {
font-size: 2rem;
}
.hero-content p {
font-size: 1rem;
}
.hero-line-1 {
font-size: 2.1rem;
}
.hero-line-2 {
font-size: 1.1rem;
margin-left: 0;
}
.hero-badge-row {
justify-content: center;
}
.hero-particles {
width: 100%;
height: 55%;
}
.products-preview h2 {
font-size: 2rem;
}
.section-row {
grid-template-columns: 1fr;
gap: 40px;
}
.preview-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.hero {
height: 400px;
}
.hero-content {
padding-left: 20px;
}
.hero-brand-heading {
gap: 14px;
}
.hero-brand-logo {
height: 5rem;
}
.hero-brand-btn {
margin-top: 12px;
}
.hero-content h1 {
font-size: 1.5rem;
}
.hero-content p {
font-size: 0.9rem;
}
}
.home-video-section {
background: #f8fafc;
padding: 42px 20px;
border-bottom: 1px solid #e5ebf3;
}
.home-video-layout {
display: grid;
grid-template-columns: minmax(260px, 0.75fr) 1.25fr;
gap: 28px;
align-items: center;
}
.home-video-copy h2 {
color: var(--primary-blue);
font-size: 1.75rem;
margin-bottom: 12px;
}
.home-video-copy p {
color: #34405a;
line-height: 1.8;
margin-bottom: 12px;
}
.section-kicker {
display: inline-block;
color: var(--accent-color);
font-weight: 700;
margin-bottom: 8px;
font-size: 0.9rem;
}
.home-video-layout video {
width: 100%;
aspect-ratio: 16 / 9;
display: block;
background: #0f172a;
border-radius: 8px;
box-shadow: 0 14px 30px rgba(16, 41, 79, 0.16);
}
@media (max-width: 768px) {
.home-video-layout {
grid-template-columns: 1fr;
}
}