:root {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --success-color: #059669;
    --warning-color: #dc2626;
    --background-color: #f3f4f6;
    --text-color: #1f2937;
    --card-bg: #ffffff;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

/* 页面容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
}

/* 页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding: 40px 0 20px;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 0 0 30px 30px;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 选择文本样式 */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* 页面加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2em;
    color: var(--text-secondary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 15px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 命令块样式 */
.command {
    background-color: #303133;  /* 深色背景 */
    color: #ffffff;  /* 白色文字 */
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow-x: auto;
    margin: 15px 0;
    white-space: nowrap;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.command::before {
    content: '$';
    color: var(--primary-color);  /* 保持命令提示符为主题色 */
    margin-right: 10px;
    font-weight: bold;
}

.copy-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.copy-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .command {
        font-size: 14px;
    }

    .copy-btn {
        opacity: 1;
        font-size: 12px;
        padding: 4px 8px;
    }
}