/**
 * 现代超前风格元素样式
 * 为网站添加丰富多彩、专业的UI元素
 */

/* 装饰元素 */
.section-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--success-color) 100%);
    bottom: -50px;
    left: -50px;
}

.circle {
    position: absolute;
    border-radius: 50%;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0) 70%);
    top: -200px;
    right: 10%;
    animation: float 15s infinite ease-in-out;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0) 70%);
    bottom: 10%;
    left: 5%;
    animation: float 20s infinite ease-in-out reverse;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--success-rgb), 0.1) 0%, rgba(var(--success-rgb), 0) 70%);
    top: 30%;
    right: -100px;
    animation: float 18s infinite ease-in-out 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* 波浪分隔线 */
.section-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.section-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.section-wave .shape-fill {
    fill: #FFFFFF;
}

.bg-dark .section-wave .shape-fill {
    fill: var(--neutral-800);
}

.bg-light .section-wave .shape-fill {
    fill: var(--neutral-100);
}

/* 标题样式 */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-md);
    color: var(--neutral-900);
}

.bg-dark .section-title {
    color: var(--neutral-100);
}

.section-title-underline {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.section-title-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    z-index: -1;
    border-radius: var(--radius-full);
    opacity: 0.3;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    max-width: 700px;
    margin: 0 auto;
}

.bg-dark .section-description {
    color: var(--neutral-300);
}

/* 英雄区域样式 */
.hero {
    position: relative;
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-200) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero-badge span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 8px;
}

.hero h1 {
    font-size: var(--text-4xl);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: var(--neutral-900);
}

.hero h1 .highlight {
    color: var(--primary-color);
    position: relative;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary-light);
    z-index: -1;
    border-radius: var(--radius-sm);
}

.hero p {
    font-size: var(--text-xl);
    color: var(--neutral-700);
    margin-bottom: var(--spacing-xl);
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
}

.hero-stat {
    position: relative;
}

.hero-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10%;
    right: calc(var(--spacing-xl) / -2);
    height: 80%;
    width: 1px;
    background-color: var(--neutral-300);
}

.hero-stat-number {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

.hero-image {
    position: relative;
}

.hero-image-inner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-normal);
}

.hero-image-inner:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.hero-image-inner img,
.hero-image-inner iframe {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 3;
    animation: float 5s infinite ease-in-out;
}

.floating-card-1 {
    bottom: 20%;
    left: -10%;
    animation-delay: 0s;
}

.floating-card-2 {
    top: 10%;
    right: -5%;
    animation-delay: 2.5s;
}

.floating-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-lg);
}

.floating-card-content {
    flex: 1;
}

.floating-card-content h4 {
    font-size: var(--text-md);
    margin-bottom: 2px;
    color: var(--neutral-900);
}

.floating-card-content p {
    font-size: var(--text-xs);
    color: var(--neutral-600);
    margin: 0;
}

/* 特色卡片样式 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.feature-card {
    background-color: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.feature-title {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-md);
    color: var(--neutral-900);
}

.feature-description {
    font-size: var(--text-md);
    color: var(--neutral-600);
    margin-bottom: var(--spacing-lg);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    transition: color var(--transition-normal);
}

.feature-link::after {
    content: '→';
    margin-left: var(--spacing-xs);
    transition: transform var(--transition-normal);
}

.feature-link:hover {
    color: var(--primary-dark);
}

.feature-link:hover::after {
    transform: translateX(4px);
}

/* 客户评价样式 */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    margin-bottom: var(--spacing-md);
    color: var(--warning-color);
}

.testimonial-content {
    font-size: var(--text-lg);
    color: var(--neutral-800);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    color: rgba(var(--primary-rgb), 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.testimonial-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.testimonial-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    font-size: var(--text-md);
    margin-bottom: 2px;
    color: var(--neutral-900);
}

.testimonial-author-info p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    margin: 0;
}

/* 行动召唤区块样式 */
.cta-section {
    position: relative;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    overflow: hidden;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: var(--text-3xl);
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 背景样式 */
.bg-gradient {
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--primary-light) 100%);
    position: relative;
}

.bg-dark {
    background-color: var(--neutral-900);
    color: white;
}

.bg-light {
    background-color: var(--neutral-100);
}

/* 响应式样式 */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: var(--spacing-xl);
    }
    
    .floating-card-1 {
        bottom: 10%;
        left: 5%;
    }
    
    .floating-card-2 {
        top: 10%;
        right: 5%;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .hero h1 {
        font-size: var(--text-3xl);
    }
    
    .hero p {
        font-size: var(--text-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .floating-card {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero-stat:not(:last-child)::after {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}