/**
 * 【首页】16.蜘蛛池服务模块
 * 借鉴 IT 模板 services-section：居中水印标题 + 左（服务图表）+右（5 条服务卡列表）
 * 主题金 #f5c12e
 */

.hss-section {
    --hss-gold: #f5c12e;
    --hss-gold-soft: rgba(245, 193, 46, 0.10);
    --hss-gold-line: rgba(245, 193, 46, 0.35);
    --hss-title-strong: #1a1730;
    --hss-title: #2b271b;
    --hss-text: #5a5770;
    --hss-bg: #fafbff;

    position: relative;
    padding: 110px 0;
    background: var(--hss-bg);
    overflow: hidden;
}

/* ===== 标题区（居中巨型水印） ===== */
.hss-sec-title {
    position: relative;
    margin-bottom: 54px;
    text-align: center;
}

.hss-float-text {
    position: absolute;
    left: 50%;
    top: -38px;
    transform: translateX(-50%);
    font-size: 120px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ebebf4;
    z-index: 0;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.hss-main-title {
    position: relative;
    z-index: 1;
    font-size: 42px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin: 0 auto;
    color: var(--hss-title-strong);
    max-width: 760px;
}

.hss-highlight {
    color: var(--hss-gold);
    position: relative;
    white-space: nowrap;
}

.hss-highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--hss-gold) 0%, rgba(245, 193, 46, 0) 100%);
}

/* ===== 行通用 ===== */
.hss-row {
    align-items: center;
}

.hss-section .flex-row-reverse {
    flex-direction: row-reverse;
}

/* ===== 服务图表列 ===== */
.hss-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px 30px;
}

.hss-image-box {
    position: relative;
    text-align: center;
    display: inline-block;
    max-width: 100%;
}

.hss-main-image {
    position: relative;
    z-index: 2;
    margin: 0;
}

.hss-main-image img {
    display: block;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 42px rgba(26, 23, 48, 0.16));
}

/* 背后装饰图标（金色齿轮/六芒星）带缩放脉冲 */
.hss-icon-image {
    position: absolute;
    z-index: 1;
    width: 120%;
    max-width: 520px;
    left: -10%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    opacity: 0.9;
}

.hss-icon-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.hss-icon-image.zoom-two {
    animation: hss-zoom-two 6s ease-in-out infinite;
}

@keyframes hss-zoom-two {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.95; }
    50%      { transform: translateY(-50%) scale(1.06); opacity: 0.82; }
}

/* ===== 服务卡列 ===== */
.hss-services-col {
    padding-left: 10px;
}

.hss-layout-right .hss-services-col {
    padding-left: 0;
    padding-right: 10px;
}

.hss-service-block {
    animation: hss-fade-right 0.7s ease both;
    animation-delay: calc(var(--i, 1) * 120ms);
    margin-bottom: 14px;
}

@keyframes hss-fade-right {
    from { opacity: 0; transform: translateX(26px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hss-inner-box {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(26, 23, 48, 0.06);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(26, 23, 48, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.hss-inner-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--hss-gold) 0%, rgba(245, 193, 46, 0) 100%);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.hss-service-block:hover .hss-inner-box {
    transform: translateY(-4px);
    border-color: var(--hss-gold-line);
    box-shadow: 0 16px 36px rgba(245, 193, 46, 0.14), 0 8px 20px rgba(26, 23, 48, 0.06);
}

.hss-service-block:hover .hss-inner-box::before {
    transform: scaleY(1);
}

.hss-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px 22px 20px 22px;
    column-gap: 18px;
    row-gap: 10px;
}

.hss-icon {
    margin: 0;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 16px;
    background: var(--hss-gold-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hss-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.hss-service-block:hover .hss-icon {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(245, 193, 46, 0.25);
}

.hss-body {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 36px; /* 给右侧箭头按钮留空 */
    position: relative;
}

.hss-block-title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--hss-title);
    letter-spacing: -0.2px;
}

.hss-block-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.22s ease;
}

.hss-block-title a:hover {
    color: var(--hss-gold);
}

.hss-block-desc {
    font-size: 13.5px;
    line-height: 1.72;
    color: var(--hss-text);
    margin: 0;
}

/* 右下"详细"箭头按钮：悬停时金色扩散圆 */
.hss-read-more {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(26, 23, 48, 0.08);
    color: var(--hss-title);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, width 0.3s ease;
    z-index: 2;
}

.hss-read-more i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.hss-read-more::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--hss-gold);
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    z-index: -1;
}

.hss-inner-box:hover .hss-read-more {
    border-color: transparent;
    color: #2b271b;
}

.hss-inner-box:hover .hss-read-more::before {
    transform: scale(1);
}

.hss-inner-box:hover .hss-read-more i {
    transform: translateX(3px);
}

/* ===== 响应式 ===== */
@media (max-width: 1199.98px) {
    .hss-float-text { font-size: 92px; top: -30px; letter-spacing: 2px; }
    .hss-main-title { font-size: 34px; max-width: 680px; }
}

@media (max-width: 991.98px) {
    .hss-section { padding: 80px 0; }

    .hss-float-text { font-size: 70px; top: -24px; letter-spacing: 2px; }
    .hss-main-title { font-size: 28px; max-width: 100%; }
    .hss-sec-title { margin-bottom: 40px; }

    .hss-image-col { margin-bottom: 34px; padding: 0 10px; }
    .hss-main-image img { max-width: 72%; margin: 0 auto; }
    .hss-icon-image { max-width: 86%; left: 7%; }

    .hss-services-col { padding: 0 4px; }
    .hss-layout-right .hss-services-col { padding: 0 4px; }
}

@media (max-width: 575.98px) {
    .hss-section { padding: 60px 0; }

    .hss-float-text { font-size: 42px; top: -16px; letter-spacing: 1px; }
    .hss-main-title { font-size: 24px; }

    .hss-content { padding: 16px 18px 16px 18px; column-gap: 14px; }
    .hss-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; }
    .hss-icon img { width: 26px; height: 26px; }
    .hss-body { padding-right: 32px; }
    .hss-block-title { font-size: 16px; }
    .hss-block-desc { font-size: 13px; }

    .hss-read-more { width: 30px; height: 30px; right: 16px; }
    .hss-read-more i { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .hss-icon-image.zoom-two,
    .hss-service-block {
        animation: none;
    }
}
