
.galaxy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 2000px;
}

.service-card {
    background: linear-gradient(145deg, 
        rgba(255, 215, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 100%);
    border-radius: 30px;
    padding: 1.5px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.card-inner {
    background: linear-gradient(45deg, 
        rgba(40, 40, 40, 0.9) 0%,
        rgba(30, 30, 30, 0.95) 100%);
    border-radius: inherit;
    padding: 15px;
    position: relative;
    height: 100%;
}

.service-card:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(5px);
}



.service-card:hover::before {
    opacity: 0.15;
}

.thumbnail {
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform: translateZ(30px);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.1);
    transition: transform 0.6s;
}

.service-card:hover .thumbnail img {
    transform: scale(1.05) rotate(2deg);
}

.badge {
position: absolute;
top: 15px;
right: 0px;
background: #e13535;
color: #2A2A2A;
padding: 8px 25px;
border-radius: 15px 5px 15px 5px;
font-weight: 900;
/* transform: rotate(3deg); */
box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.company {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin: 1.5rem 0 0.5rem;
    letter-spacing: 1px;
}

.card-inner .title {
    color: #e13535;
    font-size: 1.5rem;
    height: 62px;
    margin: 10px 0px;
}

.price {
    color: #FFC000;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0.5rem 0;
    position: relative;
    display: inline-block;
}

.price::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
}

.description {
    color: rgba(255,255,255,0.8);

    font-weight: 300;
}

.cta-button {
    background: linear-gradient(45deg, 
        #e13535 0%,
        #FFC000 100%);
    color: #2A2A2A;
    padding: 10px 30px;
    border: none;
    margin-bottom: 15px;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    padding-left: 30px;
    padding-right: 50px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}






















/* list1 */


.service-container2 {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1280px;
    margin: 35px auto;
}
.service-container2 a{
    width: 380px;
    height: 440px;
    
}
.service-card2 {
    width: 332px;
    height: 389px;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.service-card2:hover {
    transform: translateY(-15px) rotate(3deg);
}

.image-wrapper {
    width: 110%;
    height: 260px;
    margin-left: -5%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.service-card2:hover img {
    transform: scale(1.1) rotate(-1deg);
}

.price-tag {
    position: absolute;
    top: 5px;
    right: -40px;
    background: #e13535;
    color: #ffffff;
    padding: 12px 40px;
    font-weight: 900;
    transform: rotate(45deg);
    box-shadow: 0 5px 15px rgb(255 0 0 / 30%);
    transition: all 0.3s;
}

.service-card2:hover .price-tag {
    right: -40px;
}

.service-container2 .content {
    padding: 0.5rem 0.5rem;
    position: relative;
}

.service-container2 h2 {
    width: 100%;
    height: 35px;
    overflow: hidden;
    color: #1A1A1A;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.service-container2 h2::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 60%;
    height: 3px;
    background: #e13535;
    transform-origin: left;
    transition: transform 0.3s;
}

.service-card2:hover h2::after {
    transform: scaleX(1.2);
}

/* 动态装饰线 */
.service-card2::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, #e13535, transparent 30%
    );
   
    opacity: 0.1;
}



/* 悬浮按钮 */
.action-btn2 {
    background: #1A1A1A;
    color: #e13535;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    transition: all 0.3s;
}

.action-btn2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.3),
        transparent
    );
    transition: left 0.6s;
}

.action-btn2:hover::before {
    left: 100%;
}

.action-btn2:hover {
    letter-spacing: 2px;
}










/* list3 */

.service-grid3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 30px auto;
}

.service-card3 {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s;
    box-shadow: 0 10px 20px rgb(57 57 57 / 10%);
}

.service-card3:hover {
    transform: translateY(-10px);
    transition: transform 0.3s;
    box-shadow: 0 15px 30px rgb(0 0 0 / 20%);
}

.service-grid3 .thumbnail {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    background: #FFE55C;
    position: relative;
    overflow: hidden;
}

.service-grid3 .thumbnail::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 40px;
    background: #e13535;
    transform: rotate(-5deg) translateY(80px);
}

.service-grid3 .thumbnail img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.service-grid3 .price-tag {
    background: #ff0000;
    transform: rotate(0deg);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    position: absolute;
    top: -15px;
    right: -10px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgb(255 0 0 / 30%);
}

.service-grid3 h3 {
    color: #333;
    height: 30px;
    overflow: hidden;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.service-grid3 .description {
    color: rgb(0 0 0 / 80%);
    line-height: 15px;
    font-size: 14px;
    height: 15px;
    overflow: hidden;
}


.slideshow-container {
    width: 1920px;
    padding-left: 160px;
    position: relative;
    margin: 0 auto;
}


.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
}
.next { right: 0; }
.dot {
    display: inline-block;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.6s ease;
}
.active { background-color: #717171; }
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}
@keyframes fade {
    from { opacity: .4 }
    to { opacity: 1 }
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(225, 53, 53, 0.2);
}

.service-thumb {
    width: 400px;
    height: 320px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-thumb img {
    transform: scale(1.08);
}

.service-thumb::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(225, 53, 53, 0.1), transparent);
    z-index: 1;
}

.service-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #212529;
    display: flex;
    align-items: center;
}

.service-title i {
    color: #e13535;
    margin-right: 12px;
    font-size: 1.5rem;
}

.service-description {
    color: #6c757d;
    line-height: 2;
    font-size: 16px;
    margin-bottom: 20px;
    flex: 1;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.service-price {
    background: #e13535;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(225, 53, 53, 0.3);
}

.service-company {
    display: flex;
    align-items: center;
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #e13535;
    font-weight: bold;
    border: 1px solid #eee;
}

.company-name {
    font-weight: 600;
    color: #495057;
}

.tag2 {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e13535;
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.popular {
    background: #ffc107;
    color: #212529;
}