/* ========================================
   乐清市桂安物流有限公司 - 桂安物流
   Author: AI 运营官 零号
   Style: Modern Logistics Company
   ======================================== */

:root {
    --primary: #1a3a6b;
    --primary-light: #2a5298;
    --secondary: #c41e2a;
    --accent: #f0a500;
    --bg-light: #f5f7fa;
    --bg-dark: #0f1e3d;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --border: #ddd;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --radius: 8px;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg-light);
    font-size: 15px;
    line-height: 1.8;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header / Logo ===== */
header {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 0;
}
header .container {
    padding: 0 20px;
}
.logo-wrap {
    width: 100%;
}

/* ===== 导航 ===== */
nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    max-width: 1200px;
    margin: 0 auto;
}
nav .container {
    display: flex;
    justify-content: space-between;
}
nav ul {
    width: 100%;
    list-style: none;
    display: flex;
}
nav ul li { position: relative; flex: 1; text-align: center; }
nav ul li a {
    display: block;
    padding: 14px 20px;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s;
}
nav ul li a:hover,
nav ul li a.active {
    background: var(--primary-light);
    color: var(--white);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
}

/* ===== Banner Slider ===== */
.banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 1920 / 350;
    overflow: hidden;
    position: relative;
    background: #1a3a6b;
    min-height: 150px;
}
.banner-slider {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}
.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.banner-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s;
}
.banner-dots button.active { background: var(--white); }

/* ===== Section common ===== */
.section { padding: 60px 0; }
.section.home-main { padding: 15px 0; }
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 28px;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}
.section-title p {
    color: var(--text-light);
    margin-top: 10px;
    font-size: 15px;
}
.section-bg {
    background: var(--white);
}

/* ===== 公司简介摘要 ===== */
.about-intro {
    display: flex;
    gap: 40px;
    align-items: center;
}
.about-intro-image {
    flex: 0 0 300px;
}
.about-intro-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.about-intro-text { flex: 1; }
.about-intro-text p { margin-bottom: 15px; text-indent: 2em; }
.btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 14px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: var(--primary-light);
    color: var(--white);
}
.btn-accent {
    background: var(--secondary);
}
.btn-accent:hover { background: #a0151f; }

/* ===== 服务/线路网格 ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.service-card-body {
    padding: 15px;
    text-align: center;
}
.service-card-body h3 { font-size: 16px; margin-bottom: 8px; color: var(--primary); }
.service-card-body p { font-size: 13px; color: var(--text-light); }

/* ===== 新闻 ===== */
.news-list { list-style: none; }
.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}
.news-list li:last-child { border-bottom: none; }
.news-list li a {
    flex: 1;
    font-size: 14px;
}
.news-list .date {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    margin-left: 15px;
}

/* ===== 联系信息侧栏 ===== */
.contact-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
}
.contact-sidebar h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}
.contact-sidebar p {
    margin-bottom: 8px;
    font-size: 14px;
}
.contact-sidebar .phone-big {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

/* ===== 中国地图 ===== */
.china-map-section { background: var(--white); }
.china-map-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
#china-map svg {
    width: 100%;
    max-height: 600px;
}
#china-map path {
    fill: #e8edf5;
    stroke: var(--primary);
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.3s;
}
#china-map path:hover {
    fill: var(--accent);
}
#china-map path.active {
    fill: var(--secondary);
}
.map-tip {
    position: absolute;
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    pointer-events: none;
    display: none;
}

/* ===== Footer ===== */
footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 20px;
    font-size: 13px;
}
footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
footer h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
footer p { margin-bottom: 6px; }
footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== 内页 ===== */
.page-banner {
    background: var(--primary);
    color: var(--white);
    padding: 25px 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.page-banner h1 { font-size: 30px; margin-bottom: 8px; }
.page-banner p { font-size: 15px; opacity: 0.8; }
.breadcrumb {
    background: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { color: var(--text-light); }
.breadcrumb .current { color: var(--primary); font-weight: 500; }

.page-content { padding: 40px 0; }
.page-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}
/* Sidebar first in grid order (left side) */
.sidebar { order: 0; }
.page-main { order: 1; }
.page-main {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.page-main h2 {
    font-size: 22px;
    color: var(--primary);
    margin: 20px 0 15px;
}
.page-main h3 {
    font-size: 18px;
    color: var(--primary);
    margin: 15px 0 10px;
}
.page-main p { margin-bottom: 12px; text-indent: 2em; }
.page-main ul, .page-main ol { margin: 10px 0 10px 25px; }
.page-main li { margin-bottom: 6px; }

/* ===== Sidebar ===== */
.sidebar { }
.sidebar-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-box h3 {
    font-size: 16px;
    color: var(--primary);
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}
.sidebar-box ul { list-style: none; }
.sidebar-box ul li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a { font-size: 14px; display: block; }

/* ===== 反馈表单 ===== */
.contact-form { max-width: 600px; }
.contact-form .form-group {
    margin-bottom: 15px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.contact-form textarea { height: 120px; resize: vertical; }

/* ===== 公司资质 ===== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.cert-item {
    text-align: center;
}
.cert-item img {
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 5px;
    background: var(--white);
}
.cert-item p {
    margin-top: 8px;
    font-weight: 500;
    font-size: 14px;
}

/* ===== Province Detail Page ===== */
.route-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.route-table th,
.route-table td {
    padding: 10px 15px;
    border: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}
.route-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 500;
}
.route-table tr:nth-child(even) { background: #f9fafb; }
.route-table tr:hover { background: #eef2f8; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { order: 0; }
    .page-main { order: 0; }
    footer .container { grid-template-columns: 1fr 1fr; }
    .about-intro { flex-direction: column; }
    .about-intro-image { flex: none; }
}

@media (max-width: 768px) {

    .header-info .header-phone { font-size: 18px; }
    .header-info .company-name { font-size: 20px; }
    .logo img { height: 60px; }

    nav ul {
    width: 100%; display: none; flex-direction: column; width: 100%; }
    nav ul.show { display: flex; }
    nav .container { flex-wrap: wrap; }
    .menu-toggle { display: block; }



    .section { padding: 30px 0; }
    .section-title h2 { font-size: 22px; }

    .service-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

    .page-main { padding: 20px; }
    .page-banner h1 { font-size: 24px; }

    footer .container { grid-template-columns: 1fr; gap: 20px; }

    .contact-form { max-width: 100%; }

    .route-table { font-size: 13px; }
    .route-table th,
    .route-table td { padding: 8px 10px; }
}

@media (max-width: 480px) {

    
    .service-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .service-card img { height: 130px; }
    .service-card-body { padding: 10px; }
    .service-card-body h3 { font-size: 14px; }

    .cert-grid { grid-template-columns: 1fr; }
}


/* ===== 首页左右分栏布局 ===== */
.home-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
    padding-left: 0;
    padding-right: 0;
}
.home-sidebar {
    width: 23%;
    flex-shrink: 0;
}
.home-main-content {
    flex: 1;
    width: 75%;
}

.home-sidebar .sidebar-block {
    background: #fff;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.sidebar-img-block {
    padding: 0 !important;
    overflow: hidden;
}
.sidebar-qr {
    padding: 0 !important;
    overflow: hidden;
}
.home-sidebar .sidebar-block h3.sidebar-title {
    font-size: 14px;
    color: var(--primary);
    border-left: 3px solid var(--secondary);
    padding-left: 10px;
    margin-bottom: 8px;
}
.home-sidebar .sidebar-block p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-light);
    text-indent: 0;
    margin-bottom: 6px;
}
.sidebar-news li {
    padding: 4px 0;
    font-size: 13px;
    border-bottom: 1px dashed #eee;
}
.sidebar-news .date {
    float: right;
    font-size: 11px;
    color: #999;
}
.sidebar-more {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--secondary);
}
.contact-item {
    font-size: 13px;
    padding: 4px 0;
    color: var(--text);
}

/* ===== 右侧内容区域 ===== */
.home-main-content .content-section {
    background: #fff;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.home-main-content .content-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.home-main-content .content-section-title h3 {
    font-size: 15px;
    color: var(--primary);
    font-weight: 700;
}
.home-main-content .content-section-title a {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
}
.home-main-content .content-section-title a:hover {
    text-decoration: underline;
}

/* 卡片网格 */
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.content-card {
    width: calc(25% - 8px);
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
}
.content-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.content-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}
.content-card .card-body {
    padding: 8px 10px;
}
.content-card .card-body h4 {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 2px;
}
.content-card .card-body p {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.4;
    text-indent: 0;
}
.content-card .card-body p.click-hint {
    color: var(--secondary);
    font-weight: 600;
    font-size: 12px;
    margin-top: 2px;
}

/* ===== 车辆轮播 ===== */
.vehicle-slider-wrapper {
    position: relative;
    overflow: hidden;
}
.vehicle-slider {
    display: flex;
    transition: transform 0.5s ease;
}
.vehicle-slide {
    min-width: 100%;
}
.vehicle-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.vehicle-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.vehicle-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #bbb;
    cursor: pointer;
    transition: background 0.3s;
}
.vehicle-dots button.active {
    background: var(--primary);
}



/* ===== 全国服务网络地图 ===== */
.home-main-content .china-map-container {
    width: 100%;
}
.home-main-content .china-map-container svg {
    width: 100%;
    height: auto;
    max-height: 400px;
}
.home-main-content .china-map-container svg path {
    cursor: pointer;
    transition: opacity 0.2s;
}
.home-main-content .china-map-container svg path:hover {
    opacity: 0.7;
}

/* 地图tooltip */
#map-tip {
    position: fixed;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

/* ===== Footer 紧凑版 ===== */
footer {
    padding: 8px 0;
}
footer .container > div {
    padding: 4px 10px;
}
footer h4 {
    font-size: 12px;
    margin-bottom: 3px;
}
footer p, footer a {
    font-size: 11px;
    line-height: 1.6;
}
.footer-bottom {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 10px 0;
    font-size: 11px;
}
.footer-bottom-content {
    display: block !important;
    text-align: center;
}
.footer-text {
    font-size: 11px;
    line-height: 1.8;
    margin: 0;
}

/* ===== 手机端 ===== */
@media (max-width: 768px) {
    .home-layout {
        flex-direction: column;
    }
    .home-sidebar,
    .home-main-content {
        width: 100%;
    }
    .content-card {
        width: calc(50% - 6px);
    }
    .vehicle-slide img {
        height: 120px;
    }
}