/* 毛玻璃效果样式 */

/* 基础毛玻璃效果 */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.glass-effect:hover {
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 下拉刷新指示器 */
.pull-refresh-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: height 0.3s ease;
    overflow: hidden;
}

.pull-refresh-indicator.active {
    height: 120px;
}

.pull-refresh-indicator.refresh {
    height: 120px;
}

.pull-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--neon-blue);
}

.pull-text {
    color: var(--primary-text);
    font-weight: 500;
}

/* 查询结果区域 */
.result-section {
    margin-bottom: 60px;
}

.result-card {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-header h2 {
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--primary-text), var(--secondary-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.status-tag.danger {
    background-color: rgba(255, 42, 109, 0.2);
    color: var(--neon-red);
    border: 1px solid var(--neon-red);
}

.status-tag.success {
    background-color: rgba(5, 255, 161, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

.pulse-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    animation: pulse-animation 2s infinite;
}

.result-content {
    display: flex;
    padding: 30px;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px 5px var(--neon-blue);
    opacity: 0;
    animation: avatar-pulse 3s ease-in-out infinite;
}

.user-info {
    flex: 1;
}

.info-item {
    margin-bottom: 15px;
    opacity: 0;
}

.info-item .label {
    color: var(--secondary-text);
    margin-right: 10px;
    font-weight: 500;
}

.info-item .value {
    color: var(--primary-text);
}

.info-item .reason {
    color: var(--neon-red);
    font-weight: 500;
}

.safe-result {
    text-align: center;
    padding: 40px;
}

.safe-icon {
    font-size: 4rem;
    color: var(--neon-green);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(5, 255, 161, 0.5);
}

.safe-text p {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.safe-text .sub-text {
    font-size: 1rem;
    color: var(--secondary-text);
}

/* 云黑列表区域 */
.blacklist-section {
    margin-bottom: 60px;
}

.blacklist-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.blacklist-card {
    padding: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.blacklist-card:hover {
    transform: translateY(-5px);
}

.blacklist-card:hover .avatar-glow {
    opacity: 0.5;
}

.card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    position: relative;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    flex: 1;
}

.card-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.card-type {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.card-time {
    color: var(--secondary-text);
    font-size: 0.8rem;
}

.card-indicator {
    color: var(--secondary-text);
    transition: var(--transition);
}

.blacklist-card:hover .card-indicator {
    color: var(--neon-blue);
    transform: translateX(5px);
}

.back-to-search {
    text-align: center;
    margin-top: 30px;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-container {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-container.large {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.3rem;
    background: linear-gradient(to right, var(--primary-text), var(--secondary-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-button {
    background: transparent;
    border: none;
    color: var(--secondary-text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-button:hover {
    color: var(--primary-text);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 详情内容 */
.detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    position: relative;
}

.detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-basic h3 {
    margin-bottom: 10px;
    color: var(--primary-text);
}

.info-group {
    margin-bottom: 25px;
}

.info-group h4 {
    color: var(--secondary-text);
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.info-group p {
    color: var(--primary-text);
}

.evidence-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.glass-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.glass-image:hover {
    transform: scale(1.02);
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--neon-blue);
    border-right-color: var(--neon-purple);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    position: relative;
    margin-bottom: 20px;
}

.spinner-ring::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: var(--neon-purple);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-text {
    color: var(--primary-text);
    font-weight: 500;
}

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

@keyframes pulse-animation {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.05); opacity: 0.2; }
    100% { transform: scale(0.95); opacity: 0; }
}

@keyframes avatar-pulse {
    0% { opacity: 0.2; }
    50% { opacity: 0.5; }
    100% { opacity: 0.2; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .result-content {
        flex-direction: column;
    }
    
    .user-avatar {
        margin: 0 auto 20px;
    }
    
    .blacklist-cards {
        grid-template-columns: 1fr;
    }
}
