/* 游戏查询系统样式文件 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* 查询卡片样式 */
.query-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* 表单样式 */
.query-form {
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

/* 输入框样式 */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

input[type="text"]:hover, input[type="password"]:hover {
    border-color: #c6d0dc;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    white-space: nowrap;
}

/* 桌面端按钮悬停效果 */
@media (hover: hover) {
    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-copy {
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    margin-left: 10px;
}

.btn-copy:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* 结果显示样式 */
.result {
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.result-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 500;
}

.result-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 用户信息样式 */
.user-info {
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
}

.user-info h3 {
    font-size: 16px;
    color: #495057;
    margin-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.user-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #6c757d;
}

.user-info strong {
    color: #495057;
}

/* 联系信息样式 */
.contact-info {
    background-color: #fff3cd;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

.contact-info h3 {
    font-size: 16px;
    color: #856404;
    margin-bottom: 12px;
}

.wechat-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wechat-label {
    font-weight: 500;
    color: #856404;
}

.wechat-id {
    font-family: 'Courier New', monospace;
    background-color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
    font-weight: bold;
    color: #856404;
}

/* 管理员链接样式 */
.admin-link {
    text-align: center;
}

.admin-link a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.admin-link a:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

/* 登录表单样式 */
.login-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    border: 1px solid #f0f0f0;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
}

/* 管理面板样式 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.admin-header h1 {
    font-size: 24px;
    color: #2c3e50;
}

.config-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.config-section h3 {
    font-size: 18px;
    color: #495057;
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-col {
    flex: 1;
}

/* 提示消息样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (min-width: 576px) {
    .input-group {
        flex-direction: row;
        align-items: stretch;
    }
    
    .input-group input {
        flex: 1;
    }
    
    .input-group button {
        flex-shrink: 0;
    }
}

@media (max-width: 575px) {
    body {
        padding: 10px;
    }
    
    .query-card, .login-card {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .wechat-info {
        justify-content: flex-start;
    }
    
    .btn-copy {
        margin-left: 8px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .query-card, .login-card {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    input[type="text"], input[type="password"], .btn {
        font-size: 14px;
        padding: 12px 14px;
    }
}

/* 加载状态样式 */
.loading {
    display: inline-block;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}