Files
haiguji-website-export/css/pages.css
T

724 lines
13 KiB
CSS

/* 页面样式 */
.page-hero {
position: relative;
overflow: hidden;
background: transparent;
color: white;
padding: 40px 20px;
text-align: center;
min-height: 180px;
height: 28vh;
max-height: 260px;
display: flex;
align-items: center;
justify-content: center;
}
.page-hero-content {
position: relative;
z-index: 2;
}
.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: rgba(18, 29, 52, 0.42);
padding: 20px;
border-radius: 6px;
border-left: 4px solid var(--primary-purple);
}
.nav-section h3 {
font-size: 1.1rem;
margin-bottom: 15px;
color: var(--electric-blue);
}
.nav-section ul {
list-style: none;
}
.nav-section ul li {
margin-bottom: 10px;
}
.nav-section .nav-item {
display: block;
padding: 8px 12px;
color: var(--ice-blue);
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: rgba(18, 29, 52, 0.55);
color: var(--electric-blue);
border-left-color: var(--electric-blue);
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(--ice-blue);
border-bottom: 3px solid var(--accent-color);
padding-bottom: 15px;
display: flex;
align-items: center;
gap: 12px;
}
.inline-logo {
height: 2rem;
width: auto;
}
.intro-subtitle {
font-size: 1.1rem;
color: rgba(207, 232, 255, 0.62);
margin-bottom: 30px;
font-style: italic;
}
/* 产品标签页 */
.product-tabs {
display: flex;
gap: 10px;
margin: 30px 0;
border-bottom: 2px solid rgba(156, 198, 236, 0.16);
}
.tab-btn {
background: none;
border: none;
padding: 12px 20px;
font-size: 0.95rem;
cursor: pointer;
color: rgba(207, 232, 255, 0.62);
border-bottom: 3px solid transparent;
transition: all 0.3s;
}
.tab-btn:hover {
color: var(--electric-blue);
}
.tab-btn.active {
color: var(--electric-blue);
border-bottom-color: var(--electric-blue);
}
.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: rgba(18, 29, 52, 0.55);
border: 1px solid rgba(156, 198, 236, 0.18);
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: rgba(10, 17, 32, 0.5);
border-radius: 6px;
margin-bottom: 10px;
}
.media-card h4 {
color: var(--ice-blue);
font-size: 0.98rem;
margin-bottom: 6px;
}
.media-card p {
color: rgba(207, 232, 255, 0.62);
font-size: 0.88rem;
line-height: 1.55;
}
.feature-item {
background: rgba(18, 29, 52, 0.42);
padding: 25px;
border-radius: 6px;
border-left: 4px solid var(--primary-purple);
}
.feature-item h4 {
color: var(--ice-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: rgba(207, 232, 255, 0.62);
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(--ice-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(--ice-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: rgba(18, 29, 52, 0.42);
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(--ice-blue);
margin-bottom: 5px;
}
.workflow-step p {
font-size: 0.85rem;
color: rgba(207, 232, 255, 0.62);
}
.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: rgba(18, 29, 52, 0.55);
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(--ice-blue);
margin-bottom: 10px;
}
.case-item p {
color: rgba(207, 232, 255, 0.62);
line-height: 1.6;
}
/* 表格样式 */
.table-section {
margin: 30px 0;
}
.table-section h4 {
color: var(--ice-blue);
margin-bottom: 15px;
}
.service-table {
width: 100%;
border-collapse: collapse;
background: rgba(18, 29, 52, 0.55);
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 rgba(156, 198, 236, 0.16);
color: rgba(207, 232, 255, 0.62);
}
.service-table tbody tr:hover {
background: rgba(18, 29, 52, 0.42);
}
.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: rgba(18, 29, 52, 0.42);
padding: 20px;
border-radius: 6px;
border-left: 4px solid var(--accent-color);
transition: all 0.3s;
}
.app-item:hover {
background: rgba(18, 29, 52, 0.55);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
border-left-color: var(--electric-blue);
}
.app-item h4 {
color: var(--ice-blue);
margin-bottom: 10px;
}
.app-item p {
color: rgba(207, 232, 255, 0.62);
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(--ice-blue);
margin-bottom: 10px;
}
.result-item p {
color: rgba(207, 232, 255, 0.62);
}
/* 占位符和提示框 */
.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(--ice-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: rgba(207, 232, 255, 0.62);
}
.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: var(--ice-blue);
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: rgba(18, 29, 52, 0.55);
}
.product-section h2,
.about-section h2,
.resource-section h2 {
letter-spacing: 0;
}
.prose-block {
margin: 24px 0;
color: rgba(207, 232, 255, 0.62);
line-height: 1.9;
font-size: 0.98rem;
}
.prose-block p {
margin-bottom: 14px;
}
.inline-figure {
margin: 18px 0 26px;
border: 1px solid rgba(156, 198, 236, 0.18);
border-radius: 6px;
background: rgba(18, 29, 52, 0.55);
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: rgba(10, 17, 32, 0.5);
border-radius: 4px;
}
.inline-figure figcaption {
margin-top: 8px;
color: rgba(207, 232, 255, 0.62);
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: rgba(18, 29, 52, 0.55);
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(18, 29, 52, 0.7);
color: var(--ice-blue);
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 rgba(156, 198, 236, 0.18);
border-radius: 8px;
background: rgba(10, 17, 32, 0.5);
}
.service-video-block video {
width: 100%;
aspect-ratio: 16 / 9;
display: block;
border-radius: 6px;
background: #0f172a;
}
.service-video-block h4 {
color: var(--ice-blue);
margin-bottom: 8px;
}
.service-video-block p {
color: rgba(207, 232, 255, 0.62);
line-height: 1.75;
}
@media (max-width: 768px) {
.service-video-block {
grid-template-columns: 1fr;
}
}