/* 基础重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f2f2f2; /* 页面整体背景色 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
}

/* 移动端容器适配 */
.app-container {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    background-color: #f2f2f2; /* 与原图一致的浅灰色 */
    padding: 40px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 头部区域 */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.avatar-container {
    margin-bottom: 12px;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
    letter-spacing: 0.5px;
}

.profile-desc {
    text-align: center;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.profile-desc p {
    margin: 0;
}

.share-button {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.04);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.share-button:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.share-text {
    font-size: 13px;
    color: #777;
    margin-right: 6px;
}

.share-icon {
    opacity: 0.7;
}

/* 社交图标 */
.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 链接列表 */
.link-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 8px 16px 8px 8px;
    border-radius: 12px;
    text-decoration: none;
    color: #111;
    transition: transform 0.2s, background-color 0.2s;
}

.link-item:active {
    transform: scale(0.98);
    background-color: #f9f9f9;
}

.link-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-right: 14px;
    overflow: hidden;
}

/* 本地图片图标样式 */
.local-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

/* 占满整个背景的图标样式 (如京东) */
.local-icon-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 各种图标的背景色 (使用官方图标后背景可以统一为透明或白色) */
.bg-black, .bg-orange, .bg-blue, .bg-jd, .bg-taobao, .bg-xhs, .bg-wechat, .bg-alipay, .bg-ins, .bg-tg, .bg-wa, .bg-tiktok, .bg-line, .bg-fb {
    background-color: transparent;
}
.bg-transparent { background-color: transparent; }

/* 模块标题 */
.section-title {
    font-size: 14px;
    color: #888;
    margin: 16px 0 4px 8px;
    font-weight: 600;
}

.link-title {
    flex-grow: 1;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #222;
}

.nav-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.5;
}

/* 底部区域 */
.app-footer {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-text {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.report-link {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}

.report-link:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 400px) {
    .link-item {
        padding: 8px 12px 8px 8px;
    }
    .link-icon-box {
        width: 44px;
        height: 44px;
        margin-right: 10px;
    }
    .link-title {
        font-size: 14px;
    }
}

/* 加载遮罩层 */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none; /* 默认隐藏 */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 48px; height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B5CF6; /* 与 Link3 品牌色一致 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.loading-countdown {
    font-size: 14px;
    color: #888;
}

.loading-countdown span {
    color: #8B5CF6;
    font-weight: bold;
    margin: 0 4px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}