/* 
 * cross_border_line.css - 跨境线路页面样式
 * 合并自cross_border_line/index.php和cross_border_line/detail.php的内联样式
 */

/* ========== 英雄区样式 ========== */
.hero-section {
    background: linear-gradient(135deg, #4c1d95, #5b21b6, #7c3aed, #a855f7);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

/* ========== 徽章样式 ========== */
.top-badge-container,
.featured-badge-container {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    z-index: 99999 !important;
    pointer-events: none !important;
}

.top-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, #2196F3, #3F51B5) !important;
    color: white !important;
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    border-radius: 8px 0 8px 0 !important;
    box-shadow: 0 3px 8px rgba(33, 150, 243, 0.5) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    animation: badgePulse 2s infinite !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

.featured-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, #ff9800, #ff5722) !important;
    color: white !important;
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    border-radius: 8px 0 8px 0 !important;
    box-shadow: 0 3px 8px rgba(255, 87, 34, 0.5) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    animation: badgePulse 2s infinite !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

.product-tag-featured {
    position: absolute;
    top: -3px;
    right: -3px;
    z-index: 10;
}

.product-tag-featured span {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 0 0 0 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ========== 规格组件样式 ========== */
.specs-grid-horizontal {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.specs-item-horizontal {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    padding: 10px 16px;
    margin-right: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 110px;
}

/* 移动端适配 */
@media (max-width: 767px) {
    /* 移动端隐藏页脚 */
    footer.footer {
        display: none !important;
    }

    .specs-grid-horizontal {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
    }
    
    .specs-item-horizontal {
        margin-right: 0;
        margin-bottom: 0;
        width: 100%;
    }
}

.specs-item-horizontal:hover {
    background-color: #e9f0ff;
    transform: translateY(-2px);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.specs-grid .specs-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
}

.specs-grid .specs-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 3px;
}

.specs-grid .specs-value {
    font-weight: 600;
    font-size: 14px;
}

/* 详情页大规格布局 */
.specs-grid-large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 991.98px) {
    .specs-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .specs-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .specs-grid-large .specs-item {
        padding: 12px;
    }
    
    .specs-grid-large .specs-icon {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .specs-grid-large .specs-label {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .specs-grid-large .specs-value {
        font-size: 14px;
    }
}

.specs-grid-large .specs-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.specs-grid-large .specs-item:hover {
    background-color: #e9f0ff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.specs-grid-large .specs-icon {
    font-size: 28px;
    color: var(--bs-primary);
    margin-bottom: 10px;
}

.specs-grid-large .specs-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.specs-grid-large .specs-value {
    font-weight: 600;
    font-size: 16px;
}

/* ========== 价格组件样式 ========== */
.price-tag {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.price-period {
    font-size: 1rem;
    color: #666;
}

.secondary-price {
    font-size: 0.9rem;
    color: #666;
}

.price-container {
    text-align: center;
    margin: 15px 0;
}

.price-box {
    border-radius: 10px;
    border-left: 4px solid var(--bs-primary);
}

.main-price {
    margin-bottom: 5px;
}

.amount {
    font-weight: 700;
}

.period {
    font-size: 1rem;
}

/* ========== 厂商属性样式 ========== */
.vendor-attrs {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 8px 12px;
}

.vendor-attr {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.vendor-attr-realname {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.payment-divider {
    width: 1px;
    height: 20px;
    background-color: #d0d0d0;
    display: inline-block;
}

.payment-method-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.payment-method-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.vendor-badge {
    display: flex;
    align-items: center;
}

.vendor-logo-img {
    height: 30px;
    max-width: 100px;
    object-fit: contain;
}

/* ========== 数据中心信息卡片样式 ========== */
.datacenter-info {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.datacenter-map {
    height: 200px;
    background-color: #f8f9fa;
    position: relative;
}

.datacenter-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.datacenter-content {
    padding: 20px;
}

.datacenter-content h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.datacenter-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.datacenter-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.datacenter-features li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--bs-primary);
}

/* ========== 表格样式 ========== */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.table-bordered td, .table-bordered th {
    border-color: #e9ecef;
}

/* ========== 线路优势列表样式 ========== */
.line-advantages {
    list-style: none;
    padding-left: 0;
}

.line-advantages li {
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
}

.line-advantages li:last-child {
    border-bottom: none;
}

.line-advantages li i {
    margin-right: 10px;
}

/* ========== 卡片样式 ========== */
.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.card-header:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--bs-primary);
    border-radius: 3px;
}

/* ========== 按钮样式 ========== */
.btn {
    border-radius: 5px;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.btn-primary {
    box-shadow: 0 4px 10px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--bs-primary-rgb), 0.4);
}

/* ========== 动画效果 ========== */
@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
} 