/* ========================================
   重庆芸怡辰运输服务有限公司 - 全站样式
   配色：主色 #2991EA 辅色 #FFC109
   布局还原自参考站 4314
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 14px; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: #474747; line-height: 1.7; background: #fff; }
a { color: #474747; text-decoration: none; transition: color .3s; }
a:hover { color: #2991EA; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; border: 0; }
.clearfix::after { content: ""; display: block; clear: both; height: 0; visibility: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ---------- 图片兜底 ---------- */
.img-fallback { background: linear-gradient(135deg, #2991EA, #1580D7); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 200px; color: #fff; font-size: 14px; border-radius: 8px; }

/* ---------- Top Bar (蓝色顶部信息栏) ---------- */
.top-bar { background: #2991EA; color: #fff; font-size: 12px; position: relative; z-index: 3; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.top-bar a { color: #fff; margin: 0 6px; font-size: 12px; }
.top-bar a:hover { color: #FFC109; text-decoration: underline; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 15px; }
.top-bar .fa { margin-right: 4px; }

/* ---------- Header / Navigation (固定导航) ---------- */
/* 参考站：top-bar + site-header 同在一个 fixed 容器内，headerbg 覆盖整个区域 */
.site-header { position: fixed; left: 0; right: 0; top: 0; z-index: 999; background: transparent; }
.header-bg { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0; background: #000; opacity: 0.57; }
.site-header .top-bar { position: relative; z-index: 3; }
.site-header .header-main { position: relative; z-index: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 98px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo a { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo a:hover { color: #fff; }
.logo-icon { width: 48px; height: 48px; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; }
.logo-brand { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.3; letter-spacing: 1px; }
.logo-slogan { font-size: 11px; color: rgba(255,255,255,0.8); letter-spacing: 3px; margin-top: 2px; }

/* Nav */
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > .nav-parent > a { display: block; color: #fff; font-size: 15px; padding: 0 18px; line-height: 98px; transition: color .3s; }
.nav-list > li:hover > a, .nav-list > li:hover > .nav-parent > a, .nav-list > li.active > a { color: #2991EA; }
.nav-parent { position: relative; }
.nav-parent .fa-plus { display: none; }

/* Dropdown */
.nav-list .submenu { display: none; position: absolute; top: 98px; left: 0; background: rgba(41,145,234,0.95); min-width: 170px; z-index: 100; }
.nav-list > li:hover > .submenu { display: block; }
.submenu li a { display: block; color: #fff; font-size: 14px; padding: 10px 20px; text-align: left; transition: all .3s; white-space: nowrap; }
.submenu li a:hover { background: #FFC109; color: #fff; }

/* Mobile toggle */
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 8px; }
.nav-mask { display: none; position: fixed; left: 0; right: 0; top: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 998; }
.nav-mask.active { display: block; }

/* ---------- Banner (轮播) ---------- */
.banner-section { margin-top: 134px; position: relative; overflow: hidden; background: #000; }
.banner-slider { position: relative; width: 100%; }
.banner-slide { display: none; width: 100%; position: relative; }
.banner-slide.active { display: block; }
.banner-slide img { width: 100%; height: auto; min-height: 300px; object-fit: cover; }
.banner-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; flex-direction: column; }
.banner-title { color: #fff; font-size: 42px; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.3); margin-bottom: 15px; }
.banner-subtitle { color: #fff; font-size: 20px; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.banner-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); border: 2px solid #FFE0D1; cursor: pointer; transition: all .3s; }
.banner-dot.active { background: transparent; border-color: #fff; }
.banner-arrows { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 20px; z-index: 10; pointer-events: none; }
.banner-arrow { width: 44px; height: 44px; background: rgba(0,0,0,0.4); color: #fff; border: none; border-radius: 50%; font-size: 20px; cursor: pointer; pointer-events: all; transition: background .3s; display: flex; align-items: center; justify-content: center; }
.banner-arrow:hover { background: #2991EA; }

/* ---------- Section Titles ---------- */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 30px; color: #333; font-weight: 700; margin-bottom: 10px; }
.section-title p { font-size: 14px; color: #888; letter-spacing: 2px; }
.section-title .en { display: block; font-family: Arial, sans-serif; color: #aaa; font-size: 13px; letter-spacing: 3px; margin-top: 5px; }
.section-title-left { text-align: left; margin-bottom: 30px; }
.section-title-left h2 { font-size: 22px; color: #333; font-weight: 700; }
.section-title-left .cat-links { text-align: right; }
.section-title-left .cat-links a { margin: 0 8px; font-size: 14px; color: #666; }
.section-title-left .cat-links a:hover { color: #2991EA; }

/* ---------- Services Grid (2x2 服务卡片) ---------- */
.services-section { padding: 50px 0 30px; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.service-card { background: #EDECEC; color: #474747; border-radius: 10px; overflow: hidden; transition: all .5s; cursor: pointer; }
.service-card:hover { background: #2991EA; color: #fff; }
.service-card:hover .service-card-img img { transform: scale(1.1); }
.service-card:hover .service-card-title { color: #fff; }
.service-card:hover .service-card-desc { color: rgba(255,255,255,0.85); }
.service-card-img { overflow: hidden; text-align: center; }
.service-card-img img { width: 100%; height: 220px; object-fit: cover; transition: transform .5s; }
.service-card-body { padding: 20px 15px; text-align: center; }
.service-card-title { font-size: 22px; font-weight: normal; margin-bottom: 10px; color: #474747; transition: color .3s; }
.service-card-desc { font-size: 14px; line-height: 1.6; transition: color .3s; }

/* ---------- Products Section (产品4列) ---------- */
.products-section { padding: 50px 0 30px; }
.products-header { display: grid; grid-template-columns: 33% 67%; align-items: center; margin-bottom: 30px; }
.products-header h2 { font-size: 20px; font-weight: 700; }
.products-cats { display: flex; gap: 15px; flex-wrap: wrap; justify-content: flex-end; }
.products-cats a { font-size: 14px; color: #666; white-space: nowrap; }
.products-cats a:hover { color: #2991EA; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { border: 1px solid #D5D5D5; overflow: hidden; transition: all .3s; }
.product-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-img { overflow: hidden; position: relative; }
.product-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .5s; }
.product-card-body { padding: 12px; text-align: left; }
.product-card-name { font-size: 15px; font-weight: bold; margin-bottom: 6px; }
.product-card-name a { color: #333; }
.product-card-name a:hover { color: #2991EA; text-decoration: none; }
.product-card-desc { font-size: 13px; color: #888; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- About Section (关于我们-左图+右文分栏) ---------- */
.about-section { padding: 0; background: #f5f5f5; }
.about-inner { display: flex; align-items: stretch; }
.about-img { flex: 1.1; overflow: hidden; position: relative; }
.about-img img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.about-content { flex: 1; padding: 50px 30px; background: #1a3a5c; }
.about-content h2 { font-size: 20px; color: #fff; font-weight: 700; margin-bottom: 25px; }
.about-content p { color: rgba(255,255,255,0.9); line-height: 2.2; font-size: 14px; margin-bottom: 15px; }
.about-btn { display: inline-block; border: 1px solid #2991EA; color: #2991EA; padding: 10px 40px; font-size: 16px; cursor: pointer; transition: all .3s; background: transparent; }
.about-btn:hover { background: #2991EA; color: #fff; }

/* ---------- Advantages Section (服务与优势 3列) ---------- */
.advantages-section { padding: 70px 0; }
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 30px; }
.advantage-card { text-align: center; }
.advantage-card-img { overflow: hidden; border-radius: 0; margin-bottom: 10px; }
.advantage-card-img img { width: 100%; height: 200px; object-fit: cover; transition: transform .5s; }
.advantage-card:hover .advantage-card-img img { transform: scale(1.05); }
.advantage-card-title { font-size: 16px; color: #333; margin-bottom: 5px; font-weight: 500; }
.advantage-card-desc { font-size: 13px; color: #888; line-height: 1.6; }

/* ---------- Footer (蓝色底部) ---------- */
.site-footer { background: #2991EA; color: #fff; padding: 0; }
.footer-links { border-bottom: 1px solid rgba(255,255,255,0.2); padding: 15px 0; }
.footer-links .container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-links span { color: rgba(255,255,255,0.7); font-size: 13px; margin-right: 5px; }
.footer-links a { color: #fff; font-size: 13px; margin: 0 5px; }
.footer-links a:hover { color: #FFC109; }
.footer-main { padding: 30px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-info h3 { font-size: 18px; margin-bottom: 15px; color: #fff; line-height: 1.3; }
.footer-info p { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 2; }
.footer-copyright { text-align: right; padding-top: 40px; }
.footer-copyright p { color: rgba(255,255,255,0.8); font-size: 13px; line-height: 2; }
.footer-copyright a { color: rgba(255,255,255,0.8); }
.footer-copyright a:hover { color: #FFC109; }

/* ---------- Back to Top ---------- */
.back-to-top { position: fixed; right: 20px; bottom: 40px; width: 44px; height: 44px; background: #2991EA; color: #fff; border: none; border-radius: 4px; font-size: 18px; cursor: pointer; z-index: 999; transition: all .3s; display: none; }
.back-to-top:hover { background: #FFC109; }
.back-to-top.visible { display: flex; align-items: center; justify-content: center; }

/* ---------- Page Banner (内页Banner) ---------- */
.page-banner { margin-top: 134px; position: relative; height: 300px; overflow: hidden; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
.page-banner-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(41,145,234,0.6); display: flex; align-items: center; justify-content: center; }
.page-banner-title { color: #fff; font-size: 32px; font-weight: 700; }

/* ---------- Breadcrumb (面包屑) ---------- */
.breadcrumb { padding: 15px 0; border-bottom: 1px solid #e5e5e5; margin-bottom: 30px; }
.breadcrumb a { color: #666; font-size: 14px; }
.breadcrumb a:hover { color: #2991EA; }
.breadcrumb span { color: #999; margin: 0 8px; }
.breadcrumb .current { color: #2991EA; }

/* ---------- Content Area ---------- */
.content-area { padding: 40px 0 60px; }
.content-area h2 { font-size: 24px; margin-bottom: 20px; color: #333; }
.content-area h3 { font-size: 20px; margin-bottom: 15px; color: #333; }
.content-area p { margin-bottom: 15px; line-height: 1.9; color: #555; }

/* ---------- About Page ---------- */
.about-detail { padding: 60px 0; }
.about-detail-section { margin-bottom: 50px; }
.about-detail-section h2 { font-size: 24px; color: #333; margin-bottom: 20px; padding-left: 15px; border-left: 4px solid #2991EA; }
.timeline { position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #2991EA; transform: translateX(-50%); }
.timeline-item { display: flex; align-items: flex-start; margin-bottom: 30px; position: relative; }
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-dot { position: absolute; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; background: #2991EA; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #2991EA; z-index: 1; }
.timeline-content { width: 45%; padding: 15px 20px; background: #f8f8f8; border-radius: 8px; }
.timeline-item:nth-child(odd) .timeline-content { margin-left: auto; }
.timeline-year { font-size: 18px; font-weight: 700; color: #2991EA; margin-bottom: 5px; }
.timeline-text { font-size: 14px; color: #666; line-height: 1.6; }

/* Culture Cards */
.culture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 20px; }
.culture-card { background: #f8f9fa; border-radius: 10px; padding: 30px 20px; text-align: center; transition: all .3s; border-top: 3px solid transparent; }
.culture-card:hover { border-top-color: #2991EA; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transform: translateY(-3px); }
.culture-card h3 { font-size: 18px; color: #2991EA; margin-bottom: 12px; }
.culture-card p { font-size: 14px; color: #666; line-height: 1.7; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 20px; }
.team-card { text-align: center; }
.team-card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px; border: 3px solid #EAF4FD; }
.team-card h4 { font-size: 16px; color: #333; margin-bottom: 5px; }
.team-card p { font-size: 13px; color: #888; }

/* ---------- Product Detail ---------- */
.product-detail { padding: 40px 0 60px; }
.product-detail-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.product-detail-img { border: 1px solid #e5e5e5; overflow: hidden; }
.product-detail-img img { width: 100%; height: auto; }
.product-detail-info h1 { font-size: 24px; color: #333; margin-bottom: 20px; }
.product-detail-info p { color: #666; line-height: 1.8; margin-bottom: 10px; }
.product-params { width: 100%; border-collapse: collapse; margin-top: 20px; }
.product-params th, .product-params td { border: 1px solid #e5e5e5; padding: 10px 15px; text-align: left; font-size: 14px; }
.product-params th { background: #f5f5f5; color: #333; width: 30%; font-weight: 500; }
.product-params td { color: #666; }
.product-features { margin: 30px 0; }
.product-features h3 { font-size: 20px; margin-bottom: 15px; color: #333; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding: 12px; background: #f8f9fa; border-radius: 6px; }
.feature-item .fa { color: #2991EA; margin-top: 3px; flex-shrink: 0; }
.feature-item span { color: #555; line-height: 1.6; }
.related-products { margin-top: 50px; }
.related-products h3 { font-size: 20px; margin-bottom: 20px; color: #333; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- News List ---------- */
.news-list-section { padding: 40px 0 60px; }
.news-list-item { display: flex; gap: 25px; padding: 25px 0; border-bottom: 1px solid #e5e5e5; transition: all .3s; }
.news-list-item:hover { background: #f8f9fa; }
.news-thumb { flex-shrink: 0; width: 250px; height: 170px; overflow: hidden; border-radius: 4px; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-info { flex: 1; }
.news-info h3 { font-size: 18px; margin-bottom: 10px; }
.news-info h3 a { color: #333; }
.news-info h3 a:hover { color: #2991EA; }
.news-meta { font-size: 13px; color: #999; margin-bottom: 10px; }
.news-meta .fa { margin-right: 4px; }
.news-excerpt { font-size: 14px; color: #666; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- News Detail ---------- */
.news-detail { padding: 40px 0 60px; }
.news-detail-header { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #e5e5e5; }
.news-detail-header h1 { font-size: 26px; color: #333; margin-bottom: 10px; }
.news-detail-meta { font-size: 13px; color: #999; }
.news-detail-meta span { margin-right: 20px; }
.news-detail-body { line-height: 2; color: #555; }
.news-detail-body p { margin-bottom: 18px; }
.news-detail-body img { margin: 20px auto; border-radius: 4px; max-width: 100%; }
.news-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid #e5e5e5; }
.news-nav a { color: #666; font-size: 14px; max-width: 45%; }
.news-nav a:hover { color: #2991EA; }

/* ---------- Contact Page ---------- */
.contact-section { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-list { margin-top: 20px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.contact-info-item .fa { font-size: 24px; color: #2991EA; margin-top: 3px; width: 30px; text-align: center; }
.contact-info-item h4 { font-size: 16px; color: #333; margin-bottom: 5px; }
.contact-info-item p { font-size: 14px; color: #666; }
.contact-form { background: #f8f9fa; padding: 30px; border-radius: 10px; }
.contact-form h3 { font-size: 20px; margin-bottom: 20px; color: #333; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit; transition: border-color .3s; }
.form-group input:focus, .form-group textarea:focus { border-color: #2991EA; outline: none; }
.form-group textarea { height: 120px; resize: vertical; }
.form-submit { background: #2991EA; color: #fff; border: none; padding: 12px 40px; font-size: 16px; border-radius: 4px; cursor: pointer; transition: background .3s; }
.form-submit:hover { background: #1580D7; }

/* ---------- Fade In Animation ---------- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-list > li > a, .nav-list > li > .nav-parent > a { padding: 0 12px; font-size: 14px; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .site-header { background: #212121; }
  .header-bg { display: none; }
  .banner-section { margin-top: 60px; }
  .page-banner { margin-top: 60px; height: 200px; }
  .header-inner { height: 60px; }
  .nav-list > li > a, .nav-list > li > .nav-parent > a { line-height: 2.5; }
  .logo-brand { font-size: 16px; }
  .logo-slogan { font-size: 10px; }
  .logo-icon { width: 36px; height: 36px; }

  .mobile-toggle { display: block; }
  .main-nav { position: fixed; left: -70%; width: 70%; background: #212121; top: 0; bottom: 0; z-index: 1001; overflow-y: auto; padding-top: 60px; transition: left .3s; }
  .main-nav.open { left: 0; }
  .nav-list { display: block; }
  .nav-list > li { float: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-list > li > a, .nav-list > li > .nav-parent > a { line-height: 2.5; padding: 0 15px; color: #fff; font-size: 14px; text-align: left; }
  .nav-parent .fa-plus { display: inline-block; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 16px; }
  .nav-list .submenu { display: none; position: static; background: rgba(0,0,0,0.3); min-width: 100%; }
  .nav-list .submenu.open { display: block; }
  .submenu li a { padding: 10px 15px 10px 30px; }

  .banner-section { margin-top: 60px; }
  .banner-title { font-size: 24px; }
  .banner-subtitle { font-size: 14px; }
  .banner-overlay { padding: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { flex-direction: column; }
  .about-img { min-height: 250px; }
  .about-content { padding: 30px 20px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-copyright { text-align: left; padding-top: 20px; }
  .culture-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-top { grid-template-columns: 1fr; }
  .news-list-item { flex-direction: column; }
  .news-thumb { width: 100%; height: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 20px; }
  .timeline-dot { left: 20px; }
  .timeline-content { width: 80%; margin-left: 45px !important; }
  .timeline-item:nth-child(odd) { flex-direction: row; }
  .section-title h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
