/* 自定义CSS样式 */

/* 基础样式覆盖 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 横幅区域样式 */
.banner-container {
    position: relative;
    background-position: center;
    background-size: cover;
}

/* 动画效果 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .banner-container {
        height: 60vh;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 导航栏固定 */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 卡片悬停效果 */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 渐变按钮 */
.gradient-button {
    background: linear-gradient(to right, #ff758c, #ff7eb3);
    transition: all 0.3s ease;
}

.gradient-button:hover {
    background: linear-gradient(to right, #ff7eb3, #ff758c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 117, 140, 0.3);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ff758c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff7eb3;
}

/* 图片悬停效果 */
.image-zoom {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.image-zoom:hover img {
    transform: scale(1.05);
}

/* 响应式表格 */
.responsive-table {
    width: 100%;
    overflow-x: auto;
}

/* 特色内容标记 */
.feature-tag {
    position: relative;
}

.feature-tag::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 10px;
    height: 10px;
    background-color: #ff758c;
    border-radius: 50%;
}

/* 自定义文本选择颜色 */
::selection {
    background: rgba(255, 117, 140, 0.3);
    color: #333;
}

/* 页面过渡动画 */
.page-transition {
    transition: opacity 0.3s ease;
}

.page-transition.fade-out {
    opacity: 0;
}

.page-transition.fade-in {
    opacity: 1;
}

/* 图像自适应优化 */
.responsive-img {
    max-width: 100%;
    height: auto;
}

/* 婚恋主题色调 */
.theme-primary {
    color: #ff758c;
}

.theme-secondary {
    color: #ff7eb3;
}

.theme-background {
    background-color: #fff5f7;
}

/* 文章卡片样式 */
.article-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* 特色内容标题 */
.feature-heading {
    position: relative;
    display: inline-block;
}

.feature-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40%;
    height: 2px;
    background-color: #ff758c;
}

/* 自适应视频容器 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 移动端导航菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.5);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu > div {
    width: 80%;
    height: 100%;
    max-width: 300px;
}

/* 公益交友平台模块的样式 */
.tab-active {
    position: relative;
    background-color: #fceff3;
    color: #ec4899;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background-color: #ec4899;
    border-radius: 0 2px 2px 0;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-heart {
    width: 40px;
    height: 40px;
    background-color: #ff758c;
    transform: rotate(45deg);
    animation: heartbeat 1.2s infinite;
}

.loader-heart::before,
.loader-heart::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #ff758c;
    border-radius: 50%;
}

.loader-heart::before {
    top: -20px;
    left: 0;
}

.loader-heart::after {
    top: 0;
    left: -20px;
}

@keyframes heartbeat {
    0% {
        transform: rotate(45deg) scale(0.8);
    }
    5% {
        transform: rotate(45deg) scale(0.9);
    }
    10% {
        transform: rotate(45deg) scale(0.8);
    }
    15% {
        transform: rotate(45deg) scale(1);
    }
    50% {
        transform: rotate(45deg) scale(0.8);
    }
    100% {
        transform: rotate(45deg) scale(0.8);
    }
}

/* 水平导航条样式 */
.horizontal-nav {
    display: flex;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.horizontal-nav a {
    padding: 0.75rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.horizontal-nav a:last-child {
    border-right: none;
}

.horizontal-nav a.active {
    background-color: #ec4899;
    color: white;
    font-weight: 500;
}

.horizontal-nav a:not(.active):hover {
    background-color: #f9fafb;
    color: #ec4899;
}

@media (max-width: 640px) {
    .horizontal-nav {
        flex-wrap: wrap;
    }
    
    .horizontal-nav a {
        flex: 1 0 auto;
        min-width: 33.333%;
    }
}

/* 定制边框样式 */
.border-l-3 {
    border-left-width: 3px;
}

/* 段落行距 */
.prose p {
    line-height: 1.8;
}

/* 团队成员卡片悬停效果 */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 时间轴样式 */
.timeline-container {
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #f3f4f6;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 50%;
    width: 16px;
    height: 16px;
    background-color: #ec4899;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 50%;
        margin-left: 2rem;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50%;
        margin-right: 2rem;
    }
}

/* 自定义动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
} 