/* 自定义CSS样式 */

/* 全局样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 主色调 */
:root {
    --primary-color: #FF69B4;
    --primary-light: #FFC0CB;
    --primary-dark: #FF1493;
    --secondary-color: #FF91A4;
    --accent-color: #FFB6C1;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #FFF5F8;
}

/* 导航栏样式 */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-shadow: 0 2px 4px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 8px rgba(255, 105, 180, 0.4);
}

.navbar-brand i {
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-item {
    margin: 0 0.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color) !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 25px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    background: linear-gradient(45deg, transparent, transparent);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
    transition: all 0.4s ease;
    z-index: -1;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active::before {
    display: none;
}

/* 特殊按钮样式 - 立即报名 */
.navbar-nav .nav-link[href="signup.html"] {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    animation: pulse-glow 3s infinite;
}

.navbar-nav .nav-link[href="signup.html"]:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.5);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(255, 105, 180, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3); }
}

/* 移动端导航优化 */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 响应式导航 */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin: 0.3rem 0;
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        margin: 0.2rem 0;
    }
}

/* 滚动时导航栏变化 */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(255, 105, 180, 0.1) !important;
}

/* Hero Banner区域 - 完整显示banner图片 */
.hero-banner {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* 去除间距，让banner紧贴导航栏 */
    padding-top: 76px; /* 用padding代替margin，避免缝隙 */
    box-sizing: border-box;
}

.banner-image {
    width: 100%;
    height: 100%;
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
}

/* Hero内容区域 */
.hero-content {
    position: relative;
    background: linear-gradient(135deg, #FFF5F8 0%, #FFFFFF 50%, #FFF0F5 100%);
    min-height: 50vh;
}

/* 装饰元素 - 重新定位到内容区域 */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* 浮动心形 - 粉色主题 */
.floating-heart {
    position: absolute;
    color: rgba(255, 105, 180, 0.6);
    animation: float 6s ease-in-out infinite;
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

.heart-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.heart-2 {
    top: 30%;
    right: 12%;
    animation-delay: 2s;
    font-size: 1.2rem;
}

.heart-3 {
    top: 70%;
    left: 15%;
    animation-delay: 4s;
    font-size: 1.8rem;
}

/* 浮动圆圈 - 粉色透明 */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 182, 193, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 105, 180, 0.2);
    animation: float 8s ease-in-out infinite;
}

.circle-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.circle-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 8%;
    animation-delay: 3s;
}

.circle-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 5s;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Hero内容区域样式 */
.hero-content .container {
    position: relative;
    z-index: 10;
    padding: 4rem 0;
}

.hero-content .col-lg-8 {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.1);
    border: 1px solid rgba(255, 105, 180, 0.1);
}

/* Hero内容文字样式 */
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    animation: titleGlow 4s ease-in-out infinite alternate;
}

.hero-content .lead {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.hero-content .fs-5 {
    font-size: 1.2rem !important;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

/* 标题发光动画 */
@keyframes titleGlow {
    0% {
        color: var(--primary-color);
        text-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
    }
    100% {
        color: var(--primary-dark);
        text-shadow: 0 0 30px rgba(255, 105, 180, 0.5);
    }
}

/* Hero内容按钮样式 */
.hero-content .btn {
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
}

.hero-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.4);
}

.hero-content .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
}

.hero-content .btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
}

.hero-content .btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.hero-content .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .hero-banner {
        height: 80vh;
        margin-top: 0;
        padding-top: 70px;
    }
    
    .hero-content {
        min-height: auto;
    }
    
    .hero-content .container {
        padding: 2rem 0;
    }
    
    .hero-content .col-lg-8 {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .fs-5 {
        font-size: 1.1rem !important;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .hero-content .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        margin: 0.5rem;
    }
    
    .floating-heart, .floating-circle {
        display: none;
    }
    
    .hero-decoration {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 70vh;
        margin-top: 0;
        padding-top: 65px;
    }
    
    .hero-content .col-lg-8 {
        margin: 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .hero-content .fs-5 {
        font-size: 1rem !important;
    }
    
    .hero-content .btn {
        display: block;
        width: 85%;
        margin: 0.5rem auto;
    }
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* 特色卡片样式 */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 105, 180, 0.2) !important;
}

.feature-icon {
    color: var(--primary-color);
}

/* 主持人卡片样式 */
.host-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.host-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.15) !important;
}

.host-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    transition: all 0.3s ease;
}

.host-photo:hover {
    border-color: var(--primary-color);
}

/* 背景色调整 */
.bg-light {
    background-color: var(--bg-light) !important;
}

/* 文字颜色 */
.text-primary {
    color: var(--primary-color) !important;
}

/* 阴影效果 */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        min-height: 80vh;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .host-photo {
        width: 120px;
        height: 120px;
    }
    
    .feature-card,
    .host-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
    
    .host-photo {
        width: 100px;
        height: 100px;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表单样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 图片样式 */
.img-fluid {
    transition: all 0.3s ease;
}

.img-fluid:hover {
    transform: scale(1.05);
}

/* 页面间距调整 */
section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 2.5rem 0;
    }
}

/* CTA区域样式 */
.bg-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
}

/* Footer样式 */
footer {
    background-color: #2c2c2c !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-light) !important;
}