/* 基础样式 */
body.bg {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: #495057;
    line-height: 1.6;
    padding: 20px 0;
}

/* 主容器 */
.container.bgw {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

/* 标题样式 */
h1 {
    color: #6c5ce7;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(108, 92, 231, 0.2);
}

h4 {
    color: #343a40;
    margin-top: 25px;
    font-weight: 600;
    border-left: 4px solid #6c5ce7;
    padding-left: 10px;
}

/* 分隔线 */
hr {
    border-top: 1px solid #e9ecef;
    margin: 20px 0;
}

/* 链接样式 */
a {
    color: #6c5ce7;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #5649c0;
    text-decoration: underline;
}

/* 预格式化文本 */
pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    font-size: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 表格样式 */
.table {
    width: 100%;
    margin-bottom: 20px;
}

.table-bordered {
    border: 1px solid #e9ecef;
}

.table th {
    background-color: #6c5ce7;
    color: white;
    font-weight: 500;
}

.table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table tr:hover {
    background-color: rgba(108, 92, 231, 0.1);
}

/* 页脚样式 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.text-muted {
    color: #6c757d;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container.bgw {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    pre {
        padding: 10px;
        font-size: 14px;
    }
}

/* 动画效果 */
a, .table tr {
    transition: all 0.3s ease;
}

/* 特殊链接效果 */
pre a {
    display: inline-block;
    padding: 5px 0;
    position: relative;
}

pre a:hover {
    text-decoration: none;
}

pre a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #6c5ce7;
    animation: underline 0.3s ease;
}

@keyframes underline {
    from { width: 0; }
    to { width: 100%; }
}

/* 基础样式 */
body.bg {
    background-image: url('https://app.zichen.zone/api/acg/api.php');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: #495057;
    line-height: 1.6;
    padding: 20px 0;
    position: relative;
}

/* 半透明遮罩，确保文字可读性 */
body.bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(248, 249, 250, 0.85);
    z-index: -1;
}

/* 主容器 */
.container.bgw {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(2px);
}

/* 图片来源标注 */
.image-source {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 1000;
}

.image-source a {
    color: #a5d8ff;
}

pre {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    border-left: 4px solid #6c5ce7;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
    overflow: hidden;
}

pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6c5ce7, #a55eea);
}

pre b {
    background: linear-gradient(to right, #6c5ce7, #a55eea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    display: inline-block;
    padding: 2px 0;
}

pre a {
    background: linear-gradient(to right, #6c5ce7, #a55eea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #a55eea;
    transition: all 0.3s ease;
}

pre a:hover {
    border-bottom: 1px solid #6c5ce7;
    text-shadow: 0 0 8px rgba(108, 92, 231, 0.3);
}

pre li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

pre li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6c5ce7;
    font-weight: bold;
}