/* ===== 全球专线页面样式 - 国际化云厂商标准设计 ===== */

/* ===== 设计系统基础 ===== */
:root {
    /* 主品牌色系 - 专业云厂商配色 */
    --brand-primary: #7c3aed;         /* 主紫色 */
    --brand-primary-light: #a855f7;   /* 浅紫色 */
    --brand-primary-dark: #5b21b6;    /* 深紫色 */
    --brand-primary-bg: #faf5ff;      /* 紫色背景 */
    
    /* 功能色系 */
    --color-success: #00b050;         /* 成功绿 */
    --color-success-light: #4dcc7f;   
    --color-warning: #ff8c00;         /* 警告橙 */
    --color-danger: #dc3545;          /* 危险红 */
    
    /* 中性色系 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* 文字色系 */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --text-white: #ffffff;
    
    /* 背景色系 */
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-100);
    
    /* 边框色系 */
    --border-light: var(--gray-200);
    --border-medium: var(--gray-300);
    
    /* 阴影系统 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 圆角系统 */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    
    /* 间距系统 */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* 字体系统 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    /* 过渡效果 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 基础样式重置 ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* ===== 英雄区域设计 ===== */
.hero-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

body.global-lines-detail .detail-hero-simple {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: var(--text-white);
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-8);
}

body.global-lines-detail .detail-hero-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 75% 25%, rgba(0, 176, 80, 0.08) 0%, transparent 50%);
    z-index: 1;
}

body.global-lines-detail .detail-hero-simple .container {
    position: relative;
    z-index: 2;
}

/* 面包屑导航 */
.simple-breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: var(--space-6);
    display: inline-flex;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.simple-breadcrumb .breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
    font-size: var(--text-sm);
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;
}

.simple-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.simple-breadcrumb .breadcrumb-item a:hover {
    color: var(--text-white);
}

.simple-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

/* 英雄区主体布局 */
.hero-main-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--space-8);
    align-items: center;
    margin-bottom: var(--space-8);
}

/* 端点卡片设计 */
.endpoint-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-md);
}

.endpoint-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.endpoint-card.origin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-success);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.endpoint-card.destination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-primary-light);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.flag-container {
    margin-bottom: var(--space-4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.flag-image {
    width: 64px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.flag-image:hover {
    border-color: var(--text-white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.flag-fallback {
    width: 64px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-xl);
}

.country-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-2);
    letter-spacing: 0.025em;
}

.endpoint-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.status-icon {
    font-size: var(--text-xl);
    animation: statusGlow 2s ease-in-out infinite;
}

.status-icon.origin-icon {
    color: var(--color-success-light);
}

.status-icon.destination-icon {
    color: var(--brand-primary-light);
}

@keyframes statusGlow {
    0%, 100% { 
        opacity: 1; 
        filter: drop-shadow(0 0 4px currentColor);
    }
    50% { 
        opacity: 0.7; 
        filter: drop-shadow(0 0 8px currentColor);
    }
}

/* 连接区域设计 */
.connection-section {
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--space-6);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.025em;
}

.connection-visual {
    position: relative;
    margin: var(--space-6) 0;
}

.connection-line {
    height: 4px;
    background: linear-gradient(90deg, var(--color-success) 0%, var(--brand-primary-light) 100%);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.signal-dot {
    width: 16px;
    height: 16px;
    background: var(--text-white);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation: signalTravel 3s ease-in-out infinite;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
}

@keyframes signalTravel {
    0% { 
        left: 0; 
        opacity: 0; 
        box-shadow: 0 0 16px var(--color-success);
    }
    20% { 
        opacity: 1; 
    }
    80% { 
        opacity: 1; 
        box-shadow: 0 0 16px var(--brand-primary-light);
    }
    100% { 
        left: calc(100% - 16px); 
        opacity: 0; 
    }
}

.plane-animation {
    position: absolute;
    top: -16px;
    left: 0;
    font-size: 20px;
    animation: planeTravel 4s ease-in-out infinite;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes planeTravel {
    0% { 
        left: 0; 
        transform: translateX(-50%) rotate(0deg);
        opacity: 0;
    }
    15% { 
        opacity: 1;
        transform: translateX(-50%) rotate(5deg);
    }
    50% { 
        transform: translateX(-50%) rotate(-3deg);
    }
    85% { 
        opacity: 1;
        transform: translateX(-50%) rotate(5deg);
    }
    100% { 
        left: 100%; 
        transform: translateX(-50%) rotate(0deg);
        opacity: 0;
    }
}

.connection-metrics {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-3) var(--space-5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-top: var(--space-4);
}

.latency-info {
    color: var(--text-white);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* 关键指标面板 */
.metrics-dashboard {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.metric-card {
    text-align: center;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.metric-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--space-1);
    letter-spacing: -0.025em;
}

.metric-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-main-layout {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 768px) {
    .detail-hero-simple {
        padding: var(--space-12) 0;
    }
    
    .hero-main-layout {
        gap: var(--space-4);
    }
    
    .endpoint-card {
        padding: var(--space-4);
    }
    
    .flag-image, .flag-fallback {
        width: 48px;
        height: 32px;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .metrics-dashboard {
        padding: var(--space-5);
    }
}

@media (max-width: 640px) {
    .detail-hero-simple {
        padding: var(--space-8) 0;
    }
    
    .hero-title {
        font-size: var(--text-xl);
    }
    
    .endpoint-card {
        padding: var(--space-3);
    }
    
    .flag-image, .flag-fallback {
        width: 40px;
        height: 28px;
    }
    
    .country-name {
        font-size: var(--text-base);
    }
}

/* ===== 页面主体内容 ===== */

/* 主要内容区域 */
.main-content {
    padding: var(--space-8) 0;
    background-color: var(--bg-primary);
}

/* Detail页面专用卡片系统 - 避免影响index页面 */

body.global-lines-detail .section-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: var(--text-white);
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
    margin-bottom: 0;
}

body.global-lines-detail .section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-white) !important;
}

body.global-lines-detail .section-title i {
    color: var(--text-white) !important;
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-1);
    letter-spacing: 0.025em;
    color: var(--text-white);
}

.card-body {
    padding: var(--space-6);
}

/* 价格卡片 */
.price-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.price-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--color-success) 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.price-header {
    margin-bottom: var(--space-4);
}

.price-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.price-amount {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: var(--space-1);
    letter-spacing: -0.025em;
}

.price-amount .currency {
    font-size: var(--text-xl);
    vertical-align: top;
}

.price-amount .unit {
    font-size: var(--text-base);
    color: var(--text-secondary);
    font-weight: 500;
}

.price-desc {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

/* 按钮系统 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: var(--text-white);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, #003366 100%);
    border-color: var(--brand-primary-dark);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-primary:hover {
    background: var(--brand-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-white);
}

/* 特性项 */
.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.feature-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--brand-primary);
    transform: translateX(4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: var(--text-white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.feature-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 徽章系统 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: var(--brand-primary-bg);
    color: var(--brand-primary);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.badge-success {
    background: var(--color-success-light);
    color: #ffffff;
}

.badge-warning {
    background: var(--color-warning);
    color: #ffffff;
}

/* 产品推荐卡片 */
.product-recommend-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.product-recommend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--color-success) 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.product-recommend-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.product-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.product-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.product-title a:hover {
    color: var(--brand-primary);
}

.route-info, .vendor-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.route-badge, .vendor-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 500;
    transition: var(--transition);
}

.route-badge:hover {
    background: var(--color-success);
    color: var(--text-white);
    border-color: var(--color-success);
}

.vendor-badge:hover {
    background: var(--brand-primary);
    color: var(--text-white);
    border-color: var(--brand-primary);
}

.price-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--brand-primary);
    margin-top: var(--space-3);
}

/* 技术规格 */
.tech-spec-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tech-spec-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.spec-row {
    border-bottom: 1px solid var(--border-light);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:hover {
    background: var(--bg-secondary);
}

.spec-label {
    padding: var(--space-4) var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
    width: 40%;
    text-align: left;
    vertical-align: middle;
}

.spec-value {
    padding: var(--space-4) var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    vertical-align: middle;
}

/* 厂商信息 - 垂直布局 */
.vendor-info-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.vendor-info-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

/* 1. Logo */
.vendor-logo-container {
    margin-bottom: var(--space-5);
}

.vendor-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 3px solid var(--border-light);
    transition: var(--transition);
    display: block;
}

.vendor-logo:hover {
    border-color: var(--brand-primary);
    transform: scale(1.05);
}

.vendor-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2. 厂商名称 */
.vendor-name {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
}

/* 3. 介绍 */
.vendor-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-5);
    text-align: justify;
    hyphens: auto;
}

/* 4. 访问官网按钮 */
.vendor-website-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: var(--text-white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
    min-width: 140px;
}

.vendor-website-btn:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, #003366 100%);
    color: var(--text-white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.vendor-website-btn i {
    font-size: var(--text-base);
}

/* 5. QR码 */
.vendor-qrcode {
    text-align: center;
}

.vendor-qrcode-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.vendor-qrcode img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.vendor-qrcode img:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

/* 加载动画 */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.125rem;
}

/* 工具提示 */
.tooltip {
    font-size: var(--text-xs);
}

.tooltip-inner {
    background: var(--gray-800);
    border-radius: var(--radius-md);
}

/* 产品介绍样式 */
.product-intro {
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    height: 100%;
}

.intro-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
}

.intro-title i {
    color: var(--brand-primary);
}

.intro-content {
    font-size: var(--text-sm);
    line-height: 1.6;
}

.intro-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

/* 改进的推荐产品卡片样式 */
.alternative-product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.alternative-product-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card-header {
    margin-bottom: var(--space-3);
}

.product-title {
    font-size: var(--text-base);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.product-title a {
    color: var(--text-primary);
    transition: var(--transition);
}

.product-title a:hover {
    color: var(--brand-primary);
}

.product-card-body {
    flex-grow: 1;
    margin-bottom: var(--space-3);
}

.route-badge {
    background: var(--brand-primary-bg);
    color: var(--brand-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.vendor-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.price-display {
    text-align: center;
    padding: var(--space-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.price-value {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--brand-primary);
}

.price-unit {
    color: var(--text-muted);
    font-weight: 500;
}

.product-card-footer {
    margin-top: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        height: 35vh;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .h3 {
        font-size: 1.2rem;
    }

    .route-display {
        flex-direction: column;
        gap: 1rem;
    }

    .route-arrow {
        transform: rotate(90deg);
    }

    .spec-label,
    .spec-value {
        display: block;
        width: 100%;
        text-align: left;
        padding: var(--space-2);
    }

    .spec-label {
        font-weight: 600;
        color: var(--text-primary);
        border-bottom: none;
    }

    .spec-value {
        padding-top: 0;
        margin-bottom: var(--space-3);
        border-bottom: 1px solid var(--border-light);
    }

    /* 移动端产品介绍调整 */
    .product-intro {
        margin-top: var(--space-4);
    }

    /* 移动端推荐产品调整 */
    .alternative-product-card {
        margin-bottom: var(--space-4);
    }
}

/* ===== INDEX页面专用样式 ===== */

/* Index页面英雄区域 */
body.global-lines-index .hero-section {
    background: linear-gradient(135deg, 
        var(--brand-primary) 0%, 
        var(--brand-primary-dark) 50%, 
        #4c1d95 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

body.global-lines-index .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.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Index页面卡片样式 */
body.global-lines-index .line-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

body.global-lines-index .line-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Index页面网格布局 */
body.global-lines-index .lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Index页面路线显示 */
body.global-lines-index .route-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

body.global-lines-index .country-flag {
    width: 48px;
    height: 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

body.global-lines-index .flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.global-lines-index .route-arrow {
    font-size: 18px;
    color: var(--brand-primary);
    margin: 0 16px;
}

/* Index页面价格显示 */
body.global-lines-index .price-display {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

/* Index页面特性标签 */
body.global-lines-index .feature-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    margin: 2px 4px 2px 0;
}

/* Index页面搜索区域 */
body.global-lines-index .search-section {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

/* Index页面分页 */
body.global-lines-index .pagination .page-link {
    color: var(--brand-primary);
    border-color: var(--border-light);
    padding: 8px 16px;
}

body.global-lines-index .pagination .page-link:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

body.global-lines-index .pagination .page-item.active .page-link {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* Index页面响应式 */
@media (max-width: 768px) {
    body.global-lines-index .hero-section {
        padding: 60px 0;
    }
    
    body.global-lines-index .lines-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    body.global-lines-index .route-display {
        flex-direction: column;
        gap: 12px;
    }
    
    body.global-lines-index .route-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }
    
    body.global-lines-index .search-section {
        padding: 24px;
    }
}

