/* 金币比例弹窗样式 */
.gold-ratios-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10000;
    pointer-events: none;
}

.gold-ratios-modal-overlay.show {
    display: block !important;
}

.gold-ratios-modal {
    background: #0f172a;
    border-radius: 6px;
    padding: 0;
    width: 240px;
    height: auto;
    max-height: 80vh;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    position: fixed;
    left: 20px;
    top: calc(100vh / 6);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    z-index: 10001;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.gold-ratios-modal * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.gold-ratios-modal-resize {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-bottom: none;
    border-right: none;
    border-top-left-radius: 6px;
    z-index: 10002;
    user-select: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gold-ratios-modal-resize::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent rgba(148, 163, 184, 0.6) transparent;
    position: absolute;
    bottom: 2px;
    right: 2px;
}

.gold-ratios-modal-resize::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 4px 4px;
    border-color: transparent transparent rgba(148, 163, 184, 0.4) transparent;
    position: absolute;
    bottom: 4px;
    right: 4px;
}

.gold-ratios-modal-resize:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.6);
}

.gold-ratios-modal-resize:hover::before {
    border-color: transparent transparent rgba(56, 189, 248, 0.8) transparent;
}

.gold-ratios-modal-resize:hover::after {
    border-color: transparent transparent rgba(56, 189, 248, 0.6) transparent;
}

.gold-ratios-modal-header {
    background: linear-gradient(135deg, #0f3460, #1a4a7a);
    padding: 6px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    cursor: move;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.gold-ratios-modal-header > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.gold-ratios-modal-title {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.gold-ratios-modal-time {
    color: #94a3b8;
    font-size: 11px;
    margin: 0;
    white-space: nowrap;
}

.gold-ratios-modal-content {
    padding: 8px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* 自定义滚动条 */
.gold-ratios-modal-content::-webkit-scrollbar {
    width: 8px;
}

.gold-ratios-modal-content::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 4px;
}

.gold-ratios-modal-content::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.5);
    border-radius: 4px;
}

.gold-ratios-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.7);
}

.gold-ratios-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.gold-ratios-table th {
    background: rgba(15, 23, 42, 0.6);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 6px;
    text-align: left;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
}

.gold-ratios-table td {
    color: #e2e8f0;
    font-size: 11px;
    padding: 4px 6px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.gold-ratios-table tr:hover {
    background: rgba(56, 189, 248, 0.05);
}

.gold-ratios-table .server-name {
    font-weight: 600;
    color: #38bdf8;
}

.gold-ratios-table .faction-alliance {
    color: #3b82f6;
}

.gold-ratios-table .faction-horde {
    color: #ef4444;
}

.gold-ratios-table .ratio-value {
    font-weight: 600;
    color: #10b981;
}

.gold-ratios-loading {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 12px;
}

.gold-ratios-error {
    text-align: center;
    padding: 20px;
    color: #ef4444;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gold-ratios-modal-overlay {
        display: none !important;
    }
    
    .gold-ratios-modal-overlay.show {
        display: none !important;
    }
}

