diff --git a/.cursor/rules/00-global.mdc b/.cursor/rules/00-global.mdc new file mode 100644 index 0000000..9f96d37 --- /dev/null +++ b/.cursor/rules/00-global.mdc @@ -0,0 +1,12 @@ +--- +description: 萧康云医项目全局编码规则 +alwaysApply: true +--- + +# 全局规则 + +- 代码、包、方法、结构体、接口、关键业务分支、复杂判断、关键配置均需要编写清晰的中文注释。 +- 注释要说明业务意图、输入输出、边界条件和注意事项,避免只重复代码字面含义。 +- 模块职责要清晰,避免跨层调用、重复实现和无关逻辑混入。 +- 新增或修改功能时,优先遵循项目已有目录结构、命名方式、封装习惯和错误处理方式。 +- 公共能力应沉淀为可复用模块或组件,避免在多个页面、控制器或服务中复制粘贴。 diff --git a/.cursor/rules/10-frontend.mdc b/.cursor/rules/10-frontend.mdc new file mode 100644 index 0000000..3c87691 --- /dev/null +++ b/.cursor/rules/10-frontend.mdc @@ -0,0 +1,17 @@ +--- +description: 萧康云医官网前端设计与实现规则 +globs: xk-of-view/**/*,**/*.html,**/*.css,**/*.scss,**/*.less,**/*.vue,**/*.tsx,**/*.ts,**/*.jsx,**/*.js +alwaysApply: false +--- + +# 前端规则 + +- 项目名称为“萧康云医官网”,定位为面向诊所赋能业务的 SaaS 平台。 +- 产品端形态包含小程序患者端、医生端、门店老板端、推广员端,以及 PC 端管理或官网相关页面。 +- 页面设计要体现 SaaS 平台的专业、清晰、高效,优先服务信息扫描、业务转化和多角色理解。 +- 必须注意多端适配,兼容移动端、平板端和桌面端,不允许出现文字溢出、布局重叠、关键按钮不可触达等问题。 +- 必须提供暗色模式适配,颜色、阴影、边框、图标、图表和状态提示都要在明暗主题下保持可读。 +- 采用模块化、组件化设计,页面由清晰的业务模块和可复用 UI 组件组成。 +- 组件应保持职责单一,状态、事件、属性和插槽设计清楚,避免单个组件承担过多页面逻辑。 +- 表单、列表、筛选、弹窗、空状态、加载态、错误态、成功态等常见状态要完整设计。 +- 视觉风格要克制、现代、可信,适合医疗和诊所经营场景;避免过度营销化、装饰化或单一色系堆叠。 diff --git a/.cursor/rules/20-backend-goframe.mdc b/.cursor/rules/20-backend-goframe.mdc new file mode 100644 index 0000000..866d73c --- /dev/null +++ b/.cursor/rules/20-backend-goframe.mdc @@ -0,0 +1,17 @@ +--- +description: 萧康云医后端 GoFrame GF 分层开发规则 +globs: **/*.go,api/**/*,internal/**/*,manifest/**/*,resource/**/* +alwaysApply: false +--- + +# 后端规则 + +- 后端使用 GoFrame GF 框架,必须遵循 GF 的项目结构、路由注册、控制器、服务、模型、配置和错误处理规范。 +- 分层链路为:路由 -> 控制器 -> service 服务层 -> 模型层。 +- 路由层只负责请求路径、HTTP 方法、中间件和控制器绑定,不编写业务逻辑。 +- 控制器层负责获取请求信息、参数验证、用户信息解析、调用 service,并返回统一响应。 +- 控制器层不编写核心业务逻辑,不直接操作数据库,不绕过 service 调用模型。 +- service 层是业务逻辑层,负责业务流程编排、权限判断、事务控制、数据处理和外部服务调用。 +- 模型层只用于定义表结构、表关系、字段映射和数据承载,不编写业务逻辑。 +- 数据库访问、事务、缓存、队列、第三方接口等能力应按 GF 推荐方式封装,并放在合适的服务或基础设施模块中。 +- 参数校验、错误码、日志、上下文传递和用户身份解析要保持统一规范。 diff --git a/.gitignore b/.gitignore index a547bf3..04c93ad 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ dist-ssr *.njsproj *.sln *.sw? +/.cursor/skills/ diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..849cfcd --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,33 @@ +# 项目协作规则 + +## 全局规则 + +- 代码、包、方法、结构体、接口、关键业务分支、复杂判断、关键配置均需要编写清晰的中文注释。 +- 注释要说明业务意图、输入输出、边界条件和注意事项,避免只重复代码字面含义。 +- 模块职责要清晰,避免跨层调用、重复实现和无关逻辑混入。 +- 新增或修改功能时,优先遵循项目已有目录结构、命名方式、封装习惯和错误处理方式。 +- 公共能力应沉淀为可复用模块或组件,避免在多个页面、控制器或服务中复制粘贴。 + +## 前端规则 + +- 项目名称为“萧康云医官网”,定位为面向诊所赋能业务的 SaaS 平台。 +- 产品端形态包含小程序患者端、医生端、门店老板端、推广员端,以及 PC 端管理或官网相关页面。 +- 页面设计要体现 SaaS 平台的专业、清晰、高效,优先服务信息扫描、业务转化和多角色理解。 +- 必须注意多端适配,兼容移动端、平板端和桌面端,不允许出现文字溢出、布局重叠、关键按钮不可触达等问题。 +- 必须提供暗色模式适配,颜色、阴影、边框、图标、图表和状态提示都要在明暗主题下保持可读。 +- 采用模块化、组件化设计,页面由清晰的业务模块和可复用 UI 组件组成。 +- 组件应保持职责单一,状态、事件、属性和插槽设计清楚,避免单个组件承担过多页面逻辑。 +- 表单、列表、筛选、弹窗、空状态、加载态、错误态、成功态等常见状态要完整设计。 +- 视觉风格要克制、现代、可信,适合医疗和诊所经营场景;避免过度营销化、装饰化或单一色系堆叠。 + +## 后端规则 + +- 后端使用 GoFrame GF 框架,必须遵循 GF 的项目结构、路由注册、控制器、服务、模型、配置和错误处理规范。 +- 分层链路为:路由 -> 控制器 -> service 服务层 -> 模型层。 +- 路由层只负责请求路径、HTTP 方法、中间件和控制器绑定,不编写业务逻辑。 +- 控制器层负责获取请求信息、参数验证、用户信息解析、调用 service,并返回统一响应。 +- 控制器层不编写核心业务逻辑,不直接操作数据库,不绕过 service 调用模型。 +- service 层是业务逻辑层,负责业务流程编排、权限判断、事务控制、数据处理和外部服务调用。 +- 模型层只用于定义表结构、表关系、字段映射和数据承载,不编写业务逻辑。 +- 数据库访问、事务、缓存、队列、第三方接口等能力应按 GF 推荐方式封装,并放在合适的服务或基础设施模块中。 +- 参数校验、错误码、日志、上下文传递和用户身份解析要保持统一规范。 diff --git a/index.html b/index.html index e687656..06cfc2e 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - Vite + Vue + 萧康云医官网
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..e902f81 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,5 @@ +allowBuilds: + '@parcel/watcher': true + core-js: true + esbuild: true + vue-demi: true diff --git a/src/api/request/admin.js b/src/api/request/admin.js new file mode 100644 index 0000000..b62f5df --- /dev/null +++ b/src/api/request/admin.js @@ -0,0 +1,16 @@ +import { get, post } from '@/api/request' + +// 后台登录,返回 token 与用户基础信息。 +export const adminLogin = (data) => post('/admin/login', data) + +// 获取后台菜单树,驱动 /admin 分组导航。 +export const getAdminMenus = () => get('/admin/menus/tree') + +// 获取管理员菜单布局偏好。 +export const getMenuLayout = () => get('/admin/profile/menu-layout') + +// 更新管理员菜单布局偏好,请求字段遵循后端 snake_case 规则。 +export const updateMenuLayout = (menuLayout) => post('/admin/profile/menu-layout', { menu_layout: menuLayout }) + +// 获取后台角色列表。 +export const getRoles = () => get('/admin/roles') diff --git a/src/api/request/orders.js b/src/api/request/orders.js new file mode 100644 index 0000000..133b314 --- /dev/null +++ b/src/api/request/orders.js @@ -0,0 +1,7 @@ +import { get, post } from '@/api/request' + +// 创建套餐订购订单。 +export const createOrder = (data) => post('/orders', data) + +// 获取后台订单列表。 +export const getAdminOrders = () => get('/admin/orders') diff --git a/src/api/request/pricing.js b/src/api/request/pricing.js new file mode 100644 index 0000000..a1f63ae --- /dev/null +++ b/src/api/request/pricing.js @@ -0,0 +1,7 @@ +import { get } from '@/api/request' + +// 获取官网定价套餐。 +export const getPricingPlans = () => get('/pricing/plans') + +// 获取后台套餐列表。 +export const getAdminPlans = () => get('/admin/pricing/plans') diff --git a/src/api/request/site.js b/src/api/request/site.js new file mode 100644 index 0000000..d598a09 --- /dev/null +++ b/src/api/request/site.js @@ -0,0 +1,46 @@ +import { get, post } from '@/api/request' + +// 获取官网首页聚合内容。 +export const getSiteHome = () => get('/site/home') + +// 获取前台公开站点配置。 +export const getSiteSettings = () => get('/site/settings') + +// 获取前台招聘职位。 +export const getRecruitJobs = () => get('/recruit/jobs') + +// 提交官网咨询线索。 +export const createLead = (data) => post('/leads', data) + +// 获取后台线索列表。 +export const getAdminLeads = () => get('/admin/leads') + +// 获取后台页面配置。 +export const getAdminSitePages = () => get('/admin/site/pages') + +// 保存后台页面配置。 +export const saveAdminSitePage = (data) => post('/admin/site/pages', data) + +// 获取后台页面模块。 +export const getAdminSiteSections = (params = {}) => get('/admin/site/sections', params) + +// 保存后台页面模块。 +export const saveAdminSiteSection = (data) => post('/admin/site/sections', data) + +// 获取后台素材列表。 +export const getAdminSiteMedia = (params = {}) => get('/admin/site/media', params) + +// 保存后台素材。 +export const saveAdminSiteMedia = (data) => post('/admin/site/media', data) + +// 获取后台招聘职位。 +export const getAdminRecruitJobs = () => get('/admin/recruit/jobs') + +// 保存后台招聘职位。 +export const saveAdminRecruitJob = (data) => post('/admin/recruit/jobs', data) + +// 获取后台站点全局配置。 +export const getAdminSiteSettings = () => get('/admin/site/settings') + +// 保存后台站点全局配置。 +export const saveAdminSiteSettings = (data) => post('/admin/site/settings', data) diff --git a/src/assets/styles/global.scss b/src/assets/styles/global.scss index 9916135..a70b1b0 100644 --- a/src/assets/styles/global.scss +++ b/src/assets/styles/global.scss @@ -1,7 +1,44 @@ +:root { + color-scheme: light; + --page-bg: #fbfaf5; + --page-muted: #f1efe7; + --panel-bg: #fffdf7; + --ink: #1f2722; + --text-main: #4d5a53; + --text-muted: #7b837d; + --line: #ded8c9; + --pine: #1f5f50; + --pine-deep: #123b34; + --moss: #6f8d77; + --gold: #b48a58; + --paper: rgba(31, 39, 34, 0.035); +} + +:root.dark { + color-scheme: dark; + --page-bg: #08110f; + --page-muted: #0f1b18; + --panel-bg: #121f1b; + --ink: #f5f1e8; + --text-main: #c9d0c7; + --text-muted: #8f9b92; + --line: #283832; + --pine: #8dbca7; + --pine-deep: #dce9df; + --moss: #a7b9a9; + --gold: #d2a86d; + --paper: rgba(245, 241, 232, 0.035); +} + body { width: 100%; + margin: 0; + background: + linear-gradient(90deg, transparent 0, transparent 31px, var(--paper) 32px), + var(--page-bg); + background-size: 32px 32px; + color: var(--ink); font-family: 'Inter', 'Helvetica Neue', 'PingFang SC', sans-serif; - color: #1a202c; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } @@ -24,11 +61,993 @@ body { opacity: 0; } -p { - // 首行缩进两个字符 - text-indent: 2em; -} - button { cursor: pointer; /* 确保鼠标悬停时显示为手型 */ } + +.page-shell { + min-height: 100vh; + background: transparent; +} + +.art-hero { + position: relative; + min-height: min(760px, 92vh); + display: flex; + align-items: flex-end; + overflow: hidden; + background: #111; +} + +.art-hero::after { + content: ''; + position: absolute; + inset: 0; + background: + linear-gradient(90deg, rgba(8, 17, 15, 0.82) 0%, rgba(8, 17, 15, 0.58) 42%, rgba(8, 17, 15, 0.08) 100%), + linear-gradient(0deg, rgba(8, 17, 15, 0.62) 0%, transparent 42%); + z-index: 1; +} + +.art-hero-media { + position: absolute; + inset: 0; + width: 100%; + height: 100%; + object-fit: cover; + filter: saturate(0.72) contrast(1.04); +} + +.art-hero-content { + position: relative; + z-index: 2; + width: 100%; + padding: 9rem 0 5rem; + color: #fffaf0; +} + +.art-kicker { + display: inline-flex; + align-items: center; + width: fit-content; + border-bottom: 1px solid rgba(255, 250, 240, 0.5); + padding-bottom: 0.45rem; + color: #e5d4b8; + font-size: 0.875rem; + font-weight: 700; +} + +.editorial-section { + padding: 6rem 0; + background: transparent; +} + +.editorial-muted { + background: + linear-gradient(90deg, transparent 0, transparent 31px, rgba(31, 39, 34, 0.025) 32px), + var(--page-muted); + background-size: 32px 32px; +} + +.editorial-heading { + max-width: 52rem; + color: var(--ink); + font-size: clamp(2rem, 4vw, 4.6rem); + line-height: 1.05; + font-weight: 800; +} + +.editorial-copy { + max-width: 38rem; + color: var(--text-main); + font-size: 1.05rem; + line-height: 1.9; +} + +.quiet-panel, +.pricing-table-card, +.order-panel { + border: 1px solid var(--line); + border-radius: 8px; + background: color-mix(in srgb, var(--panel-bg) 94%, transparent); +} + +.quiet-panel { + padding: 1.5rem; +} + +.primary-button, +.secondary-button, +.icon-button { + display: inline-flex; + align-items: center; + gap: 0.5rem; + border-radius: 999px; + font-weight: 700; + transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; +} + +.primary-button { + border: 1px solid var(--pine-deep); + background: var(--pine-deep); + color: #fffaf0; + padding: 0.8rem 1.2rem; +} + +.primary-button:hover { + transform: translateY(-1px); + background: var(--pine); + border-color: var(--pine); +} + +.secondary-button { + border: 1px solid currentColor; + background: transparent; + color: var(--pine-deep); + padding: 0.8rem 1.2rem; +} + +.secondary-button:hover { + color: var(--gold); +} + +.icon-button { + width: 2.5rem; + height: 2.5rem; + justify-content: center; + border: 1px solid var(--line); + background: color-mix(in srgb, var(--panel-bg) 88%, transparent); + color: var(--ink); +} + +.journey-line { + display: grid; + grid-template-columns: repeat(5, minmax(0, 1fr)); + border-top: 1px solid rgba(255, 250, 240, 0.45); + color: #fffaf0; +} + +.journey-line > div { + min-height: 7rem; + border-right: 1px solid rgba(255, 250, 240, 0.24); + padding: 1rem; +} + +.journey-line > div:last-child { + border-right: 0; +} + +.number-mark { + display: block; + margin-bottom: 1.25rem; + color: var(--gold); + font-family: Georgia, 'Times New Roman', serif; + font-size: 0.9rem; +} + +.editorial-grid { + display: grid; + grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); + gap: 4rem; + align-items: start; +} + +.thin-list { + border-top: 1px solid var(--line); +} + +.thin-list-item { + display: grid; + grid-template-columns: 4rem minmax(0, 1fr); + gap: 1rem; + border-bottom: 1px solid var(--line); + padding: 1.4rem 0; +} + +.image-slice { + min-height: 30rem; + border-radius: 8px; + overflow: hidden; + border: 1px solid var(--line); +} + +.image-slice img { + width: 100%; + height: 100%; + object-fit: cover; + filter: saturate(0.76) contrast(1.03); +} + +.pricing-table-card { + display: grid; + grid-template-columns: 1.1fr 0.65fr 1.4fr auto; + gap: 1.5rem; + align-items: center; + padding: 1.4rem; +} + +.pricing-table-card.is-recommended { + border-color: var(--gold); + background: color-mix(in srgb, var(--panel-bg) 88%, var(--gold) 12%); +} + +.eyebrow { + display: inline-flex; + width: fit-content; + border-bottom: 1px solid var(--line); + color: var(--pine); + padding-bottom: 0.45rem; + font-size: 0.875rem; + font-weight: 700; +} + +.form-input { + width: 100%; + border: 1px solid var(--line); + border-radius: 8px; + background: var(--panel-bg); + color: var(--ink); + padding: 0.85rem 1rem; + outline: none; +} + +.form-input:focus { + border-color: var(--pine); + box-shadow: 0 0 0 3px color-mix(in srgb, var(--pine) 18%, transparent); +} + +.billing-button { + border-radius: 999px; + padding: 0.65rem 1.25rem; + color: var(--text-main); + font-weight: 700; +} + +.billing-button.active { + background: var(--pine-deep); + color: #fffaf0; +} + +.manual-preview { + display: grid; + grid-template-columns: 5rem 8rem 1fr; + min-height: 18rem; + overflow: hidden; + border: 1px solid var(--line); + border-radius: 8px; + background: var(--panel-bg); +} + +.manual-sidebar { + padding: 1rem 0.75rem; + background: var(--pine-deep); + color: #fffaf0; +} + +.manual-subnav { + border-right: 1px solid var(--line); + background: var(--page-muted); + padding: 1rem 0.75rem; +} + +.manual-item { + margin-bottom: 0.65rem; + border-radius: 6px; + padding: 0.6rem 0.7rem; + font-size: 0.85rem; +} + +.manual-item:first-child { + color: var(--gold); +} + +.manual-content { + padding: 1.25rem; +} + +.dark-panel, +.dark-card { + background: var(--panel-bg) !important; + border-color: var(--line) !important; +} + +.dark-text-strong, +.dark .text-slate-950, +.dark .text-gray-900, +.dark .text-gray-800 { + color: var(--ink) !important; +} + +.dark-text, +.dark .text-slate-700, +.dark .text-slate-600, +.dark .text-gray-700, +.dark .text-gray-600 { + color: var(--text-main) !important; +} + +.dark-text-muted, +.dark .text-slate-500, +.dark .text-gray-500 { + color: var(--text-muted) !important; +} + +.dark .bg-white, +.dark .bg-gray-50, +.dark .bg-slate-50 { + background-color: var(--panel-bg) !important; +} + +.dark .border-slate-100, +.dark .border-gray-100, +.dark .border-gray-200 { + border-color: var(--line) !important; +} + +.dark-active { + color: var(--gold) !important; +} + +@media (max-width: 1024px) { + .editorial-grid, + .pricing-table-card { + grid-template-columns: 1fr; + } + + .image-slice { + min-height: 22rem; + } +} + +@media (max-width: 768px) { + .art-hero { + min-height: 760px; + } + + .art-hero-content { + padding: 7rem 0 3rem; + } + + .editorial-section { + padding: 4rem 0; + } + + .journey-line { + grid-template-columns: 1fr; + } + + .journey-line > div { + min-height: auto; + border-right: 0; + border-bottom: 1px solid rgba(255, 250, 240, 0.24); + } + + .thin-list-item { + grid-template-columns: 1fr; + } + + .manual-preview { + grid-template-columns: 4.5rem 1fr; + } + + .manual-content { + display: none; + } +} + +/* 首页高级动效与后台管理端样式 */ +.motion-section { padding: 6rem 0; } +.section-intro { max-width: 760px; margin-bottom: 3rem; } +.section-intro h2, .home-flow h2, .faq-composer h2, .final-cta h2 { margin-top: 1.2rem; color: var(--ink); font-size: clamp(2rem, 4vw, 4.8rem); line-height: 1.05; font-weight: 800; } +.section-intro p, .home-flow p, .faq-composer p { margin-top: 1rem; color: var(--text-main); line-height: 1.8; } + +.hero-cinematic { position: relative; min-height: 960px; overflow: hidden; background: #08110f; } +.hero-cinematic__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.05); transform: scale(1.06); animation: heroDrift 18s ease-in-out infinite alternate; } +.hero-cinematic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,17,15,.88), rgba(8,17,15,.52), rgba(8,17,15,.12)), linear-gradient(0deg, rgba(8,17,15,.72), transparent 56%); } +.hero-cinematic__grain { position: absolute; inset: 0; z-index: 1; opacity: .16; background-image: radial-gradient(rgba(255,255,255,.45) 1px, transparent 1px); background-size: 4px 4px; mix-blend-mode: overlay; } +.hero-cinematic__glow { position: absolute; z-index: 1; width: 44vw; height: 44vw; left: var(--glow-x); top: var(--glow-y); transform: translate(-50%, -50%); border-radius: 999px; background: radial-gradient(circle, rgba(180,138,88,.28), transparent 62%); pointer-events: none; transition: left .35s ease, top .35s ease; } +.hero-cinematic__content { position: relative; z-index: 2; min-height: 960px; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 8rem; padding-bottom: 5rem; color: #fffaf0; } +.hero-cinematic__copy h1 { max-width: 980px; font-size: clamp(3rem, 7vw, 7.5rem); line-height: .96; font-weight: 900; letter-spacing: 0; } +.hero-cinematic__copy p { max-width: 720px; margin-top: 1.5rem; color: #eee7dc; font-size: 1.15rem; line-height: 2; } +.hero-cinematic__actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; } +.hero-cinematic__path { width: min(760px, 100%); margin-top: 4rem; overflow: visible; } +.hero-cinematic__path .path-shadow { fill: none; stroke: rgba(255,250,240,.18); stroke-width: 1.5; } +.hero-cinematic__path .path-draw { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1100; stroke-dashoffset: 1100; animation: drawPath 4.6s ease forwards 1s; } +.hero-cinematic__path circle { fill: #fffaf0; stroke: var(--gold); stroke-width: 2; animation: pulseNode 3s ease-in-out infinite; } +.hero-cinematic__path text { fill: #fffaf0; font-size: 14px; } +.reveal-up { opacity: 0; transform: translateY(24px); animation: revealUp .9s ease forwards; } +.delay-1 { animation-delay: .15s; } .delay-2 { animation-delay: .3s; } .delay-3 { animation-delay: .45s; } + +.journey-section { overflow: hidden; } +.journey-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; } +.journey-card { scroll-snap-align: start; min-height: 300px; border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; background: color-mix(in srgb, var(--panel-bg) 92%, transparent); transition: transform .35s ease, border-color .35s ease; } +.journey-card:hover { transform: translateY(-8px); border-color: var(--gold); } +.journey-card span { color: var(--gold); font-family: Georgia, serif; } +.journey-card h3 { margin-top: 4rem; color: var(--ink); font-size: 1.6rem; font-weight: 800; } +.journey-card p { margin-top: 1rem; color: var(--text-main); line-height: 1.8; } + +.constellation-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; } +.constellation-grid h2 { margin-top: 1.2rem; color: var(--ink); font-size: clamp(2.2rem, 5vw, 5.2rem); line-height: 1; font-weight: 900; } +.constellation-grid p { margin-top: 1.5rem; color: var(--text-main); line-height: 1.9; } +.constellation { width: 100%; min-height: 420px; overflow: visible; } +.constellation-line { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 480; stroke-dashoffset: 480; animation: drawPath 3.8s ease forwards; } +.constellation-node circle { fill: var(--panel-bg); stroke: var(--gold); stroke-width: 1.5; filter: drop-shadow(0 18px 30px rgba(31,39,34,.12)); } +.constellation-node text { fill: var(--ink); font-weight: 700; font-size: 14px; } + +.data-current { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center; padding: 2rem; } +.data-current h2 { margin-top: 1.2rem; color: var(--ink); font-size: clamp(2rem, 4vw, 4.4rem); line-height: 1.05; font-weight: 900; } +.data-current p { margin-top: 1rem; color: var(--text-main); line-height: 1.9; } +.data-chart { min-height: 360px; } +.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } +.scenario-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel-bg); } +.scenario-card img { width: 100%; height: 260px; object-fit: cover; filter: saturate(.75); transition: transform .6s ease; } +.scenario-card:hover img { transform: scale(1.06); } +.scenario-card div { padding: 1.4rem; } +.scenario-card span { color: var(--gold); font-size: .85rem; font-weight: 700; } +.scenario-card h3 { margin-top: .75rem; color: var(--ink); font-size: 1.4rem; font-weight: 800; } +.scenario-card p { margin-top: .75rem; color: var(--text-main); line-height: 1.75; } +.home-flow { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; } +.home-flow ol { border-top: 1px solid var(--line); } +.home-flow li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); } +.home-flow li span { color: var(--gold); font-family: Georgia, serif; } +.home-flow h3 { color: var(--ink); font-size: 1.2rem; font-weight: 800; } +.faq-composer { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; } +.faq-list details { border-bottom: 1px solid var(--line); padding: 1.2rem 0; } +.faq-list summary { cursor: pointer; color: var(--ink); font-weight: 800; } +.faq-list p { color: var(--text-main); line-height: 1.8; } +.final-cta__inner { border: 1px solid var(--line); border-radius: 12px; padding: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--panel-bg); } + +.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; background: #f6f4ed; color: #1f2722; } +.admin-sidebar { background: #102d28; color: #fffaf0; padding: 1rem; } +.admin-sidebar.single { width: 92px; } +.admin-sidebar__brand { font-size: 1.25rem; font-weight: 900; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 1rem; } +.admin-nav-item, .admin-nav-title, .admin-nav-child { display: flex; align-items: center; gap: .65rem; padding: .75rem .9rem; border-radius: 8px; color: rgba(255,250,240,.78); text-decoration: none; } +.admin-nav-child { margin-left: 1rem; font-size: .9rem; } +.admin-nav-item.router-link-active, .admin-nav-child.router-link-active { background: rgba(180,138,88,.18); color: #fffaf0; } +.admin-main { min-width: 0; } +.admin-topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; border-bottom: 1px solid #ded8c9; background: rgba(255,253,247,.86); backdrop-filter: blur(10px); } +.admin-topbar h1 { font-size: 1.35rem; font-weight: 900; } +.admin-topbar__actions { display: flex; gap: .75rem; } +.admin-chip { border: 1px solid #ded8c9; border-radius: 999px; padding: .55rem .9rem; background: #fffdf7; color: #1f2722; } +.admin-page-surface { padding: 1.5rem; } +.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } +.admin-stat-card, .admin-board, .admin-table-wrap, .admin-profile { border: 1px solid #ded8c9; border-radius: 10px; background: #fffdf7; padding: 1.25rem; } +.admin-stat-card span, .admin-stat-card small { display: block; color: #7b837d; } +.admin-stat-card strong { display: block; margin: .75rem 0; font-size: 2rem; } +.admin-board { margin-top: 1rem; } +.admin-board h2, .admin-page-header h2, .admin-profile h2 { color: #1f2722; font-size: 1.6rem; font-weight: 900; } +.admin-page-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; } +.admin-table-wrap { overflow: auto; } +.admin-table-wrap table { width: 100%; border-collapse: collapse; min-width: 760px; } +.admin-table-wrap th, .admin-table-wrap td { border-bottom: 1px solid #eee8dc; padding: .9rem; text-align: left; font-size: .92rem; } +.admin-login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 20%, rgba(180,138,88,.2), transparent 30%), #08110f; } +.admin-login__panel { width: min(420px, calc(100vw - 2rem)); border: 1px solid rgba(255,250,240,.18); border-radius: 14px; background: rgba(255,253,247,.95); padding: 2rem; display: grid; gap: 1rem; } +.admin-login__panel h1 { font-size: 2rem; font-weight: 900; color: #1f2722; } +.admin-login__panel p { color: #4d5a53; line-height: 1.7; } + +@keyframes heroDrift { from { transform: scale(1.06) translateX(0); } to { transform: scale(1.12) translateX(-2%); } } +@keyframes drawPath { to { stroke-dashoffset: 0; } } +@keyframes pulseNode { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } } +@keyframes revealUp { to { opacity: 1; transform: translateY(0); } } + +@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } } +@media (max-width: 1024px) { .constellation-grid, .data-current, .home-flow, .faq-composer { grid-template-columns: 1fr; } .scenario-grid, .admin-stat-grid { grid-template-columns: 1fr 1fr; } .admin-shell { grid-template-columns: 220px 1fr; } } +@media (max-width: 768px) { .hero-cinematic, .hero-cinematic__content { min-height: 820px; } .hero-cinematic__path { display: none; } .scenario-grid, .admin-stat-grid { grid-template-columns: 1fr; } .final-cta__inner { flex-direction: column; align-items: stretch; } .admin-shell { grid-template-columns: 1fr; } .admin-sidebar { position: static; } .admin-topbar { height: auto; padding: 1rem; align-items: start; gap: 1rem; flex-direction: column; } } + +/* 官网视觉二次优化:灰黑暗色、差异化卡片和页面布局 */ +:root.dark { + color-scheme: dark; + --page-bg: #0b0c0f; + --page-muted: #15161a; + --panel-bg: #1a1c21; + --ink: #f4f4f5; + --text-main: #c8c9cc; + --text-muted: #8f9298; + --line: #30333a; + --pine: #d2d4d8; + --pine-deep: #f2f2f3; + --moss: #a7aab0; + --gold: #d6ad73; + --paper: rgba(255, 255, 255, 0.028); +} + +.dark .hero-cinematic { background: #0b0c0f; } +.dark .hero-cinematic::after, +.dark .art-hero::after { + background: + linear-gradient(90deg, rgba(9, 10, 12, 0.88) 0%, rgba(16, 17, 20, 0.58) 46%, rgba(16, 17, 20, 0.12) 100%), + linear-gradient(0deg, rgba(9, 10, 12, 0.7) 0%, transparent 48%); +} +.dark .admin-shell { background: #111216; color: var(--ink); } +.dark .admin-sidebar { background: #0b0c0f; } +.dark .admin-topbar, +.dark .admin-stat-card, +.dark .admin-board, +.dark .admin-table-wrap, +.dark .admin-profile, +.dark .admin-chip { background: var(--panel-bg); border-color: var(--line); color: var(--ink); } +.dark .admin-board h2, +.dark .admin-page-header h2, +.dark .admin-profile h2, +.dark .admin-topbar h1 { color: var(--ink); } + +.ghost-button, +.admin-button { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 0.5rem; + border-radius: 999px; + border: 1px solid var(--line); + padding: 0.72rem 1rem; + font-weight: 700; + color: var(--ink); + background: color-mix(in srgb, var(--panel-bg) 82%, transparent); + transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease; +} +.ghost-button:hover, +.admin-button:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--gold); } + +.home-brief__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: end; } +.home-brief h2 { color: var(--ink); font-size: clamp(2.2rem, 5vw, 5.4rem); line-height: 1; font-weight: 900; } +.home-brief p { margin-top: 1.2rem; color: var(--text-main); line-height: 1.9; } +.home-brief__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } + +.editorial-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } +.editorial-card { position: relative; min-height: 320px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-bg); padding: 1.4rem; transition: transform .35s ease, border-color .35s ease; } +.editorial-card:hover { transform: translateY(-6px); border-color: var(--gold); } +.editorial-card.paper { background: linear-gradient(180deg, color-mix(in srgb, var(--panel-bg) 94%, white 6%), var(--panel-bg)); } +.editorial-card.line::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: repeating-linear-gradient(90deg, var(--gold) 0 42px, transparent 42px 72px); opacity: .7; } +.editorial-card.warm { background: color-mix(in srgb, var(--panel-bg) 88%, var(--gold) 12%); } +.editorial-card__index { color: var(--gold); font-family: Georgia, serif; font-size: .95rem; } +.editorial-card__body { display: grid; gap: .9rem; margin-top: 4rem; } +.editorial-card__eyebrow { color: var(--text-muted); font-size: .8rem; font-weight: 800; } +.editorial-card h3 { color: var(--ink); font-size: 1.55rem; line-height: 1.2; font-weight: 900; } +.editorial-card p { color: var(--text-main); line-height: 1.8; } + +.metric-art-card { min-height: 220px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-bg); padding: 1.3rem; } +.metric-art-card span { color: var(--text-muted); font-size: .82rem; font-weight: 800; } +.metric-art-card strong { display: block; margin-top: 2.8rem; color: var(--ink); font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1; font-family: Georgia, serif; } +.metric-art-card p { margin-top: 1rem; color: var(--text-main); line-height: 1.7; } + +.manual-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 4rem; align-items: start; } +.manual-layout__index { position: sticky; top: 96px; } +.manual-layout__index h2, +.capability-board h2, +.pricing-ledger h2, +.stage-note h2 { margin-top: 1.2rem; color: var(--ink); font-size: clamp(2rem, 4vw, 4.8rem); line-height: 1.05; font-weight: 900; } +.manual-layout__index p, +.capability-board p, +.pricing-ledger p { margin-top: 1rem; color: var(--text-main); line-height: 1.9; } +.manual-layout__list { border-top: 1px solid var(--line); } +.feature-line-card { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.25rem; border-bottom: 1px solid var(--line); padding: 1.5rem 0; } +.feature-line-card > span { color: var(--gold); font-family: Georgia, serif; } +.feature-line-card h3 { color: var(--ink); font-size: 1.35rem; font-weight: 900; } +.feature-line-card p { margin-top: .7rem; color: var(--text-main); line-height: 1.8; } +.feature-line-card__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; } +.feature-line-card__tags em { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .65rem; color: var(--text-muted); font-size: .78rem; font-style: normal; } +.capability-board { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; } + +.solution-path { display: grid; gap: 5rem; } +.scenario-image-card { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3rem; align-items: center; } +.scenario-image-card.is-reverse { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); } +.scenario-image-card.is-reverse .scenario-image-card__media { order: 2; } +.scenario-image-card__media { min-height: 420px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); } +.scenario-image-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.03); transition: transform .8s ease; } +.scenario-image-card:hover img { transform: scale(1.05); } +.scenario-image-card__copy { border-top: 1px solid var(--line); padding-top: 1.5rem; } +.scenario-image-card__copy span { color: var(--gold); font-weight: 800; } +.scenario-image-card__copy h3 { margin-top: 1rem; color: var(--ink); font-size: clamp(2rem, 4vw, 4.6rem); line-height: 1.05; font-weight: 900; } +.scenario-image-card__copy p { margin-top: 1rem; color: var(--text-main); line-height: 1.9; } +.stage-note { display: grid; justify-items: start; gap: 1.5rem; max-width: 900px; } + +.pricing-ledger { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; align-items: start; } +.pricing-ledger__intro { position: sticky; top: 96px; } +.pricing-ledger__rows { display: grid; gap: 1rem; } +.pricing-row-card { display: grid; grid-template-columns: 1fr .42fr .9fr auto; gap: 1.25rem; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-bg); padding: 1.25rem; } +.pricing-row-card.is-recommended { border-color: var(--gold); background: color-mix(in srgb, var(--panel-bg) 90%, var(--gold) 10%); } +.pricing-row-card__title { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; } +.pricing-row-card h3 { color: var(--ink); font-size: 1.45rem; font-weight: 900; } +.pricing-row-card__title span { border: 1px solid var(--gold); border-radius: 999px; padding: .18rem .55rem; color: var(--gold); font-size: .75rem; } +.pricing-row-card p { margin-top: .65rem; color: var(--text-main); line-height: 1.7; } +.pricing-row-card__price strong { color: var(--pine-deep); font-size: 2.2rem; line-height: 1; } +.pricing-row-card__price small { display: block; margin-top: .25rem; color: var(--text-muted); } +.pricing-row-card ul { display: grid; gap: .45rem; color: var(--text-main); font-size: .9rem; } +.pricing-row-card li span { margin-right: .35rem; color: var(--text-muted); } + +@media (max-width: 1024px) { + .home-brief__grid, + .manual-layout, + .capability-board, + .pricing-ledger, + .scenario-image-card, + .scenario-image-card.is-reverse { grid-template-columns: 1fr; } + .manual-layout__index, + .pricing-ledger__intro { position: static; } + .editorial-card-grid, + .home-brief__metrics { grid-template-columns: 1fr; } + .scenario-image-card.is-reverse .scenario-image-card__media { order: initial; } + .pricing-row-card { grid-template-columns: 1fr; } +} + +@media (max-width: 640px) { + .home-brief h2, + .manual-layout__index h2, + .capability-board h2, + .pricing-ledger h2, + .stage-note h2 { font-size: clamp(2rem, 11vw, 3.2rem); } + .feature-line-card { grid-template-columns: 1fr; } + .scenario-image-card__media { min-height: 280px; } + .pricing-row-card__price strong { font-size: 2rem; } + .primary-button, + .secondary-button, + .ghost-button, + .admin-button { width: 100%; min-height: 44px; justify-content: center; text-align: center; } +} + +/* 暗色模式按钮补丁:灰黑背景下保持可读,不再使用绿色或近白底白字。 */ +.dark .primary-button { + background: #2f3238; + border-color: #555a63; + color: #f7f7f8; +} +.dark .primary-button:hover { + background: #3a3e46; + border-color: var(--gold); +} +.dark .secondary-button { + color: #f1f2f4; + border-color: #555a63; +} +.dark .secondary-button:hover { color: var(--gold); } +.dark .billing-button.active { background: #f1f2f4; color: #101114; } +.dark .pricing-row-card__price strong, +.dark .order-panel .text-\[var\(--pine-deep\)\] { color: #f1f2f4; } + +/* 后台 v2:运营型 SaaS 控制台布局、筛选、表格和详情交互 */ +.admin-shell-v2 { + min-height: 100vh; + display: grid; + grid-template-columns: 292px minmax(0, 1fr); + background: #f3f4f6; + color: #17181c; +} +.admin-shell-v2.is-single { grid-template-columns: 108px minmax(0, 1fr); } +.admin-main { min-width: 0; } +.admin-page-surface { padding: 24px; } +.admin-sidebar-v2 { + position: sticky; + top: 0; + height: 100vh; + overflow: auto; + border-right: 1px solid rgba(255,255,255,.08); + background: #111318; + color: #f5f6f7; + padding: 16px; +} +.admin-sidebar__head { display: flex; align-items: center; gap: 12px; min-height: 54px; } +.admin-sidebar__logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #f5f6f7; color: #111318; font-weight: 900; } +.admin-sidebar__brand-copy { display: grid; gap: 2px; min-width: 0; } +.admin-sidebar__brand-copy strong { font-size: 16px; } +.admin-sidebar__brand-copy span { color: #9498a3; font-size: 12px; } +.admin-sidebar__close { display: none; margin-left: auto; color: #fff; } +.admin-shell-v2.is-single .admin-sidebar__brand-copy, +.admin-shell-v2.is-single .admin-sidebar__workspace, +.admin-shell-v2.is-single .admin-nav-title-v2 span, +.admin-shell-v2.is-single .admin-nav-child-v2 span, +.admin-shell-v2.is-single .admin-nav-child-v2 small, +.admin-shell-v2.is-single .admin-nav-item-v2 span { display: none; } +.admin-sidebar__workspace { margin: 18px 0; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.04); padding: 12px; } +.admin-sidebar__workspace span { display: block; color: #9498a3; font-size: 12px; } +.admin-sidebar__workspace strong { display: block; margin-top: 4px; font-size: 14px; } +.admin-sidebar__nav { display: grid; gap: 10px; } +.admin-nav-group-v2 { display: grid; gap: 6px; } +.admin-nav-title-v2, +.admin-nav-item-v2, +.admin-nav-child-v2 { + display: flex; + align-items: center; + gap: 10px; + min-height: 42px; + border-radius: 10px; + color: #c9ccd3; + text-decoration: none; +} +.admin-nav-title-v2 { color: #7f8490; padding: 0 10px; font-size: 12px; font-weight: 800; } +.admin-nav-title-v2 i, +.admin-nav-item-v2 i, +.admin-nav-child-v2 i { width: 18px; text-align: center; } +.admin-nav-item-v2, +.admin-nav-child-v2 { padding: 0 10px; } +.admin-nav-child-v2 { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; row-gap: 1px; margin-left: 8px; } +.admin-nav-child-v2 small { grid-column: 2; color: #737782; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.admin-nav-item-v2.router-link-active, +.admin-nav-child-v2.router-link-active { background: #f5f6f7; color: #111318; } +.admin-menu-skeleton { display: grid; gap: 10px; } +.admin-menu-skeleton i, +.admin-loading-state i { display: block; height: 42px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06)); animation: adminPulse 1.2s infinite; } + +.admin-topbar-v2 { + position: sticky; + top: 0; + z-index: 20; + display: grid; + grid-template-columns: auto minmax(180px, 1fr) minmax(260px, 420px) auto; + gap: 16px; + align-items: center; + min-height: 76px; + border-bottom: 1px solid #e4e6eb; + background: rgba(255,255,255,.86); + backdrop-filter: blur(14px); + padding: 0 24px; +} +.admin-topbar__menu { display: none !important; } +.admin-breadcrumb { color: #7c818c; font-size: 12px; } +.admin-topbar__title h1 { margin-top: 2px; color: #15171b; font-size: 22px; font-weight: 900; } +.admin-global-search { display: flex; align-items: center; gap: 10px; border: 1px solid #dfe2e8; border-radius: 999px; background: #f8f9fb; padding: 0 14px; } +.admin-global-search input { width: 100%; min-height: 40px; border: 0; outline: 0; background: transparent; color: #15171b; } +.admin-topbar__actions { display: flex; align-items: center; gap: 10px; } +.admin-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid #dfe2e8; border-radius: 999px; background: #fff; color: #25282f; } +.admin-chip-v2, +.admin-user-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border: 1px solid #dfe2e8; border-radius: 999px; background: #fff; color: #25282f; padding: 0 12px; } +.admin-user-pill span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: #17181c; color: #fff; font-size: 11px; } + +.admin-page-hero, +.admin-dashboard-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; } +.admin-eyebrow { color: #9a7345; font-size: 12px; font-weight: 900; letter-spacing: .08em; } +.admin-page-hero h2, +.admin-dashboard-hero h2 { margin-top: 8px; color: #15171b; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; font-weight: 950; } +.admin-page-hero p, +.admin-dashboard-hero p { max-width: 760px; margin-top: 10px; color: #626873; line-height: 1.75; } +.admin-page-actions, +.admin-dashboard-hero__action { display: flex; gap: 10px; flex-wrap: wrap; } +.admin-primary-action { min-height: 42px; color: #fff; background: #17181c; border-color: #17181c; } +.admin-button { min-height: 40px; border: 1px solid #dfe2e8; border-radius: 999px; background: #fff; color: #25282f; padding: 0 14px; font-weight: 800; } +.admin-button:disabled { opacity: .45; cursor: not-allowed; } +.admin-filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) 180px auto auto; gap: 10px; align-items: center; margin-bottom: 12px; } +.admin-search-field { display: flex; align-items: center; gap: 10px; border: 1px solid #dfe2e8; border-radius: 12px; background: #fff; padding: 0 12px; } +.admin-search-field input, +.admin-select { width: 100%; min-height: 42px; border: 0; outline: 0; background: transparent; color: #25282f; } +.admin-select { border: 1px solid #dfe2e8; border-radius: 12px; background: #fff; padding: 0 12px; } +.admin-filter-meta { justify-self: end; color: #7c818c; font-size: 13px; } +.admin-table-card { overflow: auto; border: 1px solid #e1e4ea; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(20, 24, 32, .06); } +.admin-table-card table { width: 100%; min-width: 980px; border-collapse: collapse; } +.admin-table-card th { position: sticky; top: 0; z-index: 1; background: #f8f9fb; color: #6d7280; font-size: 12px; font-weight: 900; text-align: left; } +.admin-table-card th, +.admin-table-card td { border-bottom: 1px solid #edf0f4; padding: 14px 16px; vertical-align: middle; } +.admin-table-card tbody tr { cursor: pointer; transition: background .18s ease; } +.admin-table-card tbody tr:hover { background: #faf7f2; } +.admin-actions-col { width: 168px; } +.admin-row-actions { display: flex; gap: 8px; } +.admin-row-actions button { border-radius: 999px; background: #f3f4f6; color: #25282f; padding: 5px 10px; font-size: 12px; } +.admin-cell-text { color: #25282f; } +.admin-cell-money { color: #111318; font-weight: 900; } +.admin-status-badge, +.admin-soft-badge { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid #e1e4ea; background: #f8f9fb; color: #555b66; padding: 4px 9px; font-size: 12px; font-weight: 800; } +.admin-status-badge.is-pending, +.admin-status-badge.is-growth, +.admin-status-badge.is-success, +.admin-status-badge.is-enabled { border-color: #d6ad73; background: #fff7ea; color: #8a5f25; } +.admin-status-badge.is-empty, +.admin-status-badge.is-false, +.admin-status-badge.is-disabled { color: #8a8f99; } +.admin-empty-state { display: grid; place-items: center; gap: 8px; min-height: 280px; color: #7c818c; } +.admin-empty-state i { font-size: 34px; color: #c3c7cf; } +.admin-empty-state strong { color: #25282f; font-size: 18px; } +.admin-loading-state { display: grid; gap: 10px; padding: 18px; } +.admin-loading-state i { height: 48px; background: linear-gradient(90deg, #f4f5f7, #ebeef3, #f4f5f7); } +.admin-pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: #6d7280; } +.admin-pagination > div { display: flex; gap: 8px; } +.admin-detail-drawer { position: fixed; top: 0; right: 0; z-index: 60; width: min(460px, 100vw); height: 100vh; overflow: auto; border-left: 1px solid #e1e4ea; background: #fff; padding: 24px; box-shadow: -24px 0 80px rgba(20,24,32,.14); } +.admin-detail-drawer__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; } +.admin-detail-drawer h3 { margin-top: 6px; color: #15171b; font-size: 24px; font-weight: 900; } +.admin-detail-drawer dl { display: grid; gap: 0; border-top: 1px solid #edf0f4; } +.admin-detail-drawer dt { padding-top: 14px; color: #7c818c; font-size: 12px; font-weight: 900; } +.admin-detail-drawer dd { border-bottom: 1px solid #edf0f4; padding: 6px 0 14px; color: #25282f; } +.admin-drawer-enter-active, +.admin-drawer-leave-active { transition: transform .24s ease, opacity .24s ease; } +.admin-drawer-enter-from, +.admin-drawer-leave-to { transform: translateX(30px); opacity: 0; } + +.admin-dashboard-v2 { display: grid; gap: 18px; } +.admin-stat-grid-v2 { grid-template-columns: repeat(4, minmax(0, 1fr)); } +.admin-stat-card-v2 { position: relative; overflow: hidden; border-radius: 14px; background: #fff; } +.admin-stat-card-v2 i { position: absolute; right: 16px; top: 16px; color: #d6ad73; } +.admin-dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; } +.admin-board-v2 { border-radius: 14px; background: #fff; } +.admin-board__head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; } +.admin-board__head h3 { color: #15171b; font-size: 22px; font-weight: 900; } +.admin-pipeline { display: grid; gap: 16px; } +.admin-pipeline div { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; } +.admin-pipeline span { color: #626873; } +.admin-pipeline strong { color: #15171b; } +.admin-pipeline i { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #17181c, #d6ad73); } +.admin-task-list { display: grid; gap: 12px; } +.admin-task-list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; border: 1px solid #edf0f4; border-radius: 12px; padding: 12px; } +.admin-task-list li > span { width: 10px; height: 44px; border-radius: 999px; background: #dfe2e8; } +.admin-task-list li > span.high { background: #d6ad73; } +.admin-task-list li > span.medium { background: #7f8490; } +.admin-task-list strong { color: #15171b; } +.admin-task-list p { color: #6d7280; font-size: 13px; } +.admin-task-list button { border-radius: 999px; background: #111318; color: #fff; padding: 7px 12px; } +.admin-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; } +.admin-setting-card { border: 1px solid #e1e4ea; border-radius: 14px; background: #fff; padding: 18px; } +.admin-setting-card i { color: #d6ad73; font-size: 22px; } +.admin-setting-card h3 { margin-top: 18px; color: #15171b; font-size: 20px; font-weight: 900; } +.admin-setting-card p { margin: 8px 0 18px; color: #626873; line-height: 1.7; } +.admin-rule-list { display: grid; gap: 10px; color: #4f5560; } +.admin-rule-list li { border-left: 3px solid #d6ad73; padding-left: 10px; } + +.dark .admin-shell-v2 { background: #0f1013; color: #f4f4f5; } +.dark .admin-topbar-v2, +.dark .admin-table-card, +.dark .admin-page-hero, +.dark .admin-dashboard-hero, +.dark .admin-board-v2, +.dark .admin-setting-card, +.dark .admin-detail-drawer { background: #1a1c21; border-color: #30333a; color: #f4f4f5; } +.dark .admin-topbar__title h1, +.dark .admin-page-hero h2, +.dark .admin-dashboard-hero h2, +.dark .admin-board__head h3, +.dark .admin-detail-drawer h3, +.dark .admin-setting-card h3, +.dark .admin-empty-state strong, +.dark .admin-cell-text, +.dark .admin-cell-money { color: #f4f4f5; } +.dark .admin-page-hero p, +.dark .admin-dashboard-hero p, +.dark .admin-setting-card p, +.dark .admin-rule-list, +.dark .admin-breadcrumb { color: #b7bac1; } +.dark .admin-global-search, +.dark .admin-search-field, +.dark .admin-select, +.dark .admin-button, +.dark .admin-icon-btn, +.dark .admin-chip-v2, +.dark .admin-user-pill { background: #111318; border-color: #30333a; color: #f4f4f5; } +.dark .admin-table-card th { background: #15171b; color: #b7bac1; } +.dark .admin-table-card th, +.dark .admin-table-card td, +.dark .admin-detail-drawer dt, +.dark .admin-detail-drawer dd { border-color: #30333a; } +.dark .admin-table-card tbody tr:hover { background: #22242a; } + +@keyframes adminPulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } } + +@media (max-width: 1180px) { + .admin-shell-v2, + .admin-shell-v2.is-single { grid-template-columns: 1fr; } + .admin-sidebar-v2 { position: fixed; inset: 0 auto 0 0; z-index: 70; width: min(320px, 86vw); transform: translateX(-105%); transition: transform .24s ease; } + .admin-shell-v2.is-sidebar-open .admin-sidebar-v2 { transform: translateX(0); } + .admin-sidebar__close, + .admin-topbar__menu { display: inline-grid !important; } + .admin-mobile-mask { position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.35); } + .admin-topbar-v2 { grid-template-columns: auto 1fr auto; } + .admin-global-search { display: none; } + .admin-dashboard-grid, + .admin-settings-grid { grid-template-columns: 1fr; } + .admin-stat-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } +} +@media (max-width: 720px) { + .admin-page-surface { padding: 16px; } + .admin-topbar-v2 { padding: 0 14px; gap: 10px; } + .admin-page-hero, + .admin-dashboard-hero { align-items: stretch; flex-direction: column; } + .admin-filter-bar { grid-template-columns: 1fr; } + .admin-filter-meta { justify-self: start; } + .admin-stat-grid-v2 { grid-template-columns: 1fr; } + .admin-page-actions, + .admin-dashboard-hero__action, + .admin-topbar__actions { width: 100%; } + .admin-topbar__actions .admin-chip-v2 span { display: none; } +} + +/* 前台深度优化:医疗 SaaS 字体、标题层级、能力页、价格页、招聘页 */ +body { font-family: 'Figtree', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Inter', sans-serif; font-size: 16px; line-height: 1.65; } +.refined-page h1, .refined-page h2, .careers-page-v2 h1, .careers-page-v2 h2 { letter-spacing: 0; } +.subpage-hero { padding: 136px 0 72px; background: linear-gradient(180deg, color-mix(in srgb, var(--page-muted) 70%, #fff 30%), var(--page-bg)); } +.subpage-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(320px, .78fr); gap: 48px; align-items: center; } +.subpage-kicker { color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .08em; } +.subpage-hero h1 { max-width: 820px; margin-top: 18px; color: var(--ink); font-size: clamp(42px, 6vw, 76px); line-height: 1.02; font-weight: 950; } +.subpage-hero p { max-width: 680px; margin-top: 20px; color: var(--text-main); font-size: 18px; line-height: 1.85; } +.capability-map { position: relative; min-height: 440px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-bg); } +.capability-map > div { position: absolute; display: grid; place-items: center; gap: 4px; width: 128px; height: 128px; border: 1px solid var(--line); border-radius: 999px; background: var(--page-bg); text-align: center; } +.capability-map span { color: var(--text-muted); font-size: 12px; font-weight: 800; } +.capability-map strong { color: var(--ink); font-size: 18px; } +.capability-map .node-core { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-color: var(--gold); background: color-mix(in srgb, var(--panel-bg) 82%, var(--gold) 18%); } +.node-a { left: 8%; top: 10%; } .node-b { right: 8%; top: 10%; } .node-c { left: 12%; bottom: 12%; } .node-d { right: 12%; bottom: 12%; } +.feature-split, .career-process { display: grid; grid-template-columns: .72fr 1.28fr; gap: 48px; align-items: start; } +.feature-split aside h2, .process-slice h2, .backend-panel h2, .feature-compare h2, .order-panel-v2 h2, .career-process h2 { margin-top: 14px; color: var(--ink); font-size: clamp(30px, 4vw, 54px); line-height: 1.08; font-weight: 950; } +.feature-split aside p, .backend-panel p, .order-panel-v2 p { margin-top: 14px; color: var(--text-main); line-height: 1.85; } +.role-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } +.role-matrix article { min-height: 280px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-bg); padding: 22px; } +.role-matrix article > span, .process-slice__rail span { color: var(--gold); font-family: Georgia, serif; font-weight: 800; } +.role-matrix h3 { margin-top: 56px; color: var(--ink); font-size: 24px; font-weight: 900; } +.role-matrix p { margin-top: 10px; color: var(--text-main); line-height: 1.75; } +.role-matrix ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; } +.role-matrix li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--text-muted); font-size: 13px; } +.process-slice__rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 32px; } +.process-slice__rail article { border-top: 1px solid var(--line); padding-top: 16px; } +.process-slice__rail h3 { margin-top: 38px; color: var(--ink); font-size: 22px; font-weight: 900; } +.process-slice__rail p { margin-top: 8px; color: var(--text-main); line-height: 1.75; } +.backend-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-bg); padding: 30px; } +.backend-panel__preview { display: grid; gap: 12px; } +.backend-panel__preview div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 18px 0; } +.backend-panel__preview strong { color: var(--ink); } .backend-panel__preview span { color: var(--text-muted); } +.pricing-switch-card { border: 1px solid var(--line); border-radius: 18px; background: var(--panel-bg); padding: 24px; } +.pricing-switch-card > span { color: var(--gold); font-weight: 900; } +.pricing-switch-card div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0; } +.pricing-switch-card button { min-height: 48px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 900; } +.pricing-switch-card button.active { background: var(--ink); color: var(--page-bg); } +.pricing-switch-card p { color: var(--text-main); font-size: 15px; line-height: 1.75; } +.pricing-cards-v2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } +.pricing-cards-v2 article { display: grid; gap: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-bg); padding: 24px; } +.pricing-cards-v2 article.recommended { border-color: var(--gold); background: color-mix(in srgb, var(--panel-bg) 88%, var(--gold) 12%); } +.pricing-card-head span { color: var(--gold); font-size: 13px; font-weight: 900; } +.pricing-card-head h2 { margin-top: 10px; color: var(--ink); font-size: 30px; font-weight: 950; } +.pricing-card-head p { margin-top: 10px; color: var(--text-main); line-height: 1.75; } +.pricing-card-price strong { color: var(--ink); font-size: 44px; line-height: 1; font-weight: 950; } +.pricing-card-price small { margin-left: 6px; color: var(--text-muted); } +.pricing-cards-v2 li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 11px 0; color: var(--text-main); } +.pricing-cards-v2 li span { color: var(--text-muted); } +.feature-compare { display: grid; gap: 28px; } +.compare-table { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-bg); } +.compare-row { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(150px, 1fr)); min-width: 760px; border-bottom: 1px solid var(--line); } +.compare-row:last-child { border-bottom: 0; } +.compare-row > * { padding: 16px; color: var(--text-main); } +.compare-row span { color: var(--ink); font-weight: 900; } +.compare-head { background: var(--page-muted); } +.order-panel-v2 { display: grid; grid-template-columns: .72fr 1.28fr; gap: 32px; border-radius: 18px; padding: 30px; } +.order-panel-v2 form, .admin-edit-panel form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } +.order-panel-v2 label, .admin-edit-panel label { display: grid; gap: 7px; color: var(--text-main); font-size: 14px; font-weight: 800; } +.order-panel-v2 .full, .admin-edit-panel .full { grid-column: 1 / -1; } +.form-actions { display: flex; gap: 10px; flex-wrap: wrap; } +.pricing-message { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--page-muted); padding: 12px 14px; color: var(--ink); } +.careers-hero__panel { border: 1px solid var(--line); border-radius: 18px; background: var(--panel-bg); padding: 28px; } +.careers-hero__panel strong { display: block; color: var(--ink); font-size: 76px; line-height: 1; } +.careers-hero__panel span { color: var(--gold); font-weight: 900; } +.careers-hero__panel p { font-size: 16px; } +.careers-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; align-items: start; } +.careers-filter { position: sticky; top: 96px; display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-bg); padding: 20px; } +.careers-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; } +.careers-search input { min-height: 44px; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); } +.careers-tabs { display: grid; gap: 8px; } +.careers-tabs button { min-height: 40px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 800; } +.careers-tabs button.active { border-color: var(--gold); color: var(--gold); } +.careers-contact-card { border-top: 1px solid var(--line); padding-top: 18px; } +.careers-contact-card h3 { color: var(--ink); font-size: 20px; font-weight: 900; } +.careers-contact-card p { margin-top: 8px; color: var(--text-main); line-height: 1.7; } +.careers-contact-card a { display: inline-flex; margin-top: 10px; color: var(--gold); font-weight: 900; } +.careers-list { display: grid; gap: 14px; } +.career-job-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-bg); padding: 22px; } +.career-job-card span { color: var(--gold); font-size: 13px; font-weight: 900; } +.career-job-card h2 { margin-top: 8px; color: var(--ink); font-size: 28px; font-weight: 950; } +.career-job-card p { margin-top: 8px; color: var(--text-main); line-height: 1.75; } +.career-job-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; } +.career-job-card__tags em { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--text-muted); font-size: 13px; font-style: normal; } +.career-process__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } +.career-process__steps div { border-top: 1px solid var(--line); padding-top: 14px; } +.career-process__steps span { color: var(--gold); font-family: Georgia, serif; } +.career-process__steps h3 { margin-top: 32px; color: var(--ink); font-size: 22px; font-weight: 900; } +.career-process__steps p { margin-top: 8px; color: var(--text-main); line-height: 1.75; } +.career-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; overflow: auto; background: rgba(0,0,0,.48); padding: 20px; } +.career-modal article { position: relative; width: min(760px, 100%); border-radius: 18px; background: var(--panel-bg); padding: 28px; } +.career-modal__close { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); } +.career-modal h2 { margin-top: 10px; color: var(--ink); font-size: 34px; font-weight: 950; } +.career-modal h3 { margin-top: 24px; color: var(--ink); font-size: 20px; font-weight: 900; } +.career-modal p, .career-modal li { color: var(--text-main); line-height: 1.8; } +.career-modal ul { margin-top: 10px; padding-left: 18px; list-style: disc; } +.career-modal__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; } +.careers-empty { border: 1px dashed var(--line); border-radius: 16px; padding: 28px; color: var(--text-muted); text-align: center; } +.admin-cms-page { display: grid; gap: 18px; } +.admin-edit-panel { border: 1px solid #e1e4ea; border-radius: 14px; background: #fff; padding: 22px; } +.admin-edit-panel h3 { margin-top: 6px; color: #15171b; font-size: 24px; font-weight: 950; } +.admin-edit-panel form { margin-top: 18px; } +.media-preview { margin-top: 18px; border: 1px solid #e1e4ea; border-radius: 12px; padding: 12px; } +.media-preview img { max-width: 220px; max-height: 120px; object-fit: contain; } +.dark .admin-edit-panel { background: #1a1c21; border-color: #30333a; } +.dark .admin-edit-panel h3 { color: #f4f4f5; } +@media (max-width: 1024px) { .subpage-hero__grid, .feature-split, .backend-panel, .order-panel-v2, .careers-grid, .career-process { grid-template-columns: 1fr; } .pricing-cards-v2, .role-matrix, .career-process__steps { grid-template-columns: 1fr; } .careers-filter { position: static; } .process-slice__rail { grid-template-columns: 1fr; } } +@media (max-width: 720px) { .subpage-hero { padding: 110px 0 52px; } .subpage-hero h1 { font-size: clamp(34px, 12vw, 48px); } .subpage-hero p { font-size: 16px; } .capability-map { min-height: 520px; } .capability-map > div { width: 112px; height: 112px; } .career-job-card, .career-modal__meta { grid-template-columns: 1fr; } .order-panel-v2 form, .admin-edit-panel form { grid-template-columns: 1fr; } .compare-row { min-width: 680px; } } diff --git a/src/components/admin/AdminLayout.vue b/src/components/admin/AdminLayout.vue new file mode 100644 index 0000000..825878d --- /dev/null +++ b/src/components/admin/AdminLayout.vue @@ -0,0 +1,53 @@ + + + diff --git a/src/components/admin/AdminSidebar.vue b/src/components/admin/AdminSidebar.vue new file mode 100644 index 0000000..34b8ed4 --- /dev/null +++ b/src/components/admin/AdminSidebar.vue @@ -0,0 +1,77 @@ + + + diff --git a/src/components/admin/AdminTopbar.vue b/src/components/admin/AdminTopbar.vue new file mode 100644 index 0000000..065c3ec --- /dev/null +++ b/src/components/admin/AdminTopbar.vue @@ -0,0 +1,43 @@ + + + diff --git a/src/components/home/ClinicJourney.vue b/src/components/home/ClinicJourney.vue new file mode 100644 index 0000000..bdd4e94 --- /dev/null +++ b/src/components/home/ClinicJourney.vue @@ -0,0 +1,28 @@ + + + diff --git a/src/components/home/DataCurrent.vue b/src/components/home/DataCurrent.vue new file mode 100644 index 0000000..24dbee9 --- /dev/null +++ b/src/components/home/DataCurrent.vue @@ -0,0 +1,42 @@ + + + diff --git a/src/components/home/HeroCinematic.vue b/src/components/home/HeroCinematic.vue new file mode 100644 index 0000000..d21ec73 --- /dev/null +++ b/src/components/home/HeroCinematic.vue @@ -0,0 +1,53 @@ + + + diff --git a/src/components/home/RoleConstellation.vue b/src/components/home/RoleConstellation.vue new file mode 100644 index 0000000..764fa38 --- /dev/null +++ b/src/components/home/RoleConstellation.vue @@ -0,0 +1,38 @@ + + + diff --git a/src/components/home/ScenarioShowcase.vue b/src/components/home/ScenarioShowcase.vue new file mode 100644 index 0000000..07f42d8 --- /dev/null +++ b/src/components/home/ScenarioShowcase.vue @@ -0,0 +1,32 @@ + + + diff --git a/src/components/layout/Footer.vue b/src/components/layout/Footer.vue index ee25e55..4ce2a30 100644 --- a/src/components/layout/Footer.vue +++ b/src/components/layout/Footer.vue @@ -1,101 +1,46 @@