﻿.brand-item {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    color: #666;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.brand-item:hover {
    color: #FF8C00;
    border-color: #FF8C00;
    text-decoration: none;
}

/* 栏目/标签两列铺满 */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.grid-2col .brand-item {
    display: block;
    margin: 0;
    padding: 6px 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body {
    padding: 15px;
}

/* 全国油价概览样式 */
.price-overview {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.overview-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.overview-icon {
    font-size: 18px;
    margin-right: 8px;
    color: #6c757d;
}

.overview-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.overview-content {
    margin-bottom: 12px;
}

.fuel-price-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.fuel-price-card:hover {
    background: #f1f3f4;
    transform: translateX(2px);
}

.fuel-price-card:last-child {
    margin-bottom: 0;
}

.fuel-type {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.fuel-icon {
    font-size: 14px;
    margin-right: 6px;
    color: #6c757d;
}

.fuel-name {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.side-price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-price-info .side-price-value {
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
    background: none;
    border: none;
    padding: 0;
}

.price-location {
    font-size: 11px;
    color: #6c757d;
    background: #e9ecef;
    padding: 3px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.overview-footer {
    padding-top: 12px;
    border-top: 1px solid #f1f3f4;
}

.update-time {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #6c757d;
}

.update-icon {
    font-style: normal;
    margin-right: 4px;
    font-size: 11px;
}

/* 油价对比结果样式 */
.compare-result-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.compare-header h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
}

.compare-prices {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.price-item {
    text-align: center;
    flex: 1;
}

.price-label {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.side-price-value {
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.price-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.vs-text {
    background: #FF8C00;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-difference {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.difference-label {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.difference-value {
    font-size: 14px;
    font-weight: 700;
    color: #dc3545;
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* 加载状态样式 */
.side-price-value.loading,
.difference-value.loading {
    color: #6c757d;
    background: #e9ecef;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 576px) {
    .compare-prices {
        flex-direction: column;
        gap: 10px;
    }

    .price-divider {
        margin: 5px 0;
    }

    .side-price-value,
    .difference-value {
        font-size: 14px;
    }
}

/* 油价新闻信息流样式 */
.news-list {
    margin-bottom: 12px;
}

.news-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.news-item:hover {
    background: #f1f3f4;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-content {
    display: flex;
    flex-direction: column;
}

.news-title-text {
    margin-bottom: 6px;
}

.news-link {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: #007bff;
    text-decoration: none;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #6c757d;
}

.news-source {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.news-time {
    color: #6c757d;
    font-weight: 400;
}

.news-footer {
    padding-top: 12px;
    border-top: 1px solid #f1f3f4;
}

.update-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #6c757d;
    gap: 4px;
}

.update-icon {
    font-style: normal;
    font-size: 11px;
}

/* 错误状态样式 */
.news-error {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.error-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.error-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.error-desc {
    font-size: 12px;
    color: #adb5bd;
}

/* 响应式设计 */
@media (max-width: 576px) {
    .news-item {
        padding: 10px;
    }

    .news-link {
        font-size: 12px;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
