/* Beauty Referral Page Specific Styles */

/* Hero Section - 使用内联样式，与promotion页面保持一致 */
.beauty-hero {
    position: relative;
    overflow: hidden;
}

.beauty-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.beauty-hero .container {
    position: relative;
    z-index: 2;
}

/* 动画效果 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.fade-up {
    transform: translateY(50px);
}

.fade-left {
    transform: translateX(-50px);
}

.fade-right {
    transform: translateX(50px);
}

.fade-up.animate,
.fade-left.animate,
.fade-right.animate {
    transform: translateY(0) translateX(0);
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #B8860B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 按钮样式 */
.btn {
    border: 2px solid white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 200px;
    height: 60px;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: white;
    color: #B8860B;
}

.btn-outline {
    background: transparent;
    color: white;
}

/* 服务介绍区域 */
.service-intro {
    padding: 4rem 0;
    background: #fff;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.intro-solution {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.intro-solution h3 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.intro-solution .solution-text {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.intro-solution .solution-text strong {
    color: #B8860B;
    font-weight: 600;
}

.intro-solution .highlight {
    background: rgba(184, 134, 11, 0.1);
    color: #B8860B;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Service Cards */
.beauty-service-card, .service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beauty-service-card:hover, .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #B8860B;
    margin-bottom: 1rem;
}

/* Problems Section */
.problems-section {
    padding: 4rem 0;
    background: rgba(184, 134, 11, 0.05);
}

.problems-section .section-header h2 {
    color: #B8860B;
}

/* Solution Section */
.solution-section {
    padding: 4rem 0;
    background: #fff;
}

.solution-section .section-header h2 {
    color: #333;
}

.solution-section .section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.solution-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #B8860B, #DAA520);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-number span {
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.solution-step h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.solution-step p {
    color: #666;
    line-height: 1.6;
}

.service-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-card .icon img {
    width: 60px;
    height: 60px;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.beauty-service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #B8860B, #DAA520);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.beauty-feature-icon {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #B8860B, #DAA520);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Problem Cards */
.beauty-problem-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.beauty-problem-card:hover {
    transform: translateY(-2px);
}

.beauty-problem-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #B8860B, #DAA520);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* CTA Section */
.beauty-cta {
    background: linear-gradient(135deg, #B8860B, #DAA520);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.beauty-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.beauty-cta-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.beauty-cta-btn.primary {
    background: white;
    color: #B8860B;
}

.beauty-cta-btn.primary:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
}

.beauty-cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.beauty-cta-btn.secondary:hover {
    background: white;
    color: #B8860B;
}

/* Features Grid */
.beauty-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.beauty-features-grid:nth-child(even) .beauty-feature-content {
    order: 1;
}

.beauty-features-grid:nth-child(even) .beauty-feature-image {
    order: 2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .beauty-features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .beauty-features-grid .beauty-feature-content,
    .beauty-features-grid .beauty-feature-image {
        order: unset !important;
    }
    
    .beauty-feature-icon {
        width: 150px;
        height: 150px;
    }
    
    .beauty-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .beauty-cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .beauty-service-card,
    .beauty-problem-card {
        padding: 1.5rem;
    }
    
    .beauty-service-icon {
        width: 60px;
        height: 60px;
    }
    
    .beauty-problem-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .beauty-hero h1 {
        font-size: 2rem !important;
    }
    
    .beauty-hero p {
        font-size: 1rem !important;
    }
    
    .beauty-feature-icon {
        width: 120px;
        height: 120px;
    }
    
    .beauty-service-card h3,
    .beauty-problem-card h3 {
        font-size: 1.1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service Section in Homepage */
.beauty-service {
    background: rgba(184, 134, 11, 0.05);
}

.beauty-service .service-split-content {
    background: rgba(184, 134, 11, 0.1);
}

.beauty-service .btn-outline-gold {
    border-color: #B8860B;
    color: #B8860B;
}

/* 特色区域样式 */
.features-section {
    padding: 4rem 0;
    background: rgba(184, 134, 11, 0.05);
}

.features-section .section-header h2 {
    color: #B8860B;
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-reverse .feature-icon {
    order: 1;
}

.feature-reverse .feature-content {
    order: 2;
}

.feature-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.feature-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    color: #666;
    line-height: 1.6;
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 0.5rem;
}

.feature-icon {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* CTA区域样式 */
.cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #B8860B, #DAA520);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 50px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(184, 134, 11, 0.9);
    border: 2px solid #B8860B;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 24px;
    line-height: 1;
}

.beauty-service .btn-outline-gold:hover {
    background: #B8860B;
    color: white;
}
