/* GEO Rank Query - 仿站长之家设计 主色调 #222763 */

.geo-rank-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Main Layout - 两列布局 */
.geo-rank-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 992px) {
    .geo-rank-main {
        grid-template-columns: 1fr;
    }
}

/* Form Card */
.geo-form-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
}

/* 领取积分区域 */
.geo-claim-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%);
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e8e8e8;
}

.geo-claim-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.geo-claim-icon {
    font-size: 18px;
}

.geo-claim-info strong {
    color: #222763;
    font-size: 18px;
}

.geo-claim-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #222763;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.geo-claim-btn:hover {
    background: #1a2050;
    color: #fff;
}

.geo-claim-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.geo-claim-tip {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
    padding-left: 4px;
}

.geo-form-section {
    margin-bottom: 16px;
}

.geo-form-section:last-child {
    margin-bottom: 0;
}

.geo-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.geo-optional {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.geo-form-section textarea,
.geo-form-section input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.geo-form-section textarea:focus,
.geo-form-section input[type="text"]:focus {
    outline: none;
    border-color: #222763;
}

.geo-form-section textarea {
    resize: vertical;
    min-height: 80px;
}

/* Platforms - 颜色圆点样式 */
.geo-platforms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.geo-platform-card {
    cursor: pointer;
}

.geo-platform-card input {
    display: none;
}

.geo-platform-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s;
    font-size: 13px;
    color: #333;
}

.geo-platform-card input:checked + .geo-platform-inner {
    border-color: #222763;
    background: #f0f2ff;
    box-shadow: 0 0 0 2px rgba(34, 39, 99, 0.1);
}

.geo-platform-card:hover .geo-platform-inner {
    border-color: #222763;
}

/* 颜色圆点 */
.geo-platform-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.geo-platform-dot.deepseek { background: #4285f4; }
.geo-platform-dot.doubao { background: #34a853; }
.geo-platform-dot.qwen { background: #ea4335; }
.geo-platform-dot.yuanbao { background: #ff9800; }
.geo-platform-dot.wenxin { background: #9c27b0; }

.geo-no-platform {
    color: #999;
    font-size: 14px;
}

/* Form Footer */
.geo-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: 16px;
}

.geo-points-info {
    font-size: 13px;
    color: #666;
}

.geo-points-value {
    color: #222763;
    font-weight: 600;
}

.geo-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    background: #222763;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.geo-submit-btn:hover:not(:disabled) {
    background: #1a2050;
}

.geo-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.geo-cost-info {
    font-size: 13px;
    color: #666;
    text-align: right;
}

.geo-cost-info strong {
    color: #222763;
}

.geo-points-warning {
    margin-top: 12px;
    padding: 8px 12px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 4px;
    font-size: 13px;
    color: #d46b08;
    text-align: center;
}

/* Login Prompt */
.geo-login-prompt {
    text-align: center;
    padding: 30px 20px;
    background: #fafafa;
    border-radius: 4px;
    margin-top: 16px;
}

.geo-login-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.geo-login-prompt p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
}

.geo-login-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #222763;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.geo-login-btn:hover {
    background: #1a2050;
    color: #fff;
}

/* Results Card */
.geo-results-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
    margin-top: 20px;
}

.geo-results-header h3,
.geo-history-header h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.geo-result-item {
    margin-bottom: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 4px;
    border-left: 3px solid #222763;
}

.geo-result-item:last-child {
    margin-bottom: 0;
}

.geo-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.geo-result-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

/* 结果中的颜色圆点 */
.geo-result-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.geo-result-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.geo-result-status.success {
    background: #f6ffed;
    color: #52c41a;
}

.geo-result-status.error {
    background: #fff2f0;
    color: #ff4d4f;
}

.geo-result-content {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    white-space: pre-wrap;
    word-break: break-word;
}

.geo-result-content .highlight {
    background: #fff1b8;
    padding: 1px 2px;
    border-radius: 2px;
}

.geo-result-analysis {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e5e5;
    font-size: 12px;
    color: #666;
}

.geo-result-analysis strong {
    color: #222763;
}

/* History Card */
.geo-history-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
    margin-top: 20px;
}

.geo-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.geo-history-item {
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

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

.geo-history-item:hover {
    background: #fafafa;
}

.geo-history-question {
    font-weight: 500;
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.geo-history-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.geo-history-brand {
    color: #222763;
}

.geo-history-points {
    background: #f5f5f5;
    padding: 1px 6px;
    border-radius: 3px;
}

/* Loading */
.geo-loading-spinner {
    width: 28px;
    height: 28px;
    margin: 20px auto;
    border: 2px solid #f0f0f0;
    border-top-color: #222763;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.geo-empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 13px;
}

/* Empty Placeholder - 右侧空状态提示 */
.geo-empty-placeholder {
    text-align: center;
    padding: 60px 20px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.geo-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.geo-empty-placeholder p {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.geo-empty-placeholder span {
    font-size: 13px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .geo-rank-wrapper {
        padding: 15px;
    }
    
    .geo-form-card,
    .geo-results-card,
    .geo-history-card {
        padding: 16px;
    }
    
    .geo-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .geo-submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .geo-cost-info {
        text-align: left;
    }
}
