/**
 * 名片展示页面样式
 * 个人名片系统 v3.1 Linktree Style
 * 
 * @author 开发团队
 * @version 3.1
 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(189deg, #e0bbbb 0%, #6bb890 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal[style*="display: block"] {
    display: flex !important;
}

.modal-content {
    background-color: #fefefe;
    margin: 0;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 20px;
    position: relative;
    text-align: center;
    animation: slideDown 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 名片容器 - 流体布局 */
.card-container {
    max-width: 680px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px 20px 40px; /* 不再为悬浮按钮预留额外空间 */
    align-items: stretch;
}

/* 顶部操作区 */
.top-actions {
    position: absolute;
    top: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.top-actions-left {
    left: 20px;
    right: auto;
}

.top-actions-right {
    right: 20px;
    left: auto;
}

.icon-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent; /* 移除手机端点击方块高亮 */
    backdrop-filter: blur(5px);
    transition: all 0.2s;
}

.icon-btn:focus {
    outline: none;
}

/* 仅桌面端启用 hover 放大效果 */
@media (hover: hover) and (pointer: fine) {
    .icon-btn:hover {
        background: rgba(255,255,255,0.4);
        transform: scale(1.1);
    }
}

/* 用户菜单容器 */
.user-menu-container {
    position: relative;
    display: inline-block;
}

/* 用户菜单下拉框 */
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 8px;
    display: none;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: menuSlideDown 0.2s ease;
}

.user-menu-dropdown.show {
    display: block;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 用户菜单项 */
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #2d3748;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.user-menu-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.user-menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.user-menu-item:hover svg {
    opacity: 1;
}

.user-menu-item span {
    flex: 1;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .user-menu-dropdown {
        right: 0;
        min-width: 160px;
    }
    
    .user-menu-item {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .top-actions-right {
        gap: 8px;
    }
}

/* 错误页面 */
.error-page, .password-page {
    text-align: center;
    color: white;
    margin-top: 100px;
}

.error-content, .password-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    margin: 0 auto;
}

/* 密码表单 */
.password-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.password-form input {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

/* 名片主体 */
.business-card {
    background: transparent;
    box-shadow: none;
    border: none;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 头部区域 */
.card-header {
    background: transparent;
    border: none;
    padding: 70px 0 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    overflow: visible;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #fff;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 600;
}

.avatar-vip-badge {
    position: absolute;
    right: 4px;
    top: 4px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f172a;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 14px rgba(249, 168, 38, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.85);
    z-index: 2;
}

.identity h1 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.identity .title {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 400;
}

.username-link {
    margin-top: 12px;
}

.username-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
}

.username-link a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.username-link a:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 简介区域 - 毛玻璃效果 */
.about {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.about-head { display: none; }

/* 视频区域 */
.video-section {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 联系方式图标行 */
.contacts {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 0 20px 0;
    flex-wrap: wrap;
}

.contact-item {
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent; /* 移除手机端点击方块高亮 */
}

.contact-item:focus {
    outline: none;
}

.contact-item .icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.contact-item .icon svg {
    width: 22px;
    height: 22px;
}

/* 仅在支持 hover 的设备上启用放大效果，避免手机端图标放大后不恢复 */
@media (hover: hover) and (pointer: fine) {
    .contact-item .icon:hover {
        background: rgba(255,255,255,0.4);
        transform: scale(1.1);
    }
}

/* 点击时的轻微放大反馈，由 JS 添加/移除该类 */
.tapping {
    transform: scale(1.08);
}

.contact-item .info, .contact-item .label, .contact-item .actions, .contact-item button {
    display: none;
}

/* 电话操作弹层（拨打 / 复制） */
.phone-sheet {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
}

.phone-sheet.show {
    display: flex;
}

.phone-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.phone-sheet-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 20px auto;
    background: #ffffff;
    border-radius: 16px 16px 12px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    padding: 16px 20px 8px 20px;
    box-sizing: border-box;
}

.phone-sheet-title {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 4px;
}

.phone-sheet-number {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.phone-sheet-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.phone-sheet-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
}

.phone-sheet-btn:not(.primary) {
    background: #f3f4f6;
    color: #111827;
}

.phone-sheet-btn:active {
    transform: scale(0.97);
}

.phone-sheet-cancel {
    width: 100%;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    padding: 6px 0 2px 0;
    margin-top: 2px;
    cursor: pointer;
}

/* 社交链接按钮 */
.socials {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #fff;
}

.social-btn img, .social-btn svg {
    position: absolute;
    left: 20px;
    width: 24px;
    height: 24px;
}

/* 底部按钮（作为内容的一部分） */
.card-footer {
    margin-top: 16px;
}

.card-footer .footer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    min-width: 0;
    flex-direction: row;
}

.footer-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.4);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    /* 防止初始渲染重叠 */
    position: relative;
    min-width: 120px;
    width: auto;
    box-sizing: border-box;
    /* 确保按钮内容正确对齐 */
    justify-content: center;
}

.footer-btn.primary {
    background: rgba(0,0,0,0.7);
    border-color: rgba(255,255,255,0.25);
}

.footer-btn.secondary {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}

.footer-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.footer-btn.primary:hover {
    background: rgba(0,0,0,0.85);
}

.footer-btn.secondary:hover {
    background: rgba(255,255,255,0.3);
}

.footer-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.footer-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* 底部广告区 */
.card-ad-section {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.card-ad-label {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.25);
    margin-bottom: 8px;
}

.card-ad-content {
    font-size: 14px;
    color: #111827;
}

.card-ad-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.card-ad-image-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.card-ad-image-link:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.card-ad-image-link:active {
    transform: scale(0.98);
}

.card-ad-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    max-height: 300px;
    object-fit: contain;
}

/* 选项卡样式 */
.card-tabs-section {
    margin-top: 24px;
}

.card-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.card-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.card-tab:hover {
    color: rgba(255, 255, 255, 0.9);
}

.card-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

.tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.card-tab-content {
    display: none;
}

.card-tab-content.active {
    display: block;
}

/* 商品网格 */
.products-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.products-grid[data-per-row="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.products-grid[data-per-row="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.products-grid[data-per-row="4"] {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .products-grid[data-per-row="2"],
    .products-grid[data-per-row="3"],
    .products-grid[data-per-row="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid[data-per-row="2"],
    .products-grid[data-per-row="3"],
    .products-grid[data-per-row="4"] {
        grid-template-columns: 1fr;
    }
}

/* 商品卡片 */
.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.product-image.placeholder svg {
    width: 60px;
    height: 60px;
}

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #e53e3e;
    margin-bottom: 4px;
}

.product-category {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* 商品分页 */
.products-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pagination-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* 商品详情弹窗 */
.product-detail-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding-top: 32px;
}

/* 商品详情关闭按钮，避免与图片重叠 */
.product-detail-modal .close {
    top: 10px;
    right: 16px;
    z-index: 5;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.product-detail-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    border: 2px solid transparent;
}

.product-thumbnails img:hover {
    opacity: 0.8;
}

.product-thumbnails img.active {
    opacity: 1;
    border-color: #667eea;
}

.product-detail-info h2 {
    font-size: 24px;
    margin: 0 0 16px 0;
    color: #333;
}

.product-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #e53e3e;
    margin-bottom: 16px;
}

.product-detail-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 16px;
    white-space: pre-wrap;
}

.product-detail-category,
.product-detail-platform {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.product-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.product-tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.product-detail-actions {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}

.btn-primary {
    background: #333;
    color: #fff;
    border-radius: 50px;
    padding: 14px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #000;
}

.btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* 提示框 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 10001;
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 底部文字链接区域 */
.card-bottom-links {
    margin-top: 24px;
    padding: 16px 0 8px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.card-bottom-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    margin: 0 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.card-bottom-link:hover {
    color: #ffffff;
}

/* 举报弹窗 */
.report-modal {
    max-width: 480px;
    width: 90%;
    padding: 24px 24px 20px;
    text-align: left;
}

.report-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f2933;
}

.report-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.report-modal .form-group {
    margin-bottom: 14px;
}

.report-modal .form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #4b5563;
}

.report-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: #4b5563;
}

.report-type-group label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.report-modal input[type="text"],
.report-modal textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.report-modal input[type="text"]:focus,
.report-modal textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.25);
}

.report-modal textarea {
    resize: vertical;
    min-height: 80px;
}

.report-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    margin-bottom: 10px;
}

.report-modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.report-modal .btn-cancel {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 14px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.report-modal .btn-cancel:hover {
    background: #f3f4f6;
    color: #374151;
}

@media (max-width: 480px) {
    .report-modal {
        padding: 20px 16px 16px;
    }
}

/* VIP弹窗样式 */
/* VIP弹窗 - 成熟美观的设计 */
.vip-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: vipPopupFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vipPopupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.vip-popup-container {
    width: 100%;
    max-width: 520px;
    animation: vipPopupSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vipPopupSlideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.vip-popup-content {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.vip-popup-header {
    position: relative;
    padding: 24px 28px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.vip-popup-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.vip-popup-icon svg {
    color: #ffffff;
}

.vip-popup-title {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.vip-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.vip-popup-close svg {
    color: #ffffff;
    transition: transform 0.2s ease;
}

.vip-popup-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.vip-popup-close:hover svg {
    transform: rotate(90deg);
}

.vip-popup-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 180px);
}

.vip-popup-text {
    color: #1f2937;
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    letter-spacing: 0.01em;
}

.vip-popup-footer {
    padding: 20px 28px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    justify-content: flex-end;
}

.vip-popup-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.02em;
}

.vip-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.vip-popup-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 移动端优化 */
@media (max-width: 480px) {
    .vip-popup-container {
        max-width: 100%;
    }
    
    .vip-popup-content {
        border-radius: 16px;
        max-height: 90vh;
    }
    
    .vip-popup-header {
        padding: 20px 20px 16px;
    }
    
    .vip-popup-icon {
        width: 40px;
        height: 40px;
    }
    
    .vip-popup-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .vip-popup-title {
        font-size: 18px;
    }
    
    .vip-popup-close {
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
    }
    
    .vip-popup-body {
        padding: 24px 20px;
        max-height: calc(90vh - 160px);
    }
    
    .vip-popup-text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .vip-popup-footer {
        padding: 16px 20px 20px;
    }
    
    .vip-popup-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

/* 响应式 */
@media (max-width: 480px) {
    .card-container {
        padding: 20px 15px 100px;
    }
    
    .identity h1 {
        font-size: 22px;
    }
    
    .social-btn {
        padding: 14px 16px;
        font-size: 15px;
    }

    .card-footer {
        margin-top: 24px;
    }

    .card-footer .footer-actions {
        gap: 8px;
        justify-content: center;
        width: 100%;
    }

    .footer-btn {
        padding: 11px 16px;
        font-size: 13px;
        gap: 5px;
        min-width: 100px;
    }

    .footer-btn svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 360px) {
    .footer-btn {
        padding: 10px 14px;
        font-size: 12px;
        min-width: 90px;
    }
    
    .footer-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* 搜索弹窗样式 */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.search-modal.active {
    display: flex;
}

.search-panel {
    width: min(900px, 100%);
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f7fb;
    border-radius: 999px;
    padding: 10px 14px;
}

.search-input input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    outline: none;
}

.search-close {
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px;
    color: #6b7280;
    transition: color 0.2s;
}

.search-close:hover {
    color: #111827;
}

.search-results {
    padding: 12px 16px;
    overflow: auto;
}

.search-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.search-card {
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 10px;
    background: #fff;
    transition: all 0.15s ease;
    cursor: pointer;
}

.search-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.search-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}

.search-info {
    flex: 1;
    min-width: 0;
}

.search-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #111827;
    font-weight: 600;
}

.search-info p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-more {
    display: flex;
    justify-content: center;
    padding: 12px 0;
}

.search-more button {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.2s;
}

.search-more button:hover {
    background: #f5f7fb;
    border-color: #cbd5e0;
}

@media (max-width: 768px) {
    .search-panel {
        width: 100%;
    }
    
    .search-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}


