@charset "utf-8";

/**
 * 首页友情链接（新版）：更灵动 + 阴影不过角
 * 仅作用于 .homee .fast .fastlist-modern
 */

.homee .fast .fastlist-modern ul {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.28rem 1.5%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.homee .fast .fastlist-modern ul li {
    margin: 0 !important;
    width: auto !important;
    display: block;
    /* 清掉 index.css 对 .fastlist ul li 的旧蓝底背景 */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    animation: fastlistv2-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.homee .fast .fastlist-modern ul li:nth-child(1) { animation-delay: 0.02s; }
.homee .fast .fastlist-modern ul li:nth-child(2) { animation-delay: 0.06s; }
.homee .fast .fastlist-modern ul li:nth-child(3) { animation-delay: 0.10s; }
.homee .fast .fastlist-modern ul li:nth-child(4) { animation-delay: 0.14s; }
.homee .fast .fastlist-modern ul li:nth-child(5) { animation-delay: 0.18s; }
.homee .fast .fastlist-modern ul li:nth-child(6) { animation-delay: 0.22s; }
.homee .fast .fastlist-modern ul li:nth-child(7) { animation-delay: 0.26s; }
.homee .fast .fastlist-modern ul li:nth-child(8) { animation-delay: 0.30s; }
.homee .fast .fastlist-modern ul li:nth-child(9) { animation-delay: 0.34s; }
.homee .fast .fastlist-modern ul li:nth-child(10) { animation-delay: 0.38s; }

.homee .fast .fastlist-modern ul li a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;

    min-height: 0.88rem;
    padding: 0.14rem 0.16rem 0.14rem 0.22rem;
    box-sizing: border-box;

    color: #114170;
    font-size: 0.17rem;
    line-height: 1.35;

    border-radius: 0.12rem;
    border: 1px solid rgba(5, 77, 162, 0.14);

    background: linear-gradient(145deg, #ffffff 0%, #f5faff 55%, #eef5ff 100%);
    overflow: hidden;
    transform: translateZ(0);

    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease,
        filter 0.3s ease,
        background 0.3s ease;

    /* 默认阴影：更小、更不容易在圆角处“露出直角块” */
    filter: drop-shadow(0 0.06rem 0.12rem rgba(5, 77, 162, 0.14));
    will-change: transform, filter;
}

/* 左侧竖条渐变（轻量动效） */
.homee .fast .fastlist-modern ul li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.06rem;
    background: linear-gradient(180deg, #054da2 0%, #2a7bd9 50%, #054da2 100%);
    opacity: 0.9;
    transition: width 0.25s ease;
}

/* 底部柔和光晕（用 border-radius+overflow 避免直角底块） */
.homee .fast .fastlist-modern ul li a::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(120% 70% at 50% 100%, rgba(5, 77, 162, 0.18) 0%, rgba(5, 77, 162, 0.0) 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.homee .fast .fastlist-modern ul li:hover a {
    transform: translateY(-0.04rem);
    border-color: rgba(5, 77, 162, 0.32);
    filter: drop-shadow(0 0.12rem 0.22rem rgba(5, 77, 162, 0.20));
    background: linear-gradient(145deg, #ffffff 0%, #f1f7ff 55%, #e9f2ff 100%);
}

.homee .fast .fastlist-modern ul li:hover a::before {
    width: 0.09rem;
}

.homee .fast .fastlist-modern ul li:hover a::after {
    opacity: 1;
}

.homee .fast .fastlist-modern ul li a:active {
    transform: translateY(-0.02rem);
}

@keyframes fastlistv2-in {
    from { opacity: 0; transform: translateY(0.14rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width:960px) {
    .homee .fast .fastlist-modern ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.30rem 1.8%;
    }
}

@media screen and (max-width:640px) {
    .homee .fast .fastlist-modern ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.22rem 2.4%;
    }

    .homee .fast .fastlist-modern ul li a {
        min-height: 0.80rem;
        font-size: 0.16rem;
    }
}

@media screen and (max-width:400px) {
    .homee .fast .fastlist-modern ul {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homee .fast .fastlist-modern ul li {
        animation: none;
    }

    .homee .fast .fastlist-modern ul li a,
    .homee .fast .fastlist-modern ul li a::before,
    .homee .fast .fastlist-modern ul li a::after {
        transition: none;
    }
}

