/* 高档飘窗样式 */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    /* transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); */
    padding: 20px;
    box-sizing: border-box;
}

/* 防止内层元素吞掉关闭按钮事件，给模态容器明确的指针事件处理 */
.premium-modal {
    pointer-events: auto;
}

.premium-modal-overlay {
    pointer-events: auto;
}

.premium-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.premium-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 580px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    /* transform: scale(0.8) translateY(50px); */
    /* transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); */
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.premium-modal-overlay.active .premium-modal {
    /* transform: scale(1) translateY(0); */
}

/* 关闭按钮 */
.premium-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100; /* 提升层级，避免偶发被装饰层遮挡 */
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.premium-modal-close:hover {
    background: #f97316;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.premium-modal-close i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.premium-modal-close:hover i {
    transform: rotate(90deg);
}

/* 头部装饰 */
.premium-modal-header {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 120px 24px 40px; /* 为绝对定位的图标预留顶部空间 */
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* 确保头部装饰不遮挡按钮的点击 */
.premium-modal-header::before,
.premium-modal-header::after {
    pointer-events: none;
}

.premium-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    /* animation: float 6s ease-in-out infinite; */
}

.premium-modal-header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    /* animation: float 4s ease-in-out infinite reverse; */
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.premium-modal-icon {
    width: 84px;
    height: 84px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: absolute; /* 固定图标相对头部位置，避免被内容顶下去 */
    top: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    /* animation: pulse 2s infinite; */
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.premium-modal-icon i {
    font-size: 36px;
    color: white;
}

.premium-modal-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

/* 内容区域 */
.premium-modal-content {
    padding: 40px 30px 20px;
    text-align: center;
    position: relative;
    flex: 1;
}

.service-announcement {
    margin-bottom: 30px;
}

.announcement-date {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    color: #92400e;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #fcd34d;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-highlights {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #fed7aa;
    position: relative;
    overflow: hidden;
}

.service-highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #ea580c, #f97316);
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.service-highlights h4 {
    color: #ea580c;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #374151;
    font-weight: 500;
}

.highlight-list li i {
    color: #f97316;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* 按钮区域 */
.premium-modal-actions {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-premium {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-secondary:hover {
    border-color: #f97316;
    color: #f97316;
    background: rgba(249, 115, 22, 0.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .premium-modal {
        width: 96%;
        margin: 12px;
        max-height: 92vh;
    }
    
    .premium-modal-header {
        padding: 88px 16px 18px; /* 为绝对定位图标留空间，避免与标题重叠 */
        min-height: 200px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
    }
    
    .premium-modal-content {
        padding: 18px 16px 12px;
    }
    
    .premium-modal-actions {
        padding: 12px 16px 16px;
        flex-direction: column;
    }
    
    .premium-modal-title {
        font-size: 20px;
        margin-top: 6px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .premium-modal-icon {
        width: 64px;
        height: 64px;
        top: 18px; /* 更靠上，避免与标题重叠 */
    }
    
    .premium-modal-icon i {
        font-size: 28px;
    }
    
    .btn-premium,
    .btn-secondary {
        width: 100%;
        margin: 5px 0;
    }
}

/* 确保按钮在小屏幕上可见 */
@media (max-height: 700px) {
    .premium-modal {
        max-height: 96vh;
    }
    
    .premium-modal-header {
        padding: 84px 16px 14px; /* 小高度时也确保图标与标题不重叠 */
        min-height: 190px;
    }
    
    .premium-modal-content {
        padding: 16px 16px 10px;
    }
    
    .premium-modal-actions {
        padding: 10px 16px 14px;
    }
    
    .premium-modal-icon {
        width: 60px;
        height: 60px;
        top: 16px;
        margin-bottom: 10px;
    }
    
    .premium-modal-icon i {
        font-size: 26px;
    }
    
    .premium-modal-title {
        font-size: 20px;
    }
    
    .service-title {
        font-size: 17px;
    }
}

@media (min-width: 992px) {
  .premium-modal {
    max-width: 560px; /* 进一步收窄 */
  }
  .premium-modal-header {
    padding: 84px 18px 22px; /* 橙色区域再缩小 */
    min-height: 170px;
  }
  .premium-modal-icon {
    width: 68px;
    height: 68px;
    top: 18px; /* 更靠近顶部 */
  }
  .premium-modal-title {
    font-size: 22px;
  }
  .premium-modal-content {
    padding: 18px 18px 12px;
  }
  .announcement-date {
    font-size: 13px;
    padding: 6px 12px;
  }
  .service-title {
    font-size: 18px; /* 单行显示 */
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .service-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .service-highlights {
    padding: 16px;
    margin: 14px 0;
  }
  .service-highlights h4 {
    margin-bottom: 8px;
  }
  .highlight-list {
    display: block; /* 每个一行 */
  }
  .highlight-list li {
    padding: 6px 0;
    font-size: 14px;
  }
  .premium-modal-actions {
    padding: 12px 18px 16px;
    }
}