/* 山寨币季节指数插件样式 */

.altcoin-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* 改为西文字体 */
    color: #ffffff;
    max-width: 400px;
    position: relative;
}

.index-display {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.index-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #FF9800;
    /*text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);*/
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Monaco, Consolas, monospace;
}

.progress-container {
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 18px; /* 进一步增加高度从12px到18px */
    background: #333333;
    border-radius: 9px; /* 相应增加圆角 */
    position: relative;
    overflow: hidden;
    display: flex;
}

.bitcoin-section {
    background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: width 0.3s ease;
}

.altcoin-section {
    background: linear-gradient(90deg, #21d4fd 0%, #b721ff 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: width 0.3s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    padding: 0 2px;
}
.progress-label-left {
    text-align: left;
}
.progress-label-right {
    text-align: right;
}

.widget-history {
    font-size: 12px;
    color: #444;
    margin: 10px 0;
    padding-left: 2px;
}
.widget-history .history-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}
.widget-history .history-row span {
    flex: 1;
    text-align: left;
    min-width: 60px;
    white-space: nowrap;
}
.widget-history .history-row span:last-child {
    text-align: right;
}

.widget-history .history-date {
    font-size: 11px;
    color: #888888;
    margin-left: 2px;
}

.widget-tip {
    font-size: 11px;
    color: #888888;
    text-align: left;
    margin-top: 20px;
    line-height: 1.4;
    font-style: italic;
    padding: 8px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    border-left: 3px solid #4facfe;
}

.altcoin-widget.error {
    background: #2d1b1b;
    border: 1px solid #ff4444;
    color: #ff8888;
}


/* 动画效果 */
.altcoin-widget {
    animation: fadeInUp 0.5s ease-out;
}

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