:root {
    --bg-dark: #0a0f1d;
    --card-bg: #162031;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --accent-cyan: #4fd1c5;
    --btn-danger: #ff0000;
    --star-gold: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #000;
    /* PC端背景 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* 移动端核心容器 */
.mobile-container {
    width: 100%;
    max-width: 500px;
    /* 模拟移动端宽度 */
    background-color: var(--bg-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 跑马灯通知栏 */
.marquee-bar {
    background: rgba(0, 0, 0, 0.3);
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.marquee-bar i {
    color: var(--accent-cyan);
    font-size: 18px;
}

.marquee-content-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* APP列表布局 */
.app-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-card {
    background: var(--card-bg);
    border-radius: 4px;
    display: flex;
    padding: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* 左侧装饰线 */
.app-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-cyan);
}

.app-icon-wrap {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    flex-shrink: 0;
}

.app-icon {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: #222;
}

.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    /* 防止文字溢出 */
}

.app-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-meta {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: var(--star-gold);
    display: flex;
    gap: 2px;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tag {
    font-size: 12px;
    color: #64748b;
}

.download-btn {
    flex-shrink: 0;
    align-self: center;
    background: var(--btn-danger);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    margin-left: 8px;
    animation: btnBreath 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    animation: btnShine 3s infinite;
}

@keyframes btnBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes btnShine {
    0% { left: -60%; transition-property: left; }
    20%, 100% { left: 150%; transition-property: left; }
}

/* 小屏幕适配 (针对 iPhone SE 等 320px 宽度) */
@media (max-width: 375px) {
    .app-icon-wrap {
        width: 70px;
        height: 70px;
        margin-right: 10px;
    }

    .app-name {
        font-size: 16px;
    }

    .app-meta {
        font-size: 10px;
        gap: 2px;
    }

    .stars {
        font-size: 8px;
    }

    .download-btn {
        padding: 6px 12px;
        font-size: 13px;
        margin-left: 5px;
    }

    .tag {
        font-size: 9px;
    }
}