/* ===========================================
   GoRatings等级分查询页面专业样式
   =========================================== */

/* ===========================================
   1. 页面标题样式
   =========================================== */
.goratings-page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.goratings-page-title {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
}

.goratings-page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd 0%, #20c997 100%);
    border-radius: 2px;
}

.goratings-page-title i {
    color: #20c997;
    margin-right: 10px;
    text-shadow: 0 2px 4px rgba(32, 201, 151, 0.3);
}

/* ===========================================
   2. 搜索表单样式
   =========================================== */
.goratings-search-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.goratings-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.goratings-form-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.goratings-form-label {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    min-width: 80px;
}

.goratings-form-input,
.goratings-form-select {
    min-width: 150px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.goratings-form-input:focus,
.goratings-form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.goratings-search-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.goratings-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.goratings-search-btn i {
    font-size: 1rem;
}

/* ===========================================
   3. 图表容器样式
   =========================================== */
.goratings-chart-wrapper {
    position: relative;
}

.goratings-chart-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* 图表装饰背景 */
.goratings-chart-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.goratings-chart-container::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(32, 201, 151, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.goratings-chart {
    width: 100%;
    min-height: 400px;
    height: 30vw;
    max-height: 600px;
    position: relative;
    z-index: 1;
}

/* 图表标题区域 */
.goratings-chart-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.goratings-chart-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 5px;
}

.goratings-chart-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 加载状态 */
.goratings-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.goratings-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.goratings-loading-text {
    margin-top: 15px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 空状态 */
.goratings-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.goratings-empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.goratings-empty-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.goratings-empty-hint {
    font-size: 0.9rem;
    color: #adb5bd;
}

/* ===========================================
   4. 响应式设计
   =========================================== */
@media (max-width: 992px) {
    .goratings-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .goratings-form-group {
        width: 100%;
    }

    .goratings-form-label {
        min-width: 100px;
    }

    .goratings-form-input,
    .goratings-form-select {
        flex: 1;
    }

    .goratings-search-btn {
        width: 100%;
        justify-content: center;
    }

    .goratings-chart {
        height: 50vw;
        min-height: 350px;
    }

    .goratings-chart-title {
        font-size: 1.1rem;
    }

    .goratings-chart-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .goratings-page-header {
        padding: 20px;
        margin-bottom: 20px;
    }

    .goratings-search-container {
        padding: 20px;
    }

    .goratings-chart-container {
        padding: 20px 15px;
    }

    .goratings-chart {
        height: 60vw;
        min-height: 300px;
    }

    .goratings-page-title {
        font-size: 1.3rem;
    }

    .goratings-chart-title {
        font-size: 1rem;
    }

    .goratings-chart-subtitle {
        font-size: 0.8rem;
    }

    .goratings-chart-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
}

@media (max-width: 576px) {
    .goratings-form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .goratings-form-label {
        min-width: auto;
    }

    .goratings-form-input,
    .goratings-form-select {
        min-width: 100%;
    }

    .goratings-chart-container {
        padding: 15px 10px;
    }

    .goratings-chart {
        height: 70vw;
        min-height: 280px;
    }

    .goratings-chart-title {
        font-size: 0.9rem;
    }

    .goratings-chart-subtitle {
        font-size: 0.75rem;
    }
}

/* ===========================================
   5. 暗黑主题适配
   =========================================== */
[data-bs-theme="dark"],
[data-bs-theme="dark-small"] {
    --goratings-bg-start: #2d3238;
    --goratings-bg-end: #343a40;
    --goratings-card-bg: #343a40;
    --goratings-border: rgba(255, 255, 255, 0.1);
    --goratings-text-primary: #f8f9fa;
    --goratings-text-secondary: #adb5bd;
    --goratings-input-bg: #495057;
}

[data-bs-theme="dark"] .goratings-page-header,
[data-bs-theme="dark-small"] .goratings-page-header {
    background: linear-gradient(135deg, var(--goratings-bg-start) 0%, var(--goratings-bg-end) 100%);
    border-color: var(--goratings-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .goratings-page-title,
[data-bs-theme="dark-small"] .goratings-page-title {
    color: var(--goratings-text-primary);
}

[data-bs-theme="dark"] .goratings-page-title i,
[data-bs-theme="dark-small"] .goratings-page-title i {
    color: #20c997;
}

[data-bs-theme="dark"] .goratings-search-container,
[data-bs-theme="dark-small"] .goratings-search-container {
    background: var(--goratings-card-bg);
    border-color: var(--goratings-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .goratings-form-label,
[data-bs-theme="dark-small"] .goratings-form-label {
    color: var(--goratings-text-primary);
}

[data-bs-theme="dark"] .goratings-form-input,
[data-bs-theme="dark-small"] .goratings-form-input,
[data-bs-theme="dark"] .goratings-form-select,
[data-bs-theme="dark-small"] .goratings-form-select {
    background: var(--goratings-input-bg);
    border-color: var(--goratings-border);
    color: var(--goratings-text-primary);
}

[data-bs-theme="dark"] .goratings-form-input:focus,
[data-bs-theme="dark-small"] .goratings-form-input:focus,
[data-bs-theme="dark"] .goratings-form-select:focus,
[data-bs-theme="dark-small"] .goratings-form-select:focus {
    background: var(--goratings-input-bg);
    border-color: #20c997;
    color: var(--goratings-text-primary);
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

[data-bs-theme="dark"] .goratings-chart-container,
[data-bs-theme="dark-small"] .goratings-chart-container {
    background: var(--goratings-card-bg);
    border-color: var(--goratings-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .goratings-chart-container::before,
[data-bs-theme="dark-small"] .goratings-chart-container::before {
    background: radial-gradient(circle, rgba(13, 202, 240, 0.05) 0%, transparent 70%);
}

[data-bs-theme="dark"] .goratings-chart-container::after,
[data-bs-theme="dark-small"] .goratings-chart-container::after {
    background: radial-gradient(circle, rgba(32, 201, 151, 0.05) 0%, transparent 70%);
}

[data-bs-theme="dark"] .goratings-chart-header,
[data-bs-theme="dark-small"] .goratings-chart-header {
    border-bottom-color: var(--goratings-border);
}

[data-bs-theme="dark"] .goratings-chart-title,
[data-bs-theme="dark-small"] .goratings-chart-title {
    color: var(--goratings-text-primary);
}

[data-bs-theme="dark"] .goratings-chart-subtitle,
[data-bs-theme="dark-small"] .goratings-chart-subtitle {
    color: var(--goratings-text-secondary);
}

[data-bs-theme="dark"] .goratings-loading-spinner,
[data-bs-theme="dark-small"] .goratings-loading-spinner {
    border-color: #495057;
    border-top-color: #0dcaf0;
}

[data-bs-theme="dark"] .goratings-loading-text,
[data-bs-theme="dark-small"] .goratings-loading-text {
    color: var(--goratings-text-secondary);
}

[data-bs-theme="dark"] .goratings-empty,
[data-bs-theme="dark-small"] .goratings-empty {
    color: var(--goratings-text-secondary);
}

[data-bs-theme="dark"] .goratings-empty-icon,
[data-bs-theme="dark-small"] .goratings-empty-icon {
    color: #495057;
}

[data-bs-theme="dark"] .goratings-empty-text,
[data-bs-theme="dark-small"] .goratings-empty-text {
    color: var(--goratings-text-primary);
}

[data-bs-theme="dark"] .goratings-empty-hint,
[data-bs-theme="dark-small"] .goratings-empty-hint {
    color: var(--goratings-text-muted);
}

[data-bs-theme="dark"] .goratings-search-btn,
[data-bs-theme="dark-small"] .goratings-search-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

[data-bs-theme="dark"] .goratings-search-btn:hover,
[data-bs-theme="dark-small"] .goratings-search-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}