* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f6f7;
    min-height: 100vh;
    color: #333;
}

/* 手机端 */
.container { padding: 16px; max-width: 640px; margin: 0 auto; }

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    flex: 1;
    padding-right: 12px;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.icon-btn {
    width: 32px;
    height: 32px;
    background: #f5f6f7;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
}

.icon-btn:active { background: #e8e9eb; }

/* 二维码框 */
.qr-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
}

.qr-panel.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.qr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.qr-overlay.show {
    opacity: 1;
    visibility: visible;
}

.qr-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

.qr-close:hover { background: #eee; color: #666; }

.qr-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

#qrcode { text-align: center; }
#qrcode img { border-radius: 8px; }

.qr-tip {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 12px;
}

.desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 10px;
}

.stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.stat-item { text-align: center; }
.stat-num { font-size: 20px; font-weight: 600; color: #333; }
.stat-label { font-size: 12px; color: #999; margin-top: 2px; }

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i { color: #5c7cfa; font-size: 16px; }

/* 网盘列表 */
.storage-list { display: flex; flex-direction: column; gap: 10px; }

.storage-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.storage-item:active { background: #fafafa; transform: scale(0.99); }

.storage-item.recommended {
    border: 2px solid #ff6600;
    background: linear-gradient(to right, #fff5f0, #fff);
    box-shadow: 0 2px 12px rgba(255, 102, 0, 0.15);
}

.storage-item.recommended::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6600, #ff8833, #ff6600);
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 3s ease-in-out infinite;
}

/* 夸克网盘推荐样式(移动端) */
.storage-item.recommended-quark {
    border: 2px solid #4a7cff;
    background: linear-gradient(to right, #f0f4ff, #fff);
    box-shadow: 0 2px 12px rgba(74, 124, 255, 0.15);
}

.storage-item.recommended-quark::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4a7cff, #6b93ff, #4a7cff);
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.storage-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.storage-info { flex: 1; min-width: 0; }
.storage-name { font-size: 15px; font-weight: 500; color: #333; }

.storage-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.storage-pwd {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #5c7cfa;
    font-weight: 500;
}

.storage-pwd i { font-size: 10px; }

.recommend-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #ff6600, #ff8833);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(255, 102, 0, 0.3);
}

.recommend-badge.quark {
    background: linear-gradient(135deg, #4a7cff, #6b93ff);
    box-shadow: 0 2px 4px rgba(74, 124, 255, 0.3);
}

.storage-btn {
    padding: 8px 16px;
    background: #5c7cfa;
    border-radius: 6px;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

/* 提示卡片 */
.tips-card {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 12px;
}

.tips-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

.tips-card p i { color: #5c7cfa; margin-right: 6px; }

/* 底部操作 */
.footer-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.footer-btn:active { background: #f0f0f0; }
.footer-btn i { font-size: 14px; }
.footer-btn .fa-weixin { color: #07c160; }

.copyright {
    text-align: center;
    font-size: 12px;
    color: #bbb;
    padding-bottom: 24px;
}

/* 友情链接 */
.friend-section { margin-top: 4px; }

.friend-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.friend-link {
    padding: 6px 14px;
    background: #f5f6f7;
    border-radius: 16px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

/* 电脑端 */
@media (min-width: 768px) {
    body { background: #eef0f2; padding: 40px 20px; }

    .container { max-width: 580px; }

    .card {
        border-radius: 16px;
        padding: 28px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .title { font-size: 22px; }
    .desc { font-size: 15px; margin-top: 12px; }

    .stats { gap: 40px; margin-top: 20px; padding-top: 20px; }
    .stat-num { font-size: 24px; }
    .stat-label { font-size: 13px; }

    .section-title { font-size: 15px; margin-bottom: 16px; }

    .storage-list { gap: 12px; }

    .storage-item {
        padding: 16px 20px;
        border-radius: 12px;
        gap: 16px;
    }

    .storage-item:hover {
        border-color: #ddd;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .storage-icon { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
    .storage-name { font-size: 16px; }
    .storage-meta { font-size: 13px; margin-top: 5px; }

    .storage-btn {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 8px;
    }

    .storage-item:hover .storage-btn {
        background: #4c6ef5;
    }

    .icon-btn:hover { background: #e8e9eb; color: #333; }

    .tips-card { padding: 16px 20px; border-radius: 12px; }
    .tips-card p { font-size: 14px; }

    .footer-actions { padding: 24px 0; gap: 24px; }
    .footer-btn { font-size: 14px; padding: 10px 16px; }
    .footer-btn:hover { background: #f0f0f0; color: #666; }

    .friend-link {
        padding: 8px 16px;
        font-size: 13px;
    }

    .friend-link:hover { background: #e8e9eb; color: #333; }
}

@media (min-width: 1024px) {
    body { padding: 60px 20px; }
    .container { max-width: 620px; }
    .card { padding: 32px; }
    .title { font-size: 24px; }
}
