Files
haiguji-website-export/css/pages.css
T
Claude 41554ee60c 全站改版:子页面同步效果、导航/底部重做、岩石纹理与粒子增强、首页精简
- 全部子页面(about/advantages/applications/products/resources/services/customer-service)顶部大图统一改为深色岩层纹理,并加入跟随鼠标的粒子网络
- 全部子页面引入 Lenis + GSAP/ScrollTrigger,与首页动效体系保持一致
- 顶部导航改为默认透明、滚动后转为深色玻璃底色,不再是纯白底色条
- 底部导航:整体改为更深邃的岩层蓝,页面内容到底部之间新增渐变过渡(footer-fade)
- 底部导航合作伙伴模块精简为单一跳转入口,实际内容迁移至【关于我们】新增的合作伙伴子页(about.html#partners),并同步到顶部导航与侧边快速导航
- 联系方式精简为单一电话 16689661917,去除所有联系人姓名
- 首页去除轮播,只保留品牌主视觉一屏;标题改为「HYPER-GENE · 生命孪生体系——生命从此被计算」的错落艺术排版,保留极低成本/高效/灵活/高通量徽标
- 岩石纹理升级:新增分层分形噪声 + 斜向岩层条带,观感更接近真实岩石
- 粒子效果增大:画布铺满整个hero/page-hero区域,粒子半径与连线距离均增加
2026-07-15 01:56:24 +00:00

744 lines
14 KiB
CSS

/* 页面样式 */
.page-hero {
position: relative;
overflow: hidden;
background:
radial-gradient(ellipse 60% 50% at 20% 20%, rgba(148, 163, 184, 0.16), transparent 60%),
radial-gradient(ellipse 55% 45% at 85% 15%, rgba(56, 189, 248, 0.10), transparent 60%),
repeating-linear-gradient(150deg, rgba(200, 214, 232, 0.045) 0px, rgba(200, 214, 232, 0.045) 2px, transparent 2px, transparent 24px),
repeating-linear-gradient(66deg, rgba(9, 14, 26, 0.32) 0px, rgba(9, 14, 26, 0.32) 3px, transparent 3px, transparent 38px),
linear-gradient(150deg, var(--rock-navy-0) 0%, var(--rock-navy-1) 45%, var(--rock-navy-2) 78%, var(--rock-navy-3) 100%);
color: white;
padding: 56px 20px;
text-align: center;
min-height: 260px;
height: 40vh;
max-height: 380px;
display: flex;
align-items: center;
justify-content: center;
}
.page-hero::before {
content: "";
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
opacity: 0.6;
mix-blend-mode: overlay;
background-image:
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='pn'><feTurbulence type='fractalNoise' baseFrequency='0.012 0.06' numOctaves='4' seed='11' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='gamma' amplitude='1' exponent='2.2' offset='0'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23pn)'/></svg>"),
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='pm'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23pm)'/></svg>");
background-size: 620px 620px, 180px 180px;
}
.page-hero-content {
position: relative;
z-index: 2;
}
.page-hero-particles {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 1;
pointer-events: none;
}
.page-hero-content h1 {
font-size: 2.5rem;
margin-bottom: 15px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.page-hero-content p {
font-size: 1.2rem;
opacity: 0.95;
}
/* 产品/服务容器 */
.products-container {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
display: grid;
grid-template-columns: 250px 1fr;
gap: 40px;
}
/* 侧边栏导航 */
.product-sidebar {
position: sticky;
top: 90px;
height: fit-content;
}
.product-nav {
background: var(--light-bg);
padding: 20px;
border-radius: 6px;
border-left: 4px solid var(--primary-purple);
}
.nav-section h3 {
font-size: 1.1rem;
margin-bottom: 15px;
color: var(--primary-purple);
}
.nav-section ul {
list-style: none;
}
.nav-section ul li {
margin-bottom: 10px;
}
.nav-section .nav-item {
display: block;
padding: 8px 12px;
color: #333;
text-decoration: none;
border-radius: 5px;
transition: all 0.3s;
border-left: 3px solid transparent;
}
.nav-section .nav-item:hover,
.nav-section .nav-item.active {
background: white;
color: var(--primary-purple);
border-left-color: var(--primary-purple);
padding-left: 15px;
}
/* 产品内容 */
.product-content {
padding: 20px;
}
.product-section {
margin-bottom: 60px;
display: none;
}
.product-section.active-section,
.about-section.active-section {
display: block;
}
.product-section h2 {
font-size: 2rem;
margin-bottom: 10px;
color: var(--primary-blue);
border-bottom: 3px solid var(--accent-color);
padding-bottom: 15px;
}
.intro-subtitle {
font-size: 1.1rem;
color: var(--light-text);
margin-bottom: 30px;
font-style: italic;
}
/* 产品标签页 */
.product-tabs {
display: flex;
gap: 10px;
margin: 30px 0;
border-bottom: 2px solid #eee;
}
.tab-btn {
background: none;
border: none;
padding: 12px 20px;
font-size: 0.95rem;
cursor: pointer;
color: #666;
border-bottom: 3px solid transparent;
transition: all 0.3s;
}
.tab-btn:hover {
color: var(--primary-purple);
}
.tab-btn.active {
color: var(--primary-purple);
border-bottom-color: var(--primary-purple);
}
.tab-content {
display: none;
animation: fadeIn 0.3s ease-in;
}
.tab-content.active {
display: block;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 特性网格 */
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 25px;
margin: 30px 0;
}
.media-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 18px;
margin: 28px 0;
}
.media-card {
background: white;
border: 1px solid #edf0f5;
border-radius: 8px;
padding: 14px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.media-card img {
width: 100%;
height: 180px;
object-fit: contain;
background: #f8fafc;
border-radius: 6px;
margin-bottom: 10px;
}
.media-card h4 {
color: var(--primary-blue);
font-size: 0.98rem;
margin-bottom: 6px;
}
.media-card p {
color: var(--light-text);
font-size: 0.88rem;
line-height: 1.55;
}
.feature-item {
background: var(--light-bg);
padding: 25px;
border-radius: 6px;
border-left: 4px solid var(--primary-purple);
}
.feature-item h4 {
color: var(--primary-blue);
margin-bottom: 15px;
font-size: 1.05rem;
}
.feature-item ul {
list-style: none;
padding: 0;
}
.feature-item ul li {
margin-bottom: 10px;
padding-left: 20px;
position: relative;
color: var(--light-text);
line-height: 1.6;
}
.feature-item ul li:before {
content: "✓";
position: absolute;
left: 0;
color: var(--accent-color);
font-weight: bold;
}
/* 高亮框 */
.highlight-box {
background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(106, 44, 145, 0.1) 100%);
border-left: 4px solid var(--accent-color);
padding: 20px;
border-radius: 6px;
margin: 25px 0;
}
.highlight-box h4 {
color: var(--primary-blue);
margin-bottom: 15px;
}
.highlight-box ul {
list-style: none;
padding: 0;
}
.highlight-box ul li {
margin-bottom: 8px;
padding-left: 20px;
position: relative;
}
.highlight-box ul li:before {
content: "🏆";
position: absolute;
left: 0;
}
/* 工作流程 */
.workflow-section {
margin: 30px 0;
}
.workflow-section h4 {
color: var(--primary-blue);
margin-bottom: 20px;
}
.workflow {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
overflow-x: auto;
padding: 20px;
background: var(--light-bg);
border-radius: 6px;
}
.workflow-step {
flex: 1;
min-width: 140px;
text-align: center;
position: relative;
}
.step-number {
width: 50px;
height: 50px;
background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1.2rem;
margin: 0 auto 10px;
}
.step-name {
font-weight: 600;
color: var(--primary-blue);
margin-bottom: 5px;
}
.workflow-step p {
font-size: 0.85rem;
color: var(--light-text);
}
.workflow-arrow {
font-size: 1.5rem;
color: var(--accent-color);
flex: 0 0 auto;
}
/* 案例网格 */
.case-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 25px;
margin: 30px 0;
}
.case-item {
background: white;
padding: 25px;
border-radius: 6px;
box-shadow: 0 2px 8px rgba(16, 41, 79, 0.08);
border-top: 3px solid var(--primary-purple);
transition: all 0.3s;
}
.case-item:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.case-item h4 {
color: var(--primary-blue);
margin-bottom: 10px;
}
.case-item p {
color: var(--light-text);
line-height: 1.6;
}
/* 表格样式 */
.table-section {
margin: 30px 0;
}
.table-section h4 {
color: var(--primary-blue);
margin-bottom: 15px;
}
.service-table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 6px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(16, 41, 79, 0.08);
}
.service-table thead {
background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
color: white;
}
.service-table th {
padding: 15px;
text-align: left;
font-weight: 600;
}
.service-table td {
padding: 15px;
border-bottom: 1px solid #eee;
color: var(--light-text);
}
.service-table tbody tr:hover {
background: var(--light-bg);
}
.service-table tbody tr:last-child td {
border-bottom: none;
}
/* 应用列表 */
.application-list {
display: flex;
flex-direction: column;
gap: 20px;
margin: 30px 0;
}
.app-item {
background: var(--light-bg);
padding: 20px;
border-radius: 6px;
border-left: 4px solid var(--accent-color);
transition: all 0.3s;
}
.app-item:hover {
background: white;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
border-left-color: var(--primary-purple);
}
.app-item h4 {
color: var(--primary-blue);
margin-bottom: 10px;
}
.app-item p {
color: var(--light-text);
line-height: 1.6;
}
/* 结果展示 */
.result-showcase {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 25px;
margin: 30px 0;
}
.result-item {
background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(106, 44, 145, 0.1) 100%);
padding: 25px;
border-radius: 6px;
text-align: center;
}
.result-item h4 {
color: var(--primary-blue);
margin-bottom: 10px;
}
.result-item p {
color: var(--light-text);
}
/* 占位符和提示框 */
.placeholder-section,
.contact-prompt,
.info-box {
background: linear-gradient(135deg, rgba(106, 44, 145, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
padding: 25px;
border-radius: 6px;
margin: 25px 0;
border-left: 4px solid var(--primary-purple);
}
.placeholder-section h4,
.contact-prompt h4,
.info-box h4 {
color: var(--primary-blue);
margin-bottom: 15px;
}
.placeholder-section ul,
.contact-prompt ul {
list-style: none;
padding: 0;
}
.placeholder-section ul li,
.contact-prompt ul li {
margin-bottom: 10px;
padding-left: 20px;
position: relative;
color: var(--light-text);
}
.placeholder-section ul li:before,
.contact-prompt ul li:before {
content: "";
position: absolute;
left: 0;
}
.doc-link {
color: var(--accent-color);
text-decoration: none;
font-weight: 600;
transition: color 0.3s;
}
.doc-link:hover {
color: #00a8cc;
text-decoration: underline;
}
/* 响应式 */
@media (max-width: 768px) {
.products-container {
grid-template-columns: 1fr;
gap: 30px;
}
.product-sidebar {
position: static;
}
.page-hero-content h1 {
font-size: 1.8rem;
}
.product-tabs {
flex-wrap: wrap;
}
.tab-btn {
padding: 8px 15px;
font-size: 0.85rem;
}
.workflow {
flex-direction: column;
}
.workflow-arrow {
transform: rotate(90deg);
}
.feature-grid,
.case-grid {
grid-template-columns: 1fr;
}
.service-table {
font-size: 0.85rem;
}
.service-table th,
.service-table td {
padding: 10px;
}
}
@media (max-width: 480px) {
.page-hero {
padding: 60px 15px;
}
.page-hero-content h1 {
font-size: 1.3rem;
}
.page-hero-content p {
font-size: 0.95rem;
}
.product-tabs {
gap: 5px;
}
.tab-btn {
padding: 6px 10px;
font-size: 0.75rem;
}
}
/* 专业学术版式增强 */
.product-content {
max-width: 980px;
background: #fff;
}
.product-section h2,
.about-section h2,
.resource-section h2 {
letter-spacing: 0;
}
.prose-block {
margin: 24px 0;
color: #34405a;
line-height: 1.9;
font-size: 0.98rem;
}
.prose-block p {
margin-bottom: 14px;
}
.inline-figure {
margin: 18px 0 26px;
border: 1px solid #e6ebf2;
border-radius: 6px;
background: #fff;
padding: 12px;
}
.inline-figure img,
.media-card img,
.preview-image,
.video-placeholder img {
cursor: zoom-in;
}
.inline-figure img {
width: 100%;
max-height: 360px;
object-fit: contain;
background: #f8fafc;
border-radius: 4px;
}
.inline-figure figcaption {
margin-top: 8px;
color: #64748b;
font-size: 0.86rem;
text-align: center;
}
.image-lightbox {
position: fixed;
inset: 0;
z-index: 1000;
display: none;
align-items: center;
justify-content: center;
padding: 32px;
background: rgba(4, 12, 24, 0.82);
}
.image-lightbox.open {
display: flex;
}
.image-lightbox img {
max-width: 92vw;
max-height: 88vh;
object-fit: contain;
background: white;
border-radius: 6px;
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}
.image-lightbox button {
position: absolute;
top: 18px;
right: 24px;
width: 40px;
height: 40px;
border: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.92);
color: #10294f;
font-size: 1.35rem;
cursor: pointer;
}
.service-video-block {
grid-column: 1 / -1;
display: grid;
grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
gap: 20px;
align-items: center;
padding: 16px;
border: 1px solid #e5ebf3;
border-radius: 8px;
background: #f8fafc;
}
.service-video-block video {
width: 100%;
aspect-ratio: 16 / 9;
display: block;
border-radius: 6px;
background: #0f172a;
}
.service-video-block h4 {
color: var(--primary-blue);
margin-bottom: 8px;
}
.service-video-block p {
color: #34405a;
line-height: 1.75;
}
@media (max-width: 768px) {
.service-video-block {
grid-template-columns: 1fr;
}
}