Files
Toolbox/public/tools/web_mp_time_assistant/hub.css
T
yangxiangyuan d4bf3627fd feat: 新增运动节拍训练工具套件与子工具页面
新增运动节拍RepClock全套小程序页面、后端API与数据库服务,新增subhub子工具汇总页面,优化全局主页样式与配置,为web静态资源添加版本缓存参数,补充配套调试脚本
2026-09-09 14:43:06 +08:00

307 lines
6.7 KiB
CSS

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
background: radial-gradient(1200px 800px at 10% 0%, #1a1a33 0%, #0f0f1a 60%, #0b0b15 100%);
min-height: 100vh;
color: #e8e8f0;
line-height: 1.6;
}
.app-root {
max-width: 1200px;
margin: 0 auto;
padding: 40px 24px 80px;
}
.app-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 36px;
padding: 24px 32px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(108, 122, 224, 0.15);
border-radius: 24px;
backdrop-filter: blur(12px);
}
.app-header-left .app-title {
font-size: 32px;
font-weight: 600;
letter-spacing: 1px;
background: linear-gradient(135deg, #6c7ae0 0%, #b06be0 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 6px;
}
.app-header-left .app-subtitle {
font-size: 14px;
color: #8a8aa8;
letter-spacing: 0.5px;
}
.app-header-right .status-tag {
padding: 8px 16px;
border-radius: 999px;
font-size: 13px;
background: rgba(108, 122, 224, 0.12);
color: #a8b4ff;
border: 1px solid rgba(108, 122, 224, 0.25);
}
.app-header-right .status-tag.ok {
background: rgba(0, 216, 167, 0.1);
color: #00d8a7;
border-color: rgba(0, 216, 167, 0.3);
}
.app-header-right .status-tag.err {
background: rgba(255, 80, 100, 0.1);
color: #ff8595;
border-color: rgba(255, 80, 100, 0.3);
}
.app-main {
display: flex;
flex-direction: column;
gap: 28px;
}
.hero-card {
position: relative;
display: flex;
align-items: center;
gap: 24px;
padding: 32px 36px;
border-radius: 24px;
background: linear-gradient(135deg, rgba(108, 122, 224, 0.14) 0%, rgba(176, 107, 224, 0.10) 100%);
border: 1px solid rgba(108, 122, 224, 0.28);
backdrop-filter: blur(10px);
overflow: hidden;
}
.hero-card::before {
content: '';
position: absolute;
top: -80px; right: -80px;
width: 280px; height: 280px;
background: radial-gradient(circle, rgba(176, 107, 224, 0.28) 0%, transparent 65%);
filter: blur(40px);
opacity: 0.9;
pointer-events: none;
}
.hero-card::after {
content: '';
position: absolute;
left: 16px; top: 20px; bottom: 20px;
width: 4px;
border-radius: 4px;
background: linear-gradient(180deg, #6c7ae0 0%, #b06be0 100%);
box-shadow: 0 0 18px rgba(108, 122, 224, 0.6);
}
.hero-icon {
width: 78px; height: 78px;
border-radius: 22px;
display: flex; align-items: center; justify-content: center;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.09);
flex-shrink: 0;
position: relative; z-index: 1;
}
.hero-emoji {
font-size: 42px;
line-height: 1;
filter: drop-shadow(0 6px 18px rgba(108, 122, 224, 0.45));
animation: heroBreath 5.2s ease-in-out infinite;
}
@keyframes heroBreath {
0%, 100% { transform: scale(1); opacity: 0.96; }
50% { transform: scale(1.08); opacity: 1; }
}
.hero-body { position: relative; z-index: 1; }
.hero-title {
font-size: 24px;
font-weight: 600;
color: #f0eefc;
letter-spacing: 0.6px;
margin-bottom: 10px;
}
.hero-desc {
font-size: 14px;
color: #a8a6c8;
letter-spacing: 0.3px;
}
.kit-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 24px;
}
.kit-empty {
grid-column: 1 / -1;
text-align: center;
padding: 80px 0;
color: #8a8aa8;
font-size: 15px;
}
.kit-card {
position: relative;
display: flex;
align-items: stretch;
gap: 20px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 22px;
padding: 24px 22px 24px 26px;
cursor: pointer;
transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
border-color 0.3s ease,
background 0.3s ease,
box-shadow 0.35s ease;
backdrop-filter: blur(8px);
overflow: hidden;
}
.kit-card::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(108, 122, 224, 0) 0%, rgba(176, 107, 224, 0) 100%);
transition: opacity 0.4s ease;
opacity: 0;
z-index: 0;
pointer-events: none;
}
.kit-card::after {
content: '';
position: absolute;
left: 12px; top: 20px; bottom: 20px;
width: 3px;
border-radius: 3px;
background: linear-gradient(180deg, #6c7ae0 0%, #b06be0 100%);
box-shadow: 0 0 14px rgba(108, 122, 224, 0.45);
z-index: 0;
pointer-events: none;
}
.kit-card:hover {
transform: translateY(-5px);
border-color: rgba(108, 122, 224, 0.35);
background: rgba(255, 255, 255, 0.06);
box-shadow: 0 20px 40px rgba(108, 122, 224, 0.15);
}
.kit-card:hover::before {
opacity: 1;
background: linear-gradient(135deg, rgba(108, 122, 224, 0.08) 0%, rgba(176, 107, 224, 0.04) 100%);
}
.kit-icon {
width: 56px;
height: 56px;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
background: linear-gradient(135deg, rgba(108, 122, 224, 0.22) 0%, rgba(176, 107, 224, 0.18) 100%);
border: 1px solid rgba(108, 122, 224, 0.3);
flex-shrink: 0;
position: relative;
z-index: 1;
}
.kit-body {
flex: 1 1 auto;
min-width: 0;
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
gap: 6px;
}
.kit-name {
font-size: 18px;
font-weight: 600;
color: #f0f0f8;
}
.kit-desc {
font-size: 13.5px;
color: #9b9bb5;
line-height: 1.7;
}
.kit-meta {
margin-top: 4px;
padding: 6px 10px;
border-radius: 10px;
background: rgba(108, 122, 224, 0.08);
border: 1px solid rgba(108, 122, 224, 0.18);
font-size: 11.5px;
color: #a8b4ff;
font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
letter-spacing: 0.2px;
align-self: flex-start;
}
.chevron {
flex-shrink: 0;
align-self: center;
color: #a8b4ff;
font-size: 26px;
line-height: 1;
opacity: 0.75;
transition: transform 0.3s ease, opacity 0.3s ease;
position: relative; z-index: 1;
padding-left: 4px;
}
.kit-card:hover .chevron {
transform: translateX(6px);
opacity: 1;
}
.footer {
margin-top: 8px;
padding: 18px 4px 0;
text-align: center;
color: #6f6f92;
font-size: 12px;
letter-spacing: 0.5px;
}
@media (max-width: 600px) {
.app-root { padding: 20px 16px 60px; }
.app-header {
padding: 18px 20px;
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.app-header-left .app-title { font-size: 24px; }
.hero-card {
padding: 22px 22px 22px 28px;
gap: 16px;
flex-direction: column;
align-items: flex-start;
}
.hero-icon { width: 64px; height: 64px; border-radius: 18px; }
.hero-emoji { font-size: 34px; }
.hero-title { font-size: 20px; }
.kit-grid { grid-template-columns: 1fr; gap: 16px; }
.kit-card { padding: 20px 18px 20px 24px; }
}