/**
 * 注意事项容器样式优化
 * 
 * @package ZPro-V5
 * @subpackage Notice-Container
 * @since 1.0.0
 */

/* 注意事项主容器 */
.container.py-5 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin: 20px auto;
    max-width: 800px;
}

/* 添加装饰性背景元素 */
.container.py-5::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.container.py-5::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(56, 239, 125, 0.08) 0%, transparent 70%);
    z-index: 0;
}

/* 确保内容在装饰元素之上 */
.container.py-5 > * {
    position: relative;
    z-index: 1;
}

/* 标题样式优化 */
.bg-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.bg-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 注意事项标题样式 */
.container.py-5 h4 {
    font-size: 24px;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.container.py-5 h4::before {
    content: '⚠️';
    font-size: 20px;
    animation: pulse 2s infinite;
}

/* 描述文字样式 */
.bg-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 20px;
    text-align: center;
    padding: 0 20px;
}

/* 重要提示文字样式 */
.container.py-5 h5 {
    font-size: 18px;
    font-weight: 600;
    color: #c0392b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    border: 2px solid #e74c3c;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
    position: relative;
    overflow: hidden;
}

.container.py-5 h5::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
    animation: shimmer 3s infinite;
}

/* 按钮容器样式 */
.bg-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* 按钮基础样式 */
.bg-btns .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

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

.bg-btns .btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 主要按钮样式 */
.bg-btns .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bg-btns .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
}

/* 成功按钮样式 */
.bg-btns .btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.bg-btns .btn-success:hover {
    background: linear-gradient(135deg, #0e8078 0%, #2dd865 100%);
    color: white;
}

/* 警告按钮样式 */
.bg-btns .btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.bg-btns .btn-warning:hover {
    background: linear-gradient(135deg, #e67ee0 0%, #e04357 100%);
    color: white;
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container.py-5 {
        margin: 15px;
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .bg-title {
        font-size: 24px;
    }
    
    .container.py-5 h4 {
        font-size: 20px;
    }
    
    .container.py-5 h5 {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .bg-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .bg-btns .btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .container.py-5 {
        margin: 10px;
        padding: 15px 10px;
    }
    
    .bg-title {
        font-size: 20px;
    }
    
    .container.py-5 h4 {
        font-size: 18px;
    }
    
    .container.py-5 h5 {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* 深色主题适配 */
[data-bs-theme='dark'] .container.py-5 {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme='dark'] .bg-title {
    color: #ecf0f1;
}

[data-bs-theme='dark'] .container.py-5 h4 {
    color: #e74c3c;
}

[data-bs-theme='dark'] .bg-desc {
    color: #bdc3c7;
}

[data-bs-theme='dark'] .container.py-5 h5 {
    background: linear-gradient(135deg, #3c1f1f 0%, #4a2626 100%);
    color: #e74c3c;
    border-color: #c0392b;
}

/* 可访问性增强 */
.container.py-5:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .container.py-5 {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .container.py-5::before,
    .container.py-5::after {
        display: none;
    }
    
    .bg-btns {
        display: none;
    }
}