/* ========= 权威机构展示区域样式 ========= */

.authority-showcase {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(135deg, #36c958 0%, #2ba849 100%);
    overflow: hidden;
    transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(54, 201, 88, 0.15);
}

/* 滚动后显示 */
.authority-showcase.visible {
    height: 160px;
}

.authority-showcase-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 160px;
    position: relative;
}

/* 单个权威机构项 */
.authority-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    position: relative;
    text-align: center;
}

/* 分割线 */
.authority-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.2);
}

/* Logo 容器 */
.authority-logo {
    margin-bottom: 16px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.authority-logo img {
    max-height: 40px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* 描述文字 */
.authority-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

/* 悬停效果 */
.authority-item:hover .authority-logo img {
    opacity: 1;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.authority-item:hover .authority-desc {
    color: rgba(255, 255, 255, 1);
}

/* ========= 响应式设计 ========= */

/* 平板 */
@media (max-width: 1024px) {
    .authority-showcase.visible {
        height: 140px;
    }

    .authority-showcase-wrapper {
        grid-template-columns: repeat(3, 1fr);
        height: 140px;
        gap: 0;
    }

    .authority-item {
        padding: 28px 20px;
    }

    .authority-logo {
        height: 36px;
        margin-bottom: 14px;
    }

    .authority-logo img {
        max-height: 36px;
        max-width: 140px;
    }

    .authority-desc {
        font-size: 12px;
    }
}

/* 大屏手机 */
@media (max-width: 768px) {
    .authority-showcase.visible {
        height: 300px;
    }

    .authority-showcase-wrapper {
        grid-template-columns: 1fr;
        height: 300px;
        gap: 0;
    }

    .authority-item {
        padding: 24px 20px;
    }

    /* 移动端改为水平分割线 */
    .authority-item:not(:last-child)::after {
        right: auto;
        top: auto;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 1px;
    }

    .authority-logo {
        height: 32px;
        margin-bottom: 12px;
    }

    .authority-logo img {
        max-height: 32px;
        max-width: 120px;
    }

    .authority-desc {
        font-size: 13px;
        line-height: 1.7;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .authority-showcase.visible {
        height: 280px;
    }

    .authority-showcase-wrapper {
        height: 280px;
    }

    .authority-item {
        padding: 20px 16px;
    }

    .authority-logo {
        height: 28px;
        margin-bottom: 10px;
    }

    .authority-logo img {
        max-height: 28px;
        max-width: 100px;
    }

    .authority-desc {
        font-size: 12px;
        line-height: 1.6;
    }
}
