/* 引入外部资源 */
@import url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css');

/* 基础设置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    line-height: 1.6;
}

/* Tailwind 工具类扩展 */
.terminal-shadow {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.terminal-header-shadow {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.transition-colors-fast {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* 动画定义 */
@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* 终端窗口样式 */
.terminal-window {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background-color: #1a1a1a;
    color: #00ff00;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
}

.terminal-header {
    background-color: #333;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #444;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-title {
    flex: 1;
    font-size: 14px;
    color: #ccc;
}

.terminal-content {
    padding: 20px;
}

/* 表单样式 - 终端风格 */
.terminal-input {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px;
    color: #00ff00;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.terminal-input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.2);
}

.terminal-label {
    display: block;
    margin-bottom: 5px;
    color: #00cc66;
    font-size: 14px;
}

/* 按钮样式 - 终端风格 */
.terminal-btn {
    background-color: #222;
    border: 1px solid #444;
    color: #00ff00;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.terminal-btn:hover {
    background-color: #333;
    border-color: #666;
}

.terminal-btn-primary {
    background-color: #005500;
    border-color: #00ff00;
}

.terminal-btn-primary:hover {
    background-color: #006600;
}

.terminal-btn-danger {
    background-color: #550000;
    border-color: #ff0000;
    color: #ff6666;
}

.terminal-btn-danger:hover {
    background-color: #660000;
}

/* 链接样式 */
.terminal-link {
    color: #00ccff;
    text-decoration: none;
    transition: color 0.3s;
}

.terminal-link:hover {
    color: #66ddff;
    text-decoration: underline;
}

/* 表格样式 */
.terminal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.terminal-table th,
.terminal-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.terminal-table th {
    color: #00cc66;
    background-color: #1a1a1a;
}

.terminal-table tr:hover {
    background-color: #222;
}

/* 消息提示 */
.terminal-alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.terminal-alert-success {
    background-color: #002200;
    border: 1px solid #00ff00;
    color: #00ff99;
}

.terminal-alert-danger {
    background-color: #220000;
    border: 1px solid #ff0000;
    color: #ff9999;
}

/* 后台管理布局 */
.admin-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.admin-title {
    color: #00ff00;
    font-size: 24px;
}

.admin-nav {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}

.admin-nav a {
    margin-right: 15px;
}

/* 管理卡片 */
.admin-card {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.admin-card-title {
    color: #00cc66;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

/* 登录页面 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0a0a0a;
    padding: 20px;
}

.login-terminal {
    width: 100%;
    max-width: 400px;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-actions {
        margin-top: 10px;
    }
    
    .terminal-table th,
    .terminal-table td {
        padding: 8px;
        font-size: 13px;
    }
}


 body {
      background-color: #121212 !important;
      margin: 0;
      padding: 0;
      min-height: 100vh;
    }
    
    /* 导航栏容器 */
    .nav-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      padding: 0.5rem 1rem;
      box-sizing: border-box;
    }
    
    /* 移动端适配 */
    @media (max-width: 640px) {
      #terminal {
        height: 85vh !important;
        max-height: none !important;
        margin-top: 2.5rem !important;
      }
      
      /* 缩小移动设备上的导航元素 */
      .admin-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
      }
      
      .theme-btn {
        width: 16px;
        height: 16px;
      }
      
      .theme-switcher {
        gap: 2px;
        padding: 2px;
      }
    }