/* ===== 卡片基础样式 ===== */
.app-card {
    position: relative;
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 30px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    will-change: transform;
}

/* ===== HUD 科技边框 ===== */
.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 204, 0.3) 0%,
        rgba(0, 128, 255, 0.3) 50%,
        rgba(255, 0, 255, 0.3) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ===== 四个角落 HUD 装饰 ===== */
.app-card .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--cyan);
    pointer-events: none;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.app-card .corner.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.app-card .corner.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.app-card .corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.app-card .corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* ===== 能量流光边框（悬停时） ===== */
.app-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 18px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--cyan) 25%,
        var(--blue) 50%,
        var(--magenta) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: energyPulse 2s linear infinite;
}

.app-card:hover::after {
    opacity: 1;
}

.app-card:hover .corner {
    opacity: 1;
    width: 30px;
    height: 30px;
    box-shadow: 0 0 10px var(--cyan);
}

/* ===== 卡片内部布局 ===== */
.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    transform: translateZ(20px);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.1) 0%, rgba(0, 128, 255, 0.1) 100%);
    border: 1px solid rgba(0, 255, 204, 0.3);
    transition: all 0.3s ease;
}

.app-card:hover .card-icon {
    animation: iconPulse 1.5s ease-in-out infinite;
    border-color: var(--cyan);
}

.card-title-wrapper {
    flex: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

/* ===== 平台标签 ===== */
.platform-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    background: rgba(0, 255, 204, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.platform-tag.desktop {
    background: rgba(0, 255, 204, 0.1);
    color: var(--cyan);
    border-color: rgba(0, 255, 204, 0.3);
}

.platform-tag.web {
    background: rgba(0, 128, 255, 0.1);
    color: var(--blue);
    border-color: rgba(0, 128, 255, 0.3);
}

.platform-tag.ios {
    background: rgba(255, 0, 255, 0.1);
    color: var(--magenta);
    border-color: rgba(255, 0, 255, 0.3);
}

.platform-tag.android {
    background: rgba(0, 255, 128, 0.1);
    color: #00ff80;
    border-color: rgba(0, 255, 128, 0.3);
}

/* ===== 简介文字 ===== */
.card-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    transform: translateZ(15px);
}

/* ===== 下载按钮 ===== */
.card-actions {
    display: flex;
    gap: 12px;
    transform: translateZ(25px);
}

.download-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn.primary {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    color: var(--bg-primary);
}

.download-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.download-btn.primary:hover::before {
    left: 100%;
}

.download-btn.primary:hover {
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
    transform: translateY(-2px);
}

.download-btn.secondary {
    background: transparent;
    color: var(--cyan);
    border: 1px solid rgba(0, 255, 204, 0.5);
}

.download-btn.secondary:hover {
    background: rgba(0, 255, 204, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

/* ===== 全息投影效果 ===== */
.hologram-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0, 255, 204, 0.03) 60deg,
        transparent 120deg,
        rgba(0, 128, 255, 0.03) 180deg,
        transparent 240deg,
        rgba(255, 0, 255, 0.03) 300deg,
        transparent 360deg
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate 10s linear infinite;
}

.app-card:hover .hologram-effect {
    opacity: 1;
}

/* ===== 卡片内发光 ===== */
.card-inner-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 255, 204, 0.15) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.app-card:hover .card-inner-glow {
    opacity: 1;
}
