
:root {
    --primary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --primary-hover: linear-gradient(135deg, #162c55 0%, #224686 100%);
    --gold-accent: #d4af37;
    --text-primary: #121212;
    --text-secondary: #555555;
    --text-light: #ffffff;
    --bg-card: #ffffff;
    --bg-light: #f5f7fa;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-img: 8px;
    --transition-base: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --blur-effect: blur(8px);
}



.service-list-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}


.list-title {
    font-size: 32px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 40px;
    padding-bottom: 16px;
    position: relative;
    text-align: center;
    letter-spacing: 1px;
}

.list-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.list-title::before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 12px;
    background: var(--gold-accent);
    border-radius: 0 0 8px 8px;
}

.service-card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
}


.service-card {
    display: flex;
    flex-direction: column;
    
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    height: 95%; 
}


.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-hover);
    color: var(--text-light);
    border-color: transparent;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.9;
    transition: var(--transition-base);
}

.service-card:hover::before {
    width: 10px;
    opacity: 1;
    background: var(--gold-accent);
}


.card-img-wrapper {
    width: 100%;
    height: 300px; 
    border-radius: var(--radius-img);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
    filter: brightness(0.95);
}

.service-card:hover .card-img {
    transform: scale(1.05);
    filter: brightness(1.05);
}


.card-img-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}


.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1; 
}


.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-base);
    letter-spacing: 0.5px;
}

.service-card:hover .card-title {
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-gradient);
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-base);
}

.service-card:hover .card-price {
    -webkit-text-fill-color: var(--gold-accent);
    background: none;
}

/* 标签样式（高端胶囊） */
.card-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(90deg, #f0f4f8, #e8f0ff);
    color: #2a5298;
    font-size: 12px;
    border-radius: 100px;
    transition: var(--transition-base);
    font-weight: 500;
    letter-spacing: 0.3px;
    align-self: flex-start; /* 标签左对齐 */
}

.service-card:hover .card-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--gold-accent);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* 发布方信息 */
.card-publisher {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-base);
    font-weight: 500;
}

.service-card:hover .card-publisher {
    color: var(--text-light);
    opacity: 0.9;
}

/* 操作按钮组（固定在卡片底部） */
.card-actions {
    display: flex;
    justify-content: space-between; /* 按钮两端分布 */
    gap: 16px;
    margin-top: auto; /* 强制按钮在底部 */
}

.card-btn {
    padding: 10px 0;
    width: 48%; /* 按钮平分宽度 */
    border-radius: var(--radius-sm);
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
}

.btn-detail {
    background: var(--primary-gradient);
    color: var(--text-light);
    box-shadow: 0 4px 8px rgba(30, 60, 114, 0.2);
}

.btn-detail:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30, 60, 114, 0.3);
}

.btn-contact {
    background: transparent;
    color: #2a5298;
    border: 1.5px solid #2a5298;
}

.service-card:hover .btn-contact {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-accent);
    border-color: var(--gold-accent);
}

/* 响应式适配（移动端变回单列） */
@media (max-width: 768px) {
    .service-card-list {
        grid-template-columns: 1fr; /* 移动端单列 */
    }
    .card-img-wrapper {
        height: 150px;
    }
    .list-title {
        font-size: 28px;
    }
}

.service-card-list > div {
    width: 95%;
}

/* 加载过渡效果 */
.service-card {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 6个卡片逐行淡入（2列3行） */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
