* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #E85A24;
    --primary-dark: #D14A18;
    --navy: #1A2B4A;
    --navy-light: #1E3A5F;
    --white: #FFFFFF;
    --gray-50: #F5F7FA;
    --gray-100: #E5E7EB;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background: var(--white);
}


/* ============================================ */
/* Header styles: see header.css */
/* Footer styles: see footer.css */
/* ============================================ */

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 43, 74, 0.9), rgba(26, 43, 74, 0.7), rgba(26, 43, 74, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
    width: 100%;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 600px;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

/* Products Section */
.products {
    padding: 64px 24px;
    background: var(--white);
}

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

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.products-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2), transparent);
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
}

.product-name {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-name-a{
    text-decoration: none;
}
.product-link {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card:hover .product-link {
    color: var(--primary);
}

.expert-card {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expert-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.expert-desc {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Features Section */
.features {
    padding: 64px 24px;
    background: var(--navy);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.features-title {
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.feature-content h3 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-content p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

/* About Section */
.about {
    padding: 64px 24px;
    background: var(--gray-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-image-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-image-col:nth-child(2) {
    padding-top: 32px;
}

.about-image {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.about-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.3;
}

.about-content p {
    color: var(--gray-600);
    font-size: 15px;
    margin-bottom: 20px;
}

.btn-outline-dark {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    margin-bottom: 24px;
}

.btn-outline-dark:hover {
    background: var(--navy);
    color: var(--white);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(232, 90, 36, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 12px;
    height: 12px;
    color: var(--primary);
}

.about-feature span {
    font-size: 14px;
    color: var(--gray-700);
}

/* Testimonials Section */
.testimonials {
    padding: 64px 24px;
    background: var(--white);
    overflow: hidden;
}

.testimonials-title {
    color: var(--navy);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.testimonials-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* ============================================
   Testimonials Slider with Buttons
   ============================================ */

.testimonials-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
}

.testimonials-slider {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.testimonials-slider .testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Slider card sizing */
.testimonials-slider .testimonial-card {
    width: 380px;
    flex-shrink: 0;
    opacity: 1;
    transform: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials-slider .testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

/* Inner elements visible */
.testimonials-slider .testimonial-stars,
.testimonials-slider .testimonial-role,
.testimonials-slider .testimonial-text,
.testimonials-slider .testimonial-author {
    opacity: 1;
    transform: none;
}

.testimonials-slider .testimonial-stars {
    transition: none;
}

/* Navigation buttons */
.testimonials-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(229, 93, 37, 0.15);
}

.testimonials-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(229, 93, 37, 0.3);
}

.testimonials-btn:active {
    transform: scale(0.95);
}

.testimonials-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Gradient edges */
.testimonials-slider::before,
.testimonials-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.testimonials-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-100);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(60px) scale(0.95);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.testimonial-card:nth-child(1).visible {
    transition-delay: 0s;
}

.testimonial-card:nth-child(2).visible {
    transition-delay: 0.15s;
}

.testimonial-card:nth-child(3).visible {
    transition-delay: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.testimonial-card.visible:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Card inner elements animation */
.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease-out 0.2s;
}

.testimonial-card.visible .testimonial-stars {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-role {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-out 0.3s;
}

.testimonial-card.visible .testimonial-role {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-text {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease-out 0.4s;
}

.testimonial-card.visible .testimonial-text {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-out 0.5s;
}

.testimonial-card.visible .testimonial-author {
    opacity: 1;
    transform: translateY(0);
}

/* Star twinkle animation */
@keyframes twinkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    color: #FBBF24;
    fill: #FBBF24;
    transition: transform 0.2s;
}

.testimonial-card:hover .testimonial-stars svg {
    animation: twinkle 0.6s ease-in-out;
}

.testimonial-card:hover .testimonial-stars svg:nth-child(1) { animation-delay: 0s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(2) { animation-delay: 0.1s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(3) { animation-delay: 0.2s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(4) { animation-delay: 0.3s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(5) { animation-delay: 0.4s; }

/* Avatar pulse on hover */
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px var(--primary);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    color: #FBBF24;
    fill: #FBBF24;
}

.testimonial-role {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.testimonial-text {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    color: var(--navy);
}

/* Projects Section */
.projects {
    padding: 64px 24px;
    background: var(--gray-50);
}

.projects-header {
    text-align: center;
    margin-bottom: 40px;
}

.projects-title {
    color: var(--navy);
}

.projects-subtitle {
    color: var(--gray-600);
    font-size: 15px;
    margin-top: 8px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.project-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(26, 43, 74, 0.8);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.projects-cta {
    text-align: center;
}

/* News Section */
.news {
    padding: 80px 24px;
    background: var(--gray-50);
}

.news-header {
    text-align: center;
    margin-bottom: 48px;
}

.news-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(232, 90, 36, 0.1);
    border-radius: 20px;
}

.news-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.news-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 500px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* All news cards use same layout */

.news-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 24px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-date {
    font-size: 13px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.news-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.2s;
}

.news-card:hover .news-card-title {
    color: var(--primary);
}

.news-excerpt {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
}

.news-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.news-link:hover svg {
    transform: translateX(4px);
}

.news-cta {
    text-align: center;
}

/* News responsive */
@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 42px;
    }

    .products-main {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

}

@media (min-width: 768px) {
    .nav {
        display: block;
    }

    .header-right {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .section-title {
        font-size: 32px;
    }

    .about-content h2 {
        font-size: 30px;
    }

    .cta-title {
        font-size: 32px;
    }

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

@media (min-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .products-grid {
        grid-template-columns: 2fr 1fr;
    }

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

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

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* ============================================
   Quote Modal / 报价弹窗样式
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 43, 74, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.25),
        0 10px 20px rgba(0,0,0,0.15);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-50);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--gray-100);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--gray-600);
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 28px;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    transition: all 0.2s;
    color: var(--gray-900);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 90, 36, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

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

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}
