    @font-face {
      font-family: 'CustomFont';
      src: url('https://cos.jsdmirror.com/1666963922.woff') format('woff');
      font-display: swap;
    }

/* 二次元风格CSS */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffbe76;
    --text-color: #2d3436;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
  font-family:-apple-system,BlinkMacSystemFont,"CustomFont",sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
    padding-bottom: 60px; /* 为固定页脚留出空间 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 二次元背景 */
.anime-bg {
    background-image: url('https://piccdn.com.cn/PC/983d2fac5b6e49551d3ac8c4b7000bf8.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.anime-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.5);
}

.card-header {
    border-bottom: none;
    padding: 1rem;
}

.card-body {
    padding: 1.5rem;
}

/* 按钮样式 */
.btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #ff5252;
    border-color: #ff5252;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}
a {
  text-decoration: none;
}
/* 表单样式 */
.form-control {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background: white;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* 侧边栏样式优化 */
.sidebar {
    background: linear-gradient(180deg, #343a40 0%, #495057 100%) !important;
    border-right: 1px solid #6c757d;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sidebar .nav-link {
    color: #f8f9fa !important;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 107, 107, 0.2) !important;
    color: white !important;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: #495057 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* 头像样式 */
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-md {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 警告框样式 */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.05));
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

/* 表格样式 */
.table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: #f8f9fa;
    color: #495057;
    border: none;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid #dee2e6;
}

.table tbody td {
    padding: 1rem;
    border-color: #e9ecef;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* 徽章样式 */
.badge {
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* 进度条样式 */
.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    transition: width 0.6s ease;
}

/* 模态框样式 */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
}

/* 确认图标样式 */
.confirm-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

/* 代码样式 */
.code-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
  font-family:-apple-system,BlinkMacSystemFont,"CustomFont",sans-serif;
    font-size: 0.9rem;
    color: #495057;
    position: relative;
}

.code-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.copy-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #e9ecef;
    color: #495057;
}

/* 网站头部样式 */
.site-header {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    text-align: center;
}

.site-header h1 {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.site-header p {
    color: #4ecdc4;
    font-size: 1.1rem;
    opacity: 0.8;
}

.site-header a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-header a:hover {
    color: #ff5252;
    text-decoration: underline;
}

/* 使用说明样式 */
.alert-primary {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
    border-radius: 15px;
}

.alert-primary .bi {
    color: #0d6efd;
}

.alert-primary h1, .alert-primary h2, .alert-primary h3, 
.alert-primary h4, .alert-primary h5, .alert-primary h6 {
    color: #0d6efd;
}

/
/* 页脚样式 - 固定在浏览器底部 */
.footer-bar {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    width: 100%;
    border-top: 1px solid #e9ecef;
    padding: 1rem;
    background-color: rgba(248, 249, 250, 0.95);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    font-size: 1rem;
}

.footer-bar a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bar a:hover {
    color: #ff5252;
    text-decoration: underline;
}

.footer-bar p {
    margin: 0;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 0.4rem 1.2rem;
    }
    
    /* 移动端页脚调整 */
    .footer-bar {
        font-size: 0.9rem;
        padding: 0.75rem;
        bottom: 5px;
    }
    
    body {
        padding-bottom: 50px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .confirm-icon {
        font-size: 2.5rem;
    }
    
    .avatar-lg {
        width: 100px;
        height: 100px;
    }
    
    .site-header {
        margin: 1rem 0;
        padding: 0.75rem;
    }
    
    /* 移动端页脚调整 */
    .footer-bar {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    body {
        padding-bottom: 50px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.5rem 1rem 1rem;
    }
}