TrustDataSpace/assets/css/pages/mods/mod4-ops/data-detail.css
sichan 987bef5737 + feat:
1. 数据产品详情页
2. 数据资产化树状图
3. 数据运营页
2025-02-03 14:51:07 +08:00

472 lines
7.6 KiB
CSS

/* 基础重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* 页面基础样式 */
body {
background-color: #f8fafc;
color: #1e293b;
line-height: 1.5;
}
/* 产品容器 */
.product-container {
max-width: 1200px;
margin: 0 auto;
padding: 0;
position: relative;
z-index: 1;
}
/* 产品头部 */
.product-header {
background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
color: white;
padding: 3rem 0;
position: relative;
margin-bottom: 2rem;
}
.product-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('../../../images/pattern.png') repeat;
opacity: 0.1;
}
.header-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
position: relative;
}
.product-badges {
margin-bottom: 1rem;
}
.badge {
display: inline-block;
padding: 0.35rem 0.75rem;
border-radius: 20px;
font-size: 0.875rem;
font-weight: 500;
margin-right: 0.5rem;
}
.badge.primary {
background-color: rgba(255, 255, 255, 0.2);
}
.badge.warning {
background-color: rgba(251, 191, 36, 0.2);
color: #fbbf24;
}
.product-header h1 {
font-size: 2.5rem;
margin-bottom: 1.5rem;
line-height: 1.2;
font-weight: 600;
}
.product-meta {
display: flex;
gap: 2rem;
flex-wrap: wrap;
}
.meta-item {
display: flex;
align-items: center;
gap: 0.75rem;
}
.meta-item i {
font-size: 1.5rem;
opacity: 0.8;
}
/* 主要内容区域 */
.product-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 2rem;
padding: 0 2rem;
margin-bottom: 3rem;
}
/* 左侧内容 */
.content-main {
display: flex;
flex-direction: column;
gap: 2rem;
}
.product-section {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.product-section h2 {
font-size: 1.5rem;
color: #1e293b;
margin-bottom: 1.5rem;
font-weight: 600;
}
.section-content {
color: #475569;
}
/* 特性网格 */
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
}
.feature-item {
display: flex;
align-items: center;
gap: 1rem;
background: #f8fafc;
padding: 1rem;
border-radius: 8px;
}
.feature-item i {
color: #7c3aed;
font-size: 1.25rem;
flex-shrink: 0;
}
/* 数据特征 */
.data-specs {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.spec-group h3 {
font-size: 1.1rem;
color: #1e293b;
margin-bottom: 1rem;
font-weight: 600;
}
.spec-group ul {
list-style: none;
padding: 0;
}
.spec-group li {
margin-bottom: 0.75rem;
padding-left: 1.5rem;
position: relative;
}
.spec-group li:before {
content: "•";
color: #7c3aed;
position: absolute;
left: 0;
font-weight: bold;
}
/* 应用场景卡片 */
.scenario-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
}
.scenario-card {
background: #f8fafc;
border-radius: 12px;
padding: 1.5rem;
text-align: center;
transition: transform 0.2s;
}
.scenario-card:hover {
transform: translateY(-2px);
}
.scenario-icon {
width: 48px;
height: 48px;
background: #7c3aed;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1rem auto;
}
.scenario-icon i {
color: white;
font-size: 1.5rem;
}
.scenario-card h4 {
color: #1e293b;
margin-bottom: 0.75rem;
font-weight: 600;
}
.scenario-card p {
color: #64748b;
line-height: 1.6;
}
/* 代码示例 */
.code-sample {
background: #1e293b;
border-radius: 8px;
overflow: hidden;
}
.code-header {
background: #334155;
padding: 0.75rem 1rem;
display: flex;
justify-content: space-between;
align-items: center;
color: white;
}
.copy-btn {
background: none;
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
padding: 0.5rem 1rem;
border-radius: 4px;
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
transition: all 0.2s;
}
.copy-btn:hover {
background: rgba(255, 255, 255, 0.1);
}
.code-sample pre {
margin: 0;
padding: 1.5rem;
overflow-x: auto;
}
.code-sample code {
color: #e2e8f0;
font-family: 'Courier New', Courier, monospace;
line-height: 1.6;
}
/* 右侧购买信息 */
.content-sidebar {
position: sticky;
top: 2rem;
display: flex;
flex-direction: column;
gap: 2rem;
}
.purchase-card {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.price-header {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: 1.5rem;
}
.price-header h3 {
font-size: 1.25rem;
color: #1e293b;
font-weight: 600;
}
.price-tag {
font-size: 2rem;
font-weight: 600;
color: #7c3aed;
}
.price-tag small {
font-size: 1rem;
color: #64748b;
}
.price-features {
margin-bottom: 2rem;
}
.price-features .feature-item {
margin-bottom: 1rem;
background: none;
padding: 0;
}
.price-features .feature-item i {
color: #34d399;
}
.purchase-btn {
width: 100%;
background: #7c3aed;
color: white;
border: none;
padding: 1rem;
border-radius: 8px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
margin-bottom: 1rem;
}
.purchase-btn:hover {
background: #6d28d9;
}
.contact-btn {
width: 100%;
background: none;
border: 1px solid #e2e8f0;
padding: 1rem;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
color: #64748b;
cursor: pointer;
transition: all 0.2s;
font-size: 1rem;
}
.contact-btn:hover {
background: #f8fafc;
border-color: #7c3aed;
color: #7c3aed;
}
/* 服务保障 */
.service-guarantees {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.guarantee-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem 0;
border-bottom: 1px solid #e2e8f0;
}
.guarantee-item:last-child {
border-bottom: none;
padding-bottom: 0;
}
.guarantee-item i {
font-size: 1.5rem;
color: #7c3aed;
flex-shrink: 0;
}
.guarantee-info h4 {
color: #1e293b;
margin-bottom: 0.25rem;
font-weight: 600;
}
.guarantee-info p {
color: #64748b;
font-size: 0.875rem;
margin: 0;
}
/* 响应式调整 */
@media (max-width: 1024px) {
.product-content {
grid-template-columns: 1fr;
gap: 2rem;
}
.content-sidebar {
position: static;
}
}
@media (max-width: 768px) {
.product-header {
padding: 2rem 0;
}
.product-header h1 {
font-size: 2rem;
}
.header-content,
.product-content {
padding: 0 1rem;
}
.product-meta {
gap: 1rem;
}
.product-section,
.purchase-card,
.service-guarantees {
padding: 1.5rem;
}
.feature-grid,
.data-specs,
.scenario-cards {
grid-template-columns: 1fr;
}
}
/* 滚动条美化 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #f1f5f9;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}