cms/entcms/wwwroot/cms_styles.css
yumoqing 5cfb0e867b feat: 开元云科技官网CMS系统初始版本
entcms模块:
- 4个数据表(cms_content/cms_categories/cms_leads/cms_site_config)
- 22个.dspy API(含公开API和data_filter)
- 4个公开页面(首页/新闻/案例)+管理后台
- 完整营销站点CSS/JS(暗色主题/渐变/动画/响应式)
- 云宝SVG线稿占位符
- RBAC权限配置

dingdingflow模块:
- 2个数据表(dd_approvals/dd_approval_configs)
- 10个.dspy API(含钉钉回调endpoint)
- 钉钉API客户端(环境变量配置,开发模式mock)
- 管理UI

文档: 架构设计/53条测试用例/开发日志
2026-05-27 15:44:26 +08:00

641 lines
12 KiB
CSS

/* ===== 开元云科技 官网样式系统 ===== */
/* 设计参考: OpenAI风格, 极简科技感 */
/* === CSS Variables === */
:root {
--brand-primary: #6C5CE7;
--brand-light: #A29BFE;
--brand-sky: #74B9FF;
--brand-gradient: linear-gradient(135deg, #6C5CE7, #A29BFE, #74B9FF);
--bg-dark: #0a0a0a;
--bg-card: #1A1A1A;
--bg-card-hover: #222222;
--border-dark: #222;
--border-active: #6C5CE7;
--text-primary: #FFFFFF;
--text-secondary: #999999;
--text-muted: #666666;
--max-width: 1100px;
--font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--transition: all 0.3s ease;
}
/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body, html {
font-family: var(--font-family);
background: var(--bg-dark);
color: var(--text-primary);
line-height: 1.6;
overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
/* === Navigation === */
.nav-bar {
position: fixed;
top: 0; left: 0; right: 0;
z-index: 100;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
background: rgba(10, 10, 10, 0.8);
border-bottom: 1px solid rgba(255,255,255,0.06);
padding: 0 48px;
height: 64px;
display: flex;
align-items: center;
justify-content: space-between;
}
.nav-logo {
font-size: 18px;
font-weight: 700;
background: var(--brand-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.nav-links {
display: flex;
gap: 32px;
list-style: none;
}
.nav-links a {
font-size: 14px;
color: var(--text-secondary);
transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
display: inline-flex;
align-items: center;
padding: 8px 20px;
background: var(--brand-primary);
color: white;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
transition: var(--transition);
border: none;
cursor: pointer;
}
.nav-cta:hover {
transform: translateY(-2px);
box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}
/* === Hero Section === */
.hero-section {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 120px 48px 80px;
position: relative;
overflow: hidden;
}
.hero-bg-glow {
position: absolute;
width: 800px;
height: 800px;
border-radius: 50%;
background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
}
.hero-content {
max-width: var(--max-width);
width: 100%;
position: relative;
z-index: 1;
}
.hero-tag {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 16px;
background: rgba(108, 92, 231, 0.15);
border: 1px solid rgba(108, 92, 231, 0.3);
border-radius: 20px;
font-size: 13px;
color: var(--brand-light);
margin-bottom: 24px;
}
.hero-tag .pulse-dot {
width: 8px;
height: 8px;
background: var(--brand-primary);
border-radius: 50%;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}
.hero-title {
font-size: 56px;
font-weight: 700;
line-height: 1.2;
margin-bottom: 20px;
}
.hero-title .gradient-text {
background: var(--brand-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-subtitle {
font-size: 18px;
color: var(--text-secondary);
font-weight: 300;
max-width: 600px;
margin-bottom: 40px;
}
.hero-buttons {
display: flex;
gap: 16px;
}
.btn-primary {
display: inline-flex;
align-items: center;
padding: 12px 28px;
background: var(--brand-primary);
color: white;
border-radius: 10px;
font-size: 16px;
font-weight: 500;
transition: var(--transition);
border: none;
cursor: pointer;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 24px rgba(108, 92, 231, 0.4);
}
.btn-outline {
display: inline-flex;
align-items: center;
padding: 12px 28px;
background: transparent;
color: var(--text-primary);
border: 1px solid rgba(255,255,255,0.2);
border-radius: 10px;
font-size: 16px;
font-weight: 500;
transition: var(--transition);
cursor: pointer;
}
.btn-outline:hover {
border-color: var(--brand-primary);
transform: translateY(-2px);
}
.hero-mascot {
position: absolute;
right: 0;
bottom: 10%;
opacity: 0.12;
pointer-events: none;
}
/* === Section Common === */
.section {
padding: 80px 48px;
max-width: var(--max-width);
margin: 0 auto;
}
.section-title {
font-size: 36px;
font-weight: 700;
margin-bottom: 12px;
}
.section-desc {
font-size: 16px;
color: var(--text-secondary);
margin-bottom: 48px;
font-weight: 300;
}
/* === Products (1+N+X) === */
.products-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.product-card {
background: var(--bg-card);
border: 1px solid var(--border-dark);
border-radius: 12px;
padding: 32px 24px;
cursor: pointer;
transition: var(--transition);
position: relative;
overflow: hidden;
}
.product-card::before {
content: '';
position: absolute;
left: 0; top: 0; bottom: 0;
width: 3px;
background: transparent;
transition: var(--transition);
}
.product-card:hover {
transform: translateX(4px);
border-color: var(--brand-primary);
}
.product-card:hover::before {
background: var(--brand-primary);
}
.product-card.active {
background: rgba(108, 92, 231, 0.1);
border-color: var(--brand-primary);
}
.product-card.active::before {
background: var(--brand-primary);
}
.product-card .card-icon {
font-size: 32px;
margin-bottom: 16px;
}
.product-card .card-title {
font-size: 20px;
font-weight: 600;
margin-bottom: 8px;
}
.product-card .card-desc {
font-size: 14px;
color: var(--text-secondary);
line-height: 1.6;
}
.product-detail {
display: none;
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid var(--border-dark);
font-size: 14px;
color: var(--text-secondary);
line-height: 1.8;
}
.product-card.active .product-detail {
display: block;
}
/* === Cases === */
.cases-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-bottom: 40px;
}
.case-card {
background: var(--bg-card);
border: 1px solid var(--border-dark);
border-radius: 12px;
padding: 24px;
transition: var(--transition);
cursor: pointer;
}
.case-card:hover {
transform: translateY(-4px);
border-color: var(--brand-primary);
}
.case-tag {
font-size: 11px;
color: var(--brand-light);
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 12px;
font-weight: 500;
}
.case-title {
font-size: 17px;
font-weight: 600;
margin-bottom: 8px;
}
.case-desc {
font-size: 13px;
color: var(--text-secondary);
line-height: 1.6;
}
/* === CTA Banner === */
.cta-banner {
background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(116, 185, 255, 0.1));
border: 1px solid rgba(108, 92, 231, 0.2);
border-radius: 16px;
padding: 40px;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 40px;
}
.cta-text {
font-size: 20px;
font-weight: 600;
}
/* === News === */
.news-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 32px;
}
.news-view-all {
font-size: 14px;
color: var(--brand-light);
transition: var(--transition);
}
.news-view-all:hover { color: var(--brand-primary); }
.news-list {
display: flex;
flex-direction: column;
gap: 20px;
}
.news-item {
display: flex;
align-items: flex-start;
gap: 20px;
padding: 20px;
background: var(--bg-card);
border: 1px solid var(--border-dark);
border-radius: 12px;
transition: var(--transition);
cursor: pointer;
}
.news-item:hover {
border-color: var(--brand-primary);
}
.news-date {
font-size: 12px;
color: var(--text-muted);
white-space: nowrap;
min-width: 80px;
}
.news-title {
font-size: 14px;
font-weight: 500;
}
/* === Footer === */
.site-footer {
border-top: 1px solid rgba(255,255,255,0.06);
padding: 40px 48px;
text-align: center;
font-size: 13px;
color: var(--text-muted);
}
/* === Floating Contact Widget === */
.float-contact {
position: fixed;
right: 24px;
bottom: 24px;
z-index: 200;
}
.float-avatar {
width: 56px;
height: 56px;
border-radius: 50%;
background: var(--brand-gradient);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
transition: var(--transition);
}
.float-avatar:hover {
transform: translateY(-3px) scale(1.05);
}
.float-avatar svg {
width: 32px;
height: 32px;
}
.float-bubble {
position: absolute;
right: 68px;
bottom: 12px;
background: white;
color: #333;
padding: 10px 16px;
border-radius: 12px;
font-size: 14px;
white-space: nowrap;
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
opacity: 0;
transform: translateX(10px);
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
pointer-events: none;
}
.float-contact:hover .float-bubble {
opacity: 1;
transform: translateX(0);
}
.float-panel {
position: absolute;
bottom: 70px;
right: 0;
width: 300px;
background: white;
border-radius: 16px;
box-shadow: 0 8px 40px rgba(0,0,0,0.2);
overflow: hidden;
display: none;
animation: panelSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.float-panel.active { display: block; }
@keyframes panelSlideUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.panel-header {
background: var(--brand-gradient);
padding: 20px;
color: white;
font-size: 16px;
font-weight: 600;
}
.panel-body {
padding: 16px;
}
.panel-option {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: #f5f5f5;
border-radius: 10px;
margin-bottom: 8px;
cursor: pointer;
transition: var(--transition);
color: #333;
font-size: 14px;
}
.panel-option:hover {
background: var(--brand-primary);
color: white;
}
.panel-option svg {
width: 20px;
height: 20px;
flex-shrink: 0;
}
.panel-form {
padding: 16px;
display: none;
}
.panel-form.active { display: block; }
.panel-form input,
.panel-form textarea {
width: 100%;
padding: 10px 12px;
border: 1px solid #e0e0e0;
border-radius: 8px;
font-size: 14px;
margin-bottom: 10px;
font-family: var(--font-family);
outline: none;
transition: var(--transition);
}
.panel-form input:focus,
.panel-form textarea:focus {
border-color: var(--brand-primary);
}
.panel-form textarea { resize: vertical; min-height: 60px; }
.panel-form .submit-btn {
width: 100%;
padding: 10px;
background: var(--brand-primary);
color: white;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
}
.panel-form .submit-btn:hover {
background: #5a4bd1;
}
.panel-form .back-btn {
background: none;
border: none;
color: var(--brand-primary);
font-size: 13px;
cursor: pointer;
margin-bottom: 12px;
padding: 0;
}
/* === Responsive === */
@media (max-width: 768px) {
.nav-bar { padding: 0 20px; }
.nav-links { display: none; }
.hero-section { padding: 100px 20px 60px; }
.hero-title { font-size: 32px; }
.hero-subtitle { font-size: 16px; }
.hero-buttons { flex-direction: column; }
.section { padding: 60px 20px; }
.section-title { font-size: 28px; }
.products-grid { grid-template-columns: 1fr; }
.cases-grid { grid-template-columns: 1fr; }
.cta-banner {
flex-direction: column;
text-align: center;
gap: 20px;
}
.news-item { flex-direction: column; gap: 8px; }
.site-footer { padding: 30px 20px; }
.float-panel { width: 280px; right: -8px; }
}
/* === Scroll Animations === */
.fade-in {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
opacity: 1;
transform: translateY(0);
}