/* =========================================================
   share.css — 资源共享页专属样式
   依赖：style.css（需先引入）
   ========================================================= */

/* ===== 主体 ===== */
main {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 60px 60px;
}

main h1 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 6px;
    text-align: center;
    margin-bottom: 16px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.subtitle {
    text-align: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    margin-bottom: 50px;
}

/* ===== 分区标题 ===== */
.section-title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 3px;
    margin: 50px 0 24px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    
    color: #ffcc00;
}

/* ===== 卡片网格 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* ===== 卡片 ===== */
.share-card {
    display: block;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 24px 20px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-drag: none;
}

.share-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 204, 0, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.share-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin-bottom: 16px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px;
    -webkit-user-drag: none;
}

.share-card-title {
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #fff;
}

.share-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.share-card-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
}

/* ===== 查看详情 ===== */
.more-link {
    display: block;
    text-align: right;
    margin-top: 20px;
    color: #ffcc00;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.more-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===== 卡片入场动画 ===== */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-card {
    animation: cardFadeIn 0.6s ease both;
}

.share-card:nth-child(1)  { animation-delay: 0.05s; }
.share-card:nth-child(2)  { animation-delay: 0.15s; }
.share-card:nth-child(3)  { animation-delay: 0.25s; }
.share-card:nth-child(4)  { animation-delay: 0.35s; }
.share-card:nth-child(5)  { animation-delay: 0.45s; }
.share-card:nth-child(6)  { animation-delay: 0.55s; }
.share-card:nth-child(7)  { animation-delay: 0.65s; }
.share-card:nth-child(8)  { animation-delay: 0.75s; }
.share-card:nth-child(9)  { animation-delay: 0.85s; }
.share-card:nth-child(10) { animation-delay: 0.95s; }
.share-card:nth-child(11) { animation-delay: 1.05s; }
.share-card:nth-child(12) { animation-delay: 1.15s; }

/* ===== 手机适配 ===== */
@media (max-width: 1024px) {
    main {
        padding: 100px 20px 60px;
    }

    main h1 {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .section-title {
        font-size: 18px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .share-card {
        padding: 18px 16px;
    }

    .share-card-icon {
        width: 40px;
        height: 40px;
    }

    .share-card-title {
        font-size: 16px;
    }

    .share-card-desc {
        font-size: 13px;
    }

    .more-link {
        font-size: 14px;
    }
}