/* 圣辰服务 - 参考截图设计 */
.services-section {
    width: 100vw;
    margin: 0;
    padding: 40px 40px;
    min-height: 100vh;
    background-image: url('../imgs/圣辰服务-背景图.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.services-section .section-title {
    color: #ffffff;
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 16px;
    margin-left: 100px;
    margin-top: 60px;
    position: relative;
    display: block;
    text-align: left;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    line-height: 1.3;
}

.services-section .section-gold-line {
    display: block;
    width: 100px;
    height: 3px;
    background: #D4A853;
    margin: 0 0 20px 100px;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.services-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 40px;
    margin-left: 100px;
    text-align: left;
    max-width: 800px;
    line-height: 2;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* 服务网格 - 底部对齐 */
.services-section .services-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: flex-end;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 40px 40px;
    box-sizing: border-box;
}

/* 服务卡片 - 白色，在下方，直角 */
.services-section .service-card {
    width: calc((100% - 32px) / 5);
    height: 200px;
    background: #ffffff;
    border-radius: 0;
    position: relative;
    cursor: pointer;
    transition: background 0.8s ease, height 0.8s ease;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* 悬停直接变成金色，平滑缓慢无跳动 */
.services-section .service-card:hover,
.services-section .service-card.expanded {
    background: linear-gradient(145deg, #D4A853 0%, #B8860B 100%);
    height: 380px;
    transition: background 0.8s ease, height 0.8s ease;
}

.services-section .service-card:hover .default-content,
.services-section .service-card.expanded .default-content {
    display: none;
}

.services-section .service-card:hover .hover-content,
.services-section .service-card.expanded .hover-content {
    display: flex;
    opacity: 1;
}

.services-section .service-card:hover .card-icon-gray,
.services-section .service-card.expanded .card-icon-gray {
    display: none !important;
}

.services-section .service-card:hover .card-icon-white,
.services-section .service-card.expanded .card-icon-white {
    display: block !important;
}

.services-section .service-card:hover .card-title,
.services-section .service-card.expanded .card-title {
    color: #ffffff;
}

/* 其他卡片保持不变，不收缩不透明 */
.services-section .services-grid.has-expanded .service-card:not(.expanded):not(:hover) {
    width: calc((100% - 32px) / 5);
    opacity: 1;
    transition: opacity 0.8s ease;
}

/* 卡片内部容器 */
.services-section .card-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 卡片编号 - 左上角，普通排列 */
.services-section .card-number {
    font-size: 20px;
    font-weight: 700;
    color: #999999;
    position: absolute;
    top: 15px;
    left: 20px;
    font-style: normal;
    line-height: 1;
    z-index: 1;
}

.services-section .service-card:hover .card-number,
.services-section .service-card.expanded .card-number {
    color: rgba(255, 255, 255, 0.1);
}

/* 默认内容 - 图标居中，编号左上角，标题左下角 */
.services-section .default-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

.services-section .card-icon {
    width: auto;
    height: 80px;
    object-fit: contain;
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.services-section .card-icon-gray {
    display: block !important;
}

.services-section .card-icon-white {
    display: none !important;
}

.services-section .card-title {
    font-size: 24px;
    font-weight: 600;
    color: #B8860B;
    margin: 0;
    text-align: center;
    padding: 0;
    transition: color 0.3s ease;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
}

/* 悬停/展开内容 */
.services-section .hover-content {
    display: none;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 25px 20px;
}

/* 图标 - 居中在上 */
.services-section .hover-icon {
    width: auto;
    height: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px auto;
}

/* 标题 - 居左 */
.services-section .hover-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 12px;
    text-align: left;
}

/* 分割线 */
.services-section .hover-divider {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

/* 副标题 - 加大，可以换行 */
.services-section .hover-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
}

/* 按钮 - 左下角 */
.services-section .card-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: fit-content;
    margin-top: auto;
}

.services-section .card-btn:hover {
    background: #ffffff;
    color: #B8860B;
}

.services-section .card-btn svg {
    width: 14px;
    height: 14px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.services-section .card-btn:hover svg {
    transform: translateX(3px);
}

/* 响应式 */
@media (max-width: 1200px) {
    .services-section .services-grid {
        flex-wrap: wrap;
        gap: 12px;
    }
    .services-section .service-card {
        width: calc(33.333% - 8px);
    }
    .services-section .service-card:hover,
    .services-section .service-card.expanded {
        width: calc(33.333% - 8px);
        height: 350px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 20px 15px;
        min-height: 100vh;
        background-image: url('../imgs/圣辰服务-背景图.jpg');
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }
    .services-section .services-grid {
        position: relative;
        bottom: auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0;
        width: 100%;
    }
    .services-section .service-card {
        width: 92%;
        margin: 0 auto;
        height: 45vh;
        display: flex;
        flex-direction: column;
        border-radius: 4px;
        flex-shrink: 0;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        position: relative;
    }
    .services-section .service-card:hover,
    .services-section .service-card.expanded {
        width: 92%;
        margin: 0 auto;
        height: 45vh;
        background: #ffffff;
    }
    .services-section .section-title {
        font-size: 24px;
        margin-left: 0;
        text-align: center;
        display: block;
        color: #ffffff;
        margin-bottom: 10px;
    }
    .services-section .section-gold-line {
        margin: 0 auto 12px;
        display: block;
    }
    .services-section .section-subtitle {
        margin-left: 0;
        text-align: center;
        font-size: 14px;
        display: block;
        margin-bottom: 20px;
    }
    .services-section .card-inner {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        padding: 30px 25px;
        box-sizing: border-box;
    }
    .services-section .default-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        position: relative;
    }
    .services-section .card-number {
        display: block;
        font-size: 32px;
        font-weight: 700;
        color: #ccc;
    }
    .services-section .card-icon {
        display: block;
        position: absolute;
        top: 25px;
        right: 0;
        height: 45px;
    }
    .services-section .card-icon-gray {
        display: none;
    }
    .services-section .card-icon-white {
        display: none;
    }
    .services-section .card-title {
        font-size: 22px;
        font-weight: 700;
        color: #333;
        margin-top: 15px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    .services-section .card-icon {
        position: absolute;
        top: 25px;
        right: 0;
        height: 45px;
    }
    .services-section .hover-content {
        display: none !important;
    }
    .services-section .card-btn {
        display: block;
        width: 70%;
        margin: auto auto 0;
        padding: 12px 0;
        border: 1px solid #999;
        border-radius: 4px;
        font-size: 14px;
        color: #666;
        background: transparent;
        text-align: center;
        cursor: pointer;
    }
    .hero-btn-group .btn {
        display: inline-block;
        padding: 10px 20px;
        border-radius: 0;
    }
}
        color: #666;
        background: transparent;
        text-align: center;
        cursor: pointer;
    }
}
    .services-section .hover-content {
        padding: 12px 8px;
    }
    .services-section .card-number {
        font-size: 18px;
    }
}
/* 手机端标题字体统一 */
@media (max-width: 768px) {
    .section-title,
    .page-title,
    h1, h2, h3 {
        font-size: var(--fs-h2) !important;
    }
    .section-subtitle,
    .page-subtitle,
    .subtitle {
        font-size: var(--fs-h3) !important;
    }
}
