/* 增强UI效果的CSS - 与styles.css配合使用 */

/* 性能优化 */
/* 内容加载过渡效果 */
body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

/* 内容区域预留空间，防止布局偏移 */
img, iframe, video {
    aspect-ratio: attr(width) / attr(height);
}

/* 图片加载中的占位样式 */
img.loading {
    background-color: #f0f0f0;
    animation: pulse-bg 1.5s infinite;
}

@keyframes pulse-bg {
    0% { background-color: #f0f0f0; }
    50% { background-color: #e0e0e0; }
    100% { background-color: #f0f0f0; }
}

/* 全局字体样式 - 更粗更圆润 */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, button, input, textarea, select, li {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 900 !important;
}

.btn, .section-title, .feature-card h3, .service-card h3, .product-card h3, .testimonial-content p {
    font-weight: 900 !important;
    letter-spacing: 0.8px !important;
}

/* 全局动画效果 */
@keyframes fadeIn {
    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); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* 页面加载动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏增强 */
header {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08) !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
    will-change: background-color, box-shadow;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

nav ul li a {
    transition: color 0.3s ease, transform 0.3s ease !important;
}

nav ul li a:hover {
    transform: translateY(-2px);
}

/* Logo动画 */
.logo img {
    transition: transform 0.5s ease !important;
}

.logo:hover img {
    transform: rotate(5deg) scale(1.05);
}

/* 按钮增强效果 */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    will-change: transform, box-shadow;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
}

.btn:hover:before {
    left: 0;
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(255, 123, 172, 0.4) !important;
    transform: translateY(-3px) !important;
}

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(165, 216, 255, 0.4) !important;
    transform: translateY(-3px) !important;
}

/* 卡片增强效果 */
.feature-card, .service-card, .product-card, .testimonial {
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover, .service-card:hover, .product-card:hover, .testimonial:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(0, 0, 0, 0);
}

/* 图片悬停效果增强 */
.service-card img, .product-card img {
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.service-card:hover img, .product-card:hover img {
    transform: scale(1.08) !important;
}

/* 英雄区域增强 */
.hero {
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 123, 172, 0.2), rgba(165, 216, 255, 0.2));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

.hero-content h2 {
    background: linear-gradient(90deg, #ff7bac, #ff9ac7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* 预约CTA区域增强 */
.booking-cta {
    position: relative;
    overflow: hidden;
}

.booking-cta:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,100 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    z-index: 0;
}

/* 社交媒体图标增强 */
.social-icons a {
    position: relative;
    overflow: hidden;
}

.social-icons a i, 
.social-icons a img {
    display: block;
    position: relative;
    z-index: 2;
}

.social-icons a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    transform: scale(0);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-icons a:hover:before {
    transform: scale(1);
}

.rednote-icon {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    display: block !important;
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    opacity: 0.8;
}

.scroll-indicator:before {
    content: '';
    width: 6px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 3px;
    margin-top: 8px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(20px); opacity: 0.2; }
    100% { transform: translateY(0); opacity: 1; }
}

/* 图片悬停放大效果 */
.zoom-effect {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.zoom-effect img {
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.zoom-effect:hover img {
    transform: scale(1.1) !important;
}

/* 毛玻璃卡片效果 */
.glass-card {
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* 脉冲动画效果 */
.pulse-animation {
    animation: pulse 2s infinite;
}

/* 浮动动画效果 */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* 响应式设计增强 */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .feature-cards, .service-cards, .product-cards {
        gap: 30px;
    }
    
    .footer-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .feature-card, .service-card, .product-card {
        padding: 30px;
    }
    
    .feature-card i {
        font-size: 3rem;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        background: linear-gradient(90deg, #ff7bac, #ff9ac7);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 35px;
    }
    
    .feature-cards, .service-cards, .product-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .feature-card:hover, .service-card:hover, .product-card:hover, .testimonial:hover {
        transform: translateY(-10px) !important;
    }
    
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .footer-logo img {
        height: 70px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .feature-card, .service-card, .product-card, .testimonial {
        padding: 20px;
    }
    
    .feature-card i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .feature-card h3, .service-card h3, .product-card h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .feature-card p, .service-card p, .product-card p {
        font-size: 1rem;
    }
    
    .service-card img, .product-card img {
        height: 200px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .feature-card, .service-card, .product-card, .testimonial {
        padding: 15px;
    }
    
    .service-card img, .product-card img {
        height: 180px;
    }
    
    .testimonial-author img {
        width: 60px;
        height: 60px;
    }
    
    .footer-logo h3 {
        font-size: 1.6rem;
    }
    
    .footer-links h4, .footer-contact h4, .footer-social h4 {
        font-size: 1.2rem;
    }
}

/* 小红书图标全局样式 */
.xiaohongshu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 20px;
    height: 20px;
    background-color: #fe2c55;
    border-radius: 3px;
    margin-right: 5px;
}

.xiaohongshu-icon:before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 1px;
}

/* 移除小红书文字 */
.xiaohongshu-icon + span,
.xiaohongshu-icon + text {
    display: none;
}

/* 客户评价部分样式 */
.testimonials-section {
    padding: 70px 0;
    background-color: var(--light-background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto 10px;
    border: 5px solid var(--light-background);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rating {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.testimonial-name {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.testimonial-pet {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
} 