/* 液态玻璃效果浮窗样式 */
.liquid-glass-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-glass-modal.active {
    opacity: 1;
    visibility: visible;
}

.liquid-glass-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.liquid-glass-container {
    position: relative;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    margin: 20px;
    transform: scale(0.8) translateY(40px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.liquid-glass-modal.animate .liquid-glass-container {
    transform: scale(1) translateY(0);
}

.liquid-glass-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 液态效果背景 */
.liquid-glass-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: liquidFlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquidFlow {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: rotate(90deg) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: rotate(180deg) scale(1);
        opacity: 0.3;
    }
    75% {
        transform: rotate(270deg) scale(1.1);
        opacity: 0.5;
    }
}

.liquid-glass-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    /* 增加点击区域 */
    padding: 8px;
    /* 确保在小屏幕上也容易点击 */
    min-width: 48px;
    min-height: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.liquid-glass-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.liquid-glass-close:active {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

.liquid-glass-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.liquid-glass-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.liquid-glass-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.liquid-glass-body {
    position: relative;
    z-index: 2;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-value {
    display: block;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    word-break: break-all;
}

.contact-copy {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    margin-left: 12px;
    flex-shrink: 0;
}

.contact-copy:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.liquid-glass-footer {
    text-align: center;
    margin-top: 32px;
    position: relative;
    z-index: 2;
}

.liquid-glass-footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .liquid-glass-container {
        width: 95%;
        margin: 10px;
    }
    
    .liquid-glass-content {
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .liquid-glass-close {
        top: 8px;
        right: 8px;
        width: 52px;
        height: 52px;
        /* 在移动端增大点击区域 */
        min-width: 52px;
        min-height: 52px;
        padding: 10px;
    }
    
    .liquid-glass-header h3 {
        font-size: 24px;
    }
    
    .liquid-glass-header p {
        font-size: 14px;
    }
    
    .contact-item {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .contact-value {
        font-size: 15px;
    }
    
    .contact-copy {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .liquid-glass-content {
        padding: 20px 16px;
    }
    
    .liquid-glass-header {
        margin-bottom: 24px;
    }
    
    .liquid-glass-header h3 {
        font-size: 22px;
    }
    
    .contact-item {
        padding: 14px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .contact-info {
        margin-bottom: 8px;
    }
    
    .contact-copy {
        margin-left: 0;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .liquid-glass-content {
        background: rgba(255, 255, 255, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.4);
    }
    
    .contact-item {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .liquid-glass-modal,
    .liquid-glass-container,
    .liquid-glass-close,
    .contact-item,
    .contact-copy {
        transition: none;
    }
    
    .liquid-glass-content::before {
        animation: none;
    }
    
    .contact-item::before {
        display: none;
    }
}