/* ========================================================================== 主题: 超新星辉光 (Supernova Glow) 色板: 深空蓝 (Deep Space Blue) × 超新星蓝 (Supernova Blue) ========================================================================== */ :root { /* 基础与层级 */ --bg: #02030A; --surface: #101422; --glass: rgba(16, 20, 34, 0.5); --line: rgba(0, 191, 255, 0.2); --line-soft: rgba(0, 191, 255, 0.1); /* 文本 */ --text: #E0E8FF; --text-muted: #7F8DAA; /* 品牌与强调色 */ --brand: #00BFFF; /* Supernova Blue */ --brand-dark: #00AADD; --brand-glow: rgba(0, 191, 255, 0.2); --brand-glow-faint: rgba(0, 191, 255, 0.1); /* 形状与阴影 */ --radius: 6px; --shadow-glow: 0 0 24px var(--brand-glow); } /* ==================== 基础排版 ==================== */ *, *::before, *::after { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; color: var(--text); background-color: var(--bg); line-height: 1.75; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; } a { color: inherit; text-decoration: none; } img, svg { display: block; max-width: 100%; } .container { width: min(1280px, 94vw); margin-inline: auto; } section { padding: 60px 0; } h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 700; line-height: 1.35; } /* ==================== 网站页眉 ==================== */ .site-header { position: fixed; inset: 0 0 auto 0; z-index: 1200; display: flex; align-items: center; background: var(--glass); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: background .2s ease, height .2s ease; } .site-header.is-scrolled { background: rgba(16, 20, 34, 0.8); } .nav-inner { display: flex; align-items: center; justify-content: space-between; width: min(1280px, 94vw); margin-inline: auto; } .brand { display: inline-flex; align-items: center; gap: 14px; } .logo-crest { width: 42px; height: 42px; } .brand-title { font-size: 20px; font-weight: 700; letter-spacing: .5px; } .nav { display: flex; align-items: center; gap: 36px; margin-left: auto; } /* 靠右对齐 */ .nav-item { position: relative; } .nav-item a { font-weight: 700; font-size: 15px; color: var(--text-muted); position: relative; transition: color .2s ease; letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; } .nav-item a:hover, .nav-item a.is-active { color: var(--brand); } .nav-item a::after { content: ''; position: absolute; bottom: -8px; left: 0; right: 0; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .3s ease; } .nav-item a.is-active::after { transform: scaleX(1); } /* 已删除桌面端下拉箭头 */ .submenu { position: absolute; top: 100%; left: -16px; min-width: 200px; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; list-style: none; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; z-index: 10; } /* 修改:同时支持悬停和JS点击展开 */ .nav-item.has-submenu:hover .submenu, .nav-item.has-submenu.is-open .submenu { opacity: 1; pointer-events: auto; transform: translateY(0); } .submenu a { display: block; padding: 10px 16px; font-weight: 600; font-size: 14px; border-radius: 4px; } .submenu a:hover { background: var(--brand-glow); } .submenu a::after { display: none; } .menu-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; } .menu-toggle span { display: block; width: 28px; height: 2px; background: var(--text); margin: 6px 0; } .progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 1300; background: var(--brand); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--brand); } /* ==================== 首屏区域 (新版式) ==================== */ @keyframes rotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } } .hero { position: relative; padding: 80px 0 120px; text-align: left; min-height: 100vh; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; } .hero::before { content: ''; position: absolute; top: 50%; left: 50%; width: 150vmax; height: 150vmax; background: conic-gradient( from 0deg, var(--bg), var(--brand-glow-faint), var(--bg) 10%, var(--bg) ); animation: rotate 20s linear infinite; z-index: 0; } .hero .container { position: relative; z-index: 2; } .eyebrow { font-weight: 700; color: var(--brand); letter-spacing: .15em; text-transform: uppercase; font-size: 14px; } .hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.15; margin: 16px 0 20px; letter-spacing: -1.5px; max-width: 960px; } .hero p { color: var(--text-muted); font-size: 19px; max-width: 720px; } .cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; justify-content: flex-start; } /* ==================== 首屏轨道动画(原样式保留,不删除) ==================== */ .hero .orbital-container { position: absolute; top: 1px; right: 1px; width: 350px; height: 350px; transform: translateY(-55%); pointer-events: none; perspective: 1200px; } .hero .orbital-visual { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: rotate-3d 40s infinite linear; } @keyframes rotate-3d { 0% { transform: rotateY(0deg) rotateX(15deg); } 100% { transform: rotateY(360deg) rotateX(15deg); } } .visual-ring { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; margin-top: -50%; margin-left: -50%; border-radius: 50%; border: 3px solid; transform-style: preserve-3d; } .ring-1 { transform: rotateY(90deg) rotateX(0deg) scale(1); border-color: var(--line); } .ring-2 { transform: rotateY(90deg) rotateX(60deg) scale(0.8); border-color: var(--line-soft); border-style: dashed; } .ring-3 { transform: rotateY(90deg) rotateX(120deg) scale(0.6); border-color: var(--brand); box-shadow: 0 0 16px var(--brand-glow); } /* ==================== 旋转粒子画布(新增,仅替换右侧特效) ==================== */ #particle-canvas{ position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; /* 位置控制:百分比,越大越靠右,越小越靠上 */ --fx-x:70%; /* 水平位置 */ --fx-y:50%; /* 垂直位置 */ } .btn { --pad: 14px 28px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: var(--pad); border-radius: 99px; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: all .2s ease; position: relative; } .btn-primary { background: var(--brand); color: #02030A; } .btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-glow); transform: translateY(-2px); } .btn-ghost { background: transparent; color: var(--text); border-color: var(--line); } .btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-glow-faint); } /* ==================== 关键指标 (新版式) ==================== */ .kpis { background: var(--surface); padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .kpi-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; } .kpi { text-align: center; } .kpi .num { font-size: clamp(32px, 4vw, 48px); font-weight: 700; color: var(--brand); letter-spacing: .4px; } .kpi .label { color: var(--text-muted); margin-top: 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .8px;} /* ==================== 辉光卡片效果 ==================== */ .solar-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; transition: transform .3s ease, border-color .3s, box-shadow .3s; } .solar-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--brand-glow), transparent 250px); opacity: 0; transition: opacity 0.3s; pointer-events: none; } .solar-card:hover { transform: translateY(-6px); border-color: rgba(0, 191, 255, 0.4); box-shadow: 0 0 16px var(--brand-glow-faint); } .solar-card:hover::before { opacity: 1; } /* ==================== 主体内容网格布局 ==================== */ .main-layout { display: grid; grid-template-columns: 2.5fr 1fr; /* 非对称布局 */ gap: 48px; padding-top: 80px; } .sidebar .section-title, .main-content .section-title { text-align: left; margin: 0 0 32px; max-width: none; } .sidebar .section-title h2, .main-content .section-title h2 { font-size: clamp(24px, 2.8vw, 32px); } .sidebar .section-title p, .main-content .section-title p { font-size: 16px; margin-top: 8px; color: var(--text-muted); } /* ==================== 文档中心 (新版式) ==================== */ .cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } .cap { display: flex; align-items: flex-start; gap: 20px; padding: 24px; /* solar-card provides other styles */ } .icon { color: var(--brand); width: 40px; height: 40px; flex-shrink: 0; } .cap h3 { margin: 0 0 8px; font-size: 20px; } .cap p { color: var(--text-muted); margin: 0; font-size: 15px; line-height: 1.65; } /* ==================== 应用案例 (新版式) ==================== */ .cases-grid { display: grid; grid-template-columns: 1fr; gap: 24px; } .case { padding: 24px; } .case .chips { justify-content: flex-start; margin-bottom: 12px; display: flex; gap: 8px; } .chip { padding: 6px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--text-muted); } .case h4 { margin: 0 0 8px; font-size: 19px; } .case p { color: var(--text-muted); margin: 0; font-size: 15px; } /* ==================== 侧边栏 ==================== */ .sidebar { border-left: 1px solid var(--line); padding-left: 48px; } /* ==================== 实施流程 (新版式) ==================== */ .timeline { position: relative; border-left: 2px solid var(--line); padding-left: 32px; } .t-step { position: relative; padding: 0 0 28px; } .t-step:last-child { padding-bottom: 0; } .t-dot { position: absolute; left: -41px; top: 6px; width: 14px; height: 14px; background: var(--bg); border: 2px solid var(--brand); border-radius: 50%; box-shadow: 0 0 12px var(--brand); transition: background .3s, box-shadow .3s; } .t-step:hover .t-dot { background: var(--brand); box-shadow: var(--shadow-glow); } .t-step strong { color: var(--text); display: block; margin-bottom: 6px; font-size: 16px; font-weight: 700; } .t-step div { color: var(--text-muted); font-size: 14px; } /* ==================== 技术栈 & 代码示例 (新版式) ==================== */ .tech-list { display: flex; flex-direction: column; gap: 20px; } .tech-item { display: flex; align-items: flex-start; gap: 16px; } .tech-item .icon { width: 32px; height: 32px; } .tech-item h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; } .tech-item p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; } .schematic-display { margin-top: 40px; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-family: "SF Mono", "Fira Code", monospace; font-size: 13px; overflow: hidden; } .schematic-header { color: var(--text-muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; font-size: 12px; } .schematic-code { color: var(--text-muted); white-space: pre; } .schematic-code .c1 { color: #82aaff; } .schematic-code .c2 { color: #c3e88d; } .schematic-code .c3 { color: #ffcb6b; } .schematic-code .c4 { color: #f07178; } .schematic-code .c5 { color: #c792ea; } /* ==================== 页脚 ==================== */ footer { background: #060709; border-top: 1px solid var(--line); padding: 80px 0 0; } .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; } footer h4 { margin: 0 0 16px; font-size: 16px; color: var(--text); font-weight: 700; letter-spacing: .8px; } footer p, footer a { color: var(--text-muted); font-size: 15px; } footer a:hover { color: var(--brand); } footer nav a { display: block; margin-bottom: 10px; } .legal { text-align: center; padding: 40px 0; color: #555; font-size: 14px; border-top: 1px solid var(--line-soft); margin-top: 40px;} /* ==================== 响应式优化 ==================== */ @media (max-width: 1100px) { .main-layout { grid-template-columns: 1fr; } /* 堆叠布局 */ .sidebar { border-left: none; padding-left: 0; margin-top: 60px; border-top: 1px solid var(--line); padding-top: 60px; } .nav { display: none; } .menu-toggle { display: inline-block; } .hero .orbital-container { right: -10%; width: 400px; height: 400px; opacity: 0.8; } } @media (max-width: 768px) { section { padding: 40px 0; } .hero { padding: 140px 0 100px; text-align: left; justify-content: center; } .hero h1, .hero p { margin-inline: auto; } .hero .cta-row { justify-content: center; } .kpi-wrap { grid-template-columns: repeat(2, 1fr); gap: 24px; } .cap-grid { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; } .hero .orbital-container { opacity: 0.3; transform: translateY(-50%) scale(0.7); right: -15%; } } @media (max-width: 600px) { .kpi-wrap { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; } .footer-grid > div { grid-column: auto; } .hero .orbital-container { display: none; } } /* ==================== 移动端抽屉导航 & 其他 (已重构) ==================== */ .drawer { position: fixed; inset: 0 0 0 auto; width: min(86vw, 320px); background: var(--surface); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .2s ease; z-index: 1300; padding: 24px; display: flex; flex-direction: column; } .drawer.open { transform: translateX(0); } .drawer-item { border-bottom: 1px solid var(--line-soft); } .drawer-item > a { padding: 12px 8px; font-weight: 700; color: var(--text); display: block; position: relative; } .drawer-item a:hover { color: var(--brand); } .drawer-item.has-submenu > a::after { content: ''; position: absolute; right: 8px; top: 50%; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid currentColor; transform: translateY(-50%); transition: transform .2s ease; } .drawer-item.has-submenu.is-open > a::after { transform: translateY(-50%) rotate(180deg); } .drawer-submenu { max-height: 0; overflow: hidden; transition: max-height .3s ease-out; background: rgba(0,0,0,0.15); /* 新增:重置样式以确保布局正确 */ list-style-type: none; padding-left: 0; margin: 0; } .drawer-item.is-open > .drawer-submenu { max-height: 500px; /* 一个足够大的值以容纳所有子菜单项 */ } .drawer-submenu a { display: block; width: 100%; /* 新增:强制链接占据整行 */ padding: 10px 8px 10px 32px; font-size: 15px; font-weight: 600; color: var(--text-muted); border-top: 1px solid var(--line-soft); } .scrim { position: fixed; inset: 0; background: rgba(2, 3, 10, 0.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: .2s; z-index: 1250; } .scrim.show { opacity: 1; pointer-events: auto; } .to-top { position: fixed; right: 20px; bottom: 20px; z-index: 1250; opacity: 0; transform: translateY(10px); transition: .2s ease; pointer-events: none; border-radius: 50%; width: 48px; height: 48px; padding: 0; } .to-top.show { opacity: 1; transform: none; pointer-events: auto; } .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; } .reveal.in { opacity: 1; transform: none; }