@charset "utf-8";

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
            line-height: 1.6;
            background-color: #ffffff;
        }

        .website-wrapper {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .image-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            width: 100%;
        }

        .image-item {
            position: relative;
            width: calc(50% - 10px);
            margin-bottom: 20px; /* 增加上下间距到原来的2倍 */
        }

        @media (min-width: 1024px) {
            .image-item {
                width: calc(25% - 15px);
            }
        }

        .scroll-image-container {
            width: 100%;
            overflow: hidden;
            position: relative;
            padding-top: 140%;
        }

        .scroll-image-holder {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            cursor: pointer;
        }

        .scroll-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 200%;
            background-size: cover;
            background-position: top center;
            transition: transform 0.6s ease-out;
        }

        .scroll-image:hover {
            transform: translateY(-50%);
        }

        .link-icon-container {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 10;
        }

        .link-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            color: #333;
            text-decoration: none;
            opacity: 0;
            transition: opacity 0.3s ease, background-color 0.3s ease;
        }

        .scroll-image-holder:hover .link-icon {
            opacity: 1;
        }

        .link-icon:hover {
            background-color: rgba(255, 255, 255, 1);
        }

        /* 新增的图片标题样式 */
        .image-title {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 15px 20px;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: white;
            text-align: center;
            font-size: 16px;
            font-weight: 500;
            opacity: 1; /* 始终显示 */
            transform: translateY(0); /* 始终显示在正确位置 */
            transition: all 0.4s ease;
            z-index: 5;
            pointer-events: none;
        }

        /* 保留过渡效果，移除悬停显示的限制 */