/* ============================================================
 * AsianCargo 全局样式
 * ============================================================ */

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 首页版块标题 / 副标题 */
.section-title {
    color: #003366;
    font-weight: 700;
    text-align: left;
}
.section-title.text-center { text-align: center; }

.section-subtitle {
    color: #003366;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* 富文本正文 */
.rich-text { color: #4a5568; line-height: 1.8; }
.rich-text p { margin-bottom: 0.9rem; }
.rich-text ul { padding-left: 1.2rem; }

/* 每句前图标列表 */
.icon-list li { margin-bottom: 0.85rem; }
.icon-list .item-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-right: 0.6rem;
    margin-top: 0.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ECA12A;
    font-size: 1.25rem;
    line-height: 1;
}
.icon-list .item-icon-img {
    width: 26px; height: 26px;
    margin-right: 0.6rem;
    object-fit: contain;
    flex: 0 0 auto;
}
.icon-list .item-text { color: #4a5568; line-height: 1.7; }
.icon-list .item-text p { margin-bottom: 0.35rem; }
.icon-list .item-text p:last-child { margin-bottom: 0; }

/* 右侧水墨插画（跨 Core Spirit + Our Vision） */
.sticky-illustration {
    position: sticky;
    top: 120px;
    background: #f5f7fa;
    padding: 1rem;
    border-radius: 14px;
}

/* Why Choose Us 数字统计 */
.stat-box {
    background: #f5f7fa;
    border-radius: 14px;
    padding: 2rem 1rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.stat-number {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #003366;
    line-height: 1;
}
.stat-label { color: #4a5568; margin-top: 0.5rem; font-size: 0.95rem; }

/* CASE SHARING 视频（视频在文案上方，16:9 等大容器；后台条目数变化自动换行） */
.case-video-grid > [class*="col-"] { min-width: 0; }
.video-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}
.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}
.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.video-play-btn:hover { background: rgba(0, 0, 0, 0.2); }
.video-frame.is-playing .video-play-btn { opacity: 0; pointer-events: none; }
.video-play-icon {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(243, 152, 0, 0.95);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.video-play-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-38%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
}
.video-desc { color: #4a5568; line-height: 1.7; min-height: 96px; }
.video-desc p { margin-bottom: 0.5rem; }
.video-desc p:last-child { margin-bottom: 0; }
@media (max-width: 767.98px) {
    .video-card { padding: 0.75rem; }
    .video-desc { min-height: 0; font-size: 0.95rem; }
    .video-play-icon { width: 52px; height: 52px; }
    .video-play-icon::after { border-width: 9px 0 9px 15px; }
}

/* WHICH/WHEN/HOW/WHERE 问句卡片 */
.qa-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* 团队卡片 */
.team-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.team-photo-wrap {
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}
.team-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.team-card:hover .team-photo {
    transform: scale(1.08);
}
.team-name { font-weight: 700; color: #003366; }
.team-role { color: #6b7280; font-size: 0.85rem; }

/* 指令89：首页 Who 板块人物照缩小，使右栏与左栏文本高度大致相当。
   大桌面卡片限宽 190px（1200-1399 笔记本为 200px），照片统一 1:1（约 158×158）；移动端照片同样改为方形并缩小。 */
.who-team .team-card { max-width: 190px; margin-left: auto; margin-right: auto; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
    /* 笔记本宽度：左栏文本更宽更高，卡片略放宽，避免右栏比左栏过矮 */
    .who-team .team-card { max-width: 200px; }
}
@media (min-width: 1200px) {
    .who-team .team-photo { height: auto; aspect-ratio: 1 / 1; }
}
@media (max-width: 575.98px) {
    .who-team .team-card { padding: 0.75rem; }
    .who-team .team-photo { height: auto; aspect-ratio: 1 / 1; }
}

/* News 卡片 */
.news-card { border: none; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }

/* OUR ADVANTAGES：航线卡片（航线图统一尺寸 + 时间表 + 文案分点） */
.route-map-wrap { height: 220px; background: #0b1f3a; overflow: hidden; }
.route-map { width: 100%; height: 100%; object-fit: contain; display: block; }
.route-strengths ul { padding-left: 1.2rem; margin-bottom: 0; }
.route-strengths li { font-size: .9rem; color: #4a5568; margin-bottom: .3rem; }
.route-strengths p { margin-bottom: .4rem; }

/* SERVICE：列表项/步骤前醒目图标 */
.content ul, .service-step ul { list-style: none; padding-left: 0; }
.content ul li, .service-step ul li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.content ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #F39800; font-weight: 700; }
.service-step ul li::before { content: "▸"; position: absolute; left: 0; top: 0; color: #F39800; font-weight: 700; }

/* 联系图标（电话蓝底白电话 / 邮箱红底白信封，圆形不拉伸）
 * 后台字段可维护任意尺寸图片（历史上传为 2048x2048 原图），前端必须强制固定显示尺寸，
 * 保证顶部导航 / 页脚 / 联系页在所有页面上图标尺寸一致、不随页面变化、不撑破布局。 */
.contact-icon,
.topbar-contact-icon,
.topbar-contact-icon img,
.header-contact-icon,
.header-contact-icon img,
.footer-contact-icon,
.footer-contact-icon img {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    border-radius: 50%;
    object-fit: contain;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease;
}
.contact-icon:hover { transform: scale(1.08); }
@media (min-width: 768px) {
    .contact-icon,
    .topbar-contact-icon,
    .topbar-contact-icon img,
    .header-contact-icon,
    .header-contact-icon img,
    .footer-contact-icon,
    .footer-contact-icon img { width: 24px; height: 24px; max-width: 24px; max-height: 24px; }
}

/* FAQ 问题行（指令 62）：问题文本中的长串（如港口枚举 ports(Buenaventura,Colombia/Callao,Peru/…)）
 * 在窄屏必须能断行，否则 span 的 min-content 撑宽按钮，导致整页出现横向滚动（375px 实测溢出 104px）。
 * 用 anywhere（而非 break-word）：只有 anywhere 会同时缩小 min-content，从而真正消除溢出。 */
.accordion-button { overflow-wrap: anywhere; }

/* 指令 94：FAQ 折叠栏问题默认统一加粗（后台仍可用 strong/字号等富文本自行调整） */
.faq-question { font-weight: 700; }

/* FAQ 富文本：表格与插图（指令 56 / 62：超宽内容容器内横向滚动兜底 + 长词换行，加宽或窄屏均不破版） */
.accordion-body {
    overflow-x: auto;            /* 指令 56：宽表格等超宽内容可横向滚动，页面级不出现横向滚动条 */
    overflow-wrap: break-word;   /* 指令 62：长 URL / 无空格长串在答案正文内换行，避免答案出现无谓横向滚动条 */
}
.accordion-body table {
    width: 100%;
    min-width: 100%;             /* 指令 62：即使富文本里带固定宽度（后台编辑器/Excel 粘贴产生的 width 属性或 style），表格也必须铺满答案宽度，与上方内容对齐 */
    max-width: 100%;             /* 指令 56：表格不超出答案容器 */
    overflow-wrap: normal;       /* 表格保持自然列宽（不被逐字折断）；确属超宽时由容器横向滚动承载 */
    border-collapse: collapse;
    margin: 0.75rem 0;
    font-size: 0.92rem;
}
.accordion-body table th,
.accordion-body table td {
    border: 1px solid #d7dde4;
    padding: 0.5rem 0.65rem;
    vertical-align: top;
    text-align: left;
}
.accordion-body table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #003366;
}
.accordion-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.accordion-body ul, .accordion-body ol { padding-left: 1.2rem; }
.accordion-body li { margin-bottom: 0.35rem; }

/* CASE SHARING 视频：统一 16:9 容器 + object-fit: cover（竖屏视频裁切，画面与横屏一样大） */
.case-sharing-section video { outline: none; }
.case-sharing-section video::-webkit-media-controls-panel { background-image: linear-gradient(transparent, rgba(0,0,0,0.45)); }

/* Why Choose Us 轮船底图 + 数字叠图 */
.why-choose-stats {
    position: relative;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    min-height: 360px;
    height: 100%;
    overflow: hidden;
}
.why-choose-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    z-index: 0;
}
.why-choose-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 26, 58, 0.30), rgba(10, 26, 58, 0.18));
    border-radius: 16px;
    z-index: 1;
}
.stat-box-overlay {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    padding: 1.6rem 1rem;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.10);
}
.stat-box-overlay .stat-number { color: #003366; text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
.stat-box-overlay .stat-label { color: #1a2a4a; }


