471 lines
11 KiB
CSS
471 lines
11 KiB
CSS
/* 全局样式 */
|
|
:root {
|
|
--primary-color: #4a90e2;
|
|
--secondary-color: #7b68ee;
|
|
--success-color: #28a745;
|
|
--warning-color: #ffc107;
|
|
--danger-color: #dc3545;
|
|
--info-color: #17a2b8;
|
|
--light-color: #f8f9fa;
|
|
--dark-color: #343a40;
|
|
--pink-color: #e91e63;
|
|
|
|
/* === Kid-Friendly Colors === */
|
|
--kid-primary: #FFC107; /* Amber */
|
|
--kid-secondary: #00BCD4; /* Cyan */
|
|
--kid-accent: #FF5722; /* Deep Orange */
|
|
--kid-bg: #F0F8FF; /* AliceBlue */
|
|
--kid-text: #5D4037; /* Brown */
|
|
}
|
|
|
|
body {
|
|
font-family: 'Helvetica Neue', 'Arial', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
|
background-color: #ffffff;
|
|
color: #444;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
main {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
/* 导航栏 */
|
|
.navbar-brand {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
}
|
|
.navbar-brand i {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
/* === Kid-Friendly Auth Styles === */
|
|
.auth-page-container {
|
|
background-color: var(--kid-bg);
|
|
background-image:
|
|
radial-gradient(circle at 20% 20%, rgba(0, 188, 212, 0.1) 8%, transparent 0),
|
|
radial-gradient(circle at 80% 70%, rgba(255, 193, 7, 0.1) 8%, transparent 0);
|
|
background-size: 250px 250px;
|
|
}
|
|
.kid-auth-card {
|
|
border: none;
|
|
border-radius: 20px;
|
|
overflow: hidden;
|
|
background-color: #ffffff;
|
|
}
|
|
.kid-auth-header {
|
|
background: linear-gradient(135deg, var(--kid-primary), #FFD54F);
|
|
color: white;
|
|
padding: 2rem 1.5rem;
|
|
text-align: center;
|
|
border-bottom: 5px solid #ffb300;
|
|
position: relative;
|
|
clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
|
|
margin-bottom: -2rem;
|
|
}
|
|
.kid-auth-header .icon {
|
|
font-size: 3.5rem;
|
|
margin-bottom: 0.5rem;
|
|
transform: rotate(-10deg) scale(1.1);
|
|
display: inline-block;
|
|
color: white;
|
|
text-shadow: 2px 2px 5px rgba(0,0,0,0.25);
|
|
}
|
|
.kid-auth-header h2 {
|
|
font-weight: 900;
|
|
font-size: 2rem;
|
|
margin: 0;
|
|
letter-spacing: 1px;
|
|
}
|
|
.kid-auth-card .card-body {
|
|
padding-top: 3rem !important;
|
|
}
|
|
.kid-auth-card .form-label {
|
|
font-weight: 600;
|
|
color: var(--kid-text);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
.kid-auth-card .form-control, .kid-auth-card .form-select {
|
|
border-radius: 30px;
|
|
padding-left: 20px;
|
|
padding-top: .6rem;
|
|
padding-bottom: .6rem;
|
|
border: 2px solid #e0e0e0;
|
|
transition: all 0.3s ease;
|
|
}
|
|
.kid-auth-card .form-control:focus, .kid-auth-card .form-select:focus {
|
|
border-color: var(--kid-secondary);
|
|
box-shadow: 0 0 0 0.2rem rgba(0,188,212, 0.2);
|
|
}
|
|
.kid-auth-card .input-group-text {
|
|
border-radius: 30px 0 0 30px;
|
|
background-color: #f5f5f5;
|
|
border: 2px solid #e0e0e0; border-right: none;
|
|
color: var(--kid-secondary);
|
|
}
|
|
.kid-auth-card .input-group .form-control { border-radius: 0 30px 30px 0; }
|
|
.kid-auth-card .input-group .btn {
|
|
border-radius: 0 30px 30px 0 !important;
|
|
border-color: #e0e0e0;
|
|
box-shadow: none;
|
|
}
|
|
.kid-auth-card .btn-primary, .btn-kid-accent {
|
|
background: linear-gradient(45deg, var(--kid-accent), #FF8A65);
|
|
border: none;
|
|
border-radius: 30px;
|
|
font-weight: 700;
|
|
padding: 12px 24px;
|
|
font-size: 1.1rem;
|
|
box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
color: white !important;
|
|
}
|
|
.kid-auth-card .btn-primary:hover, .btn-kid-accent:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 15px rgba(255, 87, 34, 0.45);
|
|
}
|
|
.kid-auth-card a {
|
|
color: var(--kid-secondary);
|
|
text-decoration: none !important;
|
|
transition: color .2s;
|
|
}
|
|
.kid-auth-card a:hover { color: var(--kid-accent); }
|
|
|
|
/* === 修复后的轮播图样式 === */
|
|
.hero-carousel-fixed {
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hero-carousel-fixed .carousel-item {
|
|
height: 70vh;
|
|
min-height: 500px;
|
|
position: relative;
|
|
}
|
|
|
|
.hero-carousel-fixed .carousel-item img {
|
|
object-fit: cover;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.carousel-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
z-index: 1;
|
|
}
|
|
|
|
/* 漂浮装饰元素 */
|
|
.floating-decorations {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 2;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.float-emoji {
|
|
position: absolute;
|
|
font-size: 2.5rem;
|
|
animation: floatAnimation 4s ease-in-out infinite;
|
|
}
|
|
|
|
.float-emoji:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
|
|
.float-emoji:nth-child(2) { top: 25%; right: 15%; animation-delay: 1s; }
|
|
.float-emoji:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 2s; }
|
|
.float-emoji:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 3s; }
|
|
|
|
@keyframes floatAnimation {
|
|
0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
|
|
50% { transform: translateY(-20px) rotate(5deg); opacity: 1; }
|
|
}
|
|
|
|
/* 轮播内容样式 */
|
|
.hero-carousel-fixed .carousel-caption {
|
|
position: absolute;
|
|
bottom: 20%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
z-index: 10;
|
|
color: white;
|
|
text-align: center;
|
|
max-width: 800px;
|
|
width: 90%;
|
|
}
|
|
|
|
.hero-badge {
|
|
display: inline-block;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
backdrop-filter: blur(10px);
|
|
padding: 8px 20px;
|
|
border-radius: 25px;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1.5rem;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: 3.5rem;
|
|
font-weight: 900;
|
|
line-height: 1.1;
|
|
margin-bottom: 1.5rem;
|
|
text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
.hero-title .highlight {
|
|
background: linear-gradient(45deg, #FFD700, #FFA500);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
position: relative;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 1.25rem;
|
|
line-height: 1.6;
|
|
margin-bottom: 2.5rem;
|
|
opacity: 0.95;
|
|
text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
.btn-hero {
|
|
background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
|
|
border: none;
|
|
padding: 15px 35px;
|
|
border-radius: 50px;
|
|
color: white;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
box-shadow: 0 8px 25px rgba(0,0,0,0.3);
|
|
transition: all 0.3s ease;
|
|
text-decoration: none !important;
|
|
}
|
|
|
|
.btn-hero:hover {
|
|
transform: translateY(-3px) scale(1.05);
|
|
box-shadow: 0 12px 35px rgba(0,0,0,0.4);
|
|
color: white;
|
|
}
|
|
|
|
/* 轮播指示器和控制器 */
|
|
.hero-carousel-fixed .carousel-indicators {
|
|
bottom: 30px;
|
|
z-index: 15;
|
|
}
|
|
|
|
.hero-carousel-fixed .carousel-indicators button {
|
|
width: 15px !important;
|
|
height: 15px !important;
|
|
border-radius: 50% !important;
|
|
margin: 0 10px !important;
|
|
background: rgba(255, 255, 255, 0.5) !important;
|
|
border: 2px solid white !important;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.hero-carousel-fixed .carousel-indicators .active {
|
|
background: white !important;
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.hero-carousel-fixed .carousel-control-prev,
|
|
.hero-carousel-fixed .carousel-control-next {
|
|
z-index: 15;
|
|
width: 60px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.hero-carousel-fixed .carousel-control-prev:hover,
|
|
.hero-carousel-fixed .carousel-control-next:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* 波浪分隔符 */
|
|
.wavy-divider {
|
|
height: 100px;
|
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3e%3cpath fill='%23ffffff' fill-opacity='1' d='M0,192L80,176C160,160,320,128,480,133.3C640,139,800,181,960,186.7C1120,192,1280,160,1360,144L1440,128L1440,0L1360,0C1280,0,1120,0,960,0C800,0,640,0,480,0C320,0,160,0,80,0L0,0Z'%3e%3c/path%3e%3c/svg%3e");
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
margin-top: -100px;
|
|
position: relative;
|
|
z-index: 10;
|
|
}
|
|
|
|
/* 页面区块通用样式 */
|
|
.page-section {
|
|
padding: 80px 0;
|
|
}
|
|
.bg-light-kid {
|
|
background-color: #fefcfa;
|
|
}
|
|
.section-title {
|
|
text-align: center;
|
|
margin-bottom: 50px;
|
|
}
|
|
.section-title h2 {
|
|
font-size: 2.5rem;
|
|
font-weight: 800;
|
|
color: var(--kid-text);
|
|
position: relative;
|
|
display: inline-block;
|
|
padding-bottom: 10px;
|
|
}
|
|
.section-title h2::after {
|
|
content: '';
|
|
display: block;
|
|
width: 60px;
|
|
height: 5px;
|
|
background: linear-gradient(to right, var(--kid-primary), var(--kid-accent));
|
|
border-radius: 5px;
|
|
margin: 10px auto 0;
|
|
}
|
|
.section-title p {
|
|
color: #777;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* 新特色卡片 */
|
|
.kid-feature-card {
|
|
background: #fff;
|
|
border-radius: 15px;
|
|
padding: 30px;
|
|
text-align: center;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
|
|
transition: all 0.3s ease;
|
|
height: 100%;
|
|
}
|
|
.kid-feature-card:hover {
|
|
transform: translateY(-8px);
|
|
box-shadow: 0 15px 40px rgba(0,0,0,0.1);
|
|
}
|
|
.kid-feature-card .icon-bubble {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 50%;
|
|
margin: 0 auto 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.kid-feature-card .icon-bubble i {
|
|
font-size: 2.5rem;
|
|
}
|
|
.kid-feature-card h5 {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: var(--kid-text);
|
|
margin-bottom: 10px;
|
|
}
|
|
.kid-feature-card p {
|
|
font-size: 0.9rem;
|
|
color: #666;
|
|
}
|
|
|
|
/* 新场景卡片 */
|
|
.scenario-card-new {
|
|
background-color: #fff;
|
|
border-radius: 20px;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
box-shadow: 0 8px 25px rgba(0,0,0,0.07);
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
.scenario-card-new:hover {
|
|
transform: scale(1.05);
|
|
box-shadow: 0 12px 35px rgba(0,0,0,0.12);
|
|
}
|
|
.scenario-card-new .scenario-icon {
|
|
width: 70px;
|
|
height: 70px;
|
|
border-radius: 50%;
|
|
margin: 0 auto 1.5rem;
|
|
background-color: #e3f2fd;
|
|
color: #2196F3;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 2rem;
|
|
}
|
|
.scenario-card-new h5 {
|
|
font-weight: 700;
|
|
margin-bottom: 1rem;
|
|
}
|
|
.scenario-card-new p {
|
|
color: #777;
|
|
font-size: 0.95rem;
|
|
min-height: 60px;
|
|
}
|
|
.scenario-card-new .tags {
|
|
margin-top: 1rem;
|
|
}
|
|
.scenario-card-new .tag {
|
|
background-color: #eee;
|
|
color: #555;
|
|
padding: 5px 12px;
|
|
border-radius: 20px;
|
|
font-size: 0.8rem;
|
|
margin: 0 5px;
|
|
display: inline-block;
|
|
}
|
|
|
|
/* 新CTA区块 */
|
|
.cta-section-kid {
|
|
background: linear-gradient(135deg, var(--kid-secondary), var(--kid-primary));
|
|
color: white;
|
|
padding: 100px 0;
|
|
}
|
|
.cta-section-kid h2 {
|
|
font-size: 2.8rem;
|
|
font-weight: 800;
|
|
text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
|
|
}
|
|
.cta-section-kid p {
|
|
font-size: 1.2rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.hero-carousel-fixed .carousel-item {
|
|
height: 60vh;
|
|
min-height: 400px;
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.float-emoji {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.btn-hero {
|
|
padding: 12px 25px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.hero-carousel-fixed .carousel-caption {
|
|
bottom: 15%;
|
|
width: 95%;
|
|
}
|
|
}
|
|
|
|
.text-pink {
|
|
color: var(--pink-color) !important;
|
|
}
|