Files
all-personal-resume/个人简历_文旅/youth-travel-style.css

732 lines
15 KiB
CSS

/* 年轻化文旅主题样式 - 完全文旅主题 */
:root {
/* 旅行主题色彩系统 */
--travel-ocean: #00b4d8;
--travel-sunset: #ff6b35;
--travel-forest: #52b788;
--travel-sand: #f4a261;
--travel-sky: #90e0ef;
--travel-mountain: #264653;
--travel-coral: #f07167;
/* 渐变色 */
--sunrise-gradient: linear-gradient(135deg, #ff6b35 0%, #f4a261 50%, #e9c46a 100%);
--ocean-gradient: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #90e0ef 100%);
--forest-gradient: linear-gradient(135deg, #2d6a4f 0%, #52b788 50%, #95d5b2 100%);
--adventure-gradient: linear-gradient(135deg, #264653 0%, #2a9d8f 50%, #e76f51 100%);
/* 基础色 */
--primary: #00b4d8;
--secondary: #ff6b35;
--accent: #52b788;
--dark: #264653;
--light: #ffffff;
--bg-dark: #0a0e27;
--text-light: rgba(255, 255, 255, 0.9);
--text-muted: rgba(255, 255, 255, 0.6);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', 'PingFang SC', -apple-system, sans-serif;
background: var(--bg-dark);
color: var(--text-light);
overflow-x: hidden;
}
/* 修复导航栏 */
.travel-nav {
position: fixed;
top: 0;
left: 0;
right: 0;
padding: 15px 0;
background: rgba(38, 70, 83, 0.95);
backdrop-filter: blur(20px);
z-index: 1000;
transition: all 0.3s ease;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.travel-nav.scrolled {
padding: 10px 0;
background: rgba(38, 70, 83, 0.98);
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.5rem;
font-weight: bold;
background: var(--sunrise-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-decoration: none;
border: none;
outline: none;
}
.nav-menu {
display: flex;
gap: 10px;
list-style: none;
margin: 0;
padding: 0;
}
.nav-link {
color: var(--text-light);
text-decoration: none;
padding: 10px 20px;
border-radius: 25px;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 5px;
font-size: 0.95rem;
}
.nav-link:hover {
background: rgba(255, 107, 53, 0.2);
color: var(--travel-sunset);
transform: translateY(-2px);
}
.nav-link.active {
background: var(--sunrise-gradient);
color: white;
}
/* 汉堡菜单 - 移动端 */
.nav-toggle {
display: none;
flex-direction: column;
gap: 4px;
background: none;
border: none;
cursor: pointer;
padding: 5px;
}
.nav-toggle span {
width: 25px;
height: 3px;
background: var(--text-light);
border-radius: 3px;
transition: all 0.3s ease;
}
/* 旅行地图背景 */
.world-map-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -2;
background:
radial-gradient(circle at 20% 50%, rgba(0, 180, 216, 0.2) 0%, transparent 50%),
radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.2) 0%, transparent 50%),
radial-gradient(circle at 50% 20%, rgba(82, 183, 136, 0.2) 0%, transparent 50%),
var(--bg-dark);
overflow: hidden;
}
/* 飞机航线动画 */
.flight-paths {
position: fixed;
width: 100%;
height: 100%;
z-index: -1;
pointer-events: none;
}
.flight-path {
position: absolute;
width: 2px;
background: linear-gradient(to right, transparent, var(--travel-sky), transparent);
transform-origin: left center;
animation: drawPath 10s infinite ease-in-out;
}
.plane-icon {
position: absolute;
right: -20px;
top: -10px;
width: 20px;
height: 20px;
animation: fly 10s infinite ease-in-out;
}
@keyframes drawPath {
0% { transform: scaleX(0); opacity: 0; }
50% { opacity: 1; }
100% { transform: scaleX(1); opacity: 0; }
}
@keyframes fly {
0% { transform: translateX(-100vw) rotate(45deg); }
100% { transform: translateX(0) rotate(45deg); }
}
/* 英雄区域 - 旅行主题 */
.hero-travel {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
padding: 100px 20px 60px;
}
.hero-content {
max-width: 900px;
text-align: center;
z-index: 10;
}
.passport-stamp {
display: inline-block;
padding: 10px 30px;
border: 3px solid var(--travel-coral);
border-radius: 10px;
transform: rotate(-5deg);
margin-bottom: 20px;
font-weight: bold;
color: var(--travel-coral);
text-transform: uppercase;
letter-spacing: 2px;
animation: stamp 0.5s ease;
}
@keyframes stamp {
0% { transform: rotate(-5deg) scale(1.5); opacity: 0; }
100% { transform: rotate(-5deg) scale(1); opacity: 1; }
}
.hero-title {
font-size: clamp(2.5rem, 8vw, 4.5rem);
font-weight: 900;
margin-bottom: 20px;
background: var(--adventure-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
line-height: 1.2;
}
.hero-subtitle {
font-size: 1.3rem;
color: var(--travel-sky);
margin-bottom: 30px;
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
}
.location-tag {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 8px 20px;
background: rgba(0, 180, 216, 0.1);
border: 1px solid var(--travel-ocean);
border-radius: 20px;
font-size: 0.9rem;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
/* 目的地卡片 */
.destination-card {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 20px;
padding: 30px;
position: relative;
overflow: hidden;
transition: all 0.3s ease;
cursor: pointer;
}
.destination-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: var(--sunrise-gradient);
}
.destination-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}
.destination-header {
display: flex;
justify-content: space-between;
align-items: start;
margin-bottom: 20px;
}
.destination-title {
font-size: 1.8rem;
font-weight: bold;
color: white;
}
.destination-country {
display: inline-block;
padding: 5px 15px;
background: var(--ocean-gradient);
border-radius: 15px;
font-size: 0.8rem;
color: white;
font-weight: 600;
}
.destination-stats {
display: flex;
gap: 30px;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item {
display: flex;
flex-direction: column;
gap: 5px;
}
.stat-value {
font-size: 1.5rem;
font-weight: bold;
color: var(--travel-sunset);
}
.stat-label {
font-size: 0.9rem;
color: var(--text-muted);
}
/* 旅行统计仪表盘 */
.travel-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin: 40px 0;
}
.stat-card {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 15px;
padding: 25px;
text-align: center;
transition: all 0.3s ease;
}
.stat-card:hover {
background: rgba(255, 255, 255, 0.1);
transform: scale(1.05);
}
.stat-icon {
font-size: 2.5rem;
margin-bottom: 15px;
display: block;
}
.stat-number {
font-size: 2rem;
font-weight: bold;
background: var(--sunrise-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.stat-desc {
color: var(--text-muted);
font-size: 0.9rem;
margin-top: 5px;
}
/* 旅行项目展示 */
.travel-project {
position: relative;
border-radius: 20px;
overflow: hidden;
background: linear-gradient(135deg, rgba(38, 70, 83, 0.8), rgba(38, 70, 83, 0.4));
transition: all 0.3s ease;
cursor: pointer;
}
.travel-project:hover {
transform: scale(1.03);
box-shadow: 0 20px 40px rgba(0, 180, 216, 0.3);
}
.travel-project::after {
content: '\f138';
font-family: 'bootstrap-icons';
position: absolute;
bottom: 20px;
right: 20px;
background: rgba(0, 180, 216, 0.9);
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
opacity: 0;
transform: scale(0.8);
transition: all 0.3s ease;
}
.travel-project:hover::after {
opacity: 1;
transform: scale(1);
}
.project-image {
width: 100%;
height: 250px;
object-fit: cover;
transition: transform 0.5s ease;
}
.travel-project:hover .project-image {
transform: scale(1.1);
}
.project-content {
padding: 25px;
}
.project-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 15px;
}
.tag {
padding: 5px 12px;
background: rgba(255, 107, 53, 0.2);
border: 1px solid var(--travel-sunset);
border-radius: 15px;
font-size: 0.8rem;
color: var(--travel-sunset);
}
.project-title {
font-size: 1.5rem;
margin-bottom: 10px;
color: white;
}
.project-description {
color: var(--text-muted);
line-height: 1.6;
margin-bottom: 20px;
}
.project-link {
display: inline-flex;
align-items: center;
gap: 5px;
color: var(--travel-ocean);
text-decoration: none;
font-weight: 600;
transition: gap 0.3s ease;
}
.project-link:hover {
gap: 10px;
}
/* 旅行路线时间轴 */
.journey-map {
position: relative;
padding: 60px 0;
}
.journey-line {
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 3px;
background: var(--ocean-gradient);
transform: translateX(-50%);
}
.journey-stop {
position: relative;
margin: 40px 0;
opacity: 0;
animation: fadeInUp 0.8s ease forwards;
}
.journey-marker {
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 30px;
height: 30px;
background: var(--travel-sunset);
border: 4px solid var(--bg-dark);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
.journey-content {
width: 45%;
padding: 25px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border-radius: 15px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.journey-stop:nth-child(odd) .journey-content {
margin-right: auto;
}
.journey-stop:nth-child(even) .journey-content {
margin-left: auto;
text-align: right;
}
.journey-date {
color: var(--travel-ocean);
font-weight: bold;
margin-bottom: 10px;
}
.journey-title {
font-size: 1.3rem;
margin-bottom: 10px;
}
.journey-description {
color: var(--text-muted);
line-height: 1.6;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 技能护照样式 */
.skill-passport {
background: linear-gradient(135deg, #8b4513, #a0522d);
border-radius: 15px;
padding: 30px;
position: relative;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.passport-header {
text-align: center;
margin-bottom: 30px;
color: #ffd700;
font-size: 1.2rem;
text-transform: uppercase;
letter-spacing: 3px;
}
.visa-stamps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 20px;
}
.visa-stamp {
padding: 15px;
border: 2px solid #ffd700;
border-radius: 10px;
text-align: center;
transform: rotate(-2deg);
transition: all 0.3s ease;
background: rgba(255, 255, 255, 0.1);
}
.visa-stamp:nth-child(even) {
transform: rotate(2deg);
}
.visa-stamp:hover {
transform: rotate(0) scale(1.1);
background: rgba(255, 255, 255, 0.2);
}
/* 响应式设计 */
@media (max-width: 768px) {
.nav-menu {
position: fixed;
top: 60px;
left: -100%;
width: 100%;
height: calc(100vh - 60px);
background: rgba(38, 70, 83, 0.98);
flex-direction: column;
padding: 20px;
transition: left 0.3s ease;
}
.nav-menu.active {
left: 0;
}
.nav-toggle {
display: flex;
}
.nav-toggle.active span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -6px);
}
.journey-line {
left: 30px;
}
.journey-marker {
left: 30px;
}
.journey-content {
width: calc(100% - 80px);
margin-left: 60px !important;
text-align: left !important;
}
.hero-title {
font-size: 2rem;
}
.travel-stats {
grid-template-columns: repeat(2, 1fr);
}
}
/* 加载动画 */
.travel-loader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--bg-dark);
display: flex;
justify-content: center;
align-items: center;
z-index: 10000;
}
.airplane-loader {
width: 60px;
height: 60px;
animation: fly-loader 2s infinite ease-in-out;
}
@keyframes fly-loader {
0%, 100% { transform: translateX(-30px) rotate(-10deg); }
50% { transform: translateX(30px) rotate(10deg); }
}
/* 实用类 */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.section-padding {
padding: 80px 0;
}
.text-gradient {
background: var(--sunrise-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.btn-travel {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 30px;
border-radius: 25px;
font-weight: 600;
text-decoration: none;
transition: all 0.3s ease;
}
.btn-primary {
background: var(--sunrise-gradient);
color: white;
box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}
.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}
.btn-outline {
background: transparent;
color: var(--travel-ocean);
border: 2px solid var(--travel-ocean);
}
.btn-outline:hover {
background: var(--travel-ocean);
color: white;
}