/* ========================================
   像素风格 - 代理查询页面
   ======================================== */

/* 公告栏 */
.pixel-announcement-bar {
    background: #ffec48;
    border: 3px solid #272861;
    border-radius: 4px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    box-shadow: 0 4px 0 #272861;
    position: relative;
}

.announcement-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #272861;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffec48;
    font-size: 1.5rem;
}

.announcement-text-scroll {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-text-scroll span {
    display: inline-block;
    font-weight: 600;
    color: #272861;
    font-size: 1.05rem;
    animation: scrollText 15s linear infinite;
}

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

/* 查询卡片主容器 */
.pixel-query-card {
    background: white;
    border: 4px solid #6c6eef;
    border-radius: 8px;
    box-shadow: 0 6px 0 #272861;
    overflow: hidden;
}

.pixel-card-header {
    background: #6c6eef;
    padding: 32px 24px;
    text-align: center;
    border-bottom: 4px solid #272861;
    position: relative;
}

.header-icon {
    width: 70px;
    height: 70px;
    background: #ffec48;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 3px solid #272861;
    box-shadow: 0 4px 0 #1a1a4d;
}

.header-icon i {
    font-size: 2rem;
    color: #272861;
}

.pixel-card-title {
    font-family: 'Rubik Mono One', 'JetBrains Mono', 'Consolas', '微软雅黑', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
    text-shadow: 2px 2px 0 #272861;
}

.pixel-card-subtitle {
    color: #ffec48;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.pixel-card-body {
    padding: 32px 24px;
}

/* 查询表单 */
.pixel-query-form {
    margin-bottom: 24px;
}

.pixel-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
    background: white;
    border: 3px solid #272861;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 4px 0 #272861;
}

.pixel-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    background: #6c6eef;
    border-radius: 4px;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 2px solid #272861;
}

.pixel-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 8px 12px;
    background: transparent;
    font-weight: 500;
    min-width: 0;
}

.pixel-input::placeholder {
    color: #9ca3af;
}

.pixel-btn {
    border: 3px solid #272861;
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'Consolas', '微软雅黑', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.pixel-btn-primary {
    background: #6c6eef;
    color: white;
    box-shadow: 0 4px 0 #272861;
}

.pixel-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #272861;
    background: #5a5cde;
}

.pixel-btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #272861;
}

/* 结果卡片基础样式 */
.pixel-result-card {
    border: 3px solid #272861;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 0 #272861;
}

.pixel-result-icon {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid #272861;
    font-size: 2.5rem;
}

.pixel-result-title {
    font-family: 'Rubik Mono One', 'JetBrains Mono', 'Consolas', '微软雅黑', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.pixel-result-message {
    font-size: 1.05rem;
    color: #6b7280;
    margin: 0;
}

/* 占位符卡片 */
.pixel-placeholder-card {
    background: #f9fafb;
}

.pixel-placeholder-card .pixel-result-icon {
    background: #e5e7eb;
    color: #9ca3af;
}

.pixel-placeholder-card .pixel-result-title {
    color: #6b7280;
}

/* 错误卡片 */
.pixel-error-card {
    background: #fef2f2;
}

.pixel-error-card .pixel-result-icon {
    background: #ef4444;
    color: white;
}

.pixel-error-card .pixel-result-title {
    color: #dc2626;
}

/* 成功卡片 */
.pixel-success-card {
    background: white;
    text-align: left;
    padding: 0;
    overflow: hidden;
}

.pixel-success-header {
    background: #10b981;
    padding: 24px;
    text-align: center;
    border-bottom: 3px solid #272861;
}

.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #10b981;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 700;
    border: 3px solid #272861;
    box-shadow: 0 3px 0 #047857;
    margin-bottom: 16px;
}

.success-badge i {
    font-size: 1.3rem;
}

.success-title {
    font-family: 'Rubik Mono One', 'JetBrains Mono', 'Consolas', '微软雅黑', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 0 #047857;
}

/* 代理信息展示 */
.pixel-agent-info {
    padding: 32px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 3px dashed #e5e7eb;
}

.pixel-agent-avatar {
    position: relative;
    flex-shrink: 0;
}

.pixel-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 4px solid #10b981;
    box-shadow: 0 4px 0 #272861;
    display: block;
}

.pixel-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: #e5e7eb;
    border: 4px solid #9ca3af;
    box-shadow: 0 4px 0 #272861;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #6b7280;
}

.pixel-avatar-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 36px;
    height: 36px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 900;
}

.pixel-agent-details {
    flex: 1;
    min-width: 0;
}

.pixel-agent-name {
    font-family: 'Rubik Mono One', 'JetBrains Mono', 'Consolas', '微软雅黑', monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: #272861;
    margin-bottom: 12px;
    word-break: break-all;
}

.pixel-agent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 徽章 */
.pixel-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid #272861;
    font-family: 'JetBrains Mono', 'Consolas', '微软雅黑', monospace;
}

.pixel-badge-primary {
    background: #6c6eef;
    color: white;
}

.pixel-badge-active {
    background: #10b981;
    color: white;
}

.pixel-badge-inactive {
    background: #ef4444;
    color: white;
}

/* 信息网格 */
.pixel-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
}

.pixel-info-item {
    background: #f9fafb;
    border: 3px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    transition: all 0.2s ease;
}

.pixel-info-item:hover {
    border-color: #6c6eef;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 #e5e7eb;
}

.pixel-info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', 'Consolas', '微软雅黑', monospace;
}

.pixel-info-label i {
    font-size: 1rem;
    color: #6c6eef;
}

.pixel-info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #272861;
    word-break: break-all;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pixel-announcement-bar {
        padding: 12px 16px;
        gap: 12px;
    }

    .announcement-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .announcement-text-scroll span {
        font-size: 0.95rem;
    }

    .pixel-card-header {
        padding: 24px 16px;
    }

    .header-icon {
        width: 60px;
        height: 60px;
    }

    .header-icon i {
        font-size: 1.6rem;
    }

    .pixel-card-title {
        font-size: 1.4rem;
    }

    .pixel-card-subtitle {
        font-size: 0.95rem;
    }

    .pixel-card-body {
        padding: 20px 16px;
    }

    .pixel-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .pixel-input-icon {
        width: 100%;
        height: 48px;
    }

    .pixel-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .pixel-result-card {
        padding: 24px 16px;
    }

    .pixel-result-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .pixel-result-title {
        font-size: 1.2rem;
    }

    .pixel-agent-info {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
    }

    .pixel-agent-name {
        font-size: 1.3rem;
    }

    .pixel-agent-meta {
        justify-content: center;
    }

    .pixel-info-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
    }

    .success-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .pixel-card-title {
        font-size: 1.2rem;
    }

    .pixel-agent-name {
        font-size: 1.1rem;
    }

    .pixel-avatar-img,
    .pixel-avatar-placeholder {
        width: 80px;
        height: 80px;
    }

    .pixel-avatar-placeholder {
        font-size: 2.5rem;
    }
}
