/* NEV出口数据查询页面样式 */

/* 页面头部 */
.page-header {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--global--color-primary);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--global--color-heading);
}

.page-subtitle {
    font-size: 1rem;
    color: var(--global--color-body);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 搜索选择器 */
.search-selector {
    padding: 40px 0;
    background: #f8f9fa;
}



/* 搜索选择器组合 */
.search-selector-combined {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 8px;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.country-dropdown-container {
    flex-shrink: 0;
    position: relative;
}

.country-dropdown {
    min-width: 160px;
    padding: 12px 16px;
    border: none;
    border-radius: 20px;
    background: #f8f9fa;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    color: #495057;
}

.country-dropdown:hover {
    background: #e9ecef;
}

.country-dropdown:focus {
    background: #e9ecef;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.search-input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    height: 44px;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #6c757d;
    z-index: 2;
    font-size: 16px;
    top: 50%;
    transform: translateY(-50%);
}

#globalSearch {
    border: none;
    padding: 0 16px 0 44px;
    font-size: 15px;
    flex: 1;
    outline: none;
    height: 100%;
    background: transparent;
    color: #495057;
    line-height: 44px;
    vertical-align: middle;
    margin-bottom: 0 !important;
}

/* 使用更具体的选择器覆盖全局样式 */
#globalSearch::placeholder,
#globalSearch::-webkit-input-placeholder,
#globalSearch::-moz-placeholder,
#globalSearch:-ms-input-placeholder,
#globalSearch:-moz-placeholder {
    color: #6c757d !important;
    line-height: 44px !important;
    text-transform: none !important;
    font-size: 15px !important;
    font-family: inherit !important;
}

.search-btn {
    padding: 0 24px;
    border: none;
    border-radius: 20px;
    background: var(--global--color-primary);
    color: white;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    margin-left: 8px;
}

.search-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* 移除旧的国家标签样式 */

/* 初始状态装饰区域 */
.initial-state {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.initial-state-content {
    max-width: 1200px;
    margin: 0 auto;
}

.initial-state-icon {
    font-size: 4rem;
    color: var(--global--color-primary);
    margin-bottom: 20px;
    opacity: 0.7;
}

.initial-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--global--color-heading);
    margin-bottom: 15px;
}

.initial-state-description {
    font-size: 1.1rem;
    color: var(--global--color-body);
    margin-bottom: 30px;
    line-height: 1.6;
}

.initial-state-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.initial-state-feature {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.initial-state-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.initial-state-feature-icon {
    font-size: 2rem;
    color: var(--global--color-primary);
    margin-bottom: 15px;
}

.initial-state-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--global--color-heading);
    margin-bottom: 8px;
}

.initial-state-feature-desc {
    font-size: 0.9rem;
    color: var(--global--color-body);
    line-height: 1.5;
}

/* 数据展示区域 */
.data-display {
    padding: 60px 0;
    background: #f8f9fa;
}

/* 国家信息卡片 */
.country-info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.country-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.country-flag {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.country-details {
    flex: 1;
}

.country-details h2 {
    color: var(--global--color-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.country-details p {
    color: var(--global--color-body);
    font-size: 1.1rem;
    margin: 0;
}

.country-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--global--color-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--global--color-body);
    font-weight: 500;
}

/* 数据标签页 */
.data-tabs {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 标签页头部 */
.tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    padding: 0 30px;
}

.nav-tabs {
    border-bottom: none;
    padding: 0;
    margin: 0;
}

.nav-tabs .nav-link {
    border: none;
    padding: 20px 25px;
    color: var(--global--color-body);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link i {
    margin-right: 8px;
}

.nav-tabs .nav-link.active {
    color: var(--global--color-primary);
    background: none;
    border-bottom: 3px solid var(--global--color-primary);
}

/* 分类搜索框 */
.category-search {
    flex-shrink: 0;
}

.category-search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 15px;
    min-width: 200px;
}

.category-search-icon {
    color: #666;
    font-size: 14px;
    margin-right: 8px;
}

.category-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    flex: 1;
    min-width: 150px;
}

.category-search-input::placeholder {
    color: #999;
    font-size: 13px;
}

.tab-content {
    padding: 30px;
}

/* 过滤器按钮 */
.policy-filters,
.news-filters,
.dealers-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color:var(--global--color-heading);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--global--color-primary);
    color: white;
    border-color: var(--global--color-primary);
}

/* 市场分析 */
.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.opportunity-item {
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid;
}

.opportunity-item.positive {
    background: #e8f5e8;
    border-left-color: #28a745;
}

.opportunity-item.neutral {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.opportunity-item.negative {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.opportunity-item h6 {
    margin-bottom: 10px;
    font-weight: 600;
}

.opportunity-item i {
    margin-right: 8px;
}

.opportunity-item.positive i {
    color: #28a745;
}

.opportunity-item.neutral i {
    color: #ffc107;
}

.opportunity-item.negative i {
    color: #dc3545;
}

/* 图表容器 */
.market-chart {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.market-chart h5 {
    margin-bottom: 15px;
    color: var(--global--color-heading);
    font-weight: 600;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* 数据项样式 */
.policy-item,
.news-item,
.dealer-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.policy-item:hover,
.news-item:hover,
.dealer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--global--color-primary);
}

.policy-header,
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.policy-header h6,
.news-header h6 {
    margin: 0;
    color: var(--global--color-heading);
    font-weight: 600;
    flex: 1;
}

.policy-date,
.news-date {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.policy-item p,
.news-item p {
    color: var(--global--color-body);
    margin-bottom: 10px;
    line-height: 1.6;
}

.policy-type,
.news-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.policy-type.subsidy {
    background: #e8f5e8;
    color: #28a745;
}

.policy-type.standard {
    background: #fff3cd;
    color: #856404;
}

.policy-type.import {
    background: #d1ecf1;
    color: #0c5460;
}

.news-type.policy {
    background: #e8f5e8;
    color: #28a745;
}

.news-type.market {
    background: #d1ecf1;
    color: #0c5460;
}

.news-type.company {
    background: #f8d7da;
    color: #721c24;
}

/* 经销商样式 */
.dealers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.dealers-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.dealer-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    position: relative;
    outline: none;
    min-height: 36px;
}

.dealer-action-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.dealer-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dealer-action-btn i {
    font-size: 11px;
}

/* 主要按钮样式（我要增加） */
.dealer-action-btn.btn-primary {
    background: var(--global--color-primary);
    color: white;
    border-color: var(--global--color-primary);
}

.dealer-action-btn.btn-primary:hover {
    background: var(--global--color-primary);
    color: white;
    opacity: 0.9;
}

.dealer-action-btn.btn-primary:focus {
    background: var(--global--color-primary);
    color: white;
    box-shadow: 0 0 0 3px rgba(118, 194, 27, 0.25);
    outline: none;
}

/* 次要按钮样式（我要修改） */
.dealer-action-btn.btn-outline-primary {
    background: transparent;
    color: var(--global--color-primary);
    border-color: var(--global--color-primary);
}

.dealer-action-btn.btn-outline-primary:hover {
    background: var(--global--color-primary);
    color: white;
}

.dealer-action-btn.btn-outline-primary:focus {
    background: transparent;
    color: var(--global--color-primary);
    border-color: var(--global--color-primary);
    box-shadow: 0 0 0 3px rgba(118, 194, 27, 0.25);
    outline: none;
}

/* 按钮禁用状态 */
.dealer-action-btn:disabled,
.dealer-action-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.dealer-action-btn:disabled:hover,
.dealer-action-btn.disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* 按钮加载状态 */
.dealer-action-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    justify-content: center;
}

.dealer-action-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 自定义工具提示样式 */
.dealer-action-btn[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 4px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.dealer-action-btn[title]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    margin-bottom: 1px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 屏幕阅读器专用样式 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dealer-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.dealer-info {
    flex: 1;
    min-width: 0;
}

.dealer-info h6 {
    margin: 0 0 6px 0;
    color: var(--global--color-heading);
    font-weight: 600;
    font-size: 15px;
}

.dealer-info p {
    margin: 2px 0;
    color: var(--global--color-body);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dealer-info i {
    width: 14px;
    color: #666;
    font-size: 12px;
    flex-shrink: 0;
}

.dealer-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.dealer-contact-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.dealer-contact-item a {
    color: var(--global--color-primary);
    text-decoration: none;
}

.dealer-contact-item a:hover {
    text-decoration: underline;
}

.dealer-rating {
    text-align: center;
    margin: 0 15px;
    flex-shrink: 0;
}

.stars {
    margin-bottom: 3px;
}

.stars i {
    font-size: 11px;
}

.rating-text {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.dealer-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.dealer-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 10px;
}

.dealer-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: transparent;
    color: var(--global--color-primary);
    border: 1px solid var(--global--color-primary);
    min-height: 28px;
}

.dealer-edit-btn:hover {
    background: var(--global--color-primary);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(118, 194, 27, 0.2);
}

.dealer-edit-btn i {
    font-size: 10px;
}

/* 经销商编辑按钮加载状态 */
.dealer-edit-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    justify-content: center;
}

.dealer-edit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.dealer-type.official {
    background: #e8f5e8;
    color: #28a745;
}

.dealer-type.independent {
    background: #fff3cd;
    color: #856404;
}

.dealer-type.online {
    background: #d1ecf1;
    color: #0c5460;
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.loading-content p {
    margin-top: 15px;
    color: var(--global--color-body);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .country-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .dealers-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .dealers-actions {
        justify-content: center;
    }
    
    .dealer-action-btn {
        flex: 1;
        justify-content: center;
        align-items: center;
        max-width: 150px;
        padding: 12px 16px;
        font-size: 13px;
        min-height: 44px;
    }
    
    /* 移动端隐藏工具提示 */
    .dealer-action-btn[title]:hover::before,
    .dealer-action-btn[title]:hover::after {
        display: none;
    }
    
    /* 移动端经销商样式调整 */
    .dealer-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .dealer-info {
        order: 1;
    }
    
    .dealer-rating {
        order: 2;
        margin: 0;
    }
    
    .dealer-type {
        order: 3;
        align-self: flex-start;
    }
    
    .dealer-actions {
        order: 4;
        margin-left: 0;
        justify-content: flex-end;
    }
    
    .dealer-edit-btn {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .dealer-contact-info {
        flex-direction: column;
        gap: 6px;
    }
    
    .dealer-contact-item {
        font-size: 11px;
    }
    
    .country-stats {
        justify-content: center;
    }
    
    .nav-tabs {
        padding: 0 15px;
    }
    
    .nav-tabs .nav-link {
        padding: 15px 15px;
        font-size: 14px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .opportunity-grid {
        grid-template-columns: 1fr;
    }
    
    .search-selector-combined {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        border-radius: 20px;
    }
    
    .country-dropdown-container {
        width: 100%;
    }
    
    .country-dropdown {
        width: 100%;
        min-width: auto;
        height: 48px;
    }
    
    .search-input-group {
        flex-direction: row;
        border-radius: 16px;
        height: 48px;
        width: 100%;
    }
    
    .search-btn {
        border-radius: 0 16px 16px 0;
        width: auto;
        height: 48px;
        margin-left: 0;
        flex-shrink: 0;
    }
    
    #globalSearch {
        height: 48px;
        line-height: 48px;
        margin-bottom: 0 !important;
        border-radius: 16px 0 0 16px;
    }
    
    /* 移动端placeholder样式 */
    #globalSearch::placeholder,
    #globalSearch::-webkit-input-placeholder,
    #globalSearch::-moz-placeholder,
    #globalSearch:-ms-input-placeholder,
    #globalSearch:-moz-placeholder {
        line-height: 48px !important;
        text-transform: none !important;
        font-size: 15px !important;
        font-family: inherit !important;
    }
    
    .tabs-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .category-search {
        width: 100%;
    }
    
    .category-search-input-group {
        width: 100%;
        min-width: auto;
    }
    
    /* 移动端初始状态样式 */
    .initial-state {
        padding: 60px 0;
    }
    
    .initial-state-icon {
        font-size: 3rem;
    }
    
    .initial-state-title {
        font-size: 1.3rem;
    }
    
    .initial-state-description {
        font-size: 1rem;
    }
    
    .initial-state-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .initial-state-feature {
        padding: 20px 15px;
        min-width: auto;
        max-width: none;
        flex: none;
    }
}
