/* 全球专线页面样式 */

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 详情页英雄区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.detail-hero .container {
    position: relative;
    z-index: 1;
}

/* 专线卡片 */
.line-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.line-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.line-card .card-body {
    padding: 1.5rem;
}

/* 路线显示 */
.route-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 15px 0;
}

.country-flag {
    width: 48px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.detail-hero .country-flag {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
}

.line-card .country-flag {
    width: 32px;
    height: 24px;
    font-size: 18px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

.route-arrow {
    margin: 0 20px;
    font-size: 24px;
    color: currentColor;
}

.line-card .route-arrow {
    margin: 0 15px;
    font-size: 20px;
    color: #007bff;
}

/* 价格显示 */
.price-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    margin: 15px 0;
}

.price-highlight {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    margin: 20px 0;
}

.price-highlight small {
    font-size: 1rem;
    color: #6c757d;
}

/* 特性标签 */
.feature-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem;
    border-radius: 12px;
    display: inline-block;
}

/* 技术规格表 */
.spec-table {
    margin-bottom: 0;
}

.spec-table th {
    background: #f8f9fa;
    font-weight: 600;
    border-top: none;
    padding: 12px;
    width: 30%;
}

.spec-table td {
    padding: 12px;
    border-top: 1px solid #dee2e6;
}

.spec-table tbody tr:first-child th,
.spec-table tbody tr:first-child td {
    border-top: none;
}

/* 特性列表 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    margin-right: 8px;
    width: 16px;
}

/* 搜索表单 */
.search-form .input-group-text {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.search-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.search-form .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 分页样式 */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #667eea;
    padding: 8px 12px;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #667eea;
    color: #5a6fd8;
}

/* 面包屑导航 */
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255,255,255,0.7);
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: white;
}

/* 卡片标题和内容 */
.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background: #667eea;
    border-color: #667eea;
}

/* 徽章样式 */
.badge {
    font-weight: 500;
    padding: 0.4em 0.6em;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%) !important;
    color: #000;
}

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

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* 统计信息 */
.stats-item {
    background: rgba(255,255,255,0.2);
    padding: 12px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .detail-hero {
        padding: 40px 0;
    }
    
    .route-display {
        margin: 15px 0;
    }
    
    .country-flag {
        width: 40px;
        height: 30px;
        font-size: 20px;
    }
    
    .line-card .country-flag {
        width: 28px;
        height: 20px;
        font-size: 16px;
    }
    
    .route-arrow {
        margin: 0 15px;
        font-size: 20px;
    }
    
    .line-card .route-arrow {
        margin: 0 10px;
        font-size: 18px;
    }
    
    .price-display {
        font-size: 1.3rem;
    }
    
    .price-highlight {
        font-size: 2rem;
    }
    
    .line-card .card-body {
        padding: 1rem;
    }
    
    .spec-table th,
    .spec-table td {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .feature-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .detail-hero {
        padding: 30px 0;
    }
    
    .route-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .route-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    
    .line-card .route-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    
    .price-highlight {
        font-size: 1.8rem;
    }
    
    .stats-item {
        margin-bottom: 10px;
        text-align: center;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 工具提示 */
.tooltip-inner {
    background: #333;
    color: white;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
}

/* 表格响应式 */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* 卡片阴影层次 */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 文本截断 */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
