/*
 * vibecoding.css —— AI应用（vibecoding）卡片 + 详情弹窗
 *
 * 首页「AI应用」板块（index.html）与列表页（vibecoding.html）共用这一份样式：
 * 卡片的圆角 / 描边 / 底色 / 悬停 / 标题层级 / 按钮位置，以及详情弹窗的
 * 「封面左 + 信息右」布局，两处必须完全一致，只在这里改一次。
 *
 * 加载顺序：index.html 里放在自有 <style> 之后；vibecoding.html 里放在
 * site-list.css 之后。site-list.css 里 .vc-card 那几条 !important 与本文件
 * 取值相同，属于同一套设计令牌，不会打架。
 */

/* ── 1. 卡片外壳 ──────────────────────────────────────────────── */
.vc-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--a-line, rgba(255, 255, 255, .12));
    border-radius: 8px;
    background: var(--a-surface, #0b0b0c);
    box-shadow: none;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
    /* 入场只动 opacity + translate，把 transform 留给 hover */
    animation: vc-card-in .5s cubic-bezier(.22, 1, .36, 1);
}
.vc-card:hover {
    transform: translateY(-3px);
    border-color: var(--a-line-strong, rgba(255, 255, 255, .22));
    background: var(--a-surface-2, #111214);
}
@keyframes vc-card-in {
    from { opacity: 0; translate: 0 14px; }
    to { opacity: 1; translate: 0 0; }
}

/* 封面：通栏 16:10，与其它封面型卡片同一比例 */
.vc-cover {
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--a-line, rgba(255, 255, 255, .12));
    background: linear-gradient(135deg, #1b1638 0%, #241b52 45%, #3a2676 100%);
}
.vc-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vc-cover-fallback {
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -.06em;
    color: rgba(255, 255, 255, .14);
    user-select: none;
}

/* 正文：标题 18 / 标签 24 / 摘要 13，行高与全站卡片一致 */
.vc-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 18px;
}
.vc-name {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--a-text, #f5f5f3);
}
.vc-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.vc-meta-item {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 3px;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.vc-meta-item.is-category {
    border-color: rgba(109, 94, 246, .26);
    background: rgba(68, 45, 216, .14);
    color: #d7d1ff;
}
.vc-summary {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .55);
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 外链：小跳转入口，不铺开长 URL */
.vc-links { margin-top: 12px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, .56);
    text-decoration: none;
    transition: color .18s ease;
}
.vc-link:hover { color: #9b8cff; }
.vc-link .fa { font-size: 11px; }

/* 立即试玩：与「查看详情」同规格，固定在卡片底部，上方一条分隔线 */
.vc-footer {
    display: flex;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--a-line, rgba(255, 255, 255, .12));
}
.vc-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.vc-play:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
}

/* ── 2. 详情弹窗：封面缩小放左，标题 / 介绍放右 ─────────────────── */
.vc-modal {
    position: fixed;
    inset: 0;
    /* 高于移动端 .nav 的 100，否则小屏下导航会压住弹窗和关闭按钮 */
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(4, 3, 10, .82);
    backdrop-filter: blur(10px);
}
.vc-modal.open { display: flex; }
.vc-modal-box {
    position: relative;
    width: min(900px, 100%);
    max-height: min(90vh, 880px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: #101014;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .28) transparent;
    scrollbar-gutter: stable;
}
.vc-modal-box::-webkit-scrollbar { width: 10px; }
.vc-modal-box::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    background-clip: content-box;
}
.vc-modal-box::-webkit-scrollbar-thumb:hover {
    background: rgba(109, 94, 246, .6);
    background-clip: content-box;
}
.vc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    background: rgba(11, 10, 18, .78);
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.vc-modal-close:hover { background: #442DD8; border-color: #442DD8; color: #fff; }

/* 头部两栏：左封面 / 右信息 */
.vc-modal-head {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
    border-bottom: 1px solid var(--a-line, rgba(255, 255, 255, .12));
}
.vc-modal-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--a-line, rgba(255, 255, 255, .12));
    border-radius: 10px;
    background: linear-gradient(135deg, #1b1638 0%, #241b52 45%, #3a2676 100%);
}
.vc-modal-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vc-modal-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-right: 34px; /* 给右上角关闭按钮让位 */
}
.vc-modal-title {
    margin: 2px 0 0;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #f5f5f3;
}
.vc-modal-creator {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .5);
}
.vc-modal-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
/* 简介：标题右侧的一句话介绍，长文仍走下面的「项目介绍」 */
.vc-modal-summary {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vc-modal-summary[hidden] { display: none !important; }
.vc-modal-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 3px;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .66);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.vc-modal-tag .fa { font-size: 10px; opacity: .8; }
.vc-modal-tag.is-category {
    border-color: rgba(109, 94, 246, .26);
    background: rgba(68, 45, 216, .14);
    color: #d7d1ff;
}
.vc-modal-tag.is-cap {
    border-color: rgba(56, 189, 248, .28);
    background: rgba(56, 189, 248, .1);
    color: #a9e2fb;
}
a.vc-modal-tag:hover { color: #fff; border-color: rgba(109, 94, 246, .5); background: rgba(109, 94, 246, .14); }

/* 立即试玩：贴信息栏底部，与封面下沿齐平 */
.vc-modal-actions { margin-top: auto; padding-top: 18px; }
.vc-modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 190px;
    height: 44px;
    padding: 0 26px;
    border: 1px solid #442DD8;
    border-radius: 8px;
    background: #442DD8;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}
.vc-modal-cta:hover { background: #6D5EF6; border-color: #6D5EF6; color: #fff; }

/* 正文：项目介绍 */
.vc-modal-body { padding: 22px 28px 28px; }
.vc-section-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .04em;
    color: #cfc8ff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vc-section-title::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #7c6bff;
}
.vc-modal-prose {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .72);
    white-space: pre-wrap;
    word-break: break-word;
}

@media (min-width: 701px) {
    /* 两栏时让封面撑满头部高度，右侧信息再多也不会露出半截封面 */
    .vc-modal-cover { height: 100%; aspect-ratio: auto; min-height: 200px; }
}
@media (max-width: 960px) {
    .vc-modal-head { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 22px; }
    .vc-modal-title { font-size: 22px; }
    .vc-modal-body { padding: 20px 22px 24px; }
}
@media (max-width: 700px) {
    .vc-modal { padding: 0; align-items: flex-start; }
    .vc-modal-box {
        width: 100%;
        min-height: 100vh;
        max-height: none;
        border: 0;
        border-radius: 0;
    }
    .vc-modal-head { grid-template-columns: 1fr; gap: 16px; padding: 16px 16px 18px; }
    .vc-modal-cover { border-radius: 8px; }
    .vc-modal-info { padding-right: 30px; }
    .vc-modal-title { font-size: 22px; }
    .vc-modal-actions { padding-top: 16px; }
    .vc-modal-cta { width: 100%; min-width: 0; }
    .vc-modal-body { padding: 18px 16px 26px; }
}
