
/* sports_product_website/frontend/css/style.css */
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 粒子背景样式 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(50px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0;
        transform: translateX(-50px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

/* 导航栏样式 */
nav {
    transition: background-color 0.3s, padding 0.3s;
}

nav.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(17, 24, 39, 0.95);
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
}

.carousel-button {
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s;
}

.carousel-container:hover .carousel-button {
    opacity: 1;
}

.carousel-indicators button {
    transition: background-color 0.3s;
}

.carousel-indicators button.active {
    background-color: white;
}

/* 服务卡片样式 */
.service-card {
    overflow: hidden;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    transition: transform 0.5s, opacity 0.5s;
}

.service-card:hover img {
    transform: scale(1.1);
    opacity: 0.5;
}

/* 作品集筛选按钮 */
.category-filter {
    transition: all 0.3s;
}

.category-filter:hover {
    transform: translateY(-2px);
}

/* 作品集项目 */
.portfolio-item {
    transition: all 0.3s;
}

.portfolio-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 联系表单 */
.contact-form input,
.contact-form textarea,
.contact-form select {
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-container {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    h2.text-3xl {
        font-size: 1.5rem;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1F2937;
}

::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* 虚拟影业主题色 */
.bg-film-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #7e22ce 100%);
}

.text-film-primary {
    color: #8b5cf6;
}

.border-film-primary {
    border-color: #8b5cf6;
}

/* 团队卡片 */
.team-card {
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 服务流程步骤 */
.service-step {
    position: relative;
}

.service-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238b5cf6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .service-step:not(:last-child):after {
        top: auto;
        bottom: -2rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%) rotate(90deg);
    }
}
