/* Push通知相关样式 */
.push-notification {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 75%;
    max-width: 320px;
    z-index: 999999;
    animation: slideIn 0.5s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.push-content {
    padding: 10px;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 8px;
    position: relative;
}

.icon-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
}

.push-icon {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    z-index: 0;
}

.notification-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    background-color: #FF3B30;
    border-radius: 9px;
    border: 2px solid #fff;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 0 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.push-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.push-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.push-title {
    font-weight: 600;
    font-size: 14px;
}

.push-time {
    color: #8E8E93;
    font-size: 12px;
}

.push-count {
    font-size: 13px;
    margin: 0;
}

.push-free {
    font-size: 13px;
    margin: 0;
    margin-bottom: 8px;
}

.push-button {
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
}

.push-button:hover {
    background: #0066D6;
}

.push-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #8E8E93;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight {
    color: #007AFF;
    font-weight: 600;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 移动端适配 */
@media (max-width: 480px) {
    .push-notification {
        width: calc(100% - 32px);
        margin: 0 16px;
        bottom: 20px;
        right: 0;
    }
}

/* 平板设备适配 */
@media (min-width: 481px) and (max-width: 768px) {
    .push-notification {
        width: 320px;
        bottom: 20px;
    }
} 