:root {
    --primary-color: #4361ee;
    --primary-gradient: linear-gradient(135deg, #4361ee, #3a0ca3);
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --success-gradient: linear-gradient(135deg, #4cc9f0, #4895ef);
    --danger-color: #f72585;
    --danger-gradient: linear-gradient(135deg, #f72585, #b5179e);
    --warning-color: #f8961e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    background: #f0f2f5 url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%234361ee" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.7;
    min-height: 100vh;
    padding: 30px 0;
}

.container {
    max-width: 1000px;
    padding: 0 20px;
}

/* 标题样式 */
header {
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

header h1 {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

header p.lead {
    color: var(--gray-color);
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 40px;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-header {
    border-bottom: none;
    padding: 25px 30px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.card-header.bg-primary {
    background: var(--primary-gradient) !important;
    position: relative;
    overflow: hidden;
}

.card-header.bg-primary:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
    opacity: 0.6;
}

.card-header.bg-success {
    background: var(--success-gradient) !important;
    position: relative;
    overflow: hidden;
}

.card-header.bg-danger {
    background: var(--danger-gradient) !important;
    position: relative;
    overflow: hidden;
}

.card-body {
    padding: 30px;
}

/* 按钮样式 */
.btn {
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.btn-yellow-gradient {
    background: linear-gradient(135deg, #ffd700, #ff9500);
    border: none;
    color: #333;
}

.btn-yellow-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.5);
    color: #333;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: none;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    color: #333;
    transform: translateY(-2px);
}

/* 表单样式 */
.form-label {
    font-weight: 600;
    margin-bottom: 12px;
    color: #495057;
    font-size: 1.05rem;
}

.form-control {
    padding: 14px 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
    background-color: #fff;
}

.input-group {
    border-radius: 12px;
    overflow: hidden;
}

.input-group .form-control {
    border-radius: 12px 0 0 12px;
}

.input-group .btn {
    border-radius: 0 12px 12px 0;
    padding: 14px 20px;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    padding: 0 15px;
}

/* 进度条样式 */
.progress {
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    background-color: #e9ecef;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.progress-bar:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 日志样式 */
pre {
    background-color: #2d3748;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

pre::-webkit-scrollbar {
    width: 10px;
}

pre::-webkit-scrollbar-track {
    background: #4a5568;
    border-radius: 5px;
}

pre::-webkit-scrollbar-thumb {
    background: #718096;
    border-radius: 5px;
}

pre::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* 状态图标 */
.text-success {
    color: #10b981 !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-muted {
    color: #94a3b8 !important;
}

/* 警告和提示框 */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.alert:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.alert-success:before {
    background-color: #10b981;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.alert-danger:before {
    background-color: #ef4444;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.alert-warning:before {
    background-color: #f59e0b;
}

/* 列表组 */
.list-group-item {
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    padding: 18px 22px;
    transition: var(--transition);
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.badge {
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* 页脚 */
footer {
    padding: 30px 0;
    text-align: center;
    color: var(--gray-color);
    font-size: 1rem;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 1.5px;
    opacity: 0.5;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.card, .alert {
    animation: fadeIn 0.6s ease-out;
}

.badge.bg-success {
    animation: pulse 2s infinite;
}

/* 响应式调整 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    .card-header {
        padding: 20px 25px;
    }
    
    .card-body {
        padding: 25px;
    }
    
    .btn {
        padding: 12px 25px;
    }
}

/* 自定义图标样式 */
.icon-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* 系统信息卡片特殊样式 */
.system-info-card {
    position: relative;
    overflow: hidden;
}

.system-info-card:after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, rgba(67, 97, 238, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(67, 97, 238, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.loaded .loading-overlay {
    opacity: 0;
    pointer-events: none;
}

/* 特殊效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.highlight-text {
    background: linear-gradient(120deg, rgba(67, 97, 238, 0.2) 0%, rgba(67, 97, 238, 0.2) 100%);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 特殊按钮效果 */
.btn-glow {
    position: relative;
}

.btn-glow:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 100%;
    top: 0;
    left: -40px;
    background: linear-gradient(to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.8) 50%, 
        rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: glow 3s infinite;
}

@keyframes glow {
    0% { left: -40px; }
    40% { left: 130%; }
    100% { left: 130%; }
}

/* 视频卡片样式 */
.video-card .card-body {
    padding-bottom: 0;
}

.video-description {
    background-color: #f8f9fa;
    margin: 15px -30px 0;
    padding: 15px 30px;
    border-top: 1px solid #eaeaea;
    position: relative;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.video-description:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-gradient);
}

.video-description p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #495057;
    display: flex;
    align-items: center;
}

.video-description i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.video-links {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
    text-align: center;
}

.video-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card .card-header {
    height: 60px;
    display: flex;
    align-items: center;
}

.video-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-description p {
    height: 50px;
    display: flex;
    align-items: center;
}

.video-description {
    margin-top: auto;
}

.video-links a {
    display: inline-block;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    padding: 8px 0;
    width: 33%;
    border-radius: 8px;
}

.video-links a:hover {
    background-color: rgba(67, 97, 238, 0.1);
    transform: translateY(-3px);
    color: var(--primary-color);
}

.video-links i {
    display: block;
    font-size: 1.5rem;
    margin: 0 auto 5px;
    color: var(--primary-color);
}

.video-links span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
}
