/* ============================================================
   Steam 信息查询工具 - 独立样式表
   深色 Steam 主题，覆盖部分 layui 默认样式
   ============================================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #171a21;
    color: #c5c3c0;
    min-height: 100vh;
    padding: 20px;
}

/* ========== 主容器 ========== */
.container {
    max-width: 1200px;
    margin: 120px auto;
    background-color: #1b2838;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* ========== 标题 ========== */
h1 {
    color: #66c0f4;
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
}

.subtitle {
    text-align: center;
    color: #8f98a0;
    margin-bottom: 30px;
    font-size: 14px;
}

/* ========== 配置区块 ========== */
.config-group {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #2a3f5f;
    border-radius: 6px;
}

.config-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.config-row:last-child {
    margin-bottom: 0;
}

.config-label {
    width: auto;
    min-width: auto;
    margin-right: 6px;
    color: #8f98a0;
    white-space: nowrap;
}

/* ========== checkbox 选项 ========== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ========== 输入组 ========== */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* ========== 覆盖 layui 输入框为深色主题 ========== */
.layui-input {
    background-color: #171a21 !important;
    border: 1px solid #3d4f6f !important;
    color: #c5c3c0 !important;
    border-radius: 4px;
    font-size: 14px;
}

.layui-input:focus {
    outline: none;
    border-color: #66c0f4 !important;
}

/* API 密钥输入框（与 API 地址同行，收紧宽度） */
.api-key-label {
    margin-left: 16px;
}
.api-key-input {
    max-width: 180px;
}

/* ========== 覆盖 layui 按钮为 Steam 蓝风格 ========== */
.layui-btn {
    background-color: #66c0f4;
    border-color: #66c0f4;
    color: #000;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.layui-btn:hover {
    background-color: #4fa5d4;
    border-color: #4fa5d4;
    color: #000;
}

.layui-btn[disabled] {
    background-color: #4a6a8a;
    border-color: #4a6a8a;
    cursor: not-allowed;
}

/* ========== 结果区 ========== */
.result {
    background-color: #2a3f5f;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    display: none;
}

.result.show {
    display: block;
}

.result h2 {
    color: #66c0f4;
    margin-bottom: 16px;
    font-size: 18px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #3d4f6f;
}

.result-item:last-child {
    border-bottom: none;
}

.label {
    color: #8f98a0;
}

.value {
    font-weight: 600;
}

.success {
    color: #66c0f4;
}

.error {
    color: #ff6b6b;
}

/* ========== 代码块 ========== */
pre {
    margin-top: 16px;
    padding: 12px;
    background-color: #171a21;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ========== 加载状态 ========== */
.loading {
    text-align: center;
    color: #66c0f4;
    margin-top: 20px;
    display: none;
}

.loading.show {
    display: block;
}

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

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 192, 244, 0.3);
    border-radius: 50%;
    border-top-color: #66c0f4;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* ========== 标签页 ========== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 16px;
    background-color: #3d4f6f;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    color: #c5c3c0;
}

.tab.active {
    background-color: #66c0f4;
    color: #000;
}

.tab:hover {
    background-color: #4a6a8a;
}

.tab.active:hover {
    background-color: #4fa5d4;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== 通用隐藏类 ========== */
.hidden {
    display: none !important;
}

/* ========== 状态徽章 ========== */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.online {
    background-color: #5FB878;
    color: #fff;
}

.status-badge.offline {
    background-color: #FF5722;
    color: #fff;
}

/* ========== 页面版权 ========== */
.footer {
    text-align: center;
    padding: 20px 0 10px;
    margin-top: 30px;
    border-top: 1px solid #2a3f5f;
    color: #8f98a0;
    font-size: 12px;
}
.footer p {
    margin: 4px 0;
}
.footer-sub {
    font-size: 11px;
    opacity: 0.7;
}

/* ========== 覆盖 layui layer 提示框（白底深字，避免继承页面浅色） ========== */
.layui-layer-content {
    color: #333 !important;
}

.layui-layer-title {
    color: #333 !important;
}

.layui-layer-btn a {
    color: #333 !important;
}
/*昆仑山修炼人QQ1223344751/*
