初版
This commit is contained in:
@@ -0,0 +1,368 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
font-family:
|
||||
'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
||||
line-height: 1.5;
|
||||
font-weight: 400;
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
||||
--bg-primary: #030712;
|
||||
--bg-secondary: rgba(7, 15, 30, 0.72);
|
||||
--border-soft: rgba(148, 163, 184, 0.24);
|
||||
--text-primary: #e2e8f0;
|
||||
--text-secondary: #94a3b8;
|
||||
--accent: #38bdf8;
|
||||
--accent-strong: #22d3ee;
|
||||
--shadow-soft: 0 24px 80px rgba(2, 6, 23, 0.52);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
background:
|
||||
radial-gradient(circle at top, rgba(14, 165, 233, 0.18), transparent 32%),
|
||||
linear-gradient(180deg, #020617 0%, #030712 45%, #02030a 100%);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
canvas {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.travel-page {
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
overflow: hidden;
|
||||
background: radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 34%);
|
||||
}
|
||||
|
||||
.scene-layer {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
.scene-layer canvas {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.scene-vignette {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background:
|
||||
radial-gradient(circle at center, transparent 0%, rgba(2, 6, 23, 0.08) 48%, rgba(2, 6, 23, 0.54) 100%),
|
||||
linear-gradient(180deg, rgba(2, 6, 23, 0.16) 0%, rgba(2, 6, 23, 0.48) 100%);
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.start-overlay {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.hero-card {
|
||||
width: min(640px, 100%);
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 32px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(9, 16, 34, 0.8), rgba(8, 15, 29, 0.62)),
|
||||
rgba(7, 15, 30, 0.6);
|
||||
backdrop-filter: blur(22px);
|
||||
box-shadow: var(--shadow-soft);
|
||||
padding: 40px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-kicker {
|
||||
margin: 0 0 12px;
|
||||
color: var(--accent-strong);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.28em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
margin: 0;
|
||||
font-size: clamp(42px, 8vw, 72px);
|
||||
line-height: 0.95;
|
||||
letter-spacing: -0.04em;
|
||||
}
|
||||
|
||||
.hero-description {
|
||||
margin: 18px auto 0;
|
||||
max-width: 34rem;
|
||||
color: var(--text-secondary);
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.start-button {
|
||||
min-width: 220px;
|
||||
margin-top: 28px;
|
||||
border: 1px solid rgba(125, 211, 252, 0.45);
|
||||
border-radius: 999px;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(34, 211, 238, 0.92), rgba(59, 130, 246, 0.88));
|
||||
box-shadow: 0 18px 48px rgba(14, 165, 233, 0.24);
|
||||
color: #e0f2fe;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
padding: 15px 26px;
|
||||
transition:
|
||||
transform 160ms ease,
|
||||
box-shadow 160ms ease,
|
||||
opacity 160ms ease;
|
||||
}
|
||||
|
||||
.start-button:hover:not(:disabled) {
|
||||
box-shadow: 0 22px 52px rgba(14, 165, 233, 0.32);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.start-button:disabled {
|
||||
cursor: progress;
|
||||
opacity: 0.72;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
margin: 14px 0 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
color: #fda4af;
|
||||
}
|
||||
|
||||
.hud-layer {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 3;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.hud-layer--active {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.glass-toolbar {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
width: min(860px, calc(100% - 24px));
|
||||
padding: 18px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.22);
|
||||
border-radius: 28px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.58));
|
||||
backdrop-filter: blur(20px);
|
||||
box-shadow: 0 18px 56px rgba(2, 6, 23, 0.48);
|
||||
pointer-events: auto;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.toolbar-group {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.toolbar-group--stretch {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.toolbar-group--compact {
|
||||
flex: 0 0 190px;
|
||||
}
|
||||
|
||||
.toolbar-label {
|
||||
color: rgba(226, 232, 240, 0.82);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.segment-control {
|
||||
display: inline-flex;
|
||||
padding: 4px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: 999px;
|
||||
background: rgba(2, 6, 23, 0.34);
|
||||
}
|
||||
|
||||
.segment-button {
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
color: rgba(226, 232, 240, 0.78);
|
||||
cursor: pointer;
|
||||
padding: 10px 16px;
|
||||
transition:
|
||||
background 160ms ease,
|
||||
color 160ms ease;
|
||||
}
|
||||
|
||||
.segment-button--active {
|
||||
background: rgba(56, 189, 248, 0.16);
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.toolbar-action {
|
||||
min-height: 46px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.18);
|
||||
border-radius: 16px;
|
||||
background: rgba(2, 6, 23, 0.36);
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
padding: 0 16px;
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
background 160ms ease,
|
||||
color 160ms ease,
|
||||
opacity 160ms ease;
|
||||
}
|
||||
|
||||
.toolbar-action:hover:not(:disabled) {
|
||||
border-color: rgba(125, 211, 252, 0.32);
|
||||
background: rgba(15, 23, 42, 0.56);
|
||||
}
|
||||
|
||||
.toolbar-action--active {
|
||||
border-color: rgba(56, 189, 248, 0.28);
|
||||
background: rgba(56, 189, 248, 0.14);
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.toolbar-action:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.52;
|
||||
}
|
||||
|
||||
.glass-select,
|
||||
.glass-range,
|
||||
.toolbar-action {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.glass-select {
|
||||
border: 1px solid rgba(148, 163, 184, 0.18);
|
||||
border-radius: 16px;
|
||||
background: rgba(2, 6, 23, 0.36);
|
||||
color: var(--text-primary);
|
||||
min-height: 46px;
|
||||
outline: none;
|
||||
padding: 0 14px;
|
||||
}
|
||||
|
||||
.glass-range {
|
||||
accent-color: var(--accent);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.overlay-fade-enter-active,
|
||||
.overlay-fade-leave-active,
|
||||
.controls-fade-enter-active,
|
||||
.controls-fade-leave-active {
|
||||
transition:
|
||||
opacity 320ms ease,
|
||||
transform 320ms ease;
|
||||
}
|
||||
|
||||
.overlay-fade-enter-from,
|
||||
.overlay-fade-leave-to {
|
||||
opacity: 0;
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.controls-fade-enter-from,
|
||||
.controls-fade-leave-to {
|
||||
opacity: 0;
|
||||
transform: translate(-50%, 12px);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.start-overlay {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.hero-card {
|
||||
border-radius: 28px;
|
||||
padding: 32px 20px 24px;
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font-size: clamp(36px, 12vw, 54px);
|
||||
}
|
||||
|
||||
.hero-description {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.glass-toolbar {
|
||||
bottom: 16px;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 14px;
|
||||
width: min(520px, calc(100% - 16px));
|
||||
border-radius: 24px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.segment-control {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.segment-button {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.toolbar-group--stretch {
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.toolbar-group--compact {
|
||||
flex: none;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user