* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: #07c160;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.main-content {
    flex: 1;
    padding: 0.75rem;
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
}

.hero-section {
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.description {
    color: #666;
    font-size: 0.9375rem;
    margin-bottom: 0;
    text-align: center;
}

.hero-section {
    text-align: center;
    padding: 1rem 0;
}

.group-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #f0f0f0;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-section {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.region-image-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: none;
}

.image-placeholder {
    width: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #07c160;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
}

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

.stats-section {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stats-section h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.stat-card {
    background: #f7f7f7;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #07c160;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #999;
    font-size: 0.8125rem;
}

.footer {
    background: #f7f7f7;
    padding: 1rem;
    text-align: center;
    color: #999;
    font-size: 0.8125rem;
    border-top: 1px solid #e5e5e5;
}

.report-btn {
    position: fixed;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: #666;
    border: 1px solid #e5e5e5;
    border-radius: 8px 0 0 8px;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    z-index: 99;
}

.report-btn:hover {
    right: 0;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}

.report-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #999;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #666;
}

.close-btn svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 1.5rem;
}

/* 微信风格分享卡片 */
.share-card {
    background: #ffffff;
    border-radius: 12px;
    width: 300px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-header {
    background: linear-gradient(135deg, #07c160 0%, #10b981 100%);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.share-header h3 {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.share-icon {
    position: absolute;
    left: 16px;
    width: 24px;
    height: 24px;
    color: white;
    opacity: 0.9;
}

.share-icon svg {
    width: 100%;
    height: 100%;
}

.share-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.share-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.share-close svg {
    width: 14px;
    height: 14px;
    color: white;
}

.share-body {
    padding: 24px;
    background: #f7f7f7;
}

.share-card-inner {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.share-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}

.share-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.share-user-text {
    flex: 1;
}

.share-user-name {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px 0;
}

.share-user-desc {
    color: #07c160;
    font-size: 13px;
    margin: 0;
}

.share-qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qr-wrapper {
    position: relative;
    display: inline-block;
}

.qr-image {
    display: block;
    border-radius: 6px;
}

.qr-wechat-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.qr-wechat-icon svg {
    width: 28px;
    height: 28px;
}

.qrcode-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.share-info {
    text-align: center;
    margin-top: 12px;
}

.share-title {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
}

.share-desc {
    color: #999;
    font-size: 12px;
    margin: 0;
}

.share-footer {
    padding: 16px 24px 24px;
    background: #f7f7f7;
}

.share-action-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.save-btn {
    background: linear-gradient(135deg, #07c160 0%, #10b981 100%);
    color: white;
}

.save-btn:hover {
    background: linear-gradient(135deg, #06ad56 0%, #0ea572 100%);
}

.save-btn:active {
    transform: scale(0.98);
}

.share-action-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .hero-section {
        padding: 1rem;
    }
    
    .description {
        font-size: 0.875rem;
    }
    
    .group-avatar,
    .avatar-placeholder {
        width: 64px;
        height: 64px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 100%;
    }
    
    .action-buttons {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .action-btn {
        padding: 0.625rem 0.5rem;
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .action-btn span {
        word-break: break-word;
    }
    
    .report-btn {
        right: 0.25rem;
        padding: 0.375rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .report-icon {
        width: 20px;
        height: 20px;
    }
    
    .action-btn svg {
        width: 16px;
        height: 16px;
    }
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f8f8;
    border-top: 1px solid #e5e5e5;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.copy-btn {
    background: #07c160;
    color: white;
}

.copy-btn:hover {
    background: #06ad56;
}

.copy-btn:active {
    background: #059d48;
}

.qq-btn {
    background: #12b7f5;
    color: white;
}

.qq-btn:hover {
    background: #0ea5d9;
}

.qq-btn:active {
    background: #0d93c4;
}

/* 微信风格 Toast 提示 */
.wechat-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0, 0, 0, 0.75);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 9999;
}

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

.toast-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.toast-icon.success {
    background: #07c160;
}

.toast-icon.error {
    background: #ff4d4f;
}

.toast-icon.success::after {
    content: '\2714';
    color: white;
    font-weight: bold;
}

.toast-icon.error::after {
    content: '\2716';
    color: white;
    font-weight: bold;
}

.toast-message {
    color: white;
    font-size: 0.9375rem;
    text-align: center;
    white-space: nowrap;
}