/* ============================================================
   baoche5.com 首页专用样式 home.css
   完全重写，覆盖 style.css 中首页相关样式
   参照 pinche.net.cn 现代简约风格
   ============================================================ */

/* ===== 覆盖全局变量 ===== */
:root {
    --primary: #165DFF;
    --primary-dark: #0E4EDC;
    --primary-light: #4080FF;
    --primary-bg: #EAF1FF;
    --accent: #FF7D00;
    --accent-dark: #E06F00;
    --bg: #F7F8FA;
    --ink: #333333;
    --ink-light: #666666;
    --muted: #999999;
    --border: #E5E7EB;
    --border-light: #F0F1F3;
}

/* ===== 导航栏重写 ===== */
.top-nav {
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04) !important;
    border-bottom: 1px solid #E5E7EB !important;
}

.top-nav-bar {
    height: 64px !important;
    padding: 0 24px !important;
}

.top-nav-bar .logo {
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
}

.top-nav-bar .logo .en {
    color: #999 !important;
    opacity: 1 !important;
}

.top-nav-bar .menu a {
    color: #666 !important;
    font-size: 0.95rem !important;
    padding: 6px 0 !important;
}

.top-nav-bar .menu a:hover,
.top-nav-bar .menu a.active {
    color: #165DFF !important;
}

.top-nav-bar .menu a::after,
.top-nav-bar .menu a.active::after {
    display: none !important;
}

.lang-switch a {
    color: #999 !important;
}

.lang-switch a.active {
    color: #165DFF !important;
    background: #EAF1FF !important;
}

.mobile-toggle {
    color: #333 !important;
}

/* ===== Hero 横幅区 ===== */
.hero {
    background: linear-gradient(135deg, #0E4EDC 0%, #165DFF 50%, #4080FF 100%) !important;
    padding: 72px 24px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
    color: #fff !important;
    position: relative !important;
    z-index: 1;
}

.hero .subtitle {
    font-size: 1.05rem !important;
    opacity: 0.85 !important;
    margin-bottom: 32px !important;
    color: #fff !important;
    position: relative !important;
    z-index: 1;
}

.hero .cta-group {
    position: relative !important;
    z-index: 1;
}

/* ===== 按钮重写 ===== */
.btn {
    display: inline-block !important;
    padding: 10px 28px !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.btn-primary {
    background: #FF7D00 !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: #E06F00 !important;
    color: #fff !important;
}

.btn-outline {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.45) !important;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.7) !important;
}

.btn-lg {
    padding: 12px 36px !important;
    font-size: 1rem !important;
}

/* ===== 统计数据条 ===== */
.stats-bar {
    background: #fff !important;
    display: flex !important;
    justify-content: center !important;
    gap: 56px !important;
    padding: 32px 24px !important;
    box-shadow: none !important;
    border-bottom: 1px solid #E5E7EB !important;
}

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

.stat-item .num {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #165DFF !important;
    line-height: 1.2 !important;
}

.stat-item .label {
    font-size: 0.85rem !important;
    color: #666 !important;
    margin-top: 4px !important;
}

/* ===== 首页布局容器 ===== */
.home-main {
    background: #F7F8FA;
    padding: 0 0 48px;
}

.home-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 24px 0;
}

.home-section:first-of-type {
    padding-top: 40px;
}

/* ===== 卡片容器（核心组件）===== */
.home-card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    padding: 28px;
    margin-bottom: 22px;
    border: none;
}

.home-card.flush {
    padding: 0;
    overflow: hidden;
}

/* ===== 区块标题 ===== */
.home-section-header {
    text-align: center;
    margin-bottom: 24px;
}

.home-section-header h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin: 0;
}

.home-section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: #165DFF;
    border-radius: 2px;
}

.home-section-header .sub {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin-top: 10px !important;
}

.home-section-more {
    text-align: center;
    margin-top: 20px;
}

.home-section-more a {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #666;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.home-section-more a:hover {
    border-color: #165DFF;
    color: #165DFF;
    background: #EAF1FF;
}

/* ===== 服务分类卡片 ===== */
.home-service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.home-service-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #F0F1F3;
    display: block;
    text-decoration: none;
}

.home-service-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
    border-color: #EAF1FF;
}

.home-service-card .icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.home-service-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.home-service-card p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

/* ===== 热门产品卡片 ===== */
.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #F0F1F3;
    display: flex;
    flex-direction: column;
}

.home-product-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.home-product-card .card-vehicle {
    text-align: center;
    padding: 20px 16px 12px;
    background: linear-gradient(180deg, #F7F8FA 0%, #fff 100%);
}

.home-product-card .card-vehicle .v-icon {
    font-size: 1.8rem;
}

.home-product-card .card-vehicle .v-name {
    font-size: 0.76rem;
    color: #666;
    margin-top: 4px;
}

.home-product-card .card-body {
    padding: 14px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-product-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-product-card .card-title a {
    color: #333;
    text-decoration: none;
}

.home-product-card .card-title a:hover {
    color: #165DFF;
}

.home-product-card .card-info {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-product-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.home-product-card .card-tag {
    font-size: 0.7rem;
    color: #165DFF;
    background: #EAF1FF;
    padding: 2px 8px;
    border-radius: 4px;
}

.home-product-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #F0F1F3;
}

.home-product-card .card-price {
    color: #FF7D00;
    font-weight: 700;
    font-size: 1.05rem;
}

.home-product-card .card-price .unit {
    font-size: 0.72rem;
    font-weight: 400;
}

.home-product-card .card-btn {
    font-size: 0.76rem;
    color: #fff;
    background: #165DFF;
    padding: 5px 14px;
    border-radius: 6px;
    transition: background 0.2s ease;
    text-decoration: none;
}

.home-product-card .card-btn:hover {
    background: #0E4EDC;
    color: #fff;
}

/* ===== 车型卡片 ===== */
.home-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.home-vehicle-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #F0F1F3;
}

.home-vehicle-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-color: #EAF1FF;
}

.home-vehicle-card .v-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.home-vehicle-card .v-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.home-vehicle-card .v-seats {
    font-size: 0.76rem;
    color: #666;
    margin-bottom: 6px;
}

.home-vehicle-card .v-luggage {
    font-size: 0.72rem;
    color: #999;
    margin-bottom: 4px;
}

.home-vehicle-card .v-price {
    font-size: 0.86rem;
    color: #FF7D00;
    font-weight: 600;
}

.home-vehicle-card .v-price .unit {
    font-size: 0.7rem;
    font-weight: 400;
}

/* ===== 城市分站 ===== */
.home-city-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.home-city-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #F0F1F3;
    text-decoration: none;
}

.home-city-card:hover {
    background: #165DFF;
    border-color: #165DFF;
}

.home-city-card:hover .city-name { color: #fff; }
.home-city-card:hover .city-en { color: rgba(255,255,255,0.6); }

.home-city-card .city-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #333;
}

.home-city-card .city-en {
    font-size: 0.72rem;
    color: #999;
    margin-top: 2px;
}

/* ===== 资讯列表 ===== */
.home-news-list {
    background: #fff;
    border-radius: 8px;
    padding: 8px 24px;
    border: 1px solid #F0F1F3;
}

.home-news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #F0F1F3;
}

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

.home-news-item .news-tag {
    font-size: 0.7rem;
    color: #165DFF;
    background: #EAF1FF;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.home-news-item .news-title {
    font-size: 0.88rem;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 16px;
    text-decoration: none;
}

.home-news-item:hover .news-title {
    color: #165DFF;
}

.home-news-item .news-date {
    font-size: 0.78rem;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== 页脚重写 ===== */
.footer {
    background: #1a2332 !important;
    color: rgba(255,255,255,0.7) !important;
    padding: 48px 0 0 !important;
    margin-top: 0 !important;
}

.footer-content {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 48px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}

.footer-col h4 {
    color: #fff !important;
    font-size: 1rem !important;
    margin-bottom: 16px !important;
    font-weight: 600 !important;
}

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.85rem !important;
    line-height: 1.8 !important;
    display: block !important;
}

.footer-col a:hover {
    color: #fff !important;
}

.footer-contact .contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.55) !important;
}

.footer-contact .contact-item .icon {
    font-size: 1rem !important;
}

.footer-bottom {
    text-align: center !important;
    padding-top: 24px !important;
    margin-top: 32px !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.35) !important;
    padding-bottom: 24px !important;
}

.footer-friend-links {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 24px 24px 0 !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
}

.footer-friend-links h4 {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.85rem !important;
    margin-bottom: 12px !important;
    font-weight: 500 !important;
}

.footer-friend-links .friend-links-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 16px !important;
    align-items: center !important;
}

.footer-friend-links .friend-links-list a {
    color: rgba(255,255,255,0.35) !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.footer-friend-links .friend-links-list a:hover {
    color: rgba(255,255,255,0.7) !important;
}

/* ===== 图片图标兼容 ===== */
.home-service-card .v-icon-img,
.home-product-card .v-icon-img-sm,
.home-vehicle-card .v-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: inline-block;
}

.home-product-card .v-icon-img-sm {
    width: 32px;
    height: 32px;
}

/* ===== 移动端适配 (≤768px) ===== */
@media (max-width: 768px) {
    .top-nav-bar {
        height: 52px !important;
        padding: 0 16px !important;
    }

    .top-nav-bar .logo {
        font-size: 1.1rem !important;
    }

    .top-nav-bar .logo .en {
        display: none !important;
    }

    .top-nav-bar .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff !important;
        flex-direction: column;
        padding: 0 24px;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        border-bottom: 1px solid #E5E7EB;
    }

    .top-nav-bar .menu.open {
        display: flex;
    }

    .top-nav-bar .menu a {
        padding: 14px 0 !important;
        border-bottom: 1px solid #F0F1F3 !important;
        color: #666 !important;
    }

    .top-nav-bar .menu a:last-child {
        border-bottom: none !important;
    }

    .top-nav-bar .menu a:hover,
    .top-nav-bar .menu a.active {
        color: #165DFF !important;
    }

    .mobile-toggle {
        display: block !important;
    }

    .hero {
        padding: 48px 20px !important;
    }

    .hero h1 {
        font-size: 1.5rem !important;
    }

    .hero .subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 24px !important;
    }

    .hero .cta-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .stats-bar {
        flex-wrap: wrap !important;
        gap: 20px !important;
        padding: 24px 16px !important;
    }

    .stat-item {
        width: 45%;
    }

    .stat-item .num {
        font-size: 1.3rem !important;
    }

    .home-section {
        padding: 16px 16px 0;
    }

    .home-section:first-of-type {
        padding-top: 28px;
    }

    .home-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .home-section-header {
        margin-bottom: 16px;
    }

    .home-section-header h2 {
        font-size: 1.2rem !important;
    }

    .home-service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .home-service-card {
        padding: 18px 12px;
    }

    .home-service-card .icon {
        font-size: 1.8rem;
    }

    .home-service-card h3 {
        font-size: 0.88rem;
    }

    .home-product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-product-card .card-vehicle {
        padding: 14px;
    }

    .home-product-card .card-body {
        padding: 12px 16px 16px;
    }

    .home-vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .home-vehicle-card {
        padding: 16px 12px;
    }

    .home-city-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .home-city-card {
        padding: 12px 8px;
    }

    .home-news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .home-news-item .news-title {
        white-space: normal;
        padding-right: 0;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        padding: 0 16px !important;
    }

    .footer {
        padding: 32px 0 0 !important;
    }
}

/* ===== 平板适配 (769px-1024px) ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .home-service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-vehicle-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-city-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
