/* ============ 趣练练体育 - 共享样式 ============ */
:root {
    --brand-500: #f97316;
    --brand-600: #ea580c;
    --brand-gradient: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========= 轮播图 ========= */
.swiper-hero {
    width: 100%;
    height: calc(100vh - 80px);
    min-height: 420px;
}
.swiper-hero .swiper-slide {
    text-align: center;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.swiper-hero .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ken Burns 缓慢放大效果 */
    animation: kenburns 8s ease-out infinite alternate;
}
@keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}
@media (max-width: 768px) {
    .swiper-hero {
        height: calc(100vh - 64px);
        min-height: 280px;
    }
}

/* 小轮播（学院页） */
.swiper-small {
    width: 100%;
    height: 420px;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
}
.swiper-small .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 让小轮播的分页器更醒目 */
.swiper-small .swiper-pagination {
    bottom: 16px !important;
}
.swiper-small .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.6);
    opacity: 1;
    width: 10px;
    height: 10px;
    transition: all 0.3s;
}
.swiper-small .swiper-pagination-bullet-active {
    background-color: #fff !important;
    width: 28px;
    border-radius: 5px;
}
@media (max-width: 768px) {
    .swiper-small {
        height: 260px;
    }
}

.swiper-pagination-bullet-active {
    background-color: var(--brand-500) !important;
}

/* ========= 动画 ========= */
@keyframes float {
    0% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(2deg); }
}
.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    opacity: 0;
}
.fade-in-up.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.fade-in-left {
    opacity: 0;
}
.fade-in-left.visible {
    animation: fadeInLeft 0.8s ease-out forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.fade-in-right {
    opacity: 0;
}
.fade-in-right.visible {
    animation: fadeInRight 0.8s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.scale-in {
    opacity: 0;
}
.scale-in.visible {
    animation: scaleIn 0.6s ease-out forwards;
}

/* 动画延迟工具类 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* 脉冲光晕 */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}
.pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* 图片悬浮放大 */
.img-hover-zoom {
    overflow: hidden;
}
.img-hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-hover-zoom:hover img {
    transform: scale(1.08);
}

/* 文本截断 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========= 装饰图形 ========= */
/* 点阵装饰 */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(249, 115, 22, 0.2) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
}
/* 渐变装饰圆 */
.decor-blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

/* 渐变文字 */
.text-gradient {
    background-image: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* 品牌名称 - 端庄大气深藏青 */
.text-brand-elegant {
    background-image: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.02em;
}

/* 分隔线装饰 */
.section-divider {
    width: 48px;
    height: 4px;
    border-radius: 9999px;
    background-image: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
}

/* 统一的标题 hover 下划线 */
.underline-hover {
    position: relative;
}
.underline-hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-image: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
    transition: width 0.3s ease;
}
.underline-hover:hover::after {
    width: 100%;
}

/* ========= 回到顶部 ========= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--brand-gradient);
    color: #fff;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 40;
    box-shadow: 0 10px 25px -10px rgba(249, 115, 22, 0.5);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(249, 115, 22, 0.7);
}

/* 顶部滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--brand-gradient);
    z-index: 60;
    width: 0;
    transition: width 0.1s ease;
}

/* ========= 卡片 3D tilt ========= */
.card-tilt {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}
.card-tilt:hover {
    transform: translateY(-8px);
}

/* ========= 自定义滚动条 ========= */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f97316, #ef4444);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ea580c, #dc2626);
}
