/* 动画效果样式 - 完整版 */

/* 淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

/* 修复标题被导航栏遮挡问题 */
.hero-slider {
    margin-top: 70px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mySwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
    padding: 0 1rem;
    word-wrap: break-word;
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.slide-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.slide-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.slide-stats .stat-item {
    text-align: center;
}

.slide-stats .stat-num {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.slide-stats .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.slide-awards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.award-tag {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
}

/* 按钮样式 */
.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* 特色卡片 */
.features {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 统计区域 */
.stats-section {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 图表容器 */
.chart-container {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.chart-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* 配对区域 */
.pairing-section {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: white;
}

.pairing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pairing-card {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

/* 视频区域 */
.video-section {
    background: #f8f9fa;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-placeholder {
    background: white;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px dashed #ddd;
}

.video-icon {
    font-size: 4rem;
    color: #1a237e;
    margin-bottom: 1rem;
}

/* 表格响应式 */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 血统树可视化 */
.pedigree-tree-container {
    width: 100%;
    min-height: 500px;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tree-node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.tree-node:hover {
    transform: scale(1.1);
}

.tree-link {
    stroke: #1a237e;
    stroke-width: 2;
    fill: none;
}

/* 搜索筛选 */
.search-filter {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-group label {
    font-weight: 500;
    color: #333;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* 移动端菜单 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a237e;
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 0.8rem 1rem;
    }
    
    .slide-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
    }
    
    .slide-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .slide-stats .stat-num {
        font-size: 2rem;
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .swiper-slide {
        padding-top: 60px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   金翔鸽舍网站优化 - 新增样式
   ============================================ */

/* 数字滚动动画 - 增强版 */
.stat-num {
    display: inline-block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(79, 195, 247, 0.3);
    transition: all 0.3s ease;
}

.stat-num.counting {
    animation: numberGlow 0.5s ease;
}

@keyframes numberGlow {
    0% {
        text-shadow: 0 0 5px rgba(79, 195, 247, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(79, 195, 247, 0.8), 0 0 60px rgba(79, 195, 247, 0.4);
        transform: scale(1.1);
    }
    100% {
        text-shadow: 0 2px 10px rgba(79, 195, 247, 0.3);
    }
}

/* 精选铭鸽卡片悬停效果 - 视频和血统书展示 */
.pigeon-card-enhanced {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pigeon-card-enhanced:hover {
    transform: translateY(-10px);
    border-color: rgba(79, 195, 247, 0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.pigeon-card-enhanced .pigeon-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.pigeon-card-enhanced .pigeon-image-wrapper img,
.pigeon-card-enhanced .pigeon-image-wrapper .placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pigeon-card-enhanced:hover .pigeon-image-wrapper img,
.pigeon-card-enhanced:hover .pigeon-image-wrapper .placeholder {
    transform: scale(1.1);
}

/* 悬停覆盖层 - 视频和血统书 */
.pigeon-card-enhanced .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.pigeon-card-enhanced:hover .hover-overlay {
    opacity: 1;
}

.hover-overlay .video-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(79, 195, 247, 0.2);
    border: 2px solid #4fc3f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hover-overlay .video-preview:hover {
    background: rgba(79, 195, 247, 0.4);
    transform: scale(1.1);
}

.hover-overlay .pedigree-thumb {
    width: 100px;
    height: 70px;
    background: linear-gradient(135deg, rgba(26,35,126,0.5), rgba(13,71,161,0.3));
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hover-overlay .pedigree-thumb:hover {
    border-color: #4fc3f7;
    transform: scale(1.05);
}

.hover-overlay .action-btns {
    display: flex;
    gap: 10px;
}

.hover-overlay .action-btn {
    padding: 8px 16px;
    background: rgba(79, 195, 247, 0.2);
    border: 1px solid rgba(79, 195, 247, 0.4);
    border-radius: 20px;
    color: #4fc3f7;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hover-overlay .action-btn:hover {
    background: #4fc3f7;
    color: #0a0a0a;
}

/* 凡龙系血统树样式 */
.fanlong-pedigree {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
}

.fanlong-pedigree h3 {
    color: #4fc3f7;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.pedigree-tree-viz {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tree-generation {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pedigree-node {
    background: rgba(26, 35, 126, 0.4);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pedigree-node:hover {
    background: rgba(79, 195, 247, 0.2);
    transform: scale(1.05);
    border-color: #4fc3f7;
}

.pedigree-node .gen-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.pedigree-node .name {
    color: #fff;
    font-weight: 500;
    margin-bottom: 3px;
}

.pedigree-node .breed {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.pedigree-node .detail-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 8px;
    padding: 15px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    margin-bottom: 10px;
}

.pedigree-node:hover .detail-popup {
    opacity: 1;
    visibility: visible;
}

.pedigree-connector {
    text-align: center;
    color: rgba(79, 195, 247, 0.4);
    font-size: 1.5rem;
}
