/* Custom Styles */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #c4a484;
    --text-color: #333333;
    --light-gray: #f5f5f5;
}

/* Typography */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-roboto {
    font-family: 'Roboto', sans-serif;
}

/* Navigation */
.nav-link {
    @apply text-gray-700 hover:text-secondary-color transition-colors duration-300;
}

/* Buttons */
.btn-primary {
    @apply inline-block px-8 py-3 bg-secondary-color text-white rounded-full 
           hover:bg-opacity-90 transition-all duration-300 
           transform hover:scale-105;
}

/* Hero Section */
.hero {
    @apply relative overflow-hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

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

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.prev-slide,
.next-slide {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s;
}

.prev-slide:hover,
.next-slide:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background: white;
}

/* Product Cards */
.product-category {
    @apply bg-white rounded-lg shadow-lg overflow-hidden 
           transform hover:scale-105 transition-transform duration-300;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu {
        @apply fixed inset-0 bg-white z-50 transform translate-x-full 
               transition-transform duration-300;
    }
    
    .mobile-menu.active {
        @apply translate-x-0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    @apply bg-gray-100;
}

::-webkit-scrollbar-thumb {
    @apply bg-secondary-color rounded-full;
}

/* Section Transitions */
.section-transition {
    @apply opacity-0 transform translate-y-10 transition-all duration-700;
}

.section-transition.visible {
    @apply opacity-100 translate-y-0;
}

/* Image Hover Effects */
.hover-zoom {
    @apply overflow-hidden;
}

.hover-zoom img {
    @apply transition-transform duration-500;
}

.hover-zoom:hover img {
    @apply scale-110;
}

/* Card Hover Effects */
.card-hover {
    @apply transition-all duration-300;
}

.card-hover:hover {
    @apply shadow-xl -translate-y-2;
}

/* Loading Animation */
.loading-spinner {
    @apply w-8 h-8 border-4 border-secondary-color border-t-transparent 
           rounded-full animate-spin;
}

/* Home Page Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 200px 0;
    margin-bottom: 80px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Featured Cases */
.featured-cases {
    padding: 80px 0;
    background: var(--color-background);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.case-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.case-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 30px;
}

.case-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.case-details {
    margin-bottom: 24px;
}

.case-details p {
    margin-bottom: 8px;
    color: var(--color-text-light);
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.feature-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.featured-products .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.featured-products .product-grid {
    display: flex;
    flex-direction: column;
    gap: 70px;
    margin-top: 40px;
}

.featured-products .product-item {
    display: flex;
    align-items: center;
    gap: 80px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: all 0.5s ease;
    padding: 0;
}

.featured-products .product-item:nth-child(even) {
    flex-direction: row-reverse;
}

.featured-products .product-image {
    flex: 0 0 55%;
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.featured-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.featured-products .product-info {
    flex: 0 0 40%;
    padding: 0;
}

.featured-products .product-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
}

.featured-products .product-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 24px;
}

.featured-products .product-item:hover {
    transform: none;
}

.featured-products .product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
}

.product-content h3 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
    margin: 0;
}

.product-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color-light);
    margin: 0;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.product-features span {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-features span:hover {
    background: rgba(var(--primary-rgb), 0.12);
}

.product-item .btn {
    align-self: flex-start;
    margin-top: 2rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.product-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Loading and Error States */
.loading-products,
.error-products {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-color);
}

.loading-products .loading-spinner {
    margin-bottom: 1rem;
}

.error-products {
    color: var(--error-color);
}

/* Testimonial Slider Styles */
.testimonial-slider {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 6rem;
    overflow: hidden;
    background-color: var(--bg-color);
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.testimonial-content p {
    font-size: 2rem;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 300;
    font-family: 'Playfair Display', serif;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 1rem;
    color: var(--text-color-light);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    opacity: 1;
}

.slider-nav.prev {
    left: 2rem;
}

.slider-nav.next {
    right: 2rem;
}

/* Slider Indicators */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-color);
    border: none;
    cursor: pointer;
    opacity: 0.2;
    transition: all 0.3s ease;
}

.indicator.active {
    opacity: 1;
    background-color: var(--text-color);
}

/* Loading and Error States */
.loading-testimonials,
.error-testimonials {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-testimonials .loading-spinner {
    margin-bottom: 1rem;
}

.error-testimonials {
    color: var(--error-color);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .testimonial-slider {
        padding: 3rem 5rem;
    }

    .testimonial-content p {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .testimonial-slider {
        padding: 60px 0;
    }

    .testimonial-content p {
        font-size: 1.6rem;
    }

    .featured-products {
        padding: 60px 0;
    }

    .featured-products .product-grid {
        gap: 40px;
    }

    .featured-products .product-item,
    .featured-products .product-item:nth-child(even) {
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .featured-products .product-image {
        flex: none;
        width: 100%;
        height: 210px;
        border-radius: 12px 12px 0 0;
        box-shadow: none;
    }

    .featured-products .product-info {
        flex: none;
        width: 100%;
        padding: 24px;
    }

    .featured-products .product-name {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .featured-products .product-description {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .testimonial-slider {
        padding: 2rem 3rem;
    }
    
    .testimonial-content {
        padding: 1rem;
    }
    
    .testimonial-content p {
        font-size: 1.4rem;
        line-height: 1.5;
    }
    
    .slider-nav {
        width: 32px;
        height: 32px;
    }

    .slider-nav.prev {
        left: 1rem;
    }

    .slider-nav.next {
        right: 1rem;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .author-info p {
        font-size: 0.9rem;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
}

/* Loading and Error States */
.loading-overlay,
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content,
.error-content {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--secondary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.error-content i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 8px;
    color: var(--text-color);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Logo and Company Info */
.logo-container {
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.company-logo {
    height: 40px;
    width: auto;
    margin-right: 1rem;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Social Links and Contact Info */
.social-links {
    padding: 1rem 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item i {
    width: auto;
    color: var(--secondary-color);
    font-size: 1rem;
    text-align: center;
}

.contact-item a,
.contact-item span {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.contact-item a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-info {
        gap: 0.8rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    .logo-container {
        justify-content: center;
    }

    .company-logo {
        height: 32px;
    }

    .company-name {
        font-size: 1.2rem;
    }
}

/* 服务预约表单样式 */
.service-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.service-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-form label {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

.service-form input,
.service-form select,
.service-form textarea {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.service-form textarea {
    resize: vertical;
    min-height: 100px;
}

.service-form button[type="submit"] {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.service-form.loading button[type="submit"] {
    color: transparent;
}

.button-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .service-form {
        gap: 1.2rem;
    }

    .service-form input,
    .service-form select,
    .service-form textarea {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }

    .service-form button[type="submit"] {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .product-grid {
        gap: 4rem;
        padding: 3rem 2rem;
    }

    .product-item {
        gap: 3rem;
    }

    .product-image {
        height: 400px;
    }

    .product-content h3 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .featured-products .product-item,
    .featured-products .product-item:nth-child(even) {
        flex-direction: column;
        gap: 0;
    }

    .featured-products .product-image {
        flex: none;
        width: 100%;
        height: 210px;
    }

    .featured-products .product-info {
        flex: none;
        width: 100%;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        gap: 2.5rem;
        padding: 2rem 1rem;
    }

    .product-image {
        height: 175px;
    }

    .product-content h3 {
        font-size: 1.8rem;
    }

    .product-content p {
        font-size: 1rem;
    }

    .product-features span {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .featured-products {
        padding: 40px 0;
    }

    .featured-products .product-grid {
        gap: 20px;
    }

    .featured-products .product-image {
        height: 140px;
    }

    .featured-products .product-info {
        padding: 20px;
    }

    .featured-products .product-name {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .featured-products .product-description {
        font-size: 14px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .featured-products {
        padding: 30px 0;
    }

    .featured-products .product-grid {
        gap: 16px;
    }

    .featured-products .product-image {
        height: 140px;
    }

    .featured-products .product-info {
        padding: 16px;
    }
} 