/* 服務卡片特殊樣式 */

.service-card {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-blend-mode: overlay;
    background-color: rgba(247, 249, 252, 0.5);
    transition: opacity 0.7s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 119, 204, 0.1);
    border-color: rgba(0, 119, 204, 0.2);
}

.service-icon {
    position: relative;
    margin-bottom: 20px;
    z-index: 2;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    padding: 15px;
    background-color: rgba(0, 119, 204, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon img {
    background-color: rgba(0, 119, 204, 0.2);
    transform: scale(1.1);
}

/* SVG圖標效果 */
.service-svg {
    border-radius: 50%;
    transition: all 0.5s ease;
}

.service-card:hover .service-svg {
    transform: scale(1.1) rotate(5deg);
}

.service-svg circle, 
.service-svg path, 
.service-svg rect, 
.service-svg line {
    transition: all 0.5s ease;
}

.service-card:hover .service-svg [stroke="#0077cc"] {
    stroke: #00a8e8;
    stroke-width: 4;
}

.service-card:hover .service-svg text {
    fill: #00a8e8;
    font-size: 16px;
}

.service-card h3 {
    position: relative;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
    z-index: 2;
    transition: all 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-card p {
    position: relative;
    color: var(--gray);
    z-index: 2;
}

/* 服務卡片懸停效果的附加類 */
.service-hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 119, 204, 0.1);
    border-color: rgba(0, 119, 204, 0.2);
}

.service-hover::before {
    opacity: 0;
}

.service-hover .service-icon img {
    background-color: rgba(0, 119, 204, 0.2);
    transform: scale(1.1);
}

.service-hover h3 {
    color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* 當螢幕寬度小於1200px時，改為每行3個卡片 */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 當螢幕寬度小於768px時，改為每行2個卡片 */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 當螢幕寬度小於480px時，改為每行1個卡片 */
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-icon {
    margin-bottom: 15px;
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card h3 {
    margin: 10px 0;
    color: var(--primary);
    font-size: 16px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
    flex-grow: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-svg {
    transform: scale(1.1) rotate(5deg);
}

.service-svg {
    transition: transform 0.3s ease;
}

.service-svg circle, 
.service-svg rect, 
.service-svg path, 
.service-svg line, 
.service-svg text {
    transition: all 0.3s ease;
}

.service-card:hover .service-svg circle[fill*="rgba"] {
    fill-opacity: 0.3;
}

.service-card:hover .service-svg [stroke*="#"] {
    stroke-width: 3;
} 