/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1b2838;
    color: #c7d5e0;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 粒子背景 */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 头部动画 */
.header-animation {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 1px solid #2a475e;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: #66c0f4;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: #8f98a0;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* 头部统计 */
.header-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: rgba(42, 71, 94, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: rgba(42, 71, 94, 0.8);
    transform: translateY(-3px);
}

.stat-item i {
    color: #66c0f4;
    font-size: 1.2rem;
}

.stat-item span {
    font-weight: 600;
}

.stat-item span:last-child {
    color: #66c0f4;
}

/* 主内容区 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-panel, .right-panel {
    flex: 1;
    min-width: 300px;
    background-color: #16202d;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left-panel:hover, .right-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.panel-header {
    margin-bottom: 20px;
}

.panel-title {
    color: #66c0f4;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a475e;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title i {
    margin-right: 10px;
}

.badge {
    background-color: #66c0f4;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.result-badge {
    background-color: #2a475e;
    color: #c7d5e0;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 输入组 */
.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #c7d5e0;
    font-weight: 600;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #66c0f4;
}

input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background-color: #2a475e;
    border: 1px solid #2a475e;
    border-radius: 5px;
    color: #c7d5e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #66c0f4;
    box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.2);
}

/* 搜索按钮 */
.search-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1a9fff, #0f8ae0);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #0f8ae0, #0d7bc8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 138, 224, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

/* 快捷操作 */
.quick-actions {
    margin: 25px 0;
    padding: 20px;
    background-color: rgba(42, 71, 94, 0.3);
    border-radius: 8px;
}

.action-title {
    color: #66c0f4;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    background-color: #2a475e;
    color: #c7d5e0;
    border: 1px solid #3c5a75;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn:hover {
    background-color: #3c5a75;
    transform: translateY(-2px);
}

/* 警告框 */
.warning-box {
    background-color: #3d2b2b;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    animation: pulse 2s infinite;
}

.animated-warning {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
}

.security-warning {
    background-color: #1f3a4d;
    border-left-color: #3498db;
}

.warning-title {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.security-warning .warning-title {
    color: #3498db;
}

.warning-title i {
    margin-right: 8px;
}

.warning-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.warning-btn {
    flex: 1;
    padding: 8px;
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.warning-btn:hover {
    background-color: rgba(52, 152, 219, 0.4);
}

/* 最近查询 */
.recent-queries {
    margin-top: 30px;
}

.recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.refresh-icon {
    cursor: pointer;
    color: #66c0f4;
    transition: transform 0.3s ease;
}

.refresh-icon:hover {
    transform: rotate(180deg);
}

.query-item {
    background-color: #2a475e;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.query-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 192, 244, 0.2), transparent);
    transition: left 0.5s ease;
}

.query-item:hover {
    background-color: #315a7d;
    transform: translateX(5px);
}

.query-item:hover::before {
    left: 100%;
}

.query-id {
    font-weight: 600;
    color: #66c0f4;
}

.query-name {
    color: #c7d5e0;
    margin-top: 5px;
    font-size: 0.9rem;
}

.query-time {
    color: #8f98a0;
    font-size: 0.8rem;
}

/* 结果卡片 */
.result-card {
    background-color: #2a475e;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: none;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #3c5a75;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #66c0f4, #3498db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.account-name {
    font-size: 1.5rem;
    color: #66c0f4;
    font-weight: bold;
}

.account-steamid {
    color: #8f98a0;
    font-size: 0.9rem;
    margin-top: 5px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.status-safe {
    background-color: #2d6d4f;
    color: #a7d9a3;
}

.status-warning {
    background-color: #9b6429;
    color: #ffd166;
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #3c5a75;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 8px 16px;
    background-color: transparent;
    color: #8f98a0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-btn:hover {
    color: #c7d5e0;
    background-color: rgba(102, 192, 244, 0.1);
}

.tab-btn.active {
    color: #66c0f4;
    background-color: rgba(102, 192, 244, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.info-box {
    background-color: #1b2838;
    padding: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.animated-box {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.animated-box:nth-child(1) { animation-delay: 0.1s; }
.animated-box:nth-child(2) { animation-delay: 0.2s; }
.animated-box:nth-child(3) { animation-delay: 0.3s; }
.animated-box:nth-child(4) { animation-delay: 0.4s; }

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.password-box {
    background-color: #1f3a4d;
    border-left: 4px solid #e74c3c;
}

.info-label {
    font-size: 0.9rem;
    color: #8f98a0;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-value {
    font-size: 1.1rem;
    color: #c7d5e0;
    font-weight: 600;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.password-text {
    letter-spacing: 2px;
}

.show-password {
    background: transparent;
    border: none;
    color: #66c0f4;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.show-password:hover {
    background-color: rgba(102, 192, 244, 0.1);
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #8f98a0;
    animation: fadeIn 1s ease-out;
}

.no-data-icon {
    font-size: 4rem;
    color: #2a475e;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.no-data-tips {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(42, 71, 94, 0.3);
    border-radius: 8px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tip {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #66c0f4;
}

.tip i {
    font-size: 1.2rem;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 40, 56, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.loading-content {
    text-align: center;
    color: #66c0f4;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #2a475e;
    border-top-color: #66c0f4;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 1.2rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2a475e;
    color: #8f98a0;
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 0.5s both;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.footer-section h4 {
    color: #66c0f4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul {
    list-style-type: none;
    padding-left: 0;
}

.footer-section li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.footer-section li:before {
    content: "•";
    color: #66c0f4;
    position: absolute;
    left: 0;
}

.status-indicators {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2ecc71;
}

.status-indicator.active .status-dot {
    background-color: #2ecc71;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        width: 100%;
    }
    
    .header-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 工具类 */
.hidden {
    display: none !important;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1b2838;
}

::-webkit-scrollbar-thumb {
    background: #2a475e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3c5a75;
}

/* 在现有CSS文件的最后添加以下样式 */

/* 查询限制显示样式 */
.query-limit-display {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: rgba(42, 71, 94, 0.5);
    border-radius: 5px;
    border-left: 3px solid #f39c12;
    font-size: 0.9rem;
    animation: fadeIn 0.5s ease-out;
}

.query-limit-display .limit-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #66c0f4;
    font-weight: 600;
    margin-bottom: 5px;
}

.query-limit-display .limit-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e74c3c;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.query-limit-display i {
    font-size: 1rem;
}

/* 禁用状态下的搜索按钮样式 */
.search-btn:disabled {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
}

.search-btn:disabled:hover {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 添加倒计时动画 */
@keyframes countdown {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}